@wix/form-elements 1.187.0 → 1.188.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 (109) hide show
  1. package/dist/component/{appointment-rac-DiGTD4hn.js → appointment-rac-Biwj0bKe.js} +78 -78
  2. package/dist/component/{bookings-address-rac-Bczo07PP.js → bookings-address-rac-B_o25LOI.js} +1 -1
  3. package/dist/component/{bookings-email-rac-D0cw7HFH.js → bookings-email-rac-BBcusxbS.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-DqxVpKqV.js → bookings-first-name-rac-CNTGannm.js} +1 -1
  5. package/dist/component/{bookings-header-rac-BxlD5Wje.js → bookings-header-rac-BTvG2vnk.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-CraNB_ut.js → bookings-last-name-rac-BQumGsz9.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-BMGnVYXE.js → bookings-login-bar-rac-Cl_rwWhO.js} +8 -8
  8. package/dist/component/{bookings-phone-rac-CnSlSyLi.js → bookings-phone-rac-B_gXe9Fa.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-CWWvRRRi.js → bookings-rich-text-rac-CbMuPVCB.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-C2LLGbbS.js → checkbox-field-rac-QwFSqEgs.js} +43 -43
  11. package/dist/component/{checkbox-group-field-headless-B2hKVuJD.js → checkbox-group-field-headless-CTDMO0TM.js} +38 -38
  12. package/dist/component/{checkbox-group-field-rac-Bqo7LRpI.js → checkbox-group-field-rac-DFUST9Th.js} +4 -4
  13. package/dist/component/{checkbox-group-rac-CHAnQW7L.js → checkbox-group-rac-CBAE-o1Q.js} +1 -1
  14. package/dist/component/{checkbox-rac-D09xnf-F.js → checkbox-rac-DkYPhGTU.js} +1 -1
  15. package/dist/component/{contacts-address-rac-CY_ff8gq.js → contacts-address-rac-DKf42iJk.js} +1 -1
  16. package/dist/component/{contacts-birthdate-rac-BkPpyiCP.js → contacts-birthdate-rac-ffPSb2YW.js} +1 -1
  17. package/dist/component/{contacts-company-rac-2I05yC97.js → contacts-company-rac-DLVdNbYz.js} +1 -1
  18. package/dist/component/{contacts-email-rac-B5vwkBUk.js → contacts-email-rac-CW8SdcYX.js} +1 -1
  19. package/dist/component/{contacts-first-name-rac-CVxn7EaP.js → contacts-first-name-rac-CGdzgpkw.js} +1 -1
  20. package/dist/component/{contacts-last-name-rac-DIu7T_QU.js → contacts-last-name-rac-DNQj7UcW.js} +1 -1
  21. package/dist/component/{contacts-phone-rac-B_9KO997.js → contacts-phone-rac-zAMIceti.js} +1 -1
  22. package/dist/component/{contacts-position-rac-Dll7FDN5.js → contacts-position-rac-DLwn9B2T.js} +1 -1
  23. package/dist/component/{contacts-subscribe-rac-DvZ0S_7T.js → contacts-subscribe-rac-Cy5rxTkC.js} +1 -1
  24. package/dist/component/{contacts-tax-id-rac-BmYWQGbm.js → contacts-tax-id-rac-CEfU6N6C.js} +1 -1
  25. package/dist/component/{date-availability-C2IYlnG_.js → date-availability-C9EOQUiy.js} +1 -1
  26. package/dist/component/{date-input-field-rac-TwaBKY7l.js → date-input-field-rac-F4QQeEtO.js} +57 -57
  27. package/dist/component/{date-input-rac-CusCOLnm.js → date-input-rac-CJeOgyF5.js} +1 -1
  28. package/dist/component/{date-picker-field-rac-ufxxlmpA.js → date-picker-field-rac-33ARKAxQ.js} +35 -35
  29. package/dist/component/{date-picker-rac-IGr_hLjg.js → date-picker-rac-Beaqh84V.js} +1 -1
  30. package/dist/component/{date-time-input-field-rac-B6ZQo4Tk.js → date-time-input-field-rac-CB8FfYUM.js} +44 -44
  31. package/dist/component/{date-time-input-rac-X1GCfhSl.js → date-time-input-rac-DQ9P6IVp.js} +1 -1
  32. package/dist/component/{dext-checkbox-group-rac-D9UmRqnt.js → dext-checkbox-group-rac-Cho-hueW.js} +2 -2
  33. package/dist/component/{dext-checkbox-rac-DrMbQCX3.js → dext-checkbox-rac-BIwIwy-y.js} +1 -1
  34. package/dist/component/{dext-date-picker-rac-Barwg8La.js → dext-date-picker-rac-C03HJdvX.js} +1 -1
  35. package/dist/component/{dext-date-time-input-rac-ChIUfDk4.js → dext-date-time-input-rac-Bo4XfnRA.js} +1 -1
  36. package/dist/component/{dext-dropdown-rac-BCrEGvfc.js → dext-dropdown-rac-CadT1tMH.js} +1 -1
  37. package/dist/component/{dext-email-rac-D7l9fah1.js → dext-email-rac-DbiEws8H.js} +1 -1
  38. package/dist/component/{dext-number-input-rac-CrI6ChK9.js → dext-number-input-rac-XoW8CLvX.js} +1 -1
  39. package/dist/component/{dext-phone-rac-B_ObVduc.js → dext-phone-rac-9rFyUD8e.js} +1 -1
  40. package/dist/component/{dext-radio-group-rac-DOBaXXjq.js → dext-radio-group-rac-U6BNL7IT.js} +2 -2
  41. package/dist/component/{dext-rating-input-rac-D4LxflR7.js → dext-rating-input-rac-BDGUv8jU.js} +1 -1
  42. package/dist/component/{dext-tags-rac-nTSiW-H7.js → dext-tags-rac-CAFGVcIi.js} +2 -2
  43. package/dist/component/{dext-text-area-rac-DYV_gO7a.js → dext-text-area-rac-DXyzm9oe.js} +1 -1
  44. package/dist/component/{dext-text-input-rac-Zjq6PsXg.js → dext-text-input-rac-C27gdfyG.js} +1 -1
  45. package/dist/component/{dext-url-input-rac-BM7jm0Tn.js → dext-url-input-rac-DovYH3_G.js} +1 -1
  46. package/dist/component/{donation-rac-CGjEtI7s.js → donation-rac-DV2aRsDt.js} +60 -60
  47. package/dist/component/{dropdown-field-rac-c-Owb2hL.js → dropdown-field-rac-D58C7YZG.js} +3 -3
  48. package/dist/component/{dropdown-rac-Bp9hWnJS.js → dropdown-rac-57yZf_yZ.js} +1 -1
  49. package/dist/component/{ecom-address-rac-C1YRffNH.js → ecom-address-rac-Co3WhA7m.js} +1 -1
  50. package/dist/component/{ecom-subscription-checkbox-rac-B5uCvEqP.js → ecom-subscription-checkbox-rac-CYjsuRA9.js} +2 -2
  51. package/dist/component/{email-input-field-rac-BDQYfj6b.js → email-input-field-rac-C5G3pVkR.js} +14 -14
  52. package/dist/component/{events-repeater-rac-DoZBb6e0.js → events-repeater-rac-D5PXSDIH.js} +72 -70
  53. package/dist/component/{events-rsvp-rac-OyYogsL5.js → events-rsvp-rac-BfyQNZh6.js} +3 -3
  54. package/dist/component/{field-error-headless-B41KJxbD.js → field-error-headless-RTyrenpC.js} +8 -8
  55. package/dist/component/{field-label-headless-DHt_Wm_S.js → field-label-headless-Bd00Hl2z.js} +4 -4
  56. package/dist/component/{file-upload-rac-Bed5vOYu.js → file-upload-rac-D5pTnsHO.js} +61 -61
  57. package/dist/component/{fixed-payment-rac-_HtF4gSw.js → fixed-payment-rac-ByxSjPu5.js} +9 -9
  58. package/dist/component/{form-DAUDnpk6.js → form-BG5UjjLA.js} +3276 -3217
  59. package/dist/component/form.js +1 -1
  60. package/dist/component/{header-field-rac-BwlXDMt4.js → header-field-rac-Bql6VoAi.js} +2 -2
  61. package/dist/component/{header-rac-CdFpA8bi.js → header-rac-DWAIn4eY.js} +1 -1
  62. package/dist/component/{image-choice-rac-Bfs7ixsZ.js → image-choice-rac-D5dSQ4Xd.js} +11 -11
  63. package/dist/component/{index-B5HfcvO_.js → index-37eV-JEp.js} +5 -5
  64. package/dist/component/{index-BQctPc9k.js → index-DlcCtz4h.js} +4 -4
  65. package/dist/component/{isObjectLike-CKRIZUUL.js → isObjectLike-ClPDcTiq.js} +1 -1
  66. package/dist/component/{multiline-address-field-rac-Gs6BGlnz.js → multiline-address-field-rac-CpvwzmpC.js} +345 -345
  67. package/dist/component/{multiline-address-rac-6tsDZK20.js → multiline-address-rac-ENim2Bn6.js} +1 -1
  68. package/dist/component/{number-input-field-rac-D2vzcEDT.js → number-input-field-rac-DTRnmRDk.js} +21 -21
  69. package/dist/component/{number-input-rac-DJA2sjJ2.js → number-input-rac-QROlEpkx.js} +1 -1
  70. package/dist/component/{password-rac-DS9j5AEn.js → password-rac-jMoyzIP2.js} +47 -47
  71. package/dist/component/{payment-input-rac-t15HwuyR.js → payment-input-rac-DOOV4P4b.js} +31 -31
  72. package/dist/component/{phone-input-field-rac-DCEMaJjP.js → phone-input-field-rac-BA_mTcND.js} +47 -47
  73. package/dist/component/{phone-rac-R2KIpq9Y.js → phone-rac-DXcbIqHK.js} +1 -1
  74. package/dist/component/{product-list-rac-BCaz8EbJ.js → product-list-rac-CsxR7Ut6.js} +63 -63
  75. package/dist/component/{quiz-radio-group-rac-Czjt8SZW.js → quiz-radio-group-rac-IQgqvqjs.js} +1 -1
  76. package/dist/component/{radio-button-module-classes-B2cY0daS.js → radio-button-module-classes-DIFYfYiH.js} +36 -36
  77. package/dist/component/{radio-group-field-rac-BdCqn6Uq.js → radio-group-field-rac-Ca2RlxOl.js} +4 -4
  78. package/dist/component/{radio-group-rac-CdKWOA6d.js → radio-group-rac-DDervEEb.js} +1 -1
  79. package/dist/component/{rating-input-field-rac-qllcIC5u.js → rating-input-field-rac-0kyPo9cU.js} +12 -12
  80. package/dist/component/{rating-input-rac-Cno0IibX.js → rating-input-rac-DqPsqUKR.js} +1 -1
  81. package/dist/component/{rich-content-rac.module-Bj8zO5BD.js → rich-content-rac.module-2T_-7jvb.js} +5 -5
  82. package/dist/component/{rich-text-field-rac-CJOPMgvk.js → rich-text-field-rac-W-eKzhuC.js} +4 -4
  83. package/dist/component/{rich-text-rac-qJLSQUfk.js → rich-text-rac-CzJfbAyx.js} +1 -1
  84. package/dist/component/{service-dropdown-rac-CrrqMt0I.js → service-dropdown-rac-BMJy2pZ5.js} +25 -25
  85. package/dist/component/{services-multi-choice-rac-DHpIgQT8.js → services-multi-choice-rac-BBAWlI7U.js} +7 -7
  86. package/dist/component/{signature-rac-vHDz7aO9.js → signature-rac-Y1GLswrp.js} +22 -22
  87. package/dist/component/{submit-button-rac-CdSXP5MY.js → submit-button-rac-CSKbrgQ3.js} +17 -17
  88. package/dist/component/{tags-field-rac-BE5q3Yzp.js → tags-field-rac-D3zOYcC5.js} +19 -19
  89. package/dist/component/{tags-rac-DPH9Jekq.js → tags-rac-Cs77Abgs.js} +1 -1
  90. package/dist/component/text-area-field-rac-DZZW7rAX.js +74 -0
  91. package/dist/component/{text-area-rac-BWI_FwJ_.js → text-area-rac-BRPp0HnX.js} +1 -1
  92. package/dist/component/{text-input-field-rac-SljlZsKs.js → text-input-field-rac-tPDZmLdU.js} +3 -3
  93. package/dist/component/text-input-headless-tkwEZWs7.js +47 -0
  94. package/dist/component/{text-input-rac-OP8CxA5d.js → text-input-rac-DnHt4vkM.js} +1 -1
  95. package/dist/component/{time-input-rac-Dc0pojpK.js → time-input-rac-Dbg4Nqb5.js} +18 -18
  96. package/dist/component/url-input-field-rac-3ODFXFRP.js +77 -0
  97. package/dist/component/{url-input-rac-DW245AQ3.js → url-input-rac-CPb5o8Of.js} +1 -1
  98. package/dist/component/{use-dropdown-option-class-name-CohYBaie.js → use-dropdown-option-class-name-Dd4ncVaY.js} +2 -2
  99. package/dist/component/{use-dropdown-trigger-class-name-CcyW9dW5.js → use-dropdown-trigger-class-name-zVniRqM7.js} +29 -29
  100. package/dist/component/{use-element-state-class-name-ByWbyT81.js → use-element-state-class-name-C8jFeDrq.js} +3 -3
  101. package/dist/component/{use-hoverable-input-class-name-CmYpz2Os.js → use-hoverable-input-class-name-B9diy0Mr.js} +2 -2
  102. package/dist/component/{use-is-forced-open-dropdown-D4-XPkUN.js → use-is-forced-open-dropdown-BR1U1l5w.js} +6 -6
  103. package/dist/component/{use-service-options-base-DGHhZKVh.js → use-service-options-base-yM4rJlq1.js} +3 -3
  104. package/dist/component/use-text-input-class-name-D6AnBbJx.js +6 -0
  105. package/package.json +2 -2
  106. package/dist/component/text-area-field-rac-CUSpvF_P.js +0 -74
  107. package/dist/component/text-input-headless-BWFcuwI4.js +0 -47
  108. package/dist/component/url-input-field-rac-CcUeuaJX.js +0 -77
  109. package/dist/component/use-text-input-class-name-VJ-nzeqS.js +0 -6
@@ -1,13 +1,13 @@
1
1
  import i from "classnames";
2
- import { bE as s, bb as v } from "./form-DAUDnpk6.js";
2
+ import { bF as s, bc as v } from "./form-BG5UjjLA.js";
3
3
  const x = ({ globalClasses: e, moduleClasses: r }) => {
4
4
  var d;
5
5
  const c = ((d = s(...v(e))) == null ? void 0 : d.split(/\s+/)) ?? [], o = [
6
6
  e.selected,
7
7
  e.hover
8
8
  ], h = !!e.selected && c.includes(e.selected), u = c.includes(e.hover);
9
- return ({ isSelected: n, isHovered: E, isFocused: N, isFocusWithin: p, isInteractive: t = !0 }) => {
10
- const m = E || !!N || !!p;
9
+ return ({ isSelected: n, isHovered: N, isFocused: p, isFocusWithin: E, isInteractive: t = !0 }) => {
10
+ const m = N || !!p || !!E;
11
11
  return i(e.base, r.base, t ? c : c.filter((f) => !o.includes(f)), {
12
12
  [e.hover]: t && m,
13
13
  [r.hover]: t && (m || u)
@@ -1,6 +1,6 @@
1
- import { bL as n } from "./form-DAUDnpk6.js";
1
+ import { bM as n } from "./form-BG5UjjLA.js";
2
2
  import { s as e } from "./field-rac.module-DcyJyi2B.js";
3
- import { u } from "./use-element-state-class-name-ByWbyT81.js";
3
+ import { u } from "./use-element-state-class-name-C8jFeDrq.js";
4
4
  const b = (s, a) => {
5
5
  const { disabled: t, readOnly: o } = n(), r = u({
6
6
  globalClasses: s,
@@ -1,6 +1,6 @@
1
1
  import { useContext as u, useMemo as a } from "react";
2
- import { bF as c, aR as p, bD as D, F as o } from "./form-DAUDnpk6.js";
3
- const E = [
2
+ import { bG as c, aR as p, bE as E, F as o } from "./form-BG5UjjLA.js";
3
+ const D = [
4
4
  o.DROPDOWN,
5
5
  o.DEXT_DROPDOWN,
6
6
  o.SERVICES_DROPDOWN
@@ -27,9 +27,9 @@ const E = [
27
27
  }, _ = ({ properties: e }) => {
28
28
  var n, t;
29
29
  return ((t = (n = e.fieldSettings) == null ? void 0 : n.country) == null ? void 0 : t.show) !== !1;
30
- }, S = (e, n) => T.includes(e.fieldType) && !n && P(e), A = (e) => E.includes(e.fieldType), C = (e) => l.includes(e.fieldType), N = (e) => O.includes(e.fieldType) && _(e), F = (e) => I.includes(e.fieldType), h = ({ properties: e }) => !e.disabled && !e.readOnly, i = (e) => {
31
- const n = u(p), { isMobile: t = !1 } = D();
32
- return a(() => !n || n.parentId ? [] : n.fields.filter((s) => e(s, t) && h(s)).map((s) => s.id), [
30
+ }, S = (e, n) => T.includes(e.fieldType) && !n && P(e), A = (e) => D.includes(e.fieldType), C = (e) => l.includes(e.fieldType), N = (e) => O.includes(e.fieldType) && _(e), h = (e) => I.includes(e.fieldType), F = ({ properties: e }) => !e.disabled && !e.readOnly, i = (e) => {
31
+ const n = u(p), { isMobile: t = !1 } = E();
32
+ return a(() => !n || n.parentId ? [] : n.fields.filter((s) => e(s, t) && F(s)).map((s) => s.id), [
33
33
  n,
34
34
  t,
35
35
  e
@@ -52,7 +52,7 @@ const E = [
52
52
  return n && t.includes(e);
53
53
  }, L = (e) => {
54
54
  var s;
55
- const n = ((s = c().datePicker) == null ? void 0 : s.open) === !0, t = i(F);
55
+ const n = ((s = c().datePicker) == null ? void 0 : s.open) === !0, t = i(h);
56
56
  return n && t.includes(e);
57
57
  };
58
58
  export {
@@ -1,7 +1,7 @@
1
1
  import { useState as o, useCallback as y, useEffect as m, useMemo as D } from "react";
2
- import { bK as v } from "./form-DAUDnpk6.js";
3
- const k = (I) => {
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 = y((e) => {
2
+ import { bL as v } from "./form-BG5UjjLA.js";
3
+ const k = (L) => {
4
+ const { fieldType: I, isEditor: t = !1, postProcessOptions: i, customFetchLogic: a, onInitialDataLoaded: n } = L, [O, h] = o(!1), [g, p] = o([]), [E, u] = o(!1), [c, f] = o(!1), s = v(I), r = y((e) => {
5
5
  let d = e.map((l) => ({
6
6
  value: l.id ?? "",
7
7
  label: l.name ?? "",
@@ -0,0 +1,6 @@
1
+ import { az as a } from "./form-BG5UjjLA.js";
2
+ import { u as e } from "./use-hoverable-input-class-name-B9diy0Mr.js";
3
+ const m = (...s) => e(a, s);
4
+ export {
5
+ m as u
6
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/form-elements",
3
- "version": "1.187.0",
3
+ "version": "1.188.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": [
@@ -158,5 +158,5 @@
158
158
  ]
159
159
  }
160
160
  },
161
- "falconPackageHash": "6795f69a5e1617f40d98e90838d4eaed8ec6d9daf4b853e19c4180d7"
161
+ "falconPackageHash": "788b93ddd1888156fdceaf4a89dff85ee0d3cf5f0963b965365b9738"
162
162
  }
@@ -1,74 +0,0 @@
1
- import { RicosViewer as N } from "@wix/ricos/viewer";
2
- import o from "classnames";
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 { bL as p, bI as d, bN as x, X as g, am as h, M as v, I as M } from "./form-DAUDnpk6.js";
6
- import { f as i } from "./find-child-C60k4CxG.js";
7
- import { D as q, E as B } from "./field-error-headless-B41KJxbD.js";
8
- import { L as k } from "./field-label-headless-DHt_Wm_S.js";
9
- import { E as P } from "./error-icon-hZxQ6DEy.js";
10
- import { s as c } from "./field-rac.module-DcyJyi2B.js";
11
- import { u as V } from "./use-text-input-class-name-VJ-nzeqS.js";
12
- const e = ({ children: t }) => {
13
- const { id: a, value: m, onChange: s, disabled: u, required: n, readOnly: l, onBlur: E, onFocus: I, FieldLayout: b, hasError: f } = p(), { labelId: L } = d(), F = S((A) => {
14
- s(A);
15
- }, [
16
- s
17
- ]), R = i(t, e.Label), D = i(t, e.Input), _ = i(t, e.Description), C = i(t, e.Error);
18
- return /* @__PURE__ */ r.createElement(b, {
19
- fieldId: a,
20
- renderLabel: () => R,
21
- renderInput: () => /* @__PURE__ */ r.createElement(O, {
22
- "aria-labelledby": L,
23
- value: m ?? "",
24
- onChange: F,
25
- isDisabled: u,
26
- isReadOnly: l,
27
- isRequired: n,
28
- isInvalid: f,
29
- onBlur: E,
30
- onFocus: I
31
- }, D),
32
- renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, C, _)
33
- });
34
- }, w = ({ className: t }) => {
35
- const { inputId: a, ariaDescribedBy: m } = d(), { id: s, placeholder: u } = p(), n = T(null);
36
- return x(() => {
37
- var l;
38
- (l = n.current) == null || l.focus({
39
- preventScroll: !0
40
- });
41
- }, s), /* @__PURE__ */ r.createElement(y, {
42
- ref: n,
43
- id: a,
44
- "aria-describedby": m,
45
- placeholder: u,
46
- className: t
47
- });
48
- };
49
- e.Label = k;
50
- e.Input = w;
51
- e.Description = q;
52
- e.Error = B;
53
- const Q = "_input_ug5v8_1", U = {
54
- input: Q
55
- }, X = ({ content: t, locale: a }) => /* @__PURE__ */ r.createElement(N, {
56
- content: t,
57
- locale: a
58
- }), re = () => {
59
- const t = V(U.input);
60
- return /* @__PURE__ */ r.createElement(e, null, /* @__PURE__ */ r.createElement(e.Label, {
61
- className: o(g, c.label)
62
- }, /* @__PURE__ */ r.createElement(e.Label.Required, {
63
- className: o(h, c.requiredMark)
64
- })), /* @__PURE__ */ r.createElement(e.Input, {
65
- className: t
66
- }), /* @__PURE__ */ r.createElement(e.Error, {
67
- className: o(v, c.error)
68
- }, /* @__PURE__ */ r.createElement(P, null), /* @__PURE__ */ r.createElement(e.Error.Text, null)), /* @__PURE__ */ r.createElement(e.Description, {
69
- className: o(M, c.description)
70
- }, X));
71
- };
72
- export {
73
- re as T
74
- };
@@ -1,47 +0,0 @@
1
- import t, { useRef as v } from "react";
2
- import { TextField as C, Input as R } from "react-aria-components";
3
- import { bL as c, bI as d, bN as T } from "./form-DAUDnpk6.js";
4
- import { f as s } from "./find-child-C60k4CxG.js";
5
- import { D as g, E as h } from "./field-error-headless-B41KJxbD.js";
6
- import { L as x } from "./field-label-headless-DHt_Wm_S.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), L = s(r, e.Error);
9
- return /* @__PURE__ */ t.createElement(E, {
10
- fieldId: a,
11
- renderLabel: () => F,
12
- renderInput: () => /* @__PURE__ */ t.createElement(C, {
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, L, D)
25
- });
26
- }, B = ({ className: r }) => {
27
- const { id: a, placeholder: l } = c(), { inputId: i, ariaDescribedBy: u } = d(), n = v(null);
28
- return T(() => {
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 = x;
42
- e.Input = B;
43
- e.Description = g;
44
- e.Error = h;
45
- export {
46
- e as T
47
- };
@@ -1,77 +0,0 @@
1
- import { RicosViewer as S } from "@wix/ricos/viewer";
2
- import i from "classnames";
3
- import r, { useCallback as h, useRef as O } from "react";
4
- import { TextField as y, Input as A } from "react-aria-components";
5
- import { bL as d, bI as E, bN as v, X as B, am as M, M as T, I as g } from "./form-DAUDnpk6.js";
6
- import { f as c } from "./find-child-C60k4CxG.js";
7
- import { D as k, E as P } from "./field-error-headless-B41KJxbD.js";
8
- import { L as q } from "./field-label-headless-DHt_Wm_S.js";
9
- import { u as x } from "./use-invoke-callback-UH73A_J3.js";
10
- import { E as U } from "./error-icon-hZxQ6DEy.js";
11
- import { s as u } from "./field-rac.module-DcyJyi2B.js";
12
- import { u as w } from "./use-text-input-class-name-VJ-nzeqS.js";
13
- const V = (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: L } = d(), { labelId: R } = E(), p = x(b), F = c(t, e.Label), D = c(t, e.Input), C = c(t, e.Description), _ = c(t, e.Error), N = h(() => {
15
- n(V(l)), p();
16
- }, [
17
- p,
18
- n,
19
- l
20
- ]);
21
- return /* @__PURE__ */ r.createElement(L, {
22
- fieldId: o,
23
- renderLabel: () => F,
24
- renderInput: () => /* @__PURE__ */ r.createElement(y, {
25
- "aria-labelledby": R,
26
- value: l ?? "",
27
- onChange: n,
28
- isDisabled: m,
29
- isReadOnly: s,
30
- isRequired: a,
31
- isInvalid: I,
32
- onBlur: N,
33
- onFocus: f
34
- }, D),
35
- renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, _, C)
36
- });
37
- }, W = ({ className: t }) => {
38
- const { id: o, placeholder: l } = d(), { inputId: n, ariaDescribedBy: m } = E(), s = O(null);
39
- return v(() => {
40
- var a;
41
- (a = s.current) == null || a.focus({
42
- preventScroll: !0
43
- });
44
- }, o), /* @__PURE__ */ r.createElement(A, {
45
- ref: s,
46
- id: n,
47
- type: "url",
48
- autoComplete: "url",
49
- "aria-describedby": m,
50
- className: t,
51
- placeholder: l
52
- });
53
- };
54
- e.Label = q;
55
- e.Input = W;
56
- e.Description = k;
57
- e.Error = P;
58
- const $ = ({ content: t, locale: o }) => /* @__PURE__ */ r.createElement(S, {
59
- content: t,
60
- locale: o
61
- }), te = () => {
62
- const t = w();
63
- return /* @__PURE__ */ r.createElement(e, null, /* @__PURE__ */ r.createElement(e.Label, {
64
- className: i(B, u.label)
65
- }, /* @__PURE__ */ r.createElement(e.Label.Required, {
66
- className: i(M, u.requiredMark)
67
- })), /* @__PURE__ */ r.createElement(e.Input, {
68
- className: t
69
- }), /* @__PURE__ */ r.createElement(e.Error, {
70
- className: i(T, u.error)
71
- }, /* @__PURE__ */ r.createElement(U, null), /* @__PURE__ */ r.createElement(e.Error.Text, null)), /* @__PURE__ */ r.createElement(e.Description, {
72
- className: i(g, u.description)
73
- }, $));
74
- };
75
- export {
76
- te as U
77
- };
@@ -1,6 +0,0 @@
1
- import { az as a } from "./form-DAUDnpk6.js";
2
- import { u as e } from "./use-hoverable-input-class-name-CmYpz2Os.js";
3
- const m = (...s) => e(a, s);
4
- export {
5
- m as u
6
- };