@wix/form-elements 1.146.0 → 1.147.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 (111) hide show
  1. package/dist/component/{appointment-rac-scUix9QX.js → appointment-rac-BG5-bIZU.js} +98 -98
  2. package/dist/component/{bookings-address-rac-CKemkJOO.js → bookings-address-rac-8e8PqKsp.js} +1 -1
  3. package/dist/component/{bookings-email-rac-CDqdhPAB.js → bookings-email-rac-CtlnU8ws.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-DEy_7Hjb.js → bookings-first-name-rac-CrivNlXM.js} +1 -1
  5. package/dist/component/{bookings-header-rac-Bl4xy9lB.js → bookings-header-rac-DWDAjfqq.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-CsL9xQ1W.js → bookings-last-name-rac-qAthWem2.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-DkHYQ4No.js → bookings-login-bar-rac-BNyUDqlM.js} +6 -6
  8. package/dist/component/{bookings-phone-rac-BoBiFwbV.js → bookings-phone-rac-Tc39XLr7.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-DZZnPKWA.js → bookings-rich-text-rac-CPNaPtFK.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-UgLmJxB-.js → checkbox-field-rac-DEa78Tpf.js} +4 -4
  11. package/dist/component/{checkbox-group-field-headless-C809nB0Q.js → checkbox-group-field-headless-BxBaMg29.js} +68 -68
  12. package/dist/component/{checkbox-group-field-rac-u4i4wG21.js → checkbox-group-field-rac-CRRP03Qk.js} +7 -7
  13. package/dist/component/{checkbox-group-rac-DBAQhSo3.js → checkbox-group-rac-TOofMGl3.js} +1 -1
  14. package/dist/component/{checkbox-rac-FDQVsI5-.js → checkbox-rac-CHMHr8Ry.js} +1 -1
  15. package/dist/component/{contacts-address-rac-DnArylPa.js → contacts-address-rac-Bc5yDvTL.js} +1 -1
  16. package/dist/component/{contacts-birthdate-rac-C19jhGEO.js → contacts-birthdate-rac-Ubtg5ncv.js} +1 -1
  17. package/dist/component/{contacts-company-rac-Dxs0hs_i.js → contacts-company-rac-BksH9IoV.js} +1 -1
  18. package/dist/component/{contacts-email-rac-D-H43L8r.js → contacts-email-rac-DDPEtMAm.js} +1 -1
  19. package/dist/component/{contacts-first-name-rac-DwV5NESk.js → contacts-first-name-rac-DUlCvEdx.js} +1 -1
  20. package/dist/component/{contacts-last-name-rac-C5v2xurf.js → contacts-last-name-rac-BikqNgUr.js} +1 -1
  21. package/dist/component/{contacts-phone-rac-D9a5x-xl.js → contacts-phone-rac-B4OEgM_8.js} +1 -1
  22. package/dist/component/{contacts-position-rac-DfsgOv-k.js → contacts-position-rac-BfybzySV.js} +1 -1
  23. package/dist/component/{contacts-subscribe-rac-B-Hho0Kb.js → contacts-subscribe-rac-CMHb33v1.js} +1 -1
  24. package/dist/component/{contacts-tax-id-rac-q6TQkB4b.js → contacts-tax-id-rac-C-qEqwO5.js} +1 -1
  25. package/dist/component/{date-availability-CMDvf5VU.js → date-availability-DZ3J3LLm.js} +1 -1
  26. package/dist/component/{date-input-field-rac-C1WLUct3.js → date-input-field-rac-DeL5vuE7.js} +39 -39
  27. package/dist/component/{date-input-rac-cNQ-nr4D.js → date-input-rac-Di6TQvFf.js} +1 -1
  28. package/dist/component/{date-picker-field-rac-mx11z-MO.js → date-picker-field-rac-BcdpTkjV.js} +107 -103
  29. package/dist/component/{date-picker-rac-DeTz17zC.js → date-picker-rac-Brne65gr.js} +1 -1
  30. package/dist/component/{date-time-input-field-rac-feQ2E1eU.js → date-time-input-field-rac-BtQfAxRp.js} +49 -49
  31. package/dist/component/{date-time-input-rac-G0s0xP4v.js → date-time-input-rac-DM_HXiqV.js} +1 -1
  32. package/dist/component/{dext-checkbox-group-rac-BcTN1nJb.js → dext-checkbox-group-rac-WTVwhGG0.js} +2 -2
  33. package/dist/component/{dext-checkbox-rac-DX0TOrCO.js → dext-checkbox-rac-BR5YwmLQ.js} +1 -1
  34. package/dist/component/{dext-date-picker-rac-CpDp11oa.js → dext-date-picker-rac-DvDuRGYi.js} +1 -1
  35. package/dist/component/{dext-date-time-input-rac-BRvO8izU.js → dext-date-time-input-rac-C6RgbaVv.js} +1 -1
  36. package/dist/component/{dext-dropdown-rac-DGZ4Yi_X.js → dext-dropdown-rac-CWjSdcZx.js} +1 -1
  37. package/dist/component/{dext-email-rac-B9YCFHB4.js → dext-email-rac-D-C1gVTq.js} +1 -1
  38. package/dist/component/{dext-number-input-rac-D890dBZf.js → dext-number-input-rac-YKzZS2ZG.js} +1 -1
  39. package/dist/component/{dext-phone-rac-BAQftbXo.js → dext-phone-rac-CFZlEH2a.js} +1 -1
  40. package/dist/component/dext-radio-group-rac-DiH0wIIl.js +18 -0
  41. package/dist/component/{dext-rating-input-rac-BqQKVaHo.js → dext-rating-input-rac-D0s-i0qO.js} +1 -1
  42. package/dist/component/{dext-tags-rac-zxxKcNUe.js → dext-tags-rac-Br48OQQ5.js} +2 -2
  43. package/dist/component/{dext-text-area-rac-Ctp9SwPg.js → dext-text-area-rac-6jG8gJ7i.js} +1 -1
  44. package/dist/component/{dext-text-input-rac-c_QMlyjr.js → dext-text-input-rac-FAJTCXuf.js} +1 -1
  45. package/dist/component/{dext-url-input-rac-96pv15aC.js → dext-url-input-rac-BoMP8sQB.js} +1 -1
  46. package/dist/component/{donation-rac-GEWKSLJY.js → donation-rac-DNi4p-v5.js} +69 -69
  47. package/dist/component/{dropdown-field-headless-C3OxMhLE.js → dropdown-field-headless-7SCC-xOC.js} +27 -27
  48. package/dist/component/{dropdown-field-rac-CCXfBmSc.js → dropdown-field-rac-CMzZh6J6.js} +8 -9
  49. package/dist/component/{dropdown-rac-CR7hswXE.js → dropdown-rac-qeugpHXY.js} +1 -1
  50. package/dist/component/{ecom-address-rac-khMuxEFD.js → ecom-address-rac-D8b_L5md.js} +1 -1
  51. package/dist/component/{ecom-subscription-checkbox-rac-CAi_AHpb.js → ecom-subscription-checkbox-rac-BnAuR9La.js} +5 -5
  52. package/dist/component/{email-input-field-rac-B83mY2lg.js → email-input-field-rac-CunXRyc5.js} +62 -62
  53. package/dist/component/{events-repeater-rac-ClEwXgmb.js → events-repeater-rac-DMjyIOkB.js} +17 -17
  54. package/dist/component/{events-rsvp-rac-BJ5q2SVR.js → events-rsvp-rac-BsuDPq2K.js} +8 -8
  55. package/dist/component/{field-error-headless-CsYQCsiT.js → field-error-headless-E8WjFr_n.js} +6 -6
  56. package/dist/component/{field-label-headless-Yg_1PMSg.js → field-label-headless-BakLOu5E.js} +15 -15
  57. package/dist/component/{file-upload-rac-DJsuI_lR.js → file-upload-rac-Clu_c--0.js} +43 -43
  58. package/dist/component/{fixed-payment-rac-BMFe9wxU.js → fixed-payment-rac-CzAXxsb-.js} +12 -12
  59. package/dist/component/{form-Bed4Kfz8.js → form-DHAKwnLt.js} +311 -305
  60. package/dist/component/form.css +1 -1
  61. package/dist/component/form.js +2 -2
  62. package/dist/component/{header-field-rac-DPQTrOSZ.js → header-field-rac-CwmVpz3r.js} +4 -4
  63. package/dist/component/{header-rac-CzXsuLmE.js → header-rac-ahkGRjSy.js} +1 -1
  64. package/dist/component/{image-choice-rac-R_4pbOSr.js → image-choice-rac-BwxkkdUu.js} +17 -17
  65. package/dist/component/{index-qSZCe_WC.js → index-BFi_n6B7.js} +2 -2
  66. package/dist/component/{index-DZxHlvzt.js → index-BQf23zZi.js} +91 -91
  67. package/dist/component/{isObjectLike-B-a5uaU-.js → isObjectLike-DHcMRYYH.js} +15 -15
  68. package/dist/component/{multiline-address-field-rac-rv4IZZy_.js → multiline-address-field-rac-C6xaqNOk.js} +60 -60
  69. package/dist/component/{multiline-address-rac-DZ7cYtgn.js → multiline-address-rac-DF4TFuDx.js} +1 -1
  70. package/dist/component/{number-input-field-rac-CL9iXKIf.js → number-input-field-rac-uVJ3SBv2.js} +27 -27
  71. package/dist/component/{number-input-rac-BeGn6qJR.js → number-input-rac-D6ERhrSM.js} +1 -1
  72. package/dist/component/{password-rac-DfvhdsKG.js → password-rac-CAiC0ZKl.js} +23 -23
  73. package/dist/component/{payment-input-rac-BmMfi5rf.js → payment-input-rac-Bu25xvby.js} +26 -26
  74. package/dist/component/{phone-input-field-rac-DW0a1pXs.js → phone-input-field-rac-32qUvCsC.js} +45 -45
  75. package/dist/component/{phone-rac-quZjJ08H.js → phone-rac-mNrpj30q.js} +1 -1
  76. package/dist/component/{product-list-rac-Ci0KB7sN.js → product-list-rac-zHdM9rHw.js} +53 -53
  77. package/dist/component/{quiz-radio-group-rac--UUtGx2t.js → quiz-radio-group-rac-BaSlT8w3.js} +1 -1
  78. package/dist/component/{radio-button-module-classes-CqdBGknT.js → radio-button-module-classes-BdWjkBlX.js} +9 -9
  79. package/dist/component/{radio-group-field-rac-w8fHpFKJ.js → radio-group-field-rac-DI0UgTBr.js} +12 -12
  80. package/dist/component/{radio-group-rac-jO8aghii.js → radio-group-rac-D2ESG8J4.js} +1 -1
  81. package/dist/component/{rating-input-field-rac-BRc2PtqE.js → rating-input-field-rac-BYT2XqOK.js} +26 -26
  82. package/dist/component/{rating-input-rac-D9zs06xR.js → rating-input-rac-D-5CmVAX.js} +1 -1
  83. package/dist/component/{rich-content-rac.module-Cv3ZmD00.js → rich-content-rac.module-Dp9Advo9.js} +8 -8
  84. package/dist/component/{rich-text-field-rac-BmWuIfA8.js → rich-text-field-rac-COEUwoXQ.js} +4 -4
  85. package/dist/component/{rich-text-rac-BnqnrvB1.js → rich-text-rac-CQZLjBQ0.js} +1 -1
  86. package/dist/component/{service-dropdown-rac-Cl81KfJU.js → service-dropdown-rac-BTtJVFv8.js} +44 -45
  87. package/dist/component/{services-multi-choice-rac-sQ1NF9hY.js → services-multi-choice-rac-hbY3g0Kb.js} +11 -11
  88. package/dist/component/{signature-rac-Huairu7V.js → signature-rac-CTCNclwL.js} +67 -67
  89. package/dist/component/{submit-button-rac-Dpg7N0TG.js → submit-button-rac-kKGeVgsG.js} +25 -25
  90. package/dist/component/{tags-field-rac-BQ8TEqXH.js → tags-field-rac-CVf7oQr_.js} +35 -35
  91. package/dist/component/{tags-rac-CFOmyCCc.js → tags-rac-DiX1_nTT.js} +1 -1
  92. package/dist/component/{text-area-field-rac-DNiMa7d3.js → text-area-field-rac-IhBNXiDl.js} +22 -22
  93. package/dist/component/{text-area-rac-kLFe-KbZ.js → text-area-rac-DHevCtFF.js} +1 -1
  94. package/dist/component/{text-input-field-rac-CqENSUUX.js → text-input-field-rac-Da3_wTdh.js} +5 -5
  95. package/dist/component/{text-input-headless-BdPkEeK2.js → text-input-headless-DcZRRXCp.js} +9 -9
  96. package/dist/component/{text-input-rac-uYQEfOtE.js → text-input-rac-564LIZ1_.js} +1 -1
  97. package/dist/component/{time-input-rac-BYoojlJ9.js → time-input-rac-p-Nnsxp_.js} +54 -54
  98. package/dist/component/{url-input-field-rac-BioH7kuz.js → url-input-field-rac-DjrcpRtm.js} +25 -25
  99. package/dist/component/{url-input-rac-D2VSSyqW.js → url-input-rac-B3brpyop.js} +1 -1
  100. package/dist/component/use-dropdown-trigger-class-name-BWTT7ltv.js +117 -0
  101. package/dist/component/{use-element-state-class-name-oiKCauK-.js → use-element-state-class-name-CUZuhFvZ.js} +3 -3
  102. package/dist/component/{use-hoverable-input-class-name-BW3nCyhG.js → use-hoverable-input-class-name-ugX8-g4E.js} +6 -6
  103. package/dist/component/use-is-forced-open-dropdown-DUZMvWpk.js +48 -0
  104. package/dist/component/{use-service-options-base-DXG60hA5.js → use-service-options-base-hqO9Ev38.js} +6 -6
  105. package/dist/component/use-text-input-class-name-wp9dzpEy.js +6 -0
  106. package/dist/form.d.ts +5 -0
  107. package/package.json +2 -2
  108. package/dist/component/dext-radio-group-rac-CtEjnu_X.js +0 -18
  109. package/dist/component/use-dropdown-option-class-name-BEmvU-Gg.js +0 -115
  110. package/dist/component/use-dropdown-trigger-class-name-qj9skLWZ.js +0 -40
  111. package/dist/component/use-text-input-class-name-BhQFcXYH.js +0 -6
@@ -1,36 +1,36 @@
1
1
  import { RicosViewer as w } from "@wix/ricos/viewer";
2
2
  import F from "classnames";
3
- import t, { useMemo as I, useState as z, useRef as k, useLayoutEffect as B, useCallback as x } from "react";
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 { bn as D, bk as M, bx as S, bp as U, R as ee, $ as te, a9 as ne, G as oe, u as ae, aa as re } from "./form-Bed4Kfz8.js";
6
- import { f as O, a as N } from "./find-child-C60k4CxG.js";
7
- import { E as W, D as H } from "./field-error-headless-CsYQCsiT.js";
8
- import { L as $ } from "./field-label-headless-Yg_1PMSg.js";
5
+ import { bo as D, bl as M, by as S, bq as U, S as ee, a0 as te, aa as ne, H as oe, v as ae, ab as re } from "./form-DHAKwnLt.js";
6
+ import { f as O, a as x } from "./find-child-C60k4CxG.js";
7
+ import { E as H, D as W } from "./field-error-headless-E8WjFr_n.js";
8
+ import { L as $ } from "./field-label-headless-BakLOu5E.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-DfEb7pBp.js";
12
- import { u as ie } from "./use-element-state-class-name-oiKCauK-.js";
13
- import { u as ce } from "./use-text-input-class-name-BhQFcXYH.js";
12
+ import { u as ie } from "./use-element-state-class-name-CUZuhFvZ.js";
13
+ import { u as ce } from "./use-text-input-class-name-wp9dzpEy.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, n) => {
17
+ const R = "Other", de = (e, n) => {
18
18
  const i = n.length + 2;
19
19
  return (e.find((l) => l.startsWith(`${n}: `)) || "").slice(i);
20
- }, me = (e) => e.map((n) => n.value ?? n.label), P = ({ className: e, ...n }) => {
20
+ }, me = (e) => e.map((n) => n.value ?? n.label), q = ({ className: e, ...n }) => {
21
21
  const { label: r } = n;
22
22
  return /* @__PURE__ */ t.createElement("span", {
23
23
  className: e
24
24
  }, r);
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), [
25
+ }, P = ({ 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") || R, b = I(() => de(n || [], o), [
27
27
  n,
28
28
  o
29
- ]), [c, L] = z(b), f = k(r);
29
+ ]), [c, L] = z(b), f = N(r);
30
30
  B(() => {
31
31
  f.current = r;
32
32
  });
33
- const g = x((h) => {
33
+ const g = k((h) => {
34
34
  L(h);
35
35
  const C = (n || []).filter((E) => !E.startsWith(`${o}:`) && E !== o), _ = h ? `${o}: ${h}` : o;
36
36
  f.current([
@@ -56,21 +56,21 @@ const v = "Other", de = (e, n) => {
56
56
  className: e
57
57
  }));
58
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 = k(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({
63
63
  preventScroll: !0
64
64
  }));
65
65
  }, m);
66
- const g = O(e, P), h = I(() => d || [], [
66
+ const g = O(e, q), 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
- ]), _ = x((E) => {
73
+ ]), _ = k((E) => {
74
74
  const Q = me(o || []), A = h.filter((j) => Q.includes(j));
75
75
  p(E ? [
76
76
  ...A,
@@ -91,15 +91,15 @@ const v = "Other", de = (e, n) => {
91
91
  isInvalid: L
92
92
  }, /* @__PURE__ */ t.createElement(Z, {
93
93
  className: n,
94
- "data-hook": `tags-${l ? v : i}`
95
- }, N(g, {
94
+ "data-hook": `tags-${l ? R : i}`
95
+ }, x(g, {
96
96
  value: i,
97
97
  label: s,
98
98
  isOther: l,
99
99
  isFirstOption: u
100
100
  })));
101
101
  }, V = ({ children: e, className: n }) => {
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(() => {
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
104
  return i ? [
105
105
  ...o,
@@ -119,8 +119,8 @@ const v = "Other", de = (e, n) => {
119
119
  "data-columns": l
120
120
  }, p.map((o, b) => {
121
121
  const c = o.value ?? o.label;
122
- return N(d, {
123
- key: o.isOther ? v : c,
122
+ return x(d, {
123
+ key: o.isOther ? R : c,
124
124
  value: c,
125
125
  label: o.label,
126
126
  isOther: o.isOther,
@@ -128,7 +128,7 @@ const v = "Other", de = (e, n) => {
128
128
  });
129
129
  }));
130
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}:`)), [
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, P), b = I(() => !r || !u ? !1 : u.some((c) => c === d || c.startsWith(`${d}:`)), [
132
132
  r,
133
133
  u,
134
134
  d
@@ -141,7 +141,7 @@ const v = "Other", de = (e, n) => {
141
141
  }, a = ({ children: e }) => {
142
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, $), h = O(e, G), C = O(e, H), _ = O(e, W);
144
+ ]), g = O(e, $), h = O(e, G), C = O(e, W), _ = O(e, H);
145
145
  return /* @__PURE__ */ t.createElement(s, {
146
146
  fieldId: n,
147
147
  renderLabel: () => g,
@@ -165,14 +165,14 @@ const v = "Other", de = (e, n) => {
165
165
  });
166
166
  };
167
167
  V.Option = T;
168
- T.Label = P;
168
+ T.Label = q;
169
169
  a.Label = $;
170
170
  a.Control = G;
171
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", R = {
172
+ a.OtherInput = P;
173
+ a.Description = W;
174
+ a.Error = H;
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,
@@ -182,10 +182,10 @@ const pe = "_control_t6hu2_1", he = "_options_t6hu2_7", Ee = "_option_t6hu2_7",
182
182
  content: e,
183
183
  locale: n
184
184
  }), Ie = {
185
- base: R.option,
186
- selected: R.optionSelected,
187
- hover: R.optionHover
188
- }, ke = () => {
185
+ base: v.option,
186
+ selected: v.optionSelected,
187
+ hover: v.optionHover
188
+ }, Ne = () => {
189
189
  const e = ie({
190
190
  globalClasses: re,
191
191
  moduleClasses: Ie
@@ -195,9 +195,9 @@ const pe = "_control_t6hu2_1", he = "_options_t6hu2_7", Ee = "_option_t6hu2_7",
195
195
  }, /* @__PURE__ */ t.createElement(a.Label.Required, {
196
196
  className: F(te, y.requiredMark)
197
197
  })), /* @__PURE__ */ t.createElement(a.Control, {
198
- className: R.control
198
+ className: v.control
199
199
  }, /* @__PURE__ */ t.createElement(a.Options, {
200
- className: F(ne, R.options)
200
+ className: F(ne, v.options)
201
201
  }, /* @__PURE__ */ t.createElement(a.Options.Option, {
202
202
  className: e
203
203
  }, /* @__PURE__ */ t.createElement(a.Options.Option.Label, null))), /* @__PURE__ */ t.createElement(a.OtherInput, {
@@ -209,5 +209,5 @@ const pe = "_control_t6hu2_1", he = "_options_t6hu2_7", Ee = "_option_t6hu2_7",
209
209
  }, fe));
210
210
  };
211
211
  export {
212
- ke 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-BQ8TEqXH.js";
2
+ import { T as r } from "./tags-field-rac-CVf7oQr_.js";
3
3
  const a = () => /* @__PURE__ */ e.createElement(r, null);
4
4
  export {
5
5
  a as TagsRAC
@@ -1,27 +1,27 @@
1
1
  import { RicosViewer as N } from "@wix/ricos/viewer";
2
2
  import o from "classnames";
3
- import r, { useCallback as T, useRef as O } from "react";
4
- import { TextField as S, TextArea as y } from "react-aria-components";
5
- import { bn as p, bk as d, bp as x, R as g, $ as h, G as v, u as M } from "./form-Bed4Kfz8.js";
3
+ import r, { useCallback as S, useRef as T } from "react";
4
+ import { TextField as O, TextArea as y } from "react-aria-components";
5
+ import { bo as p, bl as d, bq as x, S as g, a0 as h, H as v, v as q } from "./form-DHAKwnLt.js";
6
6
  import { f as i } from "./find-child-C60k4CxG.js";
7
- import { D as q, E as B } from "./field-error-headless-CsYQCsiT.js";
8
- import { L as k } from "./field-label-headless-Yg_1PMSg.js";
7
+ import { D as M, E as B } from "./field-error-headless-E8WjFr_n.js";
8
+ import { L as k } from "./field-label-headless-BakLOu5E.js";
9
9
  import { E as P } from "./error-icon-hZxQ6DEy.js";
10
10
  import { s as c } from "./field-rac.module-DfEb7pBp.js";
11
- import { u as V } from "./use-text-input-class-name-BhQFcXYH.js";
11
+ import { u as V } from "./use-text-input-class-name-wp9dzpEy.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 = T((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: F } = d(), L = 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,
21
- renderInput: () => /* @__PURE__ */ r.createElement(S, {
22
- "aria-labelledby": R,
20
+ renderLabel: () => R,
21
+ renderInput: () => /* @__PURE__ */ r.createElement(O, {
22
+ "aria-labelledby": F,
23
23
  value: m ?? "",
24
- onChange: F,
24
+ onChange: L,
25
25
  isDisabled: u,
26
26
  isReadOnly: l,
27
27
  isRequired: n,
@@ -31,8 +31,8 @@ const e = ({ children: t }) => {
31
31
  }, D),
32
32
  renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, C, _)
33
33
  });
34
- }, $ = ({ className: t }) => {
35
- const { inputId: a, ariaDescribedBy: m } = d(), { id: s, placeholder: u } = p(), n = O(null);
34
+ }, w = ({ className: t }) => {
35
+ const { inputId: a, ariaDescribedBy: m } = d(), { id: s, placeholder: u } = p(), n = T(null);
36
36
  return x(() => {
37
37
  var l;
38
38
  (l = n.current) == null || l.focus();
@@ -45,16 +45,16 @@ const e = ({ children: t }) => {
45
45
  });
46
46
  };
47
47
  e.Label = k;
48
- e.Input = $;
49
- e.Description = q;
48
+ e.Input = w;
49
+ e.Description = M;
50
50
  e.Error = B;
51
- const w = "_input_ug5v8_1", G = {
52
- input: w
53
- }, Q = ({ content: t, locale: a }) => /* @__PURE__ */ r.createElement(N, {
51
+ const H = "_input_ug5v8_1", Q = {
52
+ input: H
53
+ }, U = ({ content: t, locale: a }) => /* @__PURE__ */ r.createElement(N, {
54
54
  content: t,
55
55
  locale: a
56
56
  }), re = () => {
57
- const t = V(G.input);
57
+ const t = V(Q.input);
58
58
  return /* @__PURE__ */ r.createElement(e, null, /* @__PURE__ */ r.createElement(e.Label, {
59
59
  className: o(g, c.label)
60
60
  }, /* @__PURE__ */ r.createElement(e.Label.Required, {
@@ -64,8 +64,8 @@ const w = "_input_ug5v8_1", G = {
64
64
  }), /* @__PURE__ */ r.createElement(e.Error, {
65
65
  className: o(v, c.error)
66
66
  }, /* @__PURE__ */ r.createElement(P, null), /* @__PURE__ */ r.createElement(e.Error.Text, null)), /* @__PURE__ */ r.createElement(e.Description, {
67
- className: o(M, c.description)
68
- }, Q));
67
+ className: o(q, c.description)
68
+ }, U));
69
69
  };
70
70
  export {
71
71
  re as T
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { T as r } from "./text-area-field-rac-DNiMa7d3.js";
2
+ import { T as r } from "./text-area-field-rac-IhBNXiDl.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-BdPkEeK2.js";
4
+ import { T as r } from "./text-input-headless-DcZRRXCp.js";
5
5
  import { E as o } from "./error-icon-hZxQ6DEy.js";
6
6
  import { s as a } from "./field-rac.module-DfEb7pBp.js";
7
- import { R as n, $ as c, G as E, u as i } from "./form-Bed4Kfz8.js";
8
- import { u as p } from "./use-text-input-class-name-BhQFcXYH.js";
9
- const R = ({ content: s, locale: m }) => /* @__PURE__ */ e.createElement(l, {
7
+ import { S as n, a0 as c, H as E, v as i } from "./form-DHAKwnLt.js";
8
+ import { u as p } from "./use-text-input-class-name-wp9dzpEy.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,11 +1,11 @@
1
1
  import t, { useRef as C } from "react";
2
2
  import { TextField as R, Input as v } from "react-aria-components";
3
- import { bn as d, bk as p, bp as T } from "./form-Bed4Kfz8.js";
3
+ import { bo as d, bl as c, bq as T } from "./form-DHAKwnLt.js";
4
4
  import { f as s } from "./find-child-C60k4CxG.js";
5
- import { D as g, E as h } from "./field-error-headless-CsYQCsiT.js";
6
- import { L as x } from "./field-label-headless-Yg_1PMSg.js";
5
+ import { D as g, E as h } from "./field-error-headless-E8WjFr_n.js";
6
+ import { L as q } from "./field-label-headless-BakLOu5E.js";
7
7
  const e = ({ children: r }) => {
8
- const { id: a, value: l, onChange: i, disabled: u, readOnly: n, required: o, hasError: c, onBlur: m, onFocus: b, autoComplete: f, FieldLayout: E } = d(), { labelId: I } = p(), F = s(r, e.Label), y = s(r, e.Input), D = s(r, e.Description), L = s(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 } = d(), { labelId: I } = c(), 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
10
  fieldId: a,
11
11
  renderLabel: () => F,
@@ -17,14 +17,14 @@ const e = ({ children: r }) => {
17
17
  isDisabled: u,
18
18
  isReadOnly: n,
19
19
  isRequired: o,
20
- isInvalid: c,
20
+ isInvalid: p,
21
21
  onBlur: m,
22
22
  onFocus: b
23
23
  }, y),
24
24
  renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, L, D)
25
25
  });
26
- }, B = ({ className: r }) => {
27
- const { id: a, placeholder: l } = d(), { inputId: i, ariaDescribedBy: u } = p(), n = C(null);
26
+ }, x = ({ className: r }) => {
27
+ const { id: a, placeholder: l } = d(), { inputId: i, ariaDescribedBy: u } = c(), n = C(null);
28
28
  return T(() => {
29
29
  var o;
30
30
  (o = n.current) == null || o.focus();
@@ -36,8 +36,8 @@ const e = ({ children: r }) => {
36
36
  placeholder: l
37
37
  });
38
38
  };
39
- e.Label = x;
40
- e.Input = B;
39
+ e.Label = q;
40
+ e.Input = x;
41
41
  e.Description = g;
42
42
  e.Error = h;
43
43
  export {
@@ -1,5 +1,5 @@
1
1
  import t from "react";
2
- import { T as e } from "./text-input-field-rac-CqENSUUX.js";
2
+ import { T as e } from "./text-input-field-rac-Da3_wTdh.js";
3
3
  const o = () => /* @__PURE__ */ t.createElement(e, null);
4
4
  export {
5
5
  o as TextInputRAC
@@ -1,87 +1,87 @@
1
- import e, { useCallback as H, useRef as x, useContext as V } from "react";
2
- import { RicosViewer as j } from "@wix/ricos/viewer";
1
+ import e, { useCallback as k, useRef as V, useContext as j } from "react";
2
+ import { RicosViewer as q } from "@wix/ricos/viewer";
3
3
  import m from "classnames";
4
- import { parseTime as q } from "@internationalized/date";
5
- import { TimeField as v, DateInput as z, DateSegment as _, TimeFieldStateContext as B } from "react-aria-components";
6
- import { bn as p, bk as U, bx as S, bp as w, R as G, $ as Q, G as $, u as J } from "./form-Bed4Kfz8.js";
4
+ import { parseTime as v } from "@internationalized/date";
5
+ import { TimeField as x, DateInput as z, DateSegment as _, TimeFieldStateContext as B } from "react-aria-components";
6
+ import { bo as p, bl as U, by as T, bq as w, S as Q, a0 as G, H as J, v as K } from "./form-DHAKwnLt.js";
7
7
  import { f as u, a as F } from "./find-child-C60k4CxG.js";
8
- import { D as K, E as W } from "./field-error-headless-CsYQCsiT.js";
9
- import { L as X } from "./field-label-headless-Yg_1PMSg.js";
10
- import { E as Y } from "./error-icon-hZxQ6DEy.js";
11
- import { H as T } from "./custom-focus-class-_483Pkwp.js";
8
+ import { D as W, E as X } from "./field-error-headless-E8WjFr_n.js";
9
+ import { L as Y } from "./field-label-headless-BakLOu5E.js";
10
+ import { E as Z } from "./error-icon-hZxQ6DEy.js";
11
+ import { H as S } from "./custom-focus-class-_483Pkwp.js";
12
12
  import { s as f } from "./field-rac.module-DfEb7pBp.js";
13
- import { u as Z } from "./use-text-input-class-name-BhQFcXYH.js";
13
+ import { u as $ } from "./use-text-input-class-name-wp9dzpEy.js";
14
14
  const r = ({ children: t }) => {
15
- const { id: n, value: l, onChange: a, disabled: i, readOnly: o, required: c, onBlur: s, onFocus: E, use24HourFormat: b, FieldLayout: C, hasError: g } = p(), { inputId: I, ariaDescribedBy: R, labelId: D } = U(), L = H((M) => {
16
- const k = ae(M);
17
- a(k);
15
+ const { id: n, value: s, onChange: a, disabled: i, readOnly: o, required: c, onBlur: l, onFocus: E, use24HourFormat: b, FieldLayout: C, hasError: g } = p(), { inputId: I, ariaDescribedBy: D, labelId: L } = U(), R = k((M) => {
16
+ const H = ae(M);
17
+ a(H);
18
18
  }, [
19
19
  a
20
- ]), N = u(t, r.Label), y = u(t, r.Time), P = u(t, r.Description), A = u(t, r.Error), O = ne(l);
20
+ ]), N = u(t, r.Label), y = u(t, r.Time), P = u(t, r.Description), A = u(t, r.Error), O = ne(s);
21
21
  return /* @__PURE__ */ e.createElement(C, {
22
22
  fieldId: n,
23
23
  renderLabel: () => N,
24
- renderInput: () => /* @__PURE__ */ e.createElement(v, {
25
- "aria-labelledby": D,
24
+ renderInput: () => /* @__PURE__ */ e.createElement(x, {
25
+ "aria-labelledby": L,
26
26
  id: I,
27
- "aria-describedby": R,
27
+ "aria-describedby": D,
28
28
  value: O,
29
- onChange: L,
29
+ onChange: R,
30
30
  isDisabled: i,
31
31
  isReadOnly: o,
32
32
  isInvalid: g,
33
33
  isRequired: c,
34
- onBlur: s,
34
+ onBlur: l,
35
35
  onFocus: E,
36
36
  hourCycle: b ? 24 : 12
37
37
  }, y),
38
38
  renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, A, P)
39
39
  });
40
40
  }, d = ({ children: t, className: n }) => {
41
- const { hasError: l, hidePlaceholder: a } = p(), i = u(t, d.Hour), o = u(t, d.Minute), c = u(t, d.Period);
41
+ const { hasError: s, hidePlaceholder: a } = p(), i = u(t, d.Hour), o = u(t, d.Minute), c = u(t, d.Period);
42
42
  return /* @__PURE__ */ e.createElement(z, {
43
43
  className: n,
44
- "data-invalid": l || void 0,
44
+ "data-invalid": s || void 0,
45
45
  "data-placeholder-hidden": a || void 0
46
- }, (s) => {
47
- switch (s.type) {
46
+ }, (l) => {
47
+ switch (l.type) {
48
48
  case "hour":
49
49
  return F(i, {
50
- segment: s
50
+ segment: l
51
51
  }) || /* @__PURE__ */ e.createElement(e.Fragment, null);
52
52
  case "minute":
53
53
  return F(o, {
54
- segment: s
54
+ segment: l
55
55
  }) || /* @__PURE__ */ e.createElement(e.Fragment, null);
56
56
  case "dayPeriod":
57
57
  return F(c, {
58
- segment: s
58
+ segment: l
59
59
  }) || /* @__PURE__ */ e.createElement(e.Fragment, null);
60
60
  case "literal":
61
61
  return /* @__PURE__ */ e.createElement(_, {
62
- segment: s
62
+ segment: l
63
63
  });
64
64
  default:
65
65
  return /* @__PURE__ */ e.createElement(e.Fragment, null);
66
66
  }
67
67
  });
68
68
  }, ee = ({ className: t, ...n }) => {
69
- const { id: l, hidePlaceholder: a } = p(), { segment: i } = n, { t: o } = S(), c = x(null);
69
+ const { id: s, hidePlaceholder: a } = p(), { segment: i } = n, { t: o } = T(), c = V(null);
70
70
  w(() => {
71
71
  var E;
72
72
  (E = c.current) == null || E.focus();
73
- }, l);
74
- const s = a ? void 0 : o("field.date.placeholder.hour");
73
+ }, s);
74
+ const l = a ? void 0 : o("field.date.placeholder.hour");
75
75
  return /* @__PURE__ */ e.createElement(_, {
76
76
  ref: c,
77
77
  segment: i,
78
78
  className: t,
79
- ...s && {
80
- placeholder: s
79
+ ...l && {
80
+ placeholder: l
81
81
  }
82
82
  });
83
83
  }, te = ({ className: t, ...n }) => {
84
- const { hidePlaceholder: l } = p(), { segment: a } = n, { t: i } = S(), o = l ? void 0 : i("field.date.placeholder.minute");
84
+ const { hidePlaceholder: s } = p(), { segment: a } = n, { t: i } = T(), o = s ? void 0 : i("field.date.placeholder.minute");
85
85
  return /* @__PURE__ */ e.createElement(_, {
86
86
  segment: a,
87
87
  className: t,
@@ -90,11 +90,11 @@ const r = ({ children: t }) => {
90
90
  }
91
91
  });
92
92
  }, re = ({ className: t, ...n }) => {
93
- const { hidePlaceholder: l } = p(), { segment: a } = n, { t: i } = S(), o = V(B), c = l ? void 0 : i("field.date.placeholder.period"), s = () => o == null ? void 0 : o.increment("dayPeriod");
93
+ const { hidePlaceholder: s } = p(), { segment: a } = n, { t: i } = T(), o = j(B), c = s ? void 0 : i("field.date.placeholder.period"), l = () => o == null ? void 0 : o.increment("dayPeriod");
94
94
  return /* @__PURE__ */ e.createElement(_, {
95
95
  segment: a,
96
96
  className: t,
97
- onClick: s,
97
+ onClick: l,
98
98
  ...c && {
99
99
  placeholder: c
100
100
  }
@@ -103,15 +103,15 @@ const r = ({ children: t }) => {
103
103
  d.Hour = ee;
104
104
  d.Minute = te;
105
105
  d.Period = re;
106
- r.Label = X;
106
+ r.Label = Y;
107
107
  r.Time = d;
108
- r.Description = K;
109
- r.Error = W;
108
+ r.Description = W;
109
+ r.Error = X;
110
110
  function ne(t) {
111
111
  if (!t)
112
112
  return null;
113
113
  try {
114
- return q(t);
114
+ return v(t);
115
115
  } catch {
116
116
  return null;
117
117
  }
@@ -119,39 +119,39 @@ function ne(t) {
119
119
  function ae(t) {
120
120
  if (!t)
121
121
  return null;
122
- const n = String(t.hour).padStart(2, "0"), l = String(t.minute).padStart(2, "0"), a = String(t.second).padStart(2, "0");
122
+ const n = String(t.hour).padStart(2, "0"), s = String(t.minute).padStart(2, "0"), a = String(t.second).padStart(2, "0");
123
123
  return [
124
124
  n,
125
- l,
125
+ s,
126
126
  a
127
127
  ].join(":");
128
128
  }
129
- const oe = "_time_rzj2k_1", se = "_hour_rzj2k_14", le = "_minute_rzj2k_15", ie = "_period_rzj2k_16", h = {
129
+ const oe = "_time_rzj2k_1", le = "_hour_rzj2k_14", se = "_minute_rzj2k_15", ie = "_period_rzj2k_16", h = {
130
130
  time: oe,
131
- hour: se,
132
- minute: le,
131
+ hour: le,
132
+ minute: se,
133
133
  period: ie
134
- }, ce = ({ content: t, locale: n }) => /* @__PURE__ */ e.createElement(j, {
134
+ }, ce = ({ content: t, locale: n }) => /* @__PURE__ */ e.createElement(q, {
135
135
  content: t,
136
136
  locale: n
137
137
  }), me = () => {
138
- const t = Z(h.time);
138
+ const t = $(h.time);
139
139
  return /* @__PURE__ */ e.createElement(r, null, /* @__PURE__ */ e.createElement(r.Label, {
140
- className: m(G, f.label)
140
+ className: m(Q, f.label)
141
141
  }, /* @__PURE__ */ e.createElement(r.Label.Required, {
142
- className: m(Q, f.requiredMark)
142
+ className: m(G, f.requiredMark)
143
143
  })), /* @__PURE__ */ e.createElement(r.Time, {
144
144
  className: t
145
145
  }, /* @__PURE__ */ e.createElement(r.Time.Hour, {
146
- className: m(h.hour, T)
146
+ className: m(h.hour, S)
147
147
  }), /* @__PURE__ */ e.createElement(r.Time.Minute, {
148
- className: m(h.minute, T)
148
+ className: m(h.minute, S)
149
149
  }), /* @__PURE__ */ e.createElement(r.Time.Period, {
150
- className: m(h.period, T)
150
+ className: m(h.period, S)
151
151
  })), /* @__PURE__ */ e.createElement(r.Error, {
152
- className: m($, f.error)
153
- }, /* @__PURE__ */ e.createElement(Y, null), /* @__PURE__ */ e.createElement(r.Error.Text, null)), /* @__PURE__ */ e.createElement(r.Description, {
154
- className: m(J, f.description)
152
+ className: m(J, f.error)
153
+ }, /* @__PURE__ */ e.createElement(Z, null), /* @__PURE__ */ e.createElement(r.Error.Text, null)), /* @__PURE__ */ e.createElement(r.Description, {
154
+ className: m(K, f.description)
155
155
  }, ce));
156
156
  }, Ie = () => /* @__PURE__ */ e.createElement(me, null);
157
157
  export {