@wix/form-elements 1.159.0 → 1.161.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. package/dist/component/{appointment-rac-CpiyUOXo.js → appointment-rac-BubC8I9X.js} +388 -381
  2. package/dist/component/{bookings-address-rac-BBEUV1t7.js → bookings-address-rac-BbwvVs86.js} +1 -1
  3. package/dist/component/{bookings-email-rac-DdfoeLFV.js → bookings-email-rac-C2HCkcfa.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-DH39yvQ-.js → bookings-first-name-rac-Uy7c5EBs.js} +1 -1
  5. package/dist/component/{bookings-header-rac-StLm7b4I.js → bookings-header-rac-nmwsWRjS.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-DHZMPMOO.js → bookings-last-name-rac-BAioQLCg.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-DrHp1ojM.js → bookings-login-bar-rac-CO6vOBjG.js} +5 -5
  8. package/dist/component/{bookings-phone-rac-6aGjbavK.js → bookings-phone-rac-Cr16h-_R.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-DBlGZUM5.js → bookings-rich-text-rac-CHLH3jd7.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-Cna1Va1X.js → checkbox-field-rac-CMwmwFMD.js} +4 -4
  11. package/dist/component/{checkbox-group-field-headless-m_-10Mdx.js → checkbox-group-field-headless-BNs_S-nT.js} +50 -50
  12. package/dist/component/{checkbox-group-field-rac-BSCi5hmx.js → checkbox-group-field-rac-BA60EPAN.js} +12 -12
  13. package/dist/component/{checkbox-group-rac-BWYQZmAI.js → checkbox-group-rac-BJZ4Oer9.js} +1 -1
  14. package/dist/component/{checkbox-rac-BsUTfSUf.js → checkbox-rac-KsVlI6_V.js} +1 -1
  15. package/dist/component/{contacts-address-rac-DwCLW8rV.js → contacts-address-rac-CRYkz87z.js} +1 -1
  16. package/dist/component/{contacts-birthdate-rac-DnNgxbKb.js → contacts-birthdate-rac-BIz-1-ZX.js} +1 -1
  17. package/dist/component/{contacts-company-rac-BQqXzpNl.js → contacts-company-rac-B8G__j6I.js} +1 -1
  18. package/dist/component/{contacts-email-rac-BINnZzxp.js → contacts-email-rac-Dztkvp5i.js} +1 -1
  19. package/dist/component/{contacts-first-name-rac-DBWKFkIU.js → contacts-first-name-rac-CVSEWpLU.js} +1 -1
  20. package/dist/component/{contacts-last-name-rac-D_-qrF7I.js → contacts-last-name-rac-Blz4M5bk.js} +1 -1
  21. package/dist/component/{contacts-phone-rac-7n7JkSDr.js → contacts-phone-rac-CPCE5soY.js} +1 -1
  22. package/dist/component/{contacts-position-rac-DvXP8nvT.js → contacts-position-rac-Dd_kBjqG.js} +1 -1
  23. package/dist/component/{contacts-subscribe-rac-DnLnV5Gm.js → contacts-subscribe-rac-C6AlsP10.js} +1 -1
  24. package/dist/component/{contacts-tax-id-rac-BJVWhvYW.js → contacts-tax-id-rac-CQ1n29zI.js} +1 -1
  25. package/dist/component/{date-availability-Df807-eN.js → date-availability-DDj1j0z5.js} +1 -1
  26. package/dist/component/date-input-field-rac-D5r1n_ah.js +309 -0
  27. package/dist/component/{date-input-rac-CSB3MWHW.js → date-input-rac-Cyi5mU_P.js} +1 -1
  28. package/dist/component/{date-picker-field-rac-CySThPfz.js → date-picker-field-rac-CeG391Zo.js} +79 -79
  29. package/dist/component/{date-picker-rac-Fp8_pxtf.js → date-picker-rac-Ci9aHgav.js} +1 -1
  30. package/dist/component/date-time-input-field-rac-CrbYEbJJ.js +441 -0
  31. package/dist/component/{date-time-input-rac-wctMR4uM.js → date-time-input-rac-DDJLkqs0.js} +1 -1
  32. package/dist/component/{dext-checkbox-group-rac-erMPfwFL.js → dext-checkbox-group-rac-C3ftVHBA.js} +4 -4
  33. package/dist/component/{dext-checkbox-rac-DQSq9Lqd.js → dext-checkbox-rac-BGLYWn68.js} +1 -1
  34. package/dist/component/{dext-date-picker-rac-RCLcd1VV.js → dext-date-picker-rac-Cy9RlDlt.js} +1 -1
  35. package/dist/component/{dext-date-time-input-rac-DMolWzvy.js → dext-date-time-input-rac-88ZoTd5e.js} +1 -1
  36. package/dist/component/{dext-dropdown-rac-wQ2GJL4V.js → dext-dropdown-rac-CPxDUuk9.js} +1 -1
  37. package/dist/component/{dext-email-rac-BtymBVTW.js → dext-email-rac-BAvQwDPA.js} +1 -1
  38. package/dist/component/{dext-number-input-rac-DHPiK0Z3.js → dext-number-input-rac-D7HYQVKq.js} +1 -1
  39. package/dist/component/{dext-phone-rac-C58vHEEe.js → dext-phone-rac--FhcplSI.js} +1 -1
  40. package/dist/component/dext-radio-group-rac-DBz8iCKW.js +18 -0
  41. package/dist/component/{dext-rating-input-rac-DI0k3tVa.js → dext-rating-input-rac-Cv7nThfe.js} +1 -1
  42. package/dist/component/{dext-tags-rac-DmF6ctvQ.js → dext-tags-rac-CRUUc5dr.js} +2 -2
  43. package/dist/component/{dext-text-area-rac-Bv6ridbR.js → dext-text-area-rac-DQBQXV1L.js} +1 -1
  44. package/dist/component/{dext-text-input-rac-DoTAdUgU.js → dext-text-input-rac-4CpM581y.js} +1 -1
  45. package/dist/component/{dext-url-input-rac-BuoMS6g2.js → dext-url-input-rac-0C1jTEr9.js} +1 -1
  46. package/dist/component/{donation-rac-CjZalSgn.js → donation-rac-Cgt0ZE50.js} +79 -79
  47. package/dist/component/{dropdown-field-rac-By_fpqhx.js → dropdown-field-rac-DlGKR7pZ.js} +14 -14
  48. package/dist/component/{dropdown-rac-BnIEC4RX.js → dropdown-rac-CYFW_3x_.js} +1 -1
  49. package/dist/component/{ecom-address-rac-B6Usk1Ty.js → ecom-address-rac-CQfQHpXC.js} +1 -1
  50. package/dist/component/{ecom-subscription-checkbox-rac-B4B0wzlC.js → ecom-subscription-checkbox-rac-D2v2Upvz.js} +2 -2
  51. package/dist/component/{email-input-field-rac-Df3KI3_v.js → email-input-field-rac-CVw25yRo.js} +39 -39
  52. package/dist/component/{events-repeater-rac-B2iBk8lV.js → events-repeater-rac-BCVUcmFj.js} +25 -25
  53. package/dist/component/{events-rsvp-rac-xl_qCIh3.js → events-rsvp-rac-DwbqEr8z.js} +18 -18
  54. package/dist/component/{field-error-headless-DWc76YmY.js → field-error-headless-XnVcMmsL.js} +3 -3
  55. package/dist/component/{field-label-headless-DKBKqI2X.js → field-label-headless-BRTLT2Yt.js} +16 -16
  56. package/dist/component/{file-upload-rac-BVj4cRqe.js → file-upload-rac-Dkwg9Jk4.js} +118 -118
  57. package/dist/component/{fixed-payment-rac-BS1Hb4hg.js → fixed-payment-rac-ST98xAa2.js} +13 -13
  58. package/dist/component/{form-BTUoOcqB.js → form-BUqSKOvc.js} +785 -727
  59. package/dist/component/form.js +1 -1
  60. package/dist/component/{header-field-rac-DTJ_Us6u.js → header-field-rac-CzNTGYWq.js} +6 -6
  61. package/dist/component/{header-rac-CvYp0Jjo.js → header-rac-DUt6AIAE.js} +1 -1
  62. package/dist/component/{image-choice-rac--qrYqKJl.js → image-choice-rac-DuBgrSt2.js} +23 -23
  63. package/dist/component/{index-DIl9BH2M.js → index-CDO22hht.js} +66 -66
  64. package/dist/component/{index-CoEV4QEy.js → index-cZZeAuuu.js} +2 -2
  65. package/dist/component/{isObjectLike-CLN09X5V.js → isObjectLike-cs4bARpC.js} +11 -11
  66. package/dist/component/multiline-address-field-rac-vcEWhUCV.js +1664 -0
  67. package/dist/component/{multiline-address-rac-DtaAJjbR.js → multiline-address-rac-WQaI2eUX.js} +1 -1
  68. package/dist/component/{number-input-field-rac-2gqDUlw9.js → number-input-field-rac-CBUMqATk.js} +23 -23
  69. package/dist/component/{number-input-rac-BlciEPLN.js → number-input-rac-B4j5hyzS.js} +1 -1
  70. package/dist/component/{password-rac-BvvQgafk.js → password-rac-DwLyf45N.js} +27 -27
  71. package/dist/component/{payment-input-rac-CSRyOPPr.js → payment-input-rac-D0Od---y.js} +31 -31
  72. package/dist/component/phone-input-field-rac-COlu9IeC.js +512 -0
  73. package/dist/component/{phone-rac-DMP1MoRs.js → phone-rac-Dh4RacOF.js} +1 -1
  74. package/dist/component/{product-list-rac-WQ9Qhzum.js → product-list-rac-D7zHDE2D.js} +39 -39
  75. package/dist/component/{quiz-radio-group-rac-DzrL3-gZ.js → quiz-radio-group-rac-1AaKphJt.js} +1 -1
  76. package/dist/component/{radio-button-module-classes-CJk18LzO.js → radio-button-module-classes-VqaP6vpA.js} +30 -30
  77. package/dist/component/{radio-group-field-rac-DGoMoSgo.js → radio-group-field-rac-Cp3LRN3C.js} +8 -8
  78. package/dist/component/{radio-group-rac-DhAELVNV.js → radio-group-rac-KhmhzYGf.js} +1 -1
  79. package/dist/component/{rating-input-field-rac-CFoesqmC.js → rating-input-field-rac-10n6ciCr.js} +39 -39
  80. package/dist/component/{rating-input-rac-CFMIxche.js → rating-input-rac-XZjjY2Gp.js} +1 -1
  81. package/dist/component/{rich-content-rac.module-xJ03MegT.js → rich-content-rac.module-kMwDoLBa.js} +8 -8
  82. package/dist/component/{rich-text-field-rac-CBMY4JOB.js → rich-text-field-rac-H5bd8fAt.js} +4 -4
  83. package/dist/component/{rich-text-rac-CvZ7s1Ct.js → rich-text-rac-88GSQR62.js} +1 -1
  84. package/dist/component/service-dropdown-rac-B1_Xr_X3.js +145 -0
  85. package/dist/component/{services-multi-choice-rac-fXOov4K7.js → services-multi-choice-rac-DWp_Llbi.js} +11 -11
  86. package/dist/component/{signature-rac-CG_Q9Oxr.js → signature-rac-zN_6KRDp.js} +82 -82
  87. package/dist/component/{submit-button-rac-DAsovEp2.js → submit-button-rac-Dv6UarYX.js} +12 -12
  88. package/dist/component/{tags-field-rac-9mpOMPLm.js → tags-field-rac-sVN6MHfJ.js} +43 -43
  89. package/dist/component/{tags-rac-CNBJ08wS.js → tags-rac-DhTHs_XN.js} +1 -1
  90. package/dist/component/{text-area-field-rac-D4aTm7CM.js → text-area-field-rac-DrWkww7W.js} +19 -19
  91. package/dist/component/{text-area-rac-DoKiH_Kv.js → text-area-rac-CXXh-ZdY.js} +1 -1
  92. package/dist/component/{text-input-field-rac-BbvPB26b.js → text-input-field-rac-C2YiMr-g.js} +5 -5
  93. package/dist/component/text-input-headless-BJMNbsMY.js +47 -0
  94. package/dist/component/{text-input-rac-1ac1EKad.js → text-input-rac-CpsPh7FH.js} +1 -1
  95. package/dist/component/{time-input-rac-BS0rR-89.js → time-input-rac-DG_1KxS4.js} +20 -20
  96. package/dist/component/{url-input-field-rac-DbO6ATng.js → url-input-field-rac-twxRREnl.js} +19 -19
  97. package/dist/component/{url-input-rac-DHuny3d-.js → url-input-rac-BTStO0NP.js} +1 -1
  98. package/dist/component/use-dropdown-option-class-name-DbMMg1ws.js +116 -0
  99. package/dist/component/use-dropdown-trigger-class-name-Yes4kC_0.js +96 -0
  100. package/dist/component/{use-element-state-class-name-BUsFQfoW.js → use-element-state-class-name-DlncY4hk.js} +1 -1
  101. package/dist/component/{use-hoverable-input-class-name-C2l3G8gb.js → use-hoverable-input-class-name-C__zqP5j.js} +2 -2
  102. package/dist/component/use-is-forced-open-dropdown-DnK_MQRO.js +53 -0
  103. package/dist/component/{use-service-options-base-D_enm38a.js → use-service-options-base-DKJe52Vk.js} +6 -6
  104. package/dist/component/use-text-input-class-name-D9tJTR-b.js +6 -0
  105. package/dist/form.d.ts +11 -0
  106. package/package.json +2 -2
  107. package/dist/component/date-input-field-rac-CEuPElMH.js +0 -303
  108. package/dist/component/date-time-input-field-rac-DG5KSBHe.js +0 -433
  109. package/dist/component/dext-radio-group-rac-Cp-I94HW.js +0 -18
  110. package/dist/component/dropdown-field-headless-BYEjiIUf.js +0 -93
  111. package/dist/component/multiline-address-field-rac-BjWzx-LH.js +0 -1659
  112. package/dist/component/phone-input-field-rac-BVWzH_TY.js +0 -508
  113. package/dist/component/service-dropdown-rac-B627AgPG.js +0 -145
  114. package/dist/component/text-input-headless-BGaBRrP1.js +0 -47
  115. package/dist/component/use-dropdown-trigger-class-name-rcGBzxI1.js +0 -117
  116. package/dist/component/use-is-forced-open-dropdown-CoOk4W4i.js +0 -48
  117. package/dist/component/use-text-input-class-name-BLtPQoYE.js +0 -6
@@ -1,10 +1,10 @@
1
- import t, { useRef as V, useCallback as k } from "react";
1
+ import t, { useRef as V, useCallback as y } from "react";
2
2
  import X from "@wix/editor-react-components/AnimatedIcon";
3
3
  import p from "classnames";
4
- import { bo as B, bi as $, ai as j, ah as q, af as G, ae as J, an as K, am as Q, ag as Y, b as Z, ad as tt, al as et } from "./form-BTUoOcqB.js";
4
+ import { bA as B, bu as q, au as $, at as j, ar as G, aq as J, az as K, ay as Q, as as Y, b as Z, ap as tt, ax as et } from "./form-BUqSKOvc.js";
5
5
  import { ProgressBar as nt, Button as w } from "react-aria-components";
6
6
  import { f as i } from "./find-child-C60k4CxG.js";
7
- import { u as x } from "./use-element-state-class-name-BUsFQfoW.js";
7
+ import { u as x } from "./use-element-state-class-name-DlncY4hk.js";
8
8
  function ot(e) {
9
9
  const s = "calc(50% - 2px)";
10
10
  return /* @__PURE__ */ t.createElement(nt, {
@@ -88,8 +88,8 @@ const r = ({ children: e }) => {
88
88
  isDisabled: c && !_,
89
89
  "aria-disabled": _ || void 0,
90
90
  "data-in-progress": m
91
- }, m && d ? d : /* @__PURE__ */ t.createElement(t.Fragment, null, f ?? /* @__PURE__ */ t.createElement(y, null), I));
92
- }, y = ({ className: e }) => {
91
+ }, m && d ? d : /* @__PURE__ */ t.createElement(t.Fragment, null, f ?? /* @__PURE__ */ t.createElement(k, null), I));
92
+ }, k = ({ className: e }) => {
93
93
  const { submitText: o } = B();
94
94
  return /* @__PURE__ */ t.createElement("span", {
95
95
  className: e
@@ -107,7 +107,7 @@ const r = ({ children: e }) => {
107
107
  }, R = ({ children: e }) => /* @__PURE__ */ t.createElement(t.Fragment, null, e), st = ({ className: e }) => /* @__PURE__ */ t.createElement("span", {
108
108
  className: e
109
109
  }, /* @__PURE__ */ t.createElement(ot, null));
110
- b.Label = y;
110
+ b.Label = k;
111
111
  b.Icon = R;
112
112
  b.Loader = st;
113
113
  S.Label = D;
@@ -131,10 +131,10 @@ const at = "_navigationContainer_i93zw_1", rt = "_rowSpacing_i93zw_6", ut = "_na
131
131
  buttonHover: vt,
132
132
  progress: St
133
133
  }, P = () => {
134
- const e = V(null), o = k(() => {
134
+ const e = V(null), o = y(() => {
135
135
  var n;
136
136
  return (n = e.current) == null ? void 0 : n.runAnimationForward();
137
- }, []), s = k(() => {
137
+ }, []), s = y(() => {
138
138
  var n;
139
139
  return (n = e.current) == null ? void 0 : n.runAnimationBackward();
140
140
  }, []);
@@ -151,8 +151,8 @@ const at = "_navigationContainer_i93zw_1", rt = "_rowSpacing_i93zw_6", ut = "_na
151
151
  className: p(Z, s, a)
152
152
  }) : null;
153
153
  }, Et = () => {
154
- var A, h, F, U, M, z;
155
- const { hasSteps: e, showPreviousButton: o, isDisabled: s, isInProgress: n, isSubmitting: a } = B(), v = !s && !(a || n), c = $(), m = (h = (A = c.submitButton) == null ? void 0 : A.elementProps) == null ? void 0 : h.icon, C = (U = (F = c.nextButton) == null ? void 0 : F.elementProps) == null ? void 0 : U.icon, f = (z = (M = c.previousButton) == null ? void 0 : M.elementProps) == null ? void 0 : z.icon, I = x({
154
+ var A, F, h, U, M, z;
155
+ const { hasSteps: e, showPreviousButton: o, isDisabled: s, isInProgress: n, isSubmitting: a } = B(), v = !s && !(a || n), c = q(), m = (F = (A = c.submitButton) == null ? void 0 : A.elementProps) == null ? void 0 : F.icon, C = (U = (h = c.nextButton) == null ? void 0 : h.elementProps) == null ? void 0 : U.icon, f = (z = (M = c.previousButton) == null ? void 0 : M.elementProps) == null ? void 0 : z.icon, I = x({
156
156
  globalClasses: Y,
157
157
  moduleClasses: {
158
158
  base: p(u.navigationButton, u.previousButton),
@@ -187,11 +187,11 @@ const at = "_navigationContainer_i93zw_1", rt = "_rowSpacing_i93zw_6", ut = "_na
187
187
  onHoverStart: T.onHoverStart,
188
188
  onHoverEnd: T.onHoverEnd
189
189
  }, /* @__PURE__ */ t.createElement(r.SubmitButton.PreviousButton.Label, {
190
- className: j
190
+ className: $
191
191
  }), /* @__PURE__ */ t.createElement(r.SubmitButton.PreviousButton.Icon, null, /* @__PURE__ */ t.createElement(O, {
192
192
  icon: f,
193
193
  iconRef: T.iconRef,
194
- iconClassName: q
194
+ iconClassName: j
195
195
  }))), /* @__PURE__ */ t.createElement(r.SubmitButton.NextButton, {
196
196
  className: ({ isHovered: N }) => d({
197
197
  isSelected: !1,
@@ -1,49 +1,49 @@
1
- import { RicosViewer as w } from "@wix/ricos/viewer";
1
+ import { RicosViewer as j } from "@wix/ricos/viewer";
2
2
  import F from "classnames";
3
- import t, { useMemo as I, useState as z, useRef as N, useLayoutEffect as B, useCallback as k } from "react";
4
- import { CheckboxGroup as J, TextField as K, Input as X, CheckboxField as Y, CheckboxButton as Z } from "react-aria-components";
5
- import { bo as D, bl as M, by as S, bq as U, R as ee, a0 as te, aa as ne, H as oe, v as ae, ab as re } from "./form-BTUoOcqB.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-DWc76YmY.js";
8
- import { L as $ } from "./field-label-headless-DKBKqI2X.js";
3
+ import t, { useMemo as I, useState as w, useRef as x, useLayoutEffect as z, useCallback as N } from "react";
4
+ import { CheckboxGroup as B, TextField as J, Input as X, CheckboxField as Y, CheckboxButton as Z } from "react-aria-components";
5
+ import { bA as D, bx as M, bK as S, bC as U, W as ee, ac as te, am as ne, M as oe, G as ae, an as re } from "./form-BUqSKOvc.js";
6
+ import { f as O, a as W } from "./find-child-C60k4CxG.js";
7
+ import { E as k, D as H } from "./field-error-headless-XnVcMmsL.js";
8
+ import { L as $ } from "./field-label-headless-BRTLT2Yt.js";
9
9
  import { F as se } from "./fieldset-headless-CD3fds9J.js";
10
10
  import { E as le } from "./error-icon-hZxQ6DEy.js";
11
11
  import { s as y } from "./field-rac.module-DP0lkkEv.js";
12
- import { u as ie } from "./use-element-state-class-name-BUsFQfoW.js";
13
- import { u as ce } from "./use-text-input-class-name-BLtPQoYE.js";
12
+ import { u as ie } from "./use-element-state-class-name-DlncY4hk.js";
13
+ import { u as ce } from "./use-text-input-class-name-D9tJTR-b.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 v = "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), q = ({ className: e, ...n }) => {
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
- }, P = ({ className: e }) => {
25
+ }, q = ({ className: e }) => {
26
26
  const { value: n, onChange: r, addOtherLabel: i, addOtherPlaceholder: s, otherInputCharacterLimit: l, disabled: u, readOnly: m, hasError: d } = D(), { t: p } = S(), o = i || p("add-other.default-other-option-label") || v, b = I(() => de(n || [], o), [
27
27
  n,
28
28
  o
29
- ]), [c, L] = z(b), f = N(r);
30
- B(() => {
29
+ ]), [c, L] = w(b), f = x(r);
30
+ z(() => {
31
31
  f.current = r;
32
32
  });
33
- const g = k((h) => {
33
+ const C = N((h) => {
34
34
  L(h);
35
- const C = (n || []).filter((E) => !E.startsWith(`${o}:`) && E !== o), _ = h ? `${o}: ${h}` : o;
35
+ const g = (n || []).filter((E) => !E.startsWith(`${o}:`) && E !== o), _ = h ? `${o}: ${h}` : o;
36
36
  f.current([
37
- ...C,
37
+ ...g,
38
38
  _
39
39
  ]);
40
40
  }, [
41
41
  n,
42
42
  o
43
43
  ]);
44
- return /* @__PURE__ */ t.createElement(K, {
44
+ return /* @__PURE__ */ t.createElement(J, {
45
45
  value: c,
46
- onChange: g,
46
+ onChange: C,
47
47
  isDisabled: u,
48
48
  isReadOnly: m,
49
49
  isInvalid: d,
@@ -56,26 +56,26 @@ 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 = 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 = x(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, q), h = I(() => d || [], [
66
+ const C = O(e, P), h = I(() => d || [], [
67
67
  d
68
- ]), C = I(() => l ? h.find((E) => E === s || E.startsWith(`${s}: `)) || s : i, [
68
+ ]), g = 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
- ]), _ = k((E) => {
74
- const Q = me(o || []), A = h.filter((j) => Q.includes(j));
73
+ ]), _ = N((E) => {
74
+ const K = me(o || []), V = h.filter((Q) => K.includes(Q));
75
75
  p(E ? [
76
- ...A,
76
+ ...V,
77
77
  s
78
- ] : A);
78
+ ] : V);
79
79
  }, [
80
80
  s,
81
81
  p,
@@ -84,7 +84,7 @@ const v = "Other", de = (e, n) => {
84
84
  ]);
85
85
  return /* @__PURE__ */ t.createElement(Y, {
86
86
  inputRef: f,
87
- value: C,
87
+ value: g,
88
88
  onChange: l ? _ : void 0,
89
89
  isDisabled: b,
90
90
  isReadOnly: c,
@@ -92,13 +92,13 @@ const v = "Other", de = (e, n) => {
92
92
  }, /* @__PURE__ */ t.createElement(Z, {
93
93
  className: n,
94
94
  "data-hook": `tags-${l ? v : i}`
95
- }, x(g, {
95
+ }, W(C, {
96
96
  value: i,
97
97
  label: s,
98
98
  isOther: l,
99
99
  isFirstOption: u
100
100
  })));
101
- }, V = ({ children: e, className: n }) => {
101
+ }, A = ({ children: e, className: n }) => {
102
102
  const { options: r, addOther: i, addOtherLabel: s, numberOfColumns: l = ue.FREE_FLOW } = D(), { t: u } = S(), m = s || u("add-other.default-other-option-label") || v, d = O(e, T), p = I(() => {
103
103
  const o = r || [];
104
104
  return i ? [
@@ -119,7 +119,7 @@ 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 x(d, {
122
+ return W(d, {
123
123
  key: o.isOther ? v : c,
124
124
  value: c,
125
125
  label: o.label,
@@ -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, P), 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") || v, p = O(e, A), 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
@@ -141,10 +141,10 @@ 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, W), _ = O(e, H);
144
+ ]), C = O(e, $), h = O(e, G), g = O(e, H), _ = O(e, k);
145
145
  return /* @__PURE__ */ t.createElement(s, {
146
146
  fieldId: n,
147
- renderLabel: () => g,
147
+ renderLabel: () => C,
148
148
  renderInput: () => /* @__PURE__ */ t.createElement(se, {
149
149
  id: b,
150
150
  ariaLabelledBy: c,
@@ -152,7 +152,7 @@ const v = "Other", de = (e, n) => {
152
152
  required: l,
153
153
  onBlur: p,
154
154
  onFocus: o
155
- }, /* @__PURE__ */ t.createElement(J, {
155
+ }, /* @__PURE__ */ t.createElement(B, {
156
156
  "aria-labelledby": c,
157
157
  value: f,
158
158
  onChange: i,
@@ -161,31 +161,31 @@ const v = "Other", de = (e, n) => {
161
161
  isRequired: l,
162
162
  isInvalid: d
163
163
  }, h)),
164
- renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, _, C)
164
+ renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, _, g)
165
165
  });
166
166
  };
167
- V.Option = T;
168
- T.Label = q;
167
+ A.Option = T;
168
+ T.Label = P;
169
169
  a.Label = $;
170
170
  a.Control = G;
171
- a.Options = V;
172
- a.OtherInput = P;
173
- a.Description = W;
174
- a.Error = H;
171
+ a.Options = A;
172
+ a.OtherInput = q;
173
+ a.Description = H;
174
+ a.Error = k;
175
175
  const pe = "_control_18tbd_1", he = "_options_18tbd_7", Ee = "_option_18tbd_7", be = "_optionHover_18tbd_76", Oe = "_optionSelected_18tbd_76", R = {
176
176
  control: pe,
177
177
  options: he,
178
178
  option: Ee,
179
179
  optionHover: be,
180
180
  optionSelected: Oe
181
- }, fe = ({ content: e, locale: n }) => /* @__PURE__ */ t.createElement(w, {
181
+ }, fe = ({ content: e, locale: n }) => /* @__PURE__ */ t.createElement(j, {
182
182
  content: e,
183
183
  locale: n
184
184
  }), Ie = {
185
185
  base: R.option,
186
186
  selected: R.optionSelected,
187
187
  hover: R.optionHover
188
- }, Ne = () => {
188
+ }, xe = () => {
189
189
  const e = ie({
190
190
  globalClasses: re,
191
191
  moduleClasses: Ie
@@ -209,5 +209,5 @@ const pe = "_control_18tbd_1", he = "_options_18tbd_7", Ee = "_option_18tbd_7",
209
209
  }, fe));
210
210
  };
211
211
  export {
212
- Ne as T
212
+ xe as T
213
213
  };
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { T as r } from "./tags-field-rac-9mpOMPLm.js";
2
+ import { T as r } from "./tags-field-rac-sVN6MHfJ.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
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, R as v, a0 as g, H as h, v as q } from "./form-BTUoOcqB.js";
4
+ import { TextField as O, TextArea as x } from "react-aria-components";
5
+ import { bA as p, bx as d, bC as y, W as g, ac as h, M as v, G as M } from "./form-BUqSKOvc.js";
6
6
  import { f as i } from "./find-child-C60k4CxG.js";
7
- import { D as M, E as B } from "./field-error-headless-DWc76YmY.js";
8
- import { L as k } from "./field-label-headless-DKBKqI2X.js";
7
+ import { D as q, E as B } from "./field-error-headless-XnVcMmsL.js";
8
+ import { L as k } from "./field-label-headless-BRTLT2Yt.js";
9
9
  import { E as P } from "./error-icon-hZxQ6DEy.js";
10
10
  import { s as c } from "./field-rac.module-DP0lkkEv.js";
11
- import { u as V } from "./use-text-input-class-name-BLtPQoYE.js";
11
+ import { u as V } from "./use-text-input-class-name-D9tJTR-b.js";
12
12
  const e = ({ children: t }) => {
13
- const { id: a, value: m, onChange: s, disabled: u, required: n, readOnly: l, onBlur: E, onFocus: b, FieldLayout: I, hasError: f } = p(), { labelId: R } = d(), F = S((A) => {
13
+ const { id: a, value: m, onChange: s, disabled: u, required: n, readOnly: l, onBlur: E, onFocus: b, FieldLayout: I, hasError: f } = p(), { labelId: 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,
20
+ renderLabel: () => R,
21
21
  renderInput: () => /* @__PURE__ */ r.createElement(O, {
22
- "aria-labelledby": R,
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,
@@ -33,12 +33,12 @@ const e = ({ children: t }) => {
33
33
  });
34
34
  }, w = ({ className: t }) => {
35
35
  const { inputId: a, ariaDescribedBy: m } = d(), { id: s, placeholder: u } = p(), n = T(null);
36
- return x(() => {
36
+ return y(() => {
37
37
  var l;
38
38
  (l = n.current) == null || l.focus({
39
39
  preventScroll: !0
40
40
  });
41
- }, s), /* @__PURE__ */ r.createElement(y, {
41
+ }, s), /* @__PURE__ */ r.createElement(x, {
42
42
  ref: n,
43
43
  id: a,
44
44
  "aria-describedby": m,
@@ -48,25 +48,25 @@ const e = ({ children: t }) => {
48
48
  };
49
49
  e.Label = k;
50
50
  e.Input = w;
51
- e.Description = M;
51
+ e.Description = q;
52
52
  e.Error = B;
53
- const H = "_input_ug5v8_1", Q = {
54
- input: H
53
+ const G = "_input_ug5v8_1", Q = {
54
+ input: G
55
55
  }, U = ({ content: t, locale: a }) => /* @__PURE__ */ r.createElement(N, {
56
56
  content: t,
57
57
  locale: a
58
58
  }), re = () => {
59
59
  const t = V(Q.input);
60
60
  return /* @__PURE__ */ r.createElement(e, null, /* @__PURE__ */ r.createElement(e.Label, {
61
- className: o(v, c.label)
61
+ className: o(g, c.label)
62
62
  }, /* @__PURE__ */ r.createElement(e.Label.Required, {
63
- className: o(g, c.requiredMark)
63
+ className: o(h, c.requiredMark)
64
64
  })), /* @__PURE__ */ r.createElement(e.Input, {
65
65
  className: t
66
66
  }), /* @__PURE__ */ r.createElement(e.Error, {
67
- className: o(h, c.error)
67
+ className: o(v, c.error)
68
68
  }, /* @__PURE__ */ r.createElement(P, null), /* @__PURE__ */ r.createElement(e.Error.Text, null)), /* @__PURE__ */ r.createElement(e.Description, {
69
- className: o(q, c.description)
69
+ className: o(M, c.description)
70
70
  }, U));
71
71
  };
72
72
  export {
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { T as r } from "./text-area-field-rac-D4aTm7CM.js";
2
+ import { T as r } from "./text-area-field-rac-DrWkww7W.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-BGaBRrP1.js";
4
+ import { T as r } from "./text-input-headless-BJMNbsMY.js";
5
5
  import { E as o } from "./error-icon-hZxQ6DEy.js";
6
6
  import { s as a } from "./field-rac.module-DP0lkkEv.js";
7
- import { R as n, a0 as c, H as E, v as i } from "./form-BTUoOcqB.js";
8
- import { u as p } from "./use-text-input-class-name-BLtPQoYE.js";
9
- const R = ({ content: s, locale: m }) => /* @__PURE__ */ e.createElement(l, {
7
+ import { W as n, ac as c, M as E, G as i } from "./form-BUqSKOvc.js";
8
+ import { u as p } from "./use-text-input-class-name-D9tJTR-b.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
@@ -0,0 +1,47 @@
1
+ import t, { useRef as L } from "react";
2
+ import { TextField as v, Input as R } from "react-aria-components";
3
+ import { bA as c, bx as d, bC as x } from "./form-BUqSKOvc.js";
4
+ import { f as s } from "./find-child-C60k4CxG.js";
5
+ import { D as T, E as g } from "./field-error-headless-XnVcMmsL.js";
6
+ import { L as h } from "./field-label-headless-BRTLT2Yt.js";
7
+ const e = ({ children: r }) => {
8
+ const { id: a, value: l, onChange: i, disabled: u, readOnly: n, required: o, hasError: p, onBlur: m, onFocus: b, autoComplete: f, FieldLayout: E } = c(), { labelId: I } = d(), F = s(r, e.Label), y = s(r, e.Input), D = s(r, e.Description), C = s(r, e.Error);
9
+ return /* @__PURE__ */ t.createElement(E, {
10
+ fieldId: a,
11
+ renderLabel: () => F,
12
+ renderInput: () => /* @__PURE__ */ t.createElement(v, {
13
+ autoComplete: f,
14
+ "aria-labelledby": I,
15
+ value: l ?? "",
16
+ onChange: i,
17
+ isDisabled: u,
18
+ isReadOnly: n,
19
+ isRequired: o,
20
+ isInvalid: p,
21
+ onBlur: m,
22
+ onFocus: b
23
+ }, y),
24
+ renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, C, D)
25
+ });
26
+ }, B = ({ className: r }) => {
27
+ const { id: a, placeholder: l } = c(), { inputId: i, ariaDescribedBy: u } = d(), n = L(null);
28
+ return x(() => {
29
+ var o;
30
+ (o = n.current) == null || o.focus({
31
+ preventScroll: !0
32
+ });
33
+ }, a), /* @__PURE__ */ t.createElement(R, {
34
+ ref: n,
35
+ id: i,
36
+ "aria-describedby": u,
37
+ className: r,
38
+ placeholder: l
39
+ });
40
+ };
41
+ e.Label = h;
42
+ e.Input = B;
43
+ e.Description = T;
44
+ e.Error = g;
45
+ export {
46
+ e as T
47
+ };
@@ -1,5 +1,5 @@
1
1
  import t from "react";
2
- import { T as e } from "./text-input-field-rac-BbvPB26b.js";
2
+ import { T as e } from "./text-input-field-rac-C2YiMr-g.js";
3
3
  const o = () => /* @__PURE__ */ t.createElement(e, null);
4
4
  export {
5
5
  o as TextInputRAC
@@ -1,39 +1,39 @@
1
- import e, { useCallback as v, useRef as V, useContext as q } from "react";
2
- import { RicosViewer as x } from "@wix/ricos/viewer";
1
+ import e, { useCallback as x, useRef as V, useContext as v } from "react";
2
+ import { RicosViewer as q } from "@wix/ricos/viewer";
3
3
  import m from "classnames";
4
4
  import { parseTime as B } from "@internationalized/date";
5
5
  import { TimeField as k, DateInput as U, DateSegment as _, TimeFieldStateContext as w } from "react-aria-components";
6
- import { bo as p, bl as j, by as T, bq as Q, R as z, a0 as G, H as J, v as K } from "./form-BTUoOcqB.js";
6
+ import { bA as p, bx as j, bK as T, bC as G, W as K, ac as Q, M as W, G as z } from "./form-BUqSKOvc.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-DWc76YmY.js";
9
- import { L as Y } from "./field-label-headless-DKBKqI2X.js";
8
+ import { D as J, E as X } from "./field-error-headless-XnVcMmsL.js";
9
+ import { L as Y } from "./field-label-headless-BRTLT2Yt.js";
10
10
  import { E as Z } 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-DP0lkkEv.js";
13
- import { u as $ } from "./use-text-input-class-name-BLtPQoYE.js";
13
+ import { u as $ } from "./use-text-input-class-name-D9tJTR-b.js";
14
14
  const r = ({ children: t }) => {
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: R, labelId: D } = j(), L = v((M) => {
15
+ const { id: n, value: s, onChange: a, disabled: i, readOnly: o, required: c, onBlur: l, onFocus: E, use24HourFormat: C, FieldLayout: b, hasError: g } = p(), { inputId: I, ariaDescribedBy: D, labelId: L } = j(), R = x((M) => {
16
16
  const H = ae(M);
17
17
  a(H);
18
18
  }, [
19
19
  a
20
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
- return /* @__PURE__ */ e.createElement(C, {
21
+ return /* @__PURE__ */ e.createElement(b, {
22
22
  fieldId: n,
23
23
  renderLabel: () => N,
24
24
  renderInput: () => /* @__PURE__ */ e.createElement(k, {
25
- "aria-labelledby": D,
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
34
  onBlur: l,
35
35
  onFocus: E,
36
- hourCycle: b ? 24 : 12
36
+ hourCycle: C ? 24 : 12
37
37
  }, y),
38
38
  renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, A, P)
39
39
  });
@@ -67,7 +67,7 @@ const r = ({ children: t }) => {
67
67
  });
68
68
  }, ee = ({ className: t, ...n }) => {
69
69
  const { id: s, hidePlaceholder: a } = p(), { segment: i } = n, { t: o } = T(), c = V(null);
70
- Q(() => {
70
+ G(() => {
71
71
  var E;
72
72
  (E = c.current) == null || E.focus({
73
73
  preventScroll: !0
@@ -92,7 +92,7 @@ const r = ({ children: t }) => {
92
92
  }
93
93
  });
94
94
  }, re = ({ className: t, ...n }) => {
95
- const { hidePlaceholder: s } = p(), { segment: a } = n, { t: i } = T(), o = q(w), c = s ? void 0 : i("field.date.placeholder.period"), l = () => o == null ? void 0 : o.increment("dayPeriod");
95
+ const { hidePlaceholder: s } = p(), { segment: a } = n, { t: i } = T(), o = v(w), c = s ? void 0 : i("field.date.placeholder.period"), l = () => o == null ? void 0 : o.increment("dayPeriod");
96
96
  return /* @__PURE__ */ e.createElement(_, {
97
97
  segment: a,
98
98
  className: t,
@@ -107,7 +107,7 @@ d.Minute = te;
107
107
  d.Period = re;
108
108
  r.Label = Y;
109
109
  r.Time = d;
110
- r.Description = W;
110
+ r.Description = J;
111
111
  r.Error = X;
112
112
  function ne(t) {
113
113
  if (!t)
@@ -133,15 +133,15 @@ const oe = "_time_5p151_1", le = "_hour_5p151_17", se = "_minute_5p151_18", ie =
133
133
  hour: le,
134
134
  minute: se,
135
135
  period: ie
136
- }, ce = ({ content: t, locale: n }) => /* @__PURE__ */ e.createElement(x, {
136
+ }, ce = ({ content: t, locale: n }) => /* @__PURE__ */ e.createElement(q, {
137
137
  content: t,
138
138
  locale: n
139
139
  }), me = () => {
140
140
  const t = $(h.time);
141
141
  return /* @__PURE__ */ e.createElement(r, null, /* @__PURE__ */ e.createElement(r.Label, {
142
- className: m(z, f.label)
142
+ className: m(K, f.label)
143
143
  }, /* @__PURE__ */ e.createElement(r.Label.Required, {
144
- className: m(G, f.requiredMark)
144
+ className: m(Q, f.requiredMark)
145
145
  })), /* @__PURE__ */ e.createElement(r.Time, {
146
146
  className: t
147
147
  }, /* @__PURE__ */ e.createElement(r.Time.Hour, {
@@ -151,9 +151,9 @@ const oe = "_time_5p151_1", le = "_hour_5p151_17", se = "_minute_5p151_18", ie =
151
151
  }), /* @__PURE__ */ e.createElement(r.Time.Period, {
152
152
  className: m(h.period, S)
153
153
  })), /* @__PURE__ */ e.createElement(r.Error, {
154
- className: m(J, f.error)
154
+ className: m(W, f.error)
155
155
  }, /* @__PURE__ */ e.createElement(Z, null), /* @__PURE__ */ e.createElement(r.Error.Text, null)), /* @__PURE__ */ e.createElement(r.Description, {
156
- className: m(K, f.description)
156
+ className: m(z, f.description)
157
157
  }, ce));
158
158
  }, Ie = () => /* @__PURE__ */ e.createElement(me, null);
159
159
  export {
@@ -1,18 +1,18 @@
1
1
  import { RicosViewer as N } from "@wix/ricos/viewer";
2
- import i from "classnames";
2
+ import c from "classnames";
3
3
  import r, { useCallback as h, useRef as O } from "react";
4
4
  import { TextField as y, Input as A } from "react-aria-components";
5
- import { bo as d, bl as E, bq as v, R as B, a0 as T, H as g, v as k } from "./form-BTUoOcqB.js";
6
- import { f as c } from "./find-child-C60k4CxG.js";
7
- import { D as q, E as M } from "./field-error-headless-DWc76YmY.js";
8
- import { L as P } from "./field-label-headless-DKBKqI2X.js";
9
- import { u as x } from "./use-invoke-callback-UH73A_J3.js";
5
+ import { bA as d, bx as E, bC as v, W as B, ac as M, M as T, G as g } from "./form-BUqSKOvc.js";
6
+ import { f as i } from "./find-child-C60k4CxG.js";
7
+ import { D as k, E as x } from "./field-error-headless-XnVcMmsL.js";
8
+ import { L as P } from "./field-label-headless-BRTLT2Yt.js";
9
+ import { u as q } from "./use-invoke-callback-UH73A_J3.js";
10
10
  import { E as U } from "./error-icon-hZxQ6DEy.js";
11
11
  import { s as u } from "./field-rac.module-DP0lkkEv.js";
12
- import { u as w } from "./use-text-input-class-name-BLtPQoYE.js";
13
- const H = (t) => t ? `https://${String(t).replace(/^https?:\/\//, "")}` : "", e = ({ children: t }) => {
14
- const { id: o, value: l, onChange: n, disabled: m, readOnly: s, required: a, hasError: I, onBlur: b, onFocus: f, FieldLayout: R } = d(), { labelId: F } = E(), p = x(b), L = c(t, e.Label), D = c(t, e.Input), C = c(t, e.Description), _ = c(t, e.Error), S = h(() => {
15
- n(H(l)), p();
12
+ import { u as W } from "./use-text-input-class-name-D9tJTR-b.js";
13
+ const w = (t) => t ? `https://${String(t).replace(/^https?:\/\//, "")}` : "", e = ({ children: t }) => {
14
+ const { id: o, value: l, onChange: n, disabled: m, readOnly: s, required: a, hasError: I, onBlur: b, onFocus: f, FieldLayout: R } = d(), { labelId: F } = E(), p = q(b), L = i(t, e.Label), D = i(t, e.Input), C = i(t, e.Description), _ = i(t, e.Error), S = h(() => {
15
+ n(w(l)), p();
16
16
  }, [
17
17
  p,
18
18
  n,
@@ -53,24 +53,24 @@ const H = (t) => t ? `https://${String(t).replace(/^https?:\/\//, "")}` : "", e
53
53
  };
54
54
  e.Label = P;
55
55
  e.Input = V;
56
- e.Description = q;
57
- e.Error = M;
58
- const W = ({ content: t, locale: o }) => /* @__PURE__ */ r.createElement(N, {
56
+ e.Description = k;
57
+ e.Error = x;
58
+ const $ = ({ content: t, locale: o }) => /* @__PURE__ */ r.createElement(N, {
59
59
  content: t,
60
60
  locale: o
61
61
  }), te = () => {
62
- const t = w();
62
+ const t = W();
63
63
  return /* @__PURE__ */ r.createElement(e, null, /* @__PURE__ */ r.createElement(e.Label, {
64
- className: i(B, u.label)
64
+ className: c(B, u.label)
65
65
  }, /* @__PURE__ */ r.createElement(e.Label.Required, {
66
- className: i(T, u.requiredMark)
66
+ className: c(M, u.requiredMark)
67
67
  })), /* @__PURE__ */ r.createElement(e.Input, {
68
68
  className: t
69
69
  }), /* @__PURE__ */ r.createElement(e.Error, {
70
- className: i(g, u.error)
70
+ className: c(T, u.error)
71
71
  }, /* @__PURE__ */ r.createElement(U, null), /* @__PURE__ */ r.createElement(e.Error.Text, null)), /* @__PURE__ */ r.createElement(e.Description, {
72
- className: i(k, u.description)
73
- }, W));
72
+ className: c(g, u.description)
73
+ }, $));
74
74
  };
75
75
  export {
76
76
  te as U
@@ -1,5 +1,5 @@
1
1
  import r from "react";
2
- import { U as t } from "./url-input-field-rac-DbO6ATng.js";
2
+ import { U as t } from "./url-input-field-rac-twxRREnl.js";
3
3
  const n = () => /* @__PURE__ */ r.createElement(t, null);
4
4
  export {
5
5
  n as UrlInputRAC