@wix/form-elements 1.102.0 → 1.104.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 (105) hide show
  1. package/dist/component/{appointment-rac-DW5YPIgy.js → appointment-rac-CCciYQ_h.js} +4 -4
  2. package/dist/component/{bookings-address-rac-7ODYuuSG.js → bookings-address-rac-bOPrbrFn.js} +1 -1
  3. package/dist/component/{bookings-email-rac-BCnhC0YX.js → bookings-email-rac-DSpy4yfX.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-DvpfHse1.js → bookings-first-name-rac-Dw0U4kHG.js} +1 -1
  5. package/dist/component/{bookings-header-rac-Dohy9hCz.js → bookings-header-rac-Czrqn8yy.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-CVDRbwd7.js → bookings-last-name-rac-CVxRqG5b.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-DavjHZGh.js → bookings-login-bar-rac-s_2BlBcX.js} +1 -1
  8. package/dist/component/{bookings-phone-rac-Cj6Dz0vX.js → bookings-phone-rac-B2SgZsIb.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-DjmnegM6.js → bookings-rich-text-rac-b3K__6c9.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-DbJQI0lK.js → checkbox-field-rac-Gt2JioDC.js} +4 -4
  11. package/dist/component/{checkbox-group-field-headless-BWCsolHw.js → checkbox-group-field-headless-cKefepGi.js} +3 -3
  12. package/dist/component/{checkbox-group-field-rac-Cmc2pwQi.js → checkbox-group-field-rac-B14obB-6.js} +3 -3
  13. package/dist/component/{checkbox-group-rac-q3wI6hQH.js → checkbox-group-rac-B6cixM2X.js} +1 -1
  14. package/dist/component/{checkbox-rac-BsutELL1.js → checkbox-rac-COwblKlm.js} +1 -1
  15. package/dist/component/{contacts-address-rac-BUCtejza.js → contacts-address-rac-BJrwGPo4.js} +1 -1
  16. package/dist/component/{contacts-birthdate-rac-1E453ZgP.js → contacts-birthdate-rac-BaotTtEN.js} +1 -1
  17. package/dist/component/{contacts-company-rac-DrK20x29.js → contacts-company-rac-BjTc-e_S.js} +1 -1
  18. package/dist/component/{contacts-email-rac-CMiWMV_P.js → contacts-email-rac-DVFF485m.js} +1 -1
  19. package/dist/component/{contacts-first-name-rac-DPwXc8-1.js → contacts-first-name-rac-C4Fht3FS.js} +1 -1
  20. package/dist/component/{contacts-last-name-rac-CeuRsbGC.js → contacts-last-name-rac-BTbOJedX.js} +1 -1
  21. package/dist/component/{contacts-phone-rac-Cwjc5too.js → contacts-phone-rac-GePv5BT7.js} +1 -1
  22. package/dist/component/{contacts-position-rac-C8w3NNCn.js → contacts-position-rac-BZ1ASqF_.js} +1 -1
  23. package/dist/component/{contacts-subscribe-rac-CFejp0de.js → contacts-subscribe-rac-CmyBcsLP.js} +1 -1
  24. package/dist/component/{contacts-tax-id-rac-xNks1IAv.js → contacts-tax-id-rac-A2tdbIvB.js} +1 -1
  25. package/dist/component/{date-availability-xTIFwK6x.js → date-availability-b1h4CrSQ.js} +1 -1
  26. package/dist/component/{date-input-field-rac-DcoJJUZc.js → date-input-field-rac-moOjGzUv.js} +6 -6
  27. package/dist/component/{date-input-rac-CnZAuOkP.js → date-input-rac-DTqZCOqB.js} +1 -1
  28. package/dist/component/{date-picker-field-rac-D__137lA.js → date-picker-field-rac-flB4Hw18.js} +5 -5
  29. package/dist/component/{date-picker-rac-DQ42fhVP.js → date-picker-rac-B2fqOP6H.js} +1 -1
  30. package/dist/component/{date-time-input-field-rac-BHBAMq3g.js → date-time-input-field-rac-BtLGRGf5.js} +6 -6
  31. package/dist/component/{date-time-input-rac-DbIAF6nq.js → date-time-input-rac-CRfUmOim.js} +1 -1
  32. package/dist/component/{dext-checkbox-group-rac-Ds2w4V3q.js → dext-checkbox-group-rac-Ds4t475J.js} +2 -2
  33. package/dist/component/{dext-checkbox-rac-DSidRTEl.js → dext-checkbox-rac-BC6EGH5R.js} +1 -1
  34. package/dist/component/{dext-date-picker-rac-Derm4Q3d.js → dext-date-picker-rac-DyydPJyC.js} +1 -1
  35. package/dist/component/{dext-date-time-input-rac-BcyPuijC.js → dext-date-time-input-rac-DhssYv6t.js} +1 -1
  36. package/dist/component/{dext-dropdown-rac-kDuk--KF.js → dext-dropdown-rac-Bn0C1Ry8.js} +1 -1
  37. package/dist/component/{dext-email-rac-xys-YMg2.js → dext-email-rac-DKhk_v_w.js} +1 -1
  38. package/dist/component/{dext-number-input-rac-BZpAijhk.js → dext-number-input-rac-u92WD8VD.js} +1 -1
  39. package/dist/component/{dext-phone-rac-CMPboOsF.js → dext-phone-rac-DTzdQAe9.js} +1 -1
  40. package/dist/component/{dext-radio-group-rac-5h9c9bW2.js → dext-radio-group-rac-CoOYhInI.js} +2 -2
  41. package/dist/component/{dext-rating-input-rac-BobDzEXB.js → dext-rating-input-rac-DPdyJsCZ.js} +1 -1
  42. package/dist/component/{dext-tags-rac-DoJWzkrn.js → dext-tags-rac-Bh3pQ-Ck.js} +2 -2
  43. package/dist/component/{dext-text-area-rac-BIRCFM2F.js → dext-text-area-rac-Cefsz8ct.js} +1 -1
  44. package/dist/component/{dext-text-input-rac-Bzx5hcyp.js → dext-text-input-rac-Bj_pAChP.js} +1 -1
  45. package/dist/component/{dext-url-input-rac-C9hlh97b.js → dext-url-input-rac-Bk_kwZzM.js} +1 -1
  46. package/dist/component/{donation-rac-CpEduCy1.js → donation-rac-wRWkCjYg.js} +95 -95
  47. package/dist/component/{dropdown-field-headless-Dcbu807N.js → dropdown-field-headless-CedOXKAH.js} +4 -4
  48. package/dist/component/{dropdown-field-rac-mJwCTpQA.js → dropdown-field-rac-CENh9Khw.js} +2 -2
  49. package/dist/component/{dropdown-rac-N5I5XU3B.js → dropdown-rac-CeCNULzS.js} +1 -1
  50. package/dist/component/{ecom-address-rac-_0TO5pFZ.js → ecom-address-rac-BLJ0UHrV.js} +1 -1
  51. package/dist/component/{ecom-subscription-checkbox-rac-DNdz6UCu.js → ecom-subscription-checkbox-rac-xJDzCasS.js} +2 -2
  52. package/dist/component/{email-input-field-rac-VDJC1JLs.js → email-input-field-rac-CeTVUWeX.js} +3 -3
  53. package/dist/component/{events-repeater-rac-CzBVzG00.js → events-repeater-rac-CT9LAF22.js} +4 -4
  54. package/dist/component/{events-rsvp-rac--ADJlIQz.js → events-rsvp-rac-Bu8tqcVi.js} +2 -2
  55. package/dist/component/{field-error-headless-_ADCIvnx.js → field-error-headless-gLZVlnQV.js} +1 -1
  56. package/dist/component/{field-label-headless-DiDxuhCI.js → field-label-headless-yc46NPmu.js} +1 -1
  57. package/dist/component/{file-upload-rac-CiYo9UQA.js → file-upload-rac-LkVTFtZb.js} +3 -3
  58. package/dist/component/{fixed-payment-rac-DgNVdELB.js → fixed-payment-rac-DEbV0w-8.js} +3 -3
  59. package/dist/component/{form-DPmF8iaT.js → form-DV231fmJ.js} +69 -69
  60. package/dist/component/form.css +1 -1
  61. package/dist/component/form.js +1 -1
  62. package/dist/component/{header-field-rac-BuJTUp5S.js → header-field-rac-BzB5dm6C.js} +2 -2
  63. package/dist/component/{header-rac-BphcUkmo.js → header-rac-BzS5HfUt.js} +1 -1
  64. package/dist/component/{image-choice-rac-CZSMzLY2.js → image-choice-rac-8YqUqetS.js} +21 -21
  65. package/dist/component/{index-BEIxTlpO.js → index-BzRG28bH.js} +2 -2
  66. package/dist/component/{index-B0DLHSXg.js → index-CMtf-So7.js} +4 -4
  67. package/dist/component/{isObjectLike-DuXP52EV.js → isObjectLike--gPCPyGa.js} +1 -1
  68. package/dist/component/{multiline-address-field-rac-CNJyTqJt.js → multiline-address-field-rac-CJWdu5LV.js} +7 -7
  69. package/dist/component/{multiline-address-rac-DG7xjt6A.js → multiline-address-rac-Cw5VweB0.js} +1 -1
  70. package/dist/component/{number-input-field-rac-Bj2AK7Oj.js → number-input-field-rac-D8NRpCCM.js} +4 -4
  71. package/dist/component/{number-input-rac-JPgr87Xh.js → number-input-rac-CM_CQHE_.js} +1 -1
  72. package/dist/component/{password-rac-J0ySzA6j.js → password-rac-I6vynKG4.js} +4 -4
  73. package/dist/component/{payment-input-rac-B1VmJQeD.js → payment-input-rac-B4rXCs7V.js} +4 -4
  74. package/dist/component/{phone-input-field-rac-SWP8Xkh-.js → phone-input-field-rac-B-k2e0Np.js} +6 -6
  75. package/dist/component/{phone-rac-BU33sXKk.js → phone-rac-D443psAx.js} +1 -1
  76. package/dist/component/{product-list-rac-dk3gFLyb.js → product-list-rac-B6qUWxkz.js} +4 -4
  77. package/dist/component/{quiz-radio-group-rac-BFlVZj9U.js → quiz-radio-group-rac-DdPJQmV5.js} +1 -1
  78. package/dist/component/{radio-button-module-classes-DgiY7sw3.js → radio-button-module-classes--on7xGzb.js} +3 -3
  79. package/dist/component/{radio-group-field-rac-qD-GQu2A.js → radio-group-field-rac-CjiGr1rO.js} +3 -3
  80. package/dist/component/{radio-group-rac-CIY9Gj99.js → radio-group-rac-CjbSQydw.js} +1 -1
  81. package/dist/component/{rating-input-field-rac-BVWuvhkf.js → rating-input-field-rac-yVgqxBKi.js} +4 -4
  82. package/dist/component/{rating-input-rac-C3HFmqHX.js → rating-input-rac-D6BKC4oS.js} +1 -1
  83. package/dist/component/{rich-content-rac.module-QBgwAjEA.js → rich-content-rac.module-Ca4LYv7k.js} +1 -1
  84. package/dist/component/{rich-text-field-rac-BohVUJm1.js → rich-text-field-rac-DIeBS-ux.js} +2 -2
  85. package/dist/component/{rich-text-rac-BST0y6Gq.js → rich-text-rac-BgjP0ngh.js} +1 -1
  86. package/dist/component/{service-dropdown-rac-DZSY9T2v.js → service-dropdown-rac-DjOMT7dx.js} +4 -4
  87. package/dist/component/{services-multi-choice-rac-hD8TI7n7.js → services-multi-choice-rac-C0Rp9Sng.js} +5 -5
  88. package/dist/component/{signature-rac-D9G6D7Pa.js → signature-rac-CFT-Fni_.js} +3 -3
  89. package/dist/component/{submit-button-rac-D4vOTaQ9.js → submit-button-rac-BOluGZI0.js} +1 -1
  90. package/dist/component/{tags-field-rac-CoNoLUAV.js → tags-field-rac-CP0RS4SG.js} +63 -66
  91. package/dist/component/{tags-rac-BGT8KWvN.js → tags-rac-Dtp3VCKk.js} +1 -1
  92. package/dist/component/{text-area-field-rac-x-LWaPSL.js → text-area-field-rac-DUKg8kgN.js} +4 -4
  93. package/dist/component/{text-area-rac-B0KN3TR1.js → text-area-rac-Clh7zMTL.js} +1 -1
  94. package/dist/component/{text-input-field-rac-DH5j0Tvv.js → text-input-field-rac-DY60Q6da.js} +2 -2
  95. package/dist/component/{text-input-headless-Slo-xa7H.js → text-input-headless-BBv0nukI.js} +3 -3
  96. package/dist/component/{text-input-rac-_VrGU08X.js → text-input-rac-FVD6iJ1i.js} +1 -1
  97. package/dist/component/{time-input-rac-DS5uFTDp.js → time-input-rac-DsctZB28.js} +4 -4
  98. package/dist/component/{url-input-field-rac-yCewMKD-.js → url-input-field-rac-Du4HlhH3.js} +4 -4
  99. package/dist/component/{url-input-rac-D7cuZG08.js → url-input-rac-3QPdK0xz.js} +1 -1
  100. package/dist/component/{use-dropdown-option-class-name-DbjgH9K1.js → use-dropdown-option-class-name-Bze6ghRl.js} +1 -1
  101. package/dist/component/{use-element-state-class-name-C2_dMWlH.js → use-element-state-class-name-4CDAF1S-.js} +1 -1
  102. package/dist/component/{use-is-forced-open-dropdown-VcOCKx-3.js → use-is-forced-open-dropdown--w4f5dWP.js} +1 -1
  103. package/dist/component/{use-service-options-base-Cu9nE-aZ.js → use-service-options-base-9vUuIThY.js} +1 -1
  104. package/dist/component/{use-text-input-class-name-DMokiXwB.js → use-text-input-class-name-Ch91llI_.js} +2 -2
  105. package/package.json +2 -2
@@ -1,42 +1,41 @@
1
- import { RicosViewer as w } from "@wix/ricos/viewer";
2
- import F from "classnames";
3
- import t, { useMemo as I, useState as z, useRef as A, useLayoutEffect as B, useCallback as N } from "react";
1
+ import { RicosViewer as Q } from "@wix/ricos/viewer";
2
+ import y from "classnames";
3
+ import t, { useMemo as I, useState as w, useRef as k, useLayoutEffect as B, useCallback as N } 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 { ak as D, ah as M, au as y, am as U } from "./form-DPmF8iaT.js";
5
+ import { ak as v, ah as M, au as S, am as U } from "./form-DV231fmJ.js";
6
6
  import { f as b, a as x } from "./find-child-C60k4CxG.js";
7
- import { E as W, D as H } from "./field-error-headless-_ADCIvnx.js";
8
- import { L as $ } from "./field-label-headless-DiDxuhCI.js";
7
+ import { E as W, D as H } from "./field-error-headless-gLZVlnQV.js";
8
+ import { L as $ } from "./field-label-headless-yc46NPmu.js";
9
9
  import { F as ee } from "./fieldset-headless-CD3fds9J.js";
10
10
  import { E as te } from "./error-icon-hZxQ6DEy.js";
11
- import { s as S } from "./field-rac.module-DobpyqOd.js";
11
+ import { s as D } from "./field-rac.module-DobpyqOd.js";
12
12
  import { C as oe, S as ne, $ as ae, r as re, j as se, a0 as le } from "./form-element-classes-BtKlobUX.js";
13
- import { o as ie } from "./options-rac.module-CTDdATiz.js";
14
- import { u as ce } from "./use-element-state-class-name-C2_dMWlH.js";
15
- import { u as ue } from "./use-text-input-class-name-DMokiXwB.js";
16
- var de = /* @__PURE__ */ (function(e) {
13
+ import { u as ie } from "./use-element-state-class-name-4CDAF1S-.js";
14
+ import { u as ce } from "./use-text-input-class-name-Ch91llI_.js";
15
+ var ue = /* @__PURE__ */ (function(e) {
17
16
  return e[e.FREE_FLOW = 0] = "FREE_FLOW", e[e.ONE = 1] = "ONE", e[e.TWO = 2] = "TWO", e[e.THREE = 3] = "THREE", e;
18
17
  })({});
19
- const v = "Other", me = (e, o) => {
18
+ const R = "Other", de = (e, o) => {
20
19
  const r = o.length + 2;
21
20
  return (e.find((i) => i.startsWith(`${o}: `)) || "").slice(r);
22
- }, pe = (e) => e.map((o) => o.value ?? o.label), P = ({ className: e, ...o }) => {
21
+ }, me = (e) => e.map((o) => o.value ?? o.label), P = ({ className: e, ...o }) => {
23
22
  const { label: a } = o;
24
23
  return /* @__PURE__ */ t.createElement("span", {
25
24
  className: e
26
25
  }, a);
27
26
  }, q = ({ className: e }) => {
28
- const { value: o, onChange: a, addOtherLabel: r, addOtherPlaceholder: l, otherInputCharacterLimit: i, disabled: u, readOnly: m, hasError: d } = D(), { t: p } = y(), n = r || p("add-other.default-other-option-label") || v, O = I(() => me(o || [], n), [
27
+ const { value: o, onChange: a, addOtherLabel: r, addOtherPlaceholder: l, otherInputCharacterLimit: i, disabled: u, readOnly: m, hasError: d } = v(), { t: p } = S(), n = r || p("add-other.default-other-option-label") || R, O = I(() => de(o || [], n), [
29
28
  o,
30
29
  n
31
- ]), [c, L] = z(O), f = A(a);
30
+ ]), [c, L] = w(O), f = k(a);
32
31
  B(() => {
33
32
  f.current = a;
34
33
  });
35
- const g = N((h) => {
34
+ const C = N((h) => {
36
35
  L(h);
37
- const C = (o || []).filter((E) => !E.startsWith(`${n}:`) && E !== n), _ = h ? `${n}: ${h}` : n;
36
+ const g = (o || []).filter((E) => !E.startsWith(`${n}:`) && E !== n), _ = h ? `${n}: ${h}` : n;
38
37
  f.current([
39
- ...C,
38
+ ...g,
40
39
  _
41
40
  ]);
42
41
  }, [
@@ -45,7 +44,7 @@ const v = "Other", me = (e, o) => {
45
44
  ]);
46
45
  return /* @__PURE__ */ t.createElement(K, {
47
46
  value: c,
48
- onChange: g,
47
+ onChange: C,
49
48
  isDisabled: u,
50
49
  isReadOnly: m,
51
50
  isInvalid: d,
@@ -58,26 +57,26 @@ const v = "Other", me = (e, o) => {
58
57
  className: e
59
58
  }));
60
59
  }, T = ({ children: e, className: o, ...a }) => {
61
- const { value: r, label: l, isOther: i, isFirstOption: u } = a, { id: m, value: d, onChange: p, options: n, disabled: O, readOnly: c, hasError: L } = D(), f = A(null);
60
+ const { value: r, label: l, isOther: i, isFirstOption: u } = a, { id: m, value: d, onChange: p, options: n, disabled: O, readOnly: c, hasError: L } = v(), f = k(null);
62
61
  U(() => {
63
62
  var E;
64
63
  u && ((E = f.current) == null || E.focus({
65
64
  preventScroll: !0
66
65
  }));
67
66
  }, m);
68
- const g = b(e, P), h = I(() => d || [], [
67
+ const C = b(e, P), h = I(() => d || [], [
69
68
  d
70
- ]), C = I(() => i ? h.find((E) => E === l || E.startsWith(`${l}: `)) || l : r, [
69
+ ]), g = I(() => i ? h.find((E) => E === l || E.startsWith(`${l}: `)) || l : r, [
71
70
  i,
72
71
  h,
73
72
  l,
74
73
  r
75
74
  ]), _ = N((E) => {
76
- const j = pe(n || []), V = h.filter((Q) => j.includes(Q));
75
+ const G = me(n || []), A = h.filter((j) => G.includes(j));
77
76
  p(E ? [
78
- ...V,
77
+ ...A,
79
78
  l
80
- ] : V);
79
+ ] : A);
81
80
  }, [
82
81
  l,
83
82
  p,
@@ -86,22 +85,22 @@ const v = "Other", me = (e, o) => {
86
85
  ]);
87
86
  return /* @__PURE__ */ t.createElement(Y, {
88
87
  inputRef: f,
89
- value: C,
88
+ value: g,
90
89
  onChange: i ? _ : void 0,
91
90
  isDisabled: O,
92
91
  isReadOnly: c,
93
92
  isInvalid: L
94
93
  }, /* @__PURE__ */ t.createElement(Z, {
95
94
  className: o,
96
- "data-hook": `tags-${i ? v : r}`
97
- }, x(g, {
95
+ "data-hook": `tags-${i ? R : r}`
96
+ }, x(C, {
98
97
  value: r,
99
98
  label: l,
100
99
  isOther: i,
101
100
  isFirstOption: u
102
101
  })));
103
- }, k = ({ children: e, className: o }) => {
104
- const { options: a, addOther: r, addOtherLabel: l, numberOfColumns: i = de.FREE_FLOW } = D(), { t: u } = y(), m = l || u("add-other.default-other-option-label") || v, d = b(e, T), p = I(() => {
102
+ }, V = ({ children: e, className: o }) => {
103
+ const { options: a, addOther: r, addOtherLabel: l, numberOfColumns: i = ue.FREE_FLOW } = v(), { t: u } = S(), m = l || u("add-other.default-other-option-label") || R, d = b(e, T), p = I(() => {
105
104
  const n = a || [];
106
105
  return r ? [
107
106
  ...n,
@@ -122,15 +121,15 @@ const v = "Other", me = (e, o) => {
122
121
  }, p.map((n, O) => {
123
122
  const c = n.value ?? n.label;
124
123
  return x(d, {
125
- key: n.isOther ? v : c,
124
+ key: n.isOther ? R : c,
126
125
  value: c,
127
126
  label: n.label,
128
127
  isOther: n.isOther,
129
128
  isFirstOption: O === 0
130
129
  });
131
130
  }));
132
- }, G = ({ children: e, className: o }) => {
133
- const { addOther: a, addOtherLabel: r, hasError: l, readOnly: i, value: u } = D(), { t: m } = y(), d = r || m("add-other.default-other-option-label") || v, p = b(e, k), n = b(e, q), O = I(() => !a || !u ? !1 : u.some((c) => c === d || c.startsWith(`${d}:`)), [
131
+ }, z = ({ children: e, className: o }) => {
132
+ const { addOther: a, addOtherLabel: r, hasError: l, readOnly: i, value: u } = v(), { t: m } = S(), d = r || m("add-other.default-other-option-label") || R, p = b(e, V), n = b(e, q), O = I(() => !a || !u ? !1 : u.some((c) => c === d || c.startsWith(`${d}:`)), [
134
133
  a,
135
134
  u,
136
135
  d
@@ -141,12 +140,12 @@ const v = "Other", me = (e, o) => {
141
140
  "data-readonly": i
142
141
  }, p, O && n);
143
142
  }, s = ({ children: e }) => {
144
- const { id: o, value: a, onChange: r, FieldLayout: l, required: i, disabled: u, readOnly: m, hasError: d, onBlur: p, onFocus: n } = D(), { inputId: O, labelId: c, ariaDescribedBy: L } = M(), f = I(() => a || [], [
143
+ const { id: o, value: a, onChange: r, FieldLayout: l, required: i, disabled: u, readOnly: m, hasError: d, onBlur: p, onFocus: n } = v(), { inputId: O, labelId: c, ariaDescribedBy: L } = M(), f = I(() => a || [], [
145
144
  a
146
- ]), g = b(e, $), h = b(e, G), C = b(e, H), _ = b(e, W);
145
+ ]), C = b(e, $), h = b(e, z), g = b(e, H), _ = b(e, W);
147
146
  return /* @__PURE__ */ t.createElement(l, {
148
147
  fieldId: o,
149
- renderLabel: () => g,
148
+ renderLabel: () => C,
150
149
  renderInput: () => /* @__PURE__ */ t.createElement(ee, {
151
150
  id: O,
152
151
  ariaLabelledBy: c,
@@ -163,58 +162,56 @@ const v = "Other", me = (e, o) => {
163
162
  isRequired: i,
164
163
  isInvalid: d
165
164
  }, h)),
166
- renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, _, C)
165
+ renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, _, g)
167
166
  });
168
167
  };
169
- k.Option = T;
168
+ V.Option = T;
170
169
  T.Label = P;
171
170
  s.Label = $;
172
- s.Control = G;
173
- s.Options = k;
171
+ s.Control = z;
172
+ s.Options = V;
174
173
  s.OtherInput = q;
175
174
  s.Description = H;
176
175
  s.Error = W;
177
- const he = "_control_1g3k6_1", Ee = "_options_1g3k6_8", Oe = "_option_1g3k6_8", be = "_optionHover_1g3k6_80", fe = "_optionSelected_1g3k6_80", R = {
178
- control: he,
179
- options: Ee,
180
- option: Oe,
181
- optionHover: be,
182
- optionSelected: fe
183
- }, Ie = ({ content: e, locale: o }) => /* @__PURE__ */ t.createElement(w, {
176
+ const pe = "_control_11yzo_1", he = "_options_11yzo_8", Ee = "_option_11yzo_8", Oe = "_optionHover_11yzo_80", be = "_optionSelected_11yzo_80", F = {
177
+ control: pe,
178
+ options: he,
179
+ option: Ee,
180
+ optionHover: Oe,
181
+ optionSelected: be
182
+ }, fe = ({ content: e, locale: o }) => /* @__PURE__ */ t.createElement(Q, {
184
183
  content: e,
185
184
  locale: o
186
- }), Le = {
187
- base: R.option,
188
- selected: R.optionSelected,
189
- hover: R.optionHover
190
- }, We = () => {
191
- const e = ce({
185
+ }), Ie = {
186
+ base: F.option,
187
+ selected: F.optionSelected,
188
+ hover: F.optionHover
189
+ }, Ne = () => {
190
+ const e = ie({
192
191
  globalClasses: le,
193
- moduleClasses: Le
194
- }), o = ue();
192
+ moduleClasses: Ie
193
+ }), o = ce();
195
194
  return /* @__PURE__ */ t.createElement(s, null, /* @__PURE__ */ t.createElement(s.Label, {
196
- className: F(oe, S.label)
195
+ className: y(oe, D.label)
197
196
  }, /* @__PURE__ */ t.createElement(s.Label.Required, {
198
- className: F(ne, S.requiredMark)
197
+ className: y(ne, D.requiredMark)
199
198
  })), /* @__PURE__ */ t.createElement(s.Control, {
200
- className: R.control
199
+ className: F.control
201
200
  }, /* @__PURE__ */ t.createElement(s.Options, {
202
- className: F(ae, R.options)
201
+ className: y(ae, F.options)
203
202
  }, /* @__PURE__ */ t.createElement(s.Options.Option, {
204
203
  className: ({ isSelected: a, isHovered: r }) => e({
205
204
  isSelected: a,
206
205
  isHovered: r
207
206
  })
208
- }, /* @__PURE__ */ t.createElement(s.Options.Option.Label, {
209
- className: ie.optionLabel
210
- }))), /* @__PURE__ */ t.createElement(s.OtherInput, {
207
+ }, /* @__PURE__ */ t.createElement(s.Options.Option.Label, null))), /* @__PURE__ */ t.createElement(s.OtherInput, {
211
208
  className: o
212
209
  })), /* @__PURE__ */ t.createElement(s.Error, {
213
- className: F(re, S.error)
210
+ className: y(re, D.error)
214
211
  }, /* @__PURE__ */ t.createElement(te, null), /* @__PURE__ */ t.createElement(s.Error.Text, null)), /* @__PURE__ */ t.createElement(s.Description, {
215
- className: F(se, S.description)
216
- }, Ie));
212
+ className: y(se, D.description)
213
+ }, fe));
217
214
  };
218
215
  export {
219
- We as T
216
+ Ne as T
220
217
  };
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { T as r } from "./tags-field-rac-CoNoLUAV.js";
2
+ import { T as r } from "./tags-field-rac-CP0RS4SG.js";
3
3
  const a = () => /* @__PURE__ */ e.createElement(r, null);
4
4
  export {
5
5
  a as TagsRAC
@@ -2,14 +2,14 @@ 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 { ak as p, ah as d, am as x } from "./form-DPmF8iaT.js";
5
+ import { ak as p, ah as d, am as x } from "./form-DV231fmJ.js";
6
6
  import { f as i } from "./find-child-C60k4CxG.js";
7
- import { D as h, E as g } from "./field-error-headless-_ADCIvnx.js";
8
- import { L as v } from "./field-label-headless-DiDxuhCI.js";
7
+ import { D as h, E as g } from "./field-error-headless-gLZVlnQV.js";
8
+ import { L as v } from "./field-label-headless-yc46NPmu.js";
9
9
  import { E as M } from "./error-icon-hZxQ6DEy.js";
10
10
  import { s as c } from "./field-rac.module-DobpyqOd.js";
11
11
  import { C as q, S as B, r as k, j as P } from "./form-element-classes-BtKlobUX.js";
12
- import { u as V } from "./use-text-input-class-name-DMokiXwB.js";
12
+ import { u as V } from "./use-text-input-class-name-Ch91llI_.js";
13
13
  const e = ({ children: t }) => {
14
14
  const { id: a, value: m, onChange: s, disabled: u, required: n, readOnly: l, onBlur: E, onFocus: f, FieldLayout: I, hasError: b } = p(), { labelId: F } = d(), L = S((A) => {
15
15
  s(A);
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { T as r } from "./text-area-field-rac-x-LWaPSL.js";
2
+ import { T as r } from "./text-area-field-rac-DUKg8kgN.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-Slo-xa7H.js";
4
+ import { T as r } from "./text-input-headless-BBv0nukI.js";
5
5
  import { E as o } from "./error-icon-hZxQ6DEy.js";
6
6
  import { s as a } from "./field-rac.module-DobpyqOd.js";
7
7
  import { C as n, S as c, r as E, j as i } from "./form-element-classes-BtKlobUX.js";
8
- import { u as p } from "./use-text-input-class-name-DMokiXwB.js";
8
+ import { u as p } from "./use-text-input-class-name-Ch91llI_.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 { ak as d, ah as c, am as v } from "./form-DPmF8iaT.js";
3
+ import { ak as d, ah as c, am as v } from "./form-DV231fmJ.js";
4
4
  import { f as a } from "./find-child-C60k4CxG.js";
5
- import { D as T, E as g } from "./field-error-headless-_ADCIvnx.js";
6
- import { L as x } from "./field-label-headless-DiDxuhCI.js";
5
+ import { D as T, E as g } from "./field-error-headless-gLZVlnQV.js";
6
+ import { L as x } from "./field-label-headless-yc46NPmu.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: b, FieldLayout: f } = 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(f, {
@@ -1,5 +1,5 @@
1
1
  import t from "react";
2
- import { T as e } from "./text-input-field-rac-DH5j0Tvv.js";
2
+ import { T as e } from "./text-input-field-rac-DY60Q6da.js";
3
3
  const o = () => /* @__PURE__ */ t.createElement(e, null);
4
4
  export {
5
5
  o as TextInputRAC
@@ -3,15 +3,15 @@ import { RicosViewer as q } from "@wix/ricos/viewer";
3
3
  import c from "classnames";
4
4
  import { parseTime as v } from "@internationalized/date";
5
5
  import { TimeField as B, DateInput as U, DateSegment as _, TimeFieldStateContext as j } from "react-aria-components";
6
- import { ak as p, ah as w, au as T, am as Q } from "./form-DPmF8iaT.js";
6
+ import { ak as p, ah as w, au as T, am as Q } from "./form-DV231fmJ.js";
7
7
  import { f as m, a as F } from "./find-child-C60k4CxG.js";
8
- import { D as z, E as G } from "./field-error-headless-_ADCIvnx.js";
9
- import { L as J } from "./field-label-headless-DiDxuhCI.js";
8
+ import { D as z, E as G } from "./field-error-headless-gLZVlnQV.js";
9
+ import { L as J } from "./field-label-headless-yc46NPmu.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
12
  import { s as f } from "./field-rac.module-DobpyqOd.js";
13
13
  import { C as W, S as X, r as Y, j as Z } from "./form-element-classes-BtKlobUX.js";
14
- import { u as $ } from "./use-text-input-class-name-DMokiXwB.js";
14
+ import { u as $ } from "./use-text-input-class-name-Ch91llI_.js";
15
15
  const r = ({ children: t }) => {
16
16
  const { id: n, value: l, onChange: o, disabled: i, readOnly: s, required: a, onBlur: d, onFocus: E, use24HourFormat: C, FieldLayout: g, hasError: I } = p(), { inputId: D, ariaDescribedBy: L, labelId: R } = w(), b = V((M) => {
17
17
  const H = ae(M);
@@ -2,15 +2,15 @@ import { RicosViewer as h } from "@wix/ricos/viewer";
2
2
  import i from "classnames";
3
3
  import r, { useCallback as N, useRef as O } from "react";
4
4
  import { TextField as y, Input as A } from "react-aria-components";
5
- import { ak as d, ah as E, am as k } from "./form-DPmF8iaT.js";
5
+ import { ak as d, ah as E, am as k } from "./form-DV231fmJ.js";
6
6
  import { f as c } from "./find-child-C60k4CxG.js";
7
- import { D as B, E as T } from "./field-error-headless-_ADCIvnx.js";
8
- import { L as g } from "./field-label-headless-DiDxuhCI.js";
7
+ import { D as B, E as T } from "./field-error-headless-gLZVlnQV.js";
8
+ import { L as g } from "./field-label-headless-yc46NPmu.js";
9
9
  import { u as v } from "./use-invoke-callback-UH73A_J3.js";
10
10
  import { E as M } from "./error-icon-hZxQ6DEy.js";
11
11
  import { s as u } from "./field-rac.module-DobpyqOd.js";
12
12
  import { C as P, S as q, r as x, j as U } from "./form-element-classes-BtKlobUX.js";
13
- import { u as w } from "./use-text-input-class-name-DMokiXwB.js";
13
+ import { u as w } from "./use-text-input-class-name-Ch91llI_.js";
14
14
  const V = (t) => t ? `https://${String(t).replace(/^https?:\/\//, "")}` : "", e = ({ children: t }) => {
15
15
  const { id: o, value: a, onChange: s, disabled: m, readOnly: n, required: l, hasError: I, onBlur: f, onFocus: b, FieldLayout: R } = d(), { labelId: F } = E(), p = v(f), L = c(t, e.Label), D = c(t, e.Input), C = c(t, e.Description), _ = c(t, e.Error), S = N(() => {
16
16
  s(V(a)), p();
@@ -1,5 +1,5 @@
1
1
  import r from "react";
2
- import { U as t } from "./url-input-field-rac-yCewMKD-.js";
2
+ import { U as t } from "./url-input-field-rac-Du4HlhH3.js";
3
3
  const n = () => /* @__PURE__ */ r.createElement(t, null);
4
4
  export {
5
5
  n as UrlInputRAC
@@ -1,7 +1,7 @@
1
1
  import a from "classnames";
2
2
  import { s as o } from "./field-rac.module-DobpyqOd.js";
3
3
  import { m as r } from "./form-element-classes-BtKlobUX.js";
4
- import { u as l } from "./use-element-state-class-name-C2_dMWlH.js";
4
+ import { u as l } from "./use-element-state-class-name-4CDAF1S-.js";
5
5
  const m = {
6
6
  base: o.selectOption,
7
7
  selected: o.selectOptionSelected,
@@ -1,5 +1,5 @@
1
1
  import E from "classnames";
2
- import { ad as f } from "./form-DPmF8iaT.js";
2
+ import { ad as f } from "./form-DV231fmJ.js";
3
3
  const k = ({ globalClasses: e, moduleClasses: r }) => {
4
4
  var d;
5
5
  const c = ((d = f(...e.parent ? [
@@ -1,5 +1,5 @@
1
1
  import { useContext as T, useMemo as p } from "react";
2
- import { ae as u, l as O, ac as _, F as n } from "./form-DPmF8iaT.js";
2
+ import { ae as u, l as O, ac as _, F as n } from "./form-DV231fmJ.js";
3
3
  const a = [
4
4
  n.DROPDOWN,
5
5
  n.DEXT_DROPDOWN,
@@ -1,5 +1,5 @@
1
1
  import { useState as o, useCallback as D, useEffect as m, useMemo as b } from "react";
2
- import { aj as v } from "./form-DPmF8iaT.js";
2
+ import { aj as v } from "./form-DV231fmJ.js";
3
3
  const j = (I) => {
4
4
  const { fieldType: L, isEditor: t = !1, postProcessOptions: i, customFetchLogic: a, onInitialDataLoaded: n } = I, [O, h] = o(!1), [g, p] = o([]), [E, u] = o(!1), [c, f] = o(!1), s = v(L), r = D((e) => {
5
5
  let d = e.map((l) => ({
@@ -1,7 +1,7 @@
1
- import { ak as l } from "./form-DPmF8iaT.js";
1
+ import { ak as l } from "./form-DV231fmJ.js";
2
2
  import { s } from "./field-rac.module-DobpyqOd.js";
3
3
  import { a1 as m } from "./form-element-classes-BtKlobUX.js";
4
- import { u as i } from "./use-element-state-class-name-C2_dMWlH.js";
4
+ import { u as i } from "./use-element-state-class-name-4CDAF1S-.js";
5
5
  const c = (...e) => {
6
6
  const { disabled: a, readOnly: t } = l(), o = i({
7
7
  globalClasses: m,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/form-elements",
3
- "version": "1.102.0",
3
+ "version": "1.104.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": "a3bf6521651f25d4414bac8bb781cc6637274f11ec2fd1930df9bcb7"
159
+ "falconPackageHash": "c1890dffdb99ce53f0bbb6f16863a35cf3d89674bf3faf77cf3a5b28"
160
160
  }