@wix/form-elements 1.133.0 → 1.135.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 (114) hide show
  1. package/dist/component/{appointment-rac-D0mwr3TL.js → appointment-rac-CYCddSl9.js} +246 -246
  2. package/dist/component/{bookings-address-rac-BEnmwXax.js → bookings-address-rac-BK-sU26E.js} +1 -1
  3. package/dist/component/{bookings-email-rac-D56j9PXc.js → bookings-email-rac-DZ3HVkyn.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-xu3S-ih_.js → bookings-first-name-rac-Ci4PHqOr.js} +1 -1
  5. package/dist/component/{bookings-header-rac-hfBabv7v.js → bookings-header-rac-C_MYNrDA.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-6bMvN0Cm.js → bookings-last-name-rac-CdNlwyjm.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-DE70Omwf.js → bookings-login-bar-rac-CP2JcaVr.js} +17 -17
  8. package/dist/component/{bookings-phone-rac-D_EHRAiU.js → bookings-phone-rac-BV8sqxil.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-BxgI9Zt6.js → bookings-rich-text-rac-DQtcYRsh.js} +1 -1
  10. package/dist/component/{calendar.module-DnhTT4QT.js → calendar.module-CKCBG_Pg.js} +11 -11
  11. package/dist/component/{checkbox-field-rac-BLDUOAXM.js → checkbox-field-rac-DPNqHTNc.js} +26 -25
  12. package/dist/component/{checkbox-group-field-headless-CugSJIBp.js → checkbox-group-field-headless-DhhynlgN.js} +32 -31
  13. package/dist/component/{checkbox-group-field-rac-D4m9SmRX.js → checkbox-group-field-rac-B3zOW7qr.js} +6 -6
  14. package/dist/component/{checkbox-group-rac-BYqEsCwa.js → checkbox-group-rac-Qy03hO31.js} +1 -1
  15. package/dist/component/{checkbox-indicator-module-classes-zXKP5rD4.js → checkbox-indicator-module-classes-6173wvuW.js} +1 -1
  16. package/dist/component/{checkbox-rac-DkIBUAN7.js → checkbox-rac-DYr3RaHj.js} +1 -1
  17. package/dist/component/{contacts-address-rac-D1tzbiTM.js → contacts-address-rac-Bi-etpfX.js} +1 -1
  18. package/dist/component/{contacts-birthdate-rac-DO-1xG0u.js → contacts-birthdate-rac-D2LLjX9P.js} +1 -1
  19. package/dist/component/{contacts-company-rac-CzJK3YIo.js → contacts-company-rac-C9ImoG_i.js} +1 -1
  20. package/dist/component/{contacts-email-rac-DLvMErBI.js → contacts-email-rac-DeGblC9V.js} +1 -1
  21. package/dist/component/{contacts-first-name-rac-3RcSXL0h.js → contacts-first-name-rac-Xk3m57jK.js} +1 -1
  22. package/dist/component/{contacts-last-name-rac-BYoSi_QX.js → contacts-last-name-rac-BKE-1IYB.js} +1 -1
  23. package/dist/component/{contacts-phone-rac-DMYn0orB.js → contacts-phone-rac-CHmtTutD.js} +1 -1
  24. package/dist/component/{contacts-position-rac-K1R6ihXo.js → contacts-position-rac-BS3TySLG.js} +1 -1
  25. package/dist/component/{contacts-subscribe-rac-DsWNSH6t.js → contacts-subscribe-rac--fpczJiB.js} +1 -1
  26. package/dist/component/{contacts-tax-id-rac-D7NjPiRf.js → contacts-tax-id-rac-CHkn8vkL.js} +1 -1
  27. package/dist/component/{date-availability-D3n6-g3h.js → date-availability-70Vb-dlb.js} +1 -1
  28. package/dist/component/{date-input-field-rac-SyAmInlu.js → date-input-field-rac-BlkYEYM_.js} +60 -60
  29. package/dist/component/{date-input-rac-BQNOsWz1.js → date-input-rac-JdNFk07Q.js} +1 -1
  30. package/dist/component/{date-picker-field-rac-DO1epod7.js → date-picker-field-rac-DHu11mY1.js} +63 -63
  31. package/dist/component/{date-picker-rac-DQElftUu.js → date-picker-rac-CZtWhFzM.js} +1 -1
  32. package/dist/component/{date-time-input-field-rac-CV5wZSXO.js → date-time-input-field-rac-cHAALqS5.js} +7 -7
  33. package/dist/component/{date-time-input-rac-DvHwpjnk.js → date-time-input-rac-Dz7GfoJO.js} +1 -1
  34. package/dist/component/{dext-checkbox-group-rac-BfcKoslb.js → dext-checkbox-group-rac-ZNKzyWda.js} +2 -2
  35. package/dist/component/{dext-checkbox-rac-DhadtXb5.js → dext-checkbox-rac-DfPFXrKu.js} +1 -1
  36. package/dist/component/{dext-date-picker-rac-0Dmo3mrG.js → dext-date-picker-rac-BPbl65qK.js} +1 -1
  37. package/dist/component/{dext-date-time-input-rac-Cnh7Aqiq.js → dext-date-time-input-rac-D5ywbLtW.js} +1 -1
  38. package/dist/component/{dext-dropdown-rac-CajXcYsB.js → dext-dropdown-rac-BuVsPZOU.js} +1 -1
  39. package/dist/component/{dext-email-rac-DynJaiZt.js → dext-email-rac-DRjt3lqT.js} +1 -1
  40. package/dist/component/{dext-number-input-rac-LmTKwb80.js → dext-number-input-rac-Bzrl87fo.js} +1 -1
  41. package/dist/component/{dext-phone-rac-Cw2roq1_.js → dext-phone-rac-LibvQb8h.js} +1 -1
  42. package/dist/component/{dext-radio-group-rac-CaNZJrkc.js → dext-radio-group-rac-BTWnIvwW.js} +2 -2
  43. package/dist/component/{dext-rating-input-rac-CAL1jb0q.js → dext-rating-input-rac-DTlnOcC8.js} +1 -1
  44. package/dist/component/{dext-tags-rac-BOp_amVK.js → dext-tags-rac-YdeijviH.js} +2 -2
  45. package/dist/component/{dext-text-area-rac-6DYTHIeh.js → dext-text-area-rac-CdCzQYey.js} +1 -1
  46. package/dist/component/{dext-text-input-rac-CDWthvV3.js → dext-text-input-rac-B28RTezm.js} +1 -1
  47. package/dist/component/{dext-url-input-rac-CsS4NPYO.js → dext-url-input-rac-B0ZBPbAb.js} +1 -1
  48. package/dist/component/{donation-rac-B7lFkotu.js → donation-rac-_0cwsIAq.js} +7 -10
  49. package/dist/component/{dropdown-field-headless-ajQghLaj.js → dropdown-field-headless-DVZnbZAM.js} +5 -5
  50. package/dist/component/{dropdown-field-rac-Bf5LQqSL.js → dropdown-field-rac-DWCj_Grt.js} +5 -5
  51. package/dist/component/{dropdown-rac-CJmA_ePl.js → dropdown-rac-Bpo-F5sc.js} +1 -1
  52. package/dist/component/{ecom-address-rac-B49ZP2qc.js → ecom-address-rac-vJ0ku_Ld.js} +1 -1
  53. package/dist/component/{ecom-subscription-checkbox-rac-C8qImtxo.js → ecom-subscription-checkbox-rac-DgVReM6c.js} +2 -2
  54. package/dist/component/{email-input-field-rac-B_bEWp5N.js → email-input-field-rac-BXJGOBg-.js} +4 -4
  55. package/dist/component/{events-repeater-rac-DXxqmIBX.js → events-repeater-rac-CrXE_ppd.js} +48 -47
  56. package/dist/component/{events-rsvp-rac-BaJQLSv3.js → events-rsvp-rac-BGg3P1CQ.js} +4 -4
  57. package/dist/component/{field-error-headless-BxEFPwKI.js → field-error-headless-C3eOy1_l.js} +1 -1
  58. package/dist/component/{field-label-headless-5mewgrhq.js → field-label-headless-BMmR_IeF.js} +1 -1
  59. package/dist/component/field-rac.module-DfEb7pBp.js +25 -0
  60. package/dist/component/file-upload-rac-Umix6wXx.js +566 -0
  61. package/dist/component/{fixed-payment-rac-S68bqvbB.js → fixed-payment-rac-CfIJCBjb.js} +4 -4
  62. package/dist/component/{form-CPY-PtxT.js → form-CYPNOMwk.js} +1685 -1641
  63. package/dist/component/form.css +1 -1
  64. package/dist/component/form.js +1 -1
  65. package/dist/component/{header-field-rac-r6dYbnvA.js → header-field-rac-oxHUTKYV.js} +2 -2
  66. package/dist/component/{header-rac-C9gaKsaE.js → header-rac-DTGV923r.js} +1 -1
  67. package/dist/component/{image-choice-rac-BbES5dAK.js → image-choice-rac-B9JGl_h7.js} +42 -45
  68. package/dist/component/{index-o-TpCHqo.js → index-BOKSOnDK.js} +4 -4
  69. package/dist/component/{index-C6zuIVeJ.js → index-C_ktc-yO.js} +2 -2
  70. package/dist/component/{isObjectLike-BSRiBVs9.js → isObjectLike-Di8V7txC.js} +1 -1
  71. package/dist/component/{multiline-address-field-rac-BfVIiFyM.js → multiline-address-field-rac-zgmTbXlg.js} +8 -8
  72. package/dist/component/{multiline-address-rac-BOKBExhi.js → multiline-address-rac-Cyb3dvBf.js} +1 -1
  73. package/dist/component/{number-input-field-rac-BRKFm8aA.js → number-input-field-rac-DquqqRy_.js} +5 -5
  74. package/dist/component/{number-input-rac-BNbCCb-g.js → number-input-rac-G2DdTbk2.js} +1 -1
  75. package/dist/component/{password-rac-BygVJf7f.js → password-rac-DJCU0F38.js} +5 -5
  76. package/dist/component/{payment-input-rac-CoMbHcHG.js → payment-input-rac-DlIYza6N.js} +5 -5
  77. package/dist/component/{phone-input-field-rac-dFjxptEr.js → phone-input-field-rac-B10TInMa.js} +28 -29
  78. package/dist/component/{phone-rac-Dup3AP9J.js → phone-rac-BuyttJpM.js} +1 -1
  79. package/dist/component/{product-list-rac-B62mNB_W.js → product-list-rac-WrSJwQ_g.js} +69 -68
  80. package/dist/component/{quiz-radio-group-rac-DPMhDtr7.js → quiz-radio-group-rac-CHxZ_pK_.js} +1 -1
  81. package/dist/component/{radio-button-module-classes-BMvPai_6.js → radio-button-module-classes-DjJU-8ZB.js} +18 -17
  82. package/dist/component/{radio-group-field-rac-DPt2Zl4G.js → radio-group-field-rac-BImiqcKa.js} +5 -5
  83. package/dist/component/{radio-group-rac-BZyGqFzr.js → radio-group-rac-CDkJeGpN.js} +1 -1
  84. package/dist/component/{rating-input-field-rac-C3E0KzV-.js → rating-input-field-rac-Dsr_S5qN.js} +35 -33
  85. package/dist/component/{rating-input-rac-BKLz4l_D.js → rating-input-rac-BJUW8U93.js} +1 -1
  86. package/dist/component/{rich-content-rac.module-CQ1qa_zz.js → rich-content-rac.module-BfQJqA-x.js} +1 -1
  87. package/dist/component/{rich-text-field-rac-BfdA5KNz.js → rich-text-field-rac-DIuZbu_u.js} +2 -2
  88. package/dist/component/{rich-text-rac-BFbhfFuF.js → rich-text-rac-C39fpEiP.js} +1 -1
  89. package/dist/component/{service-dropdown-rac-VulpHBki.js → service-dropdown-rac-Bc9hEpx3.js} +6 -6
  90. package/dist/component/{services-multi-choice-rac-CIx5UpfD.js → services-multi-choice-rac-GVb4qA7g.js} +7 -7
  91. package/dist/component/{signature-rac-BdxMBfl9.js → signature-rac-nC5pr6nB.js} +269 -264
  92. package/dist/component/{submit-button-rac-CkuWGEyL.js → submit-button-rac-eUjgrx9Q.js} +2 -2
  93. package/dist/component/{tags-field-rac-DKo_Yb5i.js → tags-field-rac-zv30chSd.js} +54 -57
  94. package/dist/component/{tags-rac-BimVd3ym.js → tags-rac-PnS2SxVP.js} +1 -1
  95. package/dist/component/{text-area-field-rac-DEiLtCnb.js → text-area-field-rac-DLeOMD4g.js} +5 -5
  96. package/dist/component/{text-area-rac-CHZtsq0f.js → text-area-rac-jZ_mh45C.js} +1 -1
  97. package/dist/component/{text-input-field-rac-CSHvUtRG.js → text-input-field-rac-DifV7Erd.js} +4 -4
  98. package/dist/component/{text-input-headless-BYcExFPS.js → text-input-headless-DhVEjorY.js} +3 -3
  99. package/dist/component/{text-input-rac-D-R9btYo.js → text-input-rac-Ce4qKN9M.js} +1 -1
  100. package/dist/component/{time-input-rac-wkHemVzj.js → time-input-rac-1kW3aDIo.js} +5 -5
  101. package/dist/component/{url-input-field-rac-KJEcLyFk.js → url-input-field-rac-D9xXAQCq.js} +5 -5
  102. package/dist/component/{url-input-rac-JFfEH389.js → url-input-rac-SaAybDdN.js} +1 -1
  103. package/dist/component/{use-dropdown-option-class-name-BetaTWbW.js → use-dropdown-option-class-name-C_MO_0JS.js} +3 -3
  104. package/dist/component/{use-dropdown-trigger-class-name-C0ffAjFn.js → use-dropdown-trigger-class-name-D7EMiD-M.js} +2 -2
  105. package/dist/component/use-element-state-class-name-DZFi3Z42.js +23 -0
  106. package/dist/component/use-hoverable-input-class-name-JAZ1mif0.js +25 -0
  107. package/dist/component/{use-service-options-base-q0JTA7UI.js → use-service-options-base-ZX4iaxzr.js} +1 -1
  108. package/dist/component/use-text-input-class-name-XFjQX8q1.js +6 -0
  109. package/package.json +2 -2
  110. package/dist/component/field-rac.module-BGN-O8tV.js +0 -25
  111. package/dist/component/file-upload-rac-D9Z1Cumr.js +0 -562
  112. package/dist/component/use-element-state-class-name-BOks3she.js +0 -20
  113. package/dist/component/use-hoverable-input-class-name-jxtCw16L.js +0 -23
  114. package/dist/component/use-text-input-class-name-CTa0bC4T.js +0 -6
@@ -1,10 +1,10 @@
1
1
  import t, { useRef as F, useCallback as P } from "react";
2
2
  import j from "@wix/editor-react-components/AnimatedIcon";
3
3
  import g from "classnames";
4
- import { bh as b, bb as q, ag as A, b as R, af as k, ab as y, aa as M, ae as U } from "./form-CPY-PtxT.js";
4
+ import { bh as b, bb as q, ag as A, b as R, af as k, ab as y, aa as M, ae as U } from "./form-CYPNOMwk.js";
5
5
  import { ProgressBar as D, Button as N } from "react-aria-components";
6
6
  import { f as m } from "./find-child-C60k4CxG.js";
7
- import { u as f } from "./use-element-state-class-name-BOks3she.js";
7
+ import { u as f } from "./use-element-state-class-name-DZFi3Z42.js";
8
8
  function W(e) {
9
9
  const s = "calc(50% - 2px)";
10
10
  return /* @__PURE__ */ t.createElement(D, {
@@ -2,28 +2,28 @@ import { RicosViewer as w } from "@wix/ricos/viewer";
2
2
  import F from "classnames";
3
3
  import t, { useMemo as I, useState as z, useRef as N, useLayoutEffect as B, useCallback as k } from "react";
4
4
  import { CheckboxGroup as J, TextField as K, Input as X, CheckboxField as Y, CheckboxButton as Z } from "react-aria-components";
5
- import { bh as D, be as M, br as S, bj as U, I as ee, U as te, a3 as ne, v as oe, p as re, a4 as ae } from "./form-CPY-PtxT.js";
5
+ import { bh as D, be as M, br as S, bj as U, I as ee, U as te, a3 as ne, v as oe, p as ae, a4 as re } from "./form-CYPNOMwk.js";
6
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-BxEFPwKI.js";
8
- import { L as $ } from "./field-label-headless-5mewgrhq.js";
7
+ import { E as W, D as H } from "./field-error-headless-C3eOy1_l.js";
8
+ import { L as $ } from "./field-label-headless-BMmR_IeF.js";
9
9
  import { F as se } from "./fieldset-headless-CD3fds9J.js";
10
10
  import { E as le } from "./error-icon-hZxQ6DEy.js";
11
- import { s as y } from "./field-rac.module-BGN-O8tV.js";
12
- import { u as ie } from "./use-element-state-class-name-BOks3she.js";
13
- import { u as ce } from "./use-text-input-class-name-CTa0bC4T.js";
11
+ import { s as y } from "./field-rac.module-DfEb7pBp.js";
12
+ import { u as ie } from "./use-element-state-class-name-DZFi3Z42.js";
13
+ import { u as ce } from "./use-text-input-class-name-XFjQX8q1.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
17
  const R = "Other", de = (e, n) => {
18
- const a = n.length + 2;
19
- return (e.find((i) => i.startsWith(`${n}: `)) || "").slice(a);
18
+ const i = n.length + 2;
19
+ return (e.find((l) => l.startsWith(`${n}: `)) || "").slice(i);
20
20
  }, me = (e) => e.map((n) => n.value ?? n.label), P = ({ className: e, ...n }) => {
21
21
  const { label: r } = n;
22
22
  return /* @__PURE__ */ t.createElement("span", {
23
23
  className: e
24
24
  }, r);
25
25
  }, q = ({ className: e }) => {
26
- const { value: n, onChange: r, addOtherLabel: a, addOtherPlaceholder: l, otherInputCharacterLimit: i, disabled: u, readOnly: m, hasError: d } = D(), { t: p } = S(), o = a || p("add-other.default-other-option-label") || R, b = I(() => de(n || [], o), [
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") || R, b = I(() => de(n || [], o), [
27
27
  n,
28
28
  o
29
29
  ]), [c, L] = z(b), f = N(r);
@@ -51,12 +51,12 @@ const R = "Other", de = (e, n) => {
51
51
  }, /* @__PURE__ */ t.createElement(X, {
52
52
  "data-hook": "tags-other-input",
53
53
  "data-filled": c ? !0 : void 0,
54
- placeholder: l,
55
- maxLength: i,
54
+ placeholder: s,
55
+ maxLength: l,
56
56
  className: e
57
57
  }));
58
58
  }, T = ({ children: e, className: n, ...r }) => {
59
- const { value: a, label: l, isOther: i, isFirstOption: u } = r, { id: m, value: d, onChange: p, options: o, disabled: b, readOnly: c, hasError: L } = D(), f = N(null);
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({
@@ -65,19 +65,19 @@ const R = "Other", de = (e, n) => {
65
65
  }, m);
66
66
  const g = O(e, P), h = I(() => d || [], [
67
67
  d
68
- ]), C = I(() => i ? h.find((E) => E === l || E.startsWith(`${l}: `)) || l : a, [
69
- i,
70
- h,
68
+ ]), C = I(() => l ? h.find((E) => E === s || E.startsWith(`${s}: `)) || s : i, [
71
69
  l,
72
- a
70
+ h,
71
+ s,
72
+ i
73
73
  ]), _ = k((E) => {
74
74
  const j = me(o || []), A = h.filter((Q) => j.includes(Q));
75
75
  p(E ? [
76
76
  ...A,
77
- l
77
+ s
78
78
  ] : A);
79
79
  }, [
80
- l,
80
+ s,
81
81
  p,
82
82
  o,
83
83
  h
@@ -85,23 +85,23 @@ const R = "Other", de = (e, n) => {
85
85
  return /* @__PURE__ */ t.createElement(Y, {
86
86
  inputRef: f,
87
87
  value: C,
88
- onChange: i ? _ : void 0,
88
+ onChange: l ? _ : void 0,
89
89
  isDisabled: b,
90
90
  isReadOnly: c,
91
91
  isInvalid: L
92
92
  }, /* @__PURE__ */ t.createElement(Z, {
93
93
  className: n,
94
- "data-hook": `tags-${i ? R : a}`
94
+ "data-hook": `tags-${l ? R : i}`
95
95
  }, x(g, {
96
- value: a,
97
- label: l,
98
- isOther: i,
96
+ value: i,
97
+ label: s,
98
+ isOther: l,
99
99
  isFirstOption: u
100
100
  })));
101
101
  }, V = ({ children: e, className: n }) => {
102
- const { options: r, addOther: a, addOtherLabel: l, numberOfColumns: i = ue.FREE_FLOW } = D(), { t: u } = S(), m = l || u("add-other.default-other-option-label") || R, d = O(e, T), p = I(() => {
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") || R, d = O(e, T), p = I(() => {
103
103
  const o = r || [];
104
- return a ? [
104
+ return i ? [
105
105
  ...o,
106
106
  {
107
107
  label: m,
@@ -111,12 +111,12 @@ const R = "Other", de = (e, n) => {
111
111
  ] : o;
112
112
  }, [
113
113
  r,
114
- a,
114
+ i,
115
115
  m
116
116
  ]);
117
117
  return p.length === 0 ? null : /* @__PURE__ */ t.createElement("div", {
118
118
  className: n,
119
- "data-columns": i
119
+ "data-columns": l
120
120
  }, p.map((o, b) => {
121
121
  const c = o.value ?? o.label;
122
122
  return x(d, {
@@ -128,37 +128,37 @@ const R = "Other", de = (e, n) => {
128
128
  });
129
129
  }));
130
130
  }, G = ({ children: e, className: n }) => {
131
- const { addOther: r, addOtherLabel: a, hasError: l, readOnly: i, value: u } = D(), { t: m } = S(), d = a || m("add-other.default-other-option-label") || R, p = O(e, V), o = O(e, q), b = I(() => !r || !u ? !1 : u.some((c) => c === d || c.startsWith(`${d}:`)), [
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") || R, 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
137
  className: n,
138
- "data-invalid": l,
139
- "data-readonly": i
138
+ "data-invalid": s,
139
+ "data-readonly": l
140
140
  }, p, b && o);
141
- }, s = ({ children: e }) => {
142
- const { id: n, value: r, onChange: a, FieldLayout: l, required: i, disabled: u, readOnly: m, hasError: d, onBlur: p, onFocus: o } = D(), { inputId: b, labelId: c, ariaDescribedBy: L } = M(), f = I(() => r || [], [
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
144
  ]), g = O(e, $), h = O(e, G), C = O(e, H), _ = O(e, W);
145
- return /* @__PURE__ */ t.createElement(l, {
145
+ return /* @__PURE__ */ t.createElement(s, {
146
146
  fieldId: n,
147
147
  renderLabel: () => g,
148
148
  renderInput: () => /* @__PURE__ */ t.createElement(se, {
149
149
  id: b,
150
150
  ariaLabelledBy: c,
151
151
  ariaDescribedBy: L,
152
- required: i,
152
+ required: l,
153
153
  onBlur: p,
154
154
  onFocus: o
155
155
  }, /* @__PURE__ */ t.createElement(J, {
156
156
  "aria-labelledby": c,
157
157
  value: f,
158
- onChange: a,
158
+ onChange: i,
159
159
  isDisabled: u,
160
160
  isReadOnly: m,
161
- isRequired: i,
161
+ isRequired: l,
162
162
  isInvalid: d
163
163
  }, h)),
164
164
  renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, _, C)
@@ -166,13 +166,13 @@ const R = "Other", de = (e, n) => {
166
166
  };
167
167
  V.Option = T;
168
168
  T.Label = P;
169
- s.Label = $;
170
- s.Control = G;
171
- s.Options = V;
172
- s.OtherInput = q;
173
- s.Description = H;
174
- s.Error = W;
175
- const pe = "_control_1srl3_1", he = "_options_1srl3_7", Ee = "_option_1srl3_7", be = "_optionHover_1srl3_74", Oe = "_optionSelected_1srl3_74", v = {
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_t6hu2_1", he = "_options_t6hu2_7", Ee = "_option_t6hu2_7", be = "_optionHover_t6hu2_74", Oe = "_optionSelected_t6hu2_74", v = {
176
176
  control: pe,
177
177
  options: he,
178
178
  option: Ee,
@@ -187,28 +187,25 @@ const pe = "_control_1srl3_1", he = "_options_1srl3_7", Ee = "_option_1srl3_7",
187
187
  hover: v.optionHover
188
188
  }, Ne = () => {
189
189
  const e = ie({
190
- globalClasses: ae,
190
+ globalClasses: re,
191
191
  moduleClasses: Ie
192
192
  }), n = ce();
193
- return /* @__PURE__ */ t.createElement(s, null, /* @__PURE__ */ t.createElement(s.Label, {
193
+ return /* @__PURE__ */ t.createElement(a, null, /* @__PURE__ */ t.createElement(a.Label, {
194
194
  className: F(ee, y.label)
195
- }, /* @__PURE__ */ t.createElement(s.Label.Required, {
195
+ }, /* @__PURE__ */ t.createElement(a.Label.Required, {
196
196
  className: F(te, y.requiredMark)
197
- })), /* @__PURE__ */ t.createElement(s.Control, {
197
+ })), /* @__PURE__ */ t.createElement(a.Control, {
198
198
  className: v.control
199
- }, /* @__PURE__ */ t.createElement(s.Options, {
199
+ }, /* @__PURE__ */ t.createElement(a.Options, {
200
200
  className: F(ne, v.options)
201
- }, /* @__PURE__ */ t.createElement(s.Options.Option, {
202
- className: ({ isSelected: r, isHovered: a }) => e({
203
- isSelected: r,
204
- isHovered: a
205
- })
206
- }, /* @__PURE__ */ t.createElement(s.Options.Option.Label, null))), /* @__PURE__ */ t.createElement(s.OtherInput, {
201
+ }, /* @__PURE__ */ t.createElement(a.Options.Option, {
202
+ className: e
203
+ }, /* @__PURE__ */ t.createElement(a.Options.Option.Label, null))), /* @__PURE__ */ t.createElement(a.OtherInput, {
207
204
  className: n
208
- })), /* @__PURE__ */ t.createElement(s.Error, {
205
+ })), /* @__PURE__ */ t.createElement(a.Error, {
209
206
  className: F(oe, y.error)
210
- }, /* @__PURE__ */ t.createElement(le, null), /* @__PURE__ */ t.createElement(s.Error.Text, null)), /* @__PURE__ */ t.createElement(s.Description, {
211
- className: F(re, y.description)
207
+ }, /* @__PURE__ */ t.createElement(le, null), /* @__PURE__ */ t.createElement(a.Error.Text, null)), /* @__PURE__ */ t.createElement(a.Description, {
208
+ className: F(ae, y.description)
212
209
  }, fe));
213
210
  };
214
211
  export {
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { T as r } from "./tags-field-rac-DKo_Yb5i.js";
2
+ import { T as r } from "./tags-field-rac-zv30chSd.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 N } from "@wix/ricos/viewer";
2
2
  import o from "classnames";
3
3
  import r, { useCallback as T, useRef as O } from "react";
4
4
  import { TextField as S, TextArea as y } from "react-aria-components";
5
- import { bh as p, be as d, bj as x, I as h, U as g, v, p as M } from "./form-CPY-PtxT.js";
5
+ import { bh as p, be as d, bj as x, I as h, U as g, v, p as M } from "./form-CYPNOMwk.js";
6
6
  import { f as i } from "./find-child-C60k4CxG.js";
7
- import { D as q, E as B } from "./field-error-headless-BxEFPwKI.js";
8
- import { L as k } from "./field-label-headless-5mewgrhq.js";
7
+ import { D as q, E as B } from "./field-error-headless-C3eOy1_l.js";
8
+ import { L as k } from "./field-label-headless-BMmR_IeF.js";
9
9
  import { E as P } from "./error-icon-hZxQ6DEy.js";
10
- import { s as c } from "./field-rac.module-BGN-O8tV.js";
11
- import { u as U } from "./use-text-input-class-name-CTa0bC4T.js";
10
+ import { s as c } from "./field-rac.module-DfEb7pBp.js";
11
+ import { u as U } from "./use-text-input-class-name-XFjQX8q1.js";
12
12
  const e = ({ children: t }) => {
13
13
  const { id: a, value: m, onChange: s, disabled: u, required: n, readOnly: l, onBlur: E, onFocus: I, FieldLayout: b, hasError: f } = p(), { labelId: F } = d(), L = T((A) => {
14
14
  s(A);
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { T as r } from "./text-area-field-rac-DEiLtCnb.js";
2
+ import { T as r } from "./text-area-field-rac-DLeOMD4g.js";
3
3
  const a = () => /* @__PURE__ */ e.createElement(r, null);
4
4
  export {
5
5
  a as TextAreaRAC
@@ -1,11 +1,11 @@
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-BYcExFPS.js";
4
+ import { T as r } from "./text-input-headless-DhVEjorY.js";
5
5
  import { E as o } from "./error-icon-hZxQ6DEy.js";
6
- import { s as a } from "./field-rac.module-BGN-O8tV.js";
7
- import { I as n, U as c, v as E, p as i } from "./form-CPY-PtxT.js";
8
- import { u as p } from "./use-text-input-class-name-CTa0bC4T.js";
6
+ import { s as a } from "./field-rac.module-DfEb7pBp.js";
7
+ import { I as n, U as c, v as E, p as i } from "./form-CYPNOMwk.js";
8
+ import { u as p } from "./use-text-input-class-name-XFjQX8q1.js";
9
9
  const I = ({ content: s, locale: m }) => /* @__PURE__ */ e.createElement(l, {
10
10
  content: s,
11
11
  locale: m
@@ -1,9 +1,9 @@
1
1
  import t, { useRef as L } from "react";
2
2
  import { TextField as R, Input as h } from "react-aria-components";
3
- import { bh as d, be as c, bj as v } from "./form-CPY-PtxT.js";
3
+ import { bh as d, be as c, bj as v } from "./form-CYPNOMwk.js";
4
4
  import { f as s } from "./find-child-C60k4CxG.js";
5
- import { D as T, E as g } from "./field-error-headless-BxEFPwKI.js";
6
- import { L as x } from "./field-label-headless-5mewgrhq.js";
5
+ import { D as T, E as g } from "./field-error-headless-C3eOy1_l.js";
6
+ import { L as x } from "./field-label-headless-BMmR_IeF.js";
7
7
  const e = ({ children: r }) => {
8
8
  const { id: a, value: i, onChange: l, disabled: u, readOnly: n, required: o, hasError: p, onBlur: m, onFocus: b, FieldLayout: f } = d(), { labelId: E } = c(), I = s(r, e.Label), F = s(r, e.Input), y = s(r, e.Description), D = s(r, e.Error);
9
9
  return /* @__PURE__ */ t.createElement(f, {
@@ -1,5 +1,5 @@
1
1
  import t from "react";
2
- import { T as e } from "./text-input-field-rac-CSHvUtRG.js";
2
+ import { T as e } from "./text-input-field-rac-DifV7Erd.js";
3
3
  const o = () => /* @__PURE__ */ t.createElement(e, null);
4
4
  export {
5
5
  o as TextInputRAC
@@ -3,14 +3,14 @@ import { RicosViewer as v } from "@wix/ricos/viewer";
3
3
  import m from "classnames";
4
4
  import { parseTime as x } from "@internationalized/date";
5
5
  import { TimeField as q, DateInput as z, DateSegment as _, TimeFieldStateContext as B } from "react-aria-components";
6
- import { bh as p, be as U, br as S, bj as w, I as Q, U as G, v as J, p as K } from "./form-CPY-PtxT.js";
6
+ import { bh as p, be as U, br as S, bj as w, I as Q, U as G, v as J, p as K } from "./form-CYPNOMwk.js";
7
7
  import { f as u, a as F } from "./find-child-C60k4CxG.js";
8
- import { D as W, E as X } from "./field-error-headless-BxEFPwKI.js";
9
- import { L as Y } from "./field-label-headless-5mewgrhq.js";
8
+ import { D as W, E as X } from "./field-error-headless-C3eOy1_l.js";
9
+ import { L as Y } from "./field-label-headless-BMmR_IeF.js";
10
10
  import { E as Z } from "./error-icon-hZxQ6DEy.js";
11
11
  import { H as T } from "./custom-focus-class-_483Pkwp.js";
12
- import { s as f } from "./field-rac.module-BGN-O8tV.js";
13
- import { u as $ } from "./use-text-input-class-name-CTa0bC4T.js";
12
+ import { s as f } from "./field-rac.module-DfEb7pBp.js";
13
+ import { u as $ } from "./use-text-input-class-name-XFjQX8q1.js";
14
14
  const r = ({ children: t }) => {
15
15
  const { id: n, value: l, onChange: a, disabled: i, readOnly: o, required: c, onBlur: s, onFocus: E, use24HourFormat: b, FieldLayout: C, hasError: I } = p(), { inputId: g, ariaDescribedBy: D, labelId: L } = U(), R = H((M) => {
16
16
  const k = ae(M);
@@ -2,14 +2,14 @@ import { RicosViewer as N } from "@wix/ricos/viewer";
2
2
  import i from "classnames";
3
3
  import r, { useCallback as S, useRef as O } from "react";
4
4
  import { TextField as y, Input as A } from "react-aria-components";
5
- import { bh as d, be as E, bj as v, I as B, U as T, v as g, p as k } from "./form-CPY-PtxT.js";
5
+ import { bh as d, be as E, bj as v, I as B, U as T, v as g, p as k } from "./form-CYPNOMwk.js";
6
6
  import { f as c } from "./find-child-C60k4CxG.js";
7
- import { D as M, E as P } from "./field-error-headless-BxEFPwKI.js";
8
- import { L as U } from "./field-label-headless-5mewgrhq.js";
7
+ import { D as M, E as P } from "./field-error-headless-C3eOy1_l.js";
8
+ import { L as U } from "./field-label-headless-BMmR_IeF.js";
9
9
  import { u as q } from "./use-invoke-callback-UH73A_J3.js";
10
10
  import { E as x } from "./error-icon-hZxQ6DEy.js";
11
- import { s as u } from "./field-rac.module-BGN-O8tV.js";
12
- import { u as w } from "./use-text-input-class-name-CTa0bC4T.js";
11
+ import { s as u } from "./field-rac.module-DfEb7pBp.js";
12
+ import { u as w } from "./use-text-input-class-name-XFjQX8q1.js";
13
13
  const V = (t) => t ? `https://${String(t).replace(/^https?:\/\//, "")}` : "", e = ({ children: t }) => {
14
14
  const { id: o, value: s, onChange: n, disabled: m, readOnly: a, required: l, hasError: I, onBlur: b, onFocus: f, FieldLayout: R } = d(), { labelId: F } = E(), p = q(b), L = c(t, e.Label), D = c(t, e.Input), C = c(t, e.Description), _ = c(t, e.Error), h = S(() => {
15
15
  n(V(s)), p();
@@ -1,5 +1,5 @@
1
1
  import r from "react";
2
- import { U as t } from "./url-input-field-rac-KJEcLyFk.js";
2
+ import { U as t } from "./url-input-field-rac-D9xXAQCq.js";
3
3
  const n = () => /* @__PURE__ */ r.createElement(t, null);
4
4
  export {
5
5
  n as UrlInputRAC
@@ -1,9 +1,9 @@
1
1
  import d, { useContext as _, useRef as D, useState as m, Children as L, useLayoutEffect as p, useMemo as M } from "react";
2
2
  import { CollectionRendererContext as g, DefaultCollectionRenderer as E, ListBox as N } from "react-aria-components";
3
3
  import T from "classnames";
4
- import { s as h } from "./field-rac.module-BGN-O8tV.js";
5
- import { s as H } from "./form-CPY-PtxT.js";
6
- import { u as I } from "./use-element-state-class-name-BOks3she.js";
4
+ import { s as h } from "./field-rac.module-DfEb7pBp.js";
5
+ import { s as H } from "./form-CYPNOMwk.js";
6
+ import { u as I } from "./use-element-state-class-name-DZFi3Z42.js";
7
7
  const R = 1 / 0, B = {
8
8
  position: "absolute",
9
9
  width: 0,
@@ -1,6 +1,6 @@
1
1
  import { useContext as T, useMemo as a } from "react";
2
- import { bb as p, an as O, b9 as _, F as s, t as i } from "./form-CPY-PtxT.js";
3
- import { u } from "./use-hoverable-input-class-name-jxtCw16L.js";
2
+ import { bb as p, an as O, b9 as _, F as s, t as i } from "./form-CYPNOMwk.js";
3
+ import { u } from "./use-hoverable-input-class-name-JAZ1mif0.js";
4
4
  const I = [
5
5
  s.DROPDOWN,
6
6
  s.DEXT_DROPDOWN,
@@ -0,0 +1,23 @@
1
+ import i from "classnames";
2
+ import { ba as s, aJ as v } from "./form-CYPNOMwk.js";
3
+ const x = ({ globalClasses: e, moduleClasses: r }) => {
4
+ var d;
5
+ const c = ((d = s(...v(e))) == null ? void 0 : d.split(/\s+/)) ?? [], o = [
6
+ e.selected,
7
+ e.hover
8
+ ], h = !!e.selected && c.includes(e.selected), u = c.includes(e.hover);
9
+ return ({ isSelected: n, isHovered: N, isFocused: p, isFocusWithin: E, isInteractive: t = !0 }) => {
10
+ const m = N || !!p || !!E;
11
+ return i(e.base, r.base, t ? c : c.filter((f) => !o.includes(f)), {
12
+ [e.hover]: t && m,
13
+ [r.hover]: t && (m || u)
14
+ }, e.selected && {
15
+ [e.selected]: t && n
16
+ }, r.selected && {
17
+ [r.selected]: t && (n || h)
18
+ });
19
+ };
20
+ };
21
+ export {
22
+ x as u
23
+ };
@@ -0,0 +1,25 @@
1
+ import { bh as n } from "./form-CYPNOMwk.js";
2
+ import { s as e } from "./field-rac.module-DfEb7pBp.js";
3
+ import { u } from "./use-element-state-class-name-DZFi3Z42.js";
4
+ const b = (s, a) => {
5
+ const { disabled: t, readOnly: o } = n(), r = u({
6
+ globalClasses: s,
7
+ moduleClasses: {
8
+ base: [
9
+ e.input,
10
+ ...a
11
+ ].join(" "),
12
+ hover: e.inputHover
13
+ }
14
+ });
15
+ return ({ isHovered: l, isFocused: i, isFocusWithin: m }) => r({
16
+ isSelected: !1,
17
+ isHovered: l,
18
+ isFocused: i,
19
+ isFocusWithin: m,
20
+ isInteractive: !t && !o
21
+ });
22
+ };
23
+ export {
24
+ b as u
25
+ };
@@ -1,5 +1,5 @@
1
1
  import { useState as o, useCallback as y, useEffect as m, useMemo as D } from "react";
2
- import { bg as v } from "./form-CPY-PtxT.js";
2
+ import { bg as v } from "./form-CYPNOMwk.js";
3
3
  const k = (I) => {
4
4
  const { fieldType: L, isEditor: t = !1, postProcessOptions: i, customFetchLogic: a, onInitialDataLoaded: n } = I, [O, g] = o(!1), [h, p] = o([]), [E, u] = o(!1), [c, f] = o(!1), s = v(L), r = y((e) => {
5
5
  let d = e.map((l) => ({
@@ -0,0 +1,6 @@
1
+ import { a5 as a } from "./form-CYPNOMwk.js";
2
+ import { u as e } from "./use-hoverable-input-class-name-JAZ1mif0.js";
3
+ const m = (...s) => e(a, s);
4
+ export {
5
+ m as u
6
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/form-elements",
3
- "version": "1.133.0",
3
+ "version": "1.135.0",
4
4
  "description": "The Wix Forms rendering element for Builder apps, loaded at runtime as @wix/form-elements/Form",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -156,5 +156,5 @@
156
156
  ]
157
157
  }
158
158
  },
159
- "falconPackageHash": "1cb95e260a6f2358d6ccd6a74ac658fb836a786d16cdee45eac1b615"
159
+ "falconPackageHash": "12e3f67d4c05aed2d57a13a03e7c73fa28e7600b8b9342694d13cdb8"
160
160
  }
@@ -1,25 +0,0 @@
1
- const o = "_label_u58ay_1", e = "_requiredMark_u58ay_11", t = "_input_u58ay_16", n = "_inputGroup_u58ay_17", c = "_inputHover_u58ay_68", _ = "_innerInput_u58ay_129", r = "_dropdownTrigger_u58ay_179", p = "_dropdownIcon_u58ay_189", u = "_dropdownPopover_u58ay_208", s = "_selectPopover_u58ay_214", i = "_selectOption_u58ay_241", d = "_selectOptionHover_u58ay_264", a = "_selectOptionSelected_u58ay_268", l = "_selectOptionWithoutFocusRing_u58ay_272", y = "_description_u58ay_278", h = "_error_u58ay_294", b = "_checkbox_u58ay_313", k = "_checkboxInput_u58ay_336", v = "_checkboxInputSelected_u58ay_375", I = "_checkboxInputHover_u58ay_379", x = {
2
- label: o,
3
- requiredMark: e,
4
- input: t,
5
- inputGroup: n,
6
- inputHover: c,
7
- innerInput: _,
8
- dropdownTrigger: r,
9
- dropdownIcon: p,
10
- dropdownPopover: u,
11
- selectPopover: s,
12
- selectOption: i,
13
- selectOptionHover: d,
14
- selectOptionSelected: a,
15
- selectOptionWithoutFocusRing: l,
16
- description: y,
17
- error: h,
18
- checkbox: b,
19
- checkboxInput: k,
20
- checkboxInputSelected: v,
21
- checkboxInputHover: I
22
- };
23
- export {
24
- x as s
25
- };