@wix/form-elements 1.160.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 (108) hide show
  1. package/dist/component/{appointment-rac-BmHu56e5.js → appointment-rac-BubC8I9X.js} +395 -388
  2. package/dist/component/{bookings-address-rac-DY9l2g0h.js → bookings-address-rac-BbwvVs86.js} +1 -1
  3. package/dist/component/{bookings-email-rac-B5vNSOsS.js → bookings-email-rac-C2HCkcfa.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-CJiefCNz.js → bookings-first-name-rac-Uy7c5EBs.js} +1 -1
  5. package/dist/component/{bookings-header-rac-BFu7Ko5w.js → bookings-header-rac-nmwsWRjS.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-DegMM13h.js → bookings-last-name-rac-BAioQLCg.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-DrA-5tBH.js → bookings-login-bar-rac-CO6vOBjG.js} +7 -7
  8. package/dist/component/{bookings-phone-rac-DsaeqxCI.js → bookings-phone-rac-Cr16h-_R.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-jRHiwqi8.js → bookings-rich-text-rac-CHLH3jd7.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-CyoBb6Yf.js → checkbox-field-rac-CMwmwFMD.js} +43 -43
  11. package/dist/component/{checkbox-group-field-headless-Bv1gU3oL.js → checkbox-group-field-headless-BNs_S-nT.js} +24 -24
  12. package/dist/component/{checkbox-group-field-rac-DasArcdV.js → checkbox-group-field-rac-BA60EPAN.js} +12 -12
  13. package/dist/component/{checkbox-group-rac-CzmufV1U.js → checkbox-group-rac-BJZ4Oer9.js} +1 -1
  14. package/dist/component/{checkbox-rac-6C7XoUoZ.js → checkbox-rac-KsVlI6_V.js} +1 -1
  15. package/dist/component/{contacts-address-rac-BZobbFtz.js → contacts-address-rac-CRYkz87z.js} +1 -1
  16. package/dist/component/{contacts-birthdate-rac-DIzf41DS.js → contacts-birthdate-rac-BIz-1-ZX.js} +1 -1
  17. package/dist/component/{contacts-company-rac-BiBDO28r.js → contacts-company-rac-B8G__j6I.js} +1 -1
  18. package/dist/component/{contacts-email-rac-5mqokCSD.js → contacts-email-rac-Dztkvp5i.js} +1 -1
  19. package/dist/component/{contacts-first-name-rac-BXe3_Nz5.js → contacts-first-name-rac-CVSEWpLU.js} +1 -1
  20. package/dist/component/{contacts-last-name-rac-Cfqgh7u1.js → contacts-last-name-rac-Blz4M5bk.js} +1 -1
  21. package/dist/component/{contacts-phone-rac-cmLUWnAc.js → contacts-phone-rac-CPCE5soY.js} +1 -1
  22. package/dist/component/{contacts-position-rac-DTyvklfN.js → contacts-position-rac-Dd_kBjqG.js} +1 -1
  23. package/dist/component/{contacts-subscribe-rac-D-ZEX1A3.js → contacts-subscribe-rac-C6AlsP10.js} +1 -1
  24. package/dist/component/{contacts-tax-id-rac-B4NYJwWt.js → contacts-tax-id-rac-CQ1n29zI.js} +1 -1
  25. package/dist/component/{date-availability-Dach9aRC.js → date-availability-DDj1j0z5.js} +1 -1
  26. package/dist/component/{date-input-field-rac-B72mHcya.js → date-input-field-rac-D5r1n_ah.js} +59 -59
  27. package/dist/component/{date-input-rac-CYix11gT.js → date-input-rac-Cyi5mU_P.js} +1 -1
  28. package/dist/component/{date-picker-field-rac-B8pvtPir.js → date-picker-field-rac-CeG391Zo.js} +34 -34
  29. package/dist/component/{date-picker-rac-D6cR0zH9.js → date-picker-rac-Ci9aHgav.js} +1 -1
  30. package/dist/component/{date-time-input-field-rac-B7Y3Yf5l.js → date-time-input-field-rac-CrbYEbJJ.js} +89 -89
  31. package/dist/component/{date-time-input-rac-DMN-noQX.js → date-time-input-rac-DDJLkqs0.js} +1 -1
  32. package/dist/component/{dext-checkbox-group-rac-Kq0GnteP.js → dext-checkbox-group-rac-C3ftVHBA.js} +4 -4
  33. package/dist/component/{dext-checkbox-rac-BY9GZ4n1.js → dext-checkbox-rac-BGLYWn68.js} +1 -1
  34. package/dist/component/{dext-date-picker-rac-CXArIddp.js → dext-date-picker-rac-Cy9RlDlt.js} +1 -1
  35. package/dist/component/{dext-date-time-input-rac-B39TtxGq.js → dext-date-time-input-rac-88ZoTd5e.js} +1 -1
  36. package/dist/component/{dext-dropdown-rac-C3y0G8cS.js → dext-dropdown-rac-CPxDUuk9.js} +1 -1
  37. package/dist/component/{dext-email-rac-BIg3cq7Q.js → dext-email-rac-BAvQwDPA.js} +1 -1
  38. package/dist/component/{dext-number-input-rac-27sHJ7yN.js → dext-number-input-rac-D7HYQVKq.js} +1 -1
  39. package/dist/component/{dext-phone-rac-CcohoFQp.js → dext-phone-rac--FhcplSI.js} +1 -1
  40. package/dist/component/{dext-radio-group-rac-eead3Gve.js → dext-radio-group-rac-DBz8iCKW.js} +2 -2
  41. package/dist/component/{dext-rating-input-rac-B_E6OcBr.js → dext-rating-input-rac-Cv7nThfe.js} +1 -1
  42. package/dist/component/{dext-tags-rac-Yd9aAtnF.js → dext-tags-rac-CRUUc5dr.js} +2 -2
  43. package/dist/component/{dext-text-area-rac-CMACri2C.js → dext-text-area-rac-DQBQXV1L.js} +1 -1
  44. package/dist/component/{dext-text-input-rac-sNjSCfQ-.js → dext-text-input-rac-4CpM581y.js} +1 -1
  45. package/dist/component/{dext-url-input-rac-DwhbzJty.js → dext-url-input-rac-0C1jTEr9.js} +1 -1
  46. package/dist/component/{donation-rac-BVAN3kMk.js → donation-rac-Cgt0ZE50.js} +68 -68
  47. package/dist/component/{dropdown-field-rac-DdoGigWx.js → dropdown-field-rac-DlGKR7pZ.js} +3 -3
  48. package/dist/component/{dropdown-rac-CRkt5w47.js → dropdown-rac-CYFW_3x_.js} +1 -1
  49. package/dist/component/{ecom-address-rac-C36hFHW0.js → ecom-address-rac-CQfQHpXC.js} +1 -1
  50. package/dist/component/{ecom-subscription-checkbox-rac-BKfQ348w.js → ecom-subscription-checkbox-rac-D2v2Upvz.js} +2 -2
  51. package/dist/component/{email-input-field-rac-MOaISYxa.js → email-input-field-rac-CVw25yRo.js} +45 -45
  52. package/dist/component/{events-repeater-rac-D6p-NgE8.js → events-repeater-rac-BCVUcmFj.js} +22 -22
  53. package/dist/component/{events-rsvp-rac-DVpgN8gm.js → events-rsvp-rac-DwbqEr8z.js} +3 -3
  54. package/dist/component/{field-error-headless-XNWmDH3E.js → field-error-headless-XnVcMmsL.js} +3 -3
  55. package/dist/component/{field-label-headless-CORRAJGt.js → field-label-headless-BRTLT2Yt.js} +14 -14
  56. package/dist/component/{file-upload-rac-DRMr7E4b.js → file-upload-rac-Dkwg9Jk4.js} +115 -115
  57. package/dist/component/{fixed-payment-rac-BUXzNex9.js → fixed-payment-rac-ST98xAa2.js} +20 -20
  58. package/dist/component/{form-DSpx-AO8.js → form-BUqSKOvc.js} +235 -234
  59. package/dist/component/form.js +1 -1
  60. package/dist/component/{header-field-rac-CiDXlNsa.js → header-field-rac-CzNTGYWq.js} +5 -5
  61. package/dist/component/{header-rac-B5Rg-h8u.js → header-rac-DUt6AIAE.js} +1 -1
  62. package/dist/component/{image-choice-rac-CtoA_KDp.js → image-choice-rac-DuBgrSt2.js} +21 -21
  63. package/dist/component/{index-Bz7ZhQsF.js → index-CDO22hht.js} +106 -106
  64. package/dist/component/{index-CwruESwc.js → index-cZZeAuuu.js} +5 -5
  65. package/dist/component/{isObjectLike-C5dHxHP0.js → isObjectLike-cs4bARpC.js} +3 -3
  66. package/dist/component/{multiline-address-field-rac-Z-qF366L.js → multiline-address-field-rac-vcEWhUCV.js} +73 -73
  67. package/dist/component/{multiline-address-rac-CJIHTMw5.js → multiline-address-rac-WQaI2eUX.js} +1 -1
  68. package/dist/component/{number-input-field-rac-D4vf6I6N.js → number-input-field-rac-CBUMqATk.js} +26 -26
  69. package/dist/component/{number-input-rac-B2jW6JUQ.js → number-input-rac-B4j5hyzS.js} +1 -1
  70. package/dist/component/{password-rac-DGRZ17Jl.js → password-rac-DwLyf45N.js} +28 -28
  71. package/dist/component/{payment-input-rac-BtD-tAKv.js → payment-input-rac-D0Od---y.js} +28 -28
  72. package/dist/component/{phone-input-field-rac-KD4-APhr.js → phone-input-field-rac-COlu9IeC.js} +64 -64
  73. package/dist/component/{phone-rac-Cw2yccgg.js → phone-rac-Dh4RacOF.js} +1 -1
  74. package/dist/component/{product-list-rac-XbzTDdbp.js → product-list-rac-D7zHDE2D.js} +47 -47
  75. package/dist/component/{quiz-radio-group-rac-BDw_mAw5.js → quiz-radio-group-rac-1AaKphJt.js} +1 -1
  76. package/dist/component/{radio-button-module-classes-CFGf0Hzh.js → radio-button-module-classes-VqaP6vpA.js} +29 -29
  77. package/dist/component/{radio-group-field-rac-CXN7tyVu.js → radio-group-field-rac-Cp3LRN3C.js} +6 -6
  78. package/dist/component/{radio-group-rac-COHzqjBh.js → radio-group-rac-KhmhzYGf.js} +1 -1
  79. package/dist/component/{rating-input-field-rac-DCXNZgf1.js → rating-input-field-rac-10n6ciCr.js} +22 -22
  80. package/dist/component/{rating-input-rac-DwQt9ML7.js → rating-input-rac-XZjjY2Gp.js} +1 -1
  81. package/dist/component/{rich-content-rac.module-B7rPwNns.js → rich-content-rac.module-kMwDoLBa.js} +1 -1
  82. package/dist/component/{rich-text-field-rac-DlER7NRD.js → rich-text-field-rac-H5bd8fAt.js} +6 -6
  83. package/dist/component/{rich-text-rac-CjicsHA7.js → rich-text-rac-88GSQR62.js} +1 -1
  84. package/dist/component/{service-dropdown-rac-B81LC_6_.js → service-dropdown-rac-B1_Xr_X3.js} +31 -31
  85. package/dist/component/{services-multi-choice-rac-BR6gZeHk.js → services-multi-choice-rac-DWp_Llbi.js} +17 -17
  86. package/dist/component/{signature-rac-XFj7Ddtp.js → signature-rac-zN_6KRDp.js} +44 -44
  87. package/dist/component/{submit-button-rac-Bz7zs_3W.js → submit-button-rac-Dv6UarYX.js} +2 -2
  88. package/dist/component/{tags-field-rac-DWWkNKqc.js → tags-field-rac-sVN6MHfJ.js} +38 -38
  89. package/dist/component/{tags-rac-BXyiQ9i1.js → tags-rac-DhTHs_XN.js} +1 -1
  90. package/dist/component/{text-area-field-rac-DsIRYi0d.js → text-area-field-rac-DrWkww7W.js} +21 -21
  91. package/dist/component/{text-area-rac-CF9pDP9d.js → text-area-rac-CXXh-ZdY.js} +1 -1
  92. package/dist/component/{text-input-field-rac-BwIDZACz.js → text-input-field-rac-C2YiMr-g.js} +3 -3
  93. package/dist/component/{text-input-headless-5kQs2_Xu.js → text-input-headless-BJMNbsMY.js} +12 -12
  94. package/dist/component/{text-input-rac-CRmSuw1k.js → text-input-rac-CpsPh7FH.js} +1 -1
  95. package/dist/component/{time-input-rac-BRMNpe51.js → time-input-rac-DG_1KxS4.js} +23 -23
  96. package/dist/component/{url-input-field-rac-CKLS3QDk.js → url-input-field-rac-twxRREnl.js} +26 -26
  97. package/dist/component/{url-input-rac-Dv-kp50D.js → url-input-rac-BTStO0NP.js} +1 -1
  98. package/dist/component/{use-dropdown-option-class-name-BQi_qE_-.js → use-dropdown-option-class-name-DbMMg1ws.js} +2 -2
  99. package/dist/component/{use-dropdown-trigger-class-name-bAK8aHiG.js → use-dropdown-trigger-class-name-Yes4kC_0.js} +17 -17
  100. package/dist/component/{use-element-state-class-name-rXM_lHug.js → use-element-state-class-name-DlncY4hk.js} +1 -1
  101. package/dist/component/{use-hoverable-input-class-name-BnV_uerV.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-CLeE9-Tx.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 +3 -0
  106. package/package.json +2 -2
  107. package/dist/component/use-is-forced-open-dropdown-Bp-5Xpmw.js +0 -53
  108. package/dist/component/use-text-input-class-name-DIKWvfkm.js +0 -6
@@ -1,14 +1,14 @@
1
1
  import n, { useState as b, useCallback as g, useRef as M } from "react";
2
2
  import { UNSAFE_PortalProvider as k } from "react-aria";
3
3
  import { Select as q, SelectValue as G, ListBoxItem as H } from "react-aria-components";
4
- import { bz as E, bw as O, bB as z, K } from "./form-DSpx-AO8.js";
4
+ import { bA as E, bx as O, bC as U, L as W } from "./form-BUqSKOvc.js";
5
5
  import { f as d, a as F } from "./find-child-C60k4CxG.js";
6
- import { D as U, E as W } from "./field-error-headless-XNWmDH3E.js";
7
- import { L as Y } from "./field-label-headless-CORRAJGt.js";
8
- import { E as j, S as J, N as Q } from "./non-modal-popover-D-u13tmp.js";
9
- import { a as X } from "./use-is-forced-open-dropdown-Bp-5Xpmw.js";
10
- import { V as Z } from "./use-dropdown-option-class-name-BQi_qE_-.js";
11
- import { u as $ } from "./use-hoverable-input-class-name-BnV_uerV.js";
6
+ import { D as Y, E as j } from "./field-error-headless-XnVcMmsL.js";
7
+ import { L as z } from "./field-label-headless-BRTLT2Yt.js";
8
+ import { E as J, S as K, N as Q } from "./non-modal-popover-D-u13tmp.js";
9
+ import { a as X } from "./use-is-forced-open-dropdown-DnK_MQRO.js";
10
+ import { V as Z } from "./use-dropdown-option-class-name-DbMMg1ws.js";
11
+ import { u as $ } from "./use-hoverable-input-class-name-C__zqP5j.js";
12
12
  const r = ({ children: e }) => {
13
13
  const { id: l, value: a, defaultValue: o, options: u = [], readOnly: s, onChange: t, placeholder: m, disabled: i, required: v, onBlur: D, onFocus: C, FieldLayout: L, hasError: I } = E(), [y, N] = b(!1), p = X(l), [P, R] = b(null), T = a && u.some((c) => (c.value ?? c.label) === a) ? a : o || null, { labelId: h } = O(), S = g((c) => {
14
14
  s || t(typeof c == "string" ? c : null);
@@ -18,7 +18,7 @@ const r = ({ children: e }) => {
18
18
  ]), B = g((c) => N(c && !i && !s), [
19
19
  i,
20
20
  s
21
- ]), V = d(e, r.Label), _ = d(e, r.Trigger), w = d(e, r.Options), x = d(e, r.Description), A = d(e, r.Error);
21
+ ]), V = d(e, r.Label), _ = d(e, r.Trigger), x = d(e, r.Options), w = d(e, r.Description), A = d(e, r.Error);
22
22
  return /* @__PURE__ */ n.createElement(L, {
23
23
  fieldId: l,
24
24
  renderLabel: () => V,
@@ -38,22 +38,22 @@ const r = ({ children: e }) => {
38
38
  isDisabled: i,
39
39
  isInvalid: I,
40
40
  isRequired: v,
41
- placeholder: m || j,
41
+ placeholder: m || J,
42
42
  onBlur: D,
43
43
  onFocus: C
44
- }, _, F(w, {
44
+ }, _, F(x, {
45
45
  isForcedOpen: p
46
46
  })))),
47
- renderDescription: () => /* @__PURE__ */ n.createElement(n.Fragment, null, A, x)
47
+ renderDescription: () => /* @__PURE__ */ n.createElement(n.Fragment, null, A, w)
48
48
  });
49
49
  }, ee = ({ children: e, className: l }) => {
50
50
  const { inputId: a, ariaDescribedBy: o } = O(), { id: u, hasError: s, isLoading: t } = E(), m = M(null);
51
- return z(() => {
51
+ return U(() => {
52
52
  var i;
53
53
  (i = m.current) == null || i.focus({
54
54
  preventScroll: !0
55
55
  });
56
- }, u), /* @__PURE__ */ n.createElement(J, {
56
+ }, u), /* @__PURE__ */ n.createElement(K, {
57
57
  ref: m,
58
58
  id: a,
59
59
  "aria-describedby": o,
@@ -84,12 +84,12 @@ const r = ({ children: e }) => {
84
84
  }, o);
85
85
  };
86
86
  f.Option = ne;
87
- r.Label = Y;
87
+ r.Label = z;
88
88
  r.Trigger = ee;
89
89
  r.Options = f;
90
- r.Description = U;
91
- r.Error = W;
92
- const pe = (...e) => $(K, e);
90
+ r.Description = Y;
91
+ r.Error = j;
92
+ const pe = (...e) => $(W, e);
93
93
  export {
94
94
  r as D,
95
95
  pe as u
@@ -1,5 +1,5 @@
1
1
  import i from "classnames";
2
- import { bs as s, a$ as v } from "./form-DSpx-AO8.js";
2
+ import { bt as s, b0 as v } from "./form-BUqSKOvc.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 = [
@@ -1,6 +1,6 @@
1
- import { bz as n } from "./form-DSpx-AO8.js";
1
+ import { bA as n } from "./form-BUqSKOvc.js";
2
2
  import { s as e } from "./field-rac.module-DP0lkkEv.js";
3
- import { u } from "./use-element-state-class-name-rXM_lHug.js";
3
+ import { u } from "./use-element-state-class-name-DlncY4hk.js";
4
4
  const b = (s, a) => {
5
5
  const { disabled: t, readOnly: o } = n(), r = u({
6
6
  globalClasses: s,
@@ -0,0 +1,53 @@
1
+ import { useContext as c, useMemo as i } from "react";
2
+ import { bu as r, aG as a, bs as u, F as o } from "./form-BUqSKOvc.js";
3
+ const d = [
4
+ o.DROPDOWN,
5
+ o.DEXT_DROPDOWN,
6
+ o.SERVICES_DROPDOWN,
7
+ o.DATE_INPUT,
8
+ o.CONTACTS_BIRTHDATE,
9
+ o.DATE_TIME_INPUT,
10
+ o.DEXT_DATE_TIME_INPUT
11
+ ], T = [
12
+ o.DATE_PICKER,
13
+ o.DEXT_DATE_PICKER
14
+ ], O = [
15
+ o.PHONE,
16
+ o.CONTACTS_PHONE,
17
+ o.BOOKINGS_PHONE,
18
+ o.DEXT_PHONE
19
+ ], p = [
20
+ o.MULTILINE_ADDRESS,
21
+ o.BOOKINGS_ADDRESS,
22
+ o.ECOM_ADDRESS
23
+ ], _ = ({ properties: e }) => {
24
+ var n, t, s, D;
25
+ return ((D = (s = (t = (n = e.validation) == null ? void 0 : n.string) == null ? void 0 : t.phoneOptions) == null ? void 0 : s.allowedCountryCodes) == null ? void 0 : D.length) !== 1;
26
+ }, I = ({ properties: e }) => {
27
+ var n, t;
28
+ return ((t = (n = e.fieldSettings) == null ? void 0 : n.country) == null ? void 0 : t.show) !== !1;
29
+ }, P = (e, n) => O.includes(e.fieldType) && !n && _(e), l = (e) => p.includes(e.fieldType) ? I(e) : d.includes(e.fieldType), S = (e) => T.includes(e.fieldType), C = ({ properties: e }) => !e.disabled && !e.readOnly, E = (e) => {
30
+ const n = c(a), { isMobile: t = !1 } = u();
31
+ return i(() => !n || n.parentId ? [] : n.fields.filter((s) => e(s, t) && C(s)).map((s) => s.id), [
32
+ n,
33
+ t,
34
+ e
35
+ ]);
36
+ }, R = (e) => {
37
+ var s;
38
+ const n = ((s = r().dropdown) == null ? void 0 : s.open) === !0, t = E(l);
39
+ return n && t.includes(e);
40
+ }, f = (e) => {
41
+ var s;
42
+ const n = ((s = r().phone) == null ? void 0 : s.open) === !0, t = E(P);
43
+ return n && t.includes(e);
44
+ }, h = (e) => {
45
+ var s;
46
+ const n = ((s = r().datePicker) == null ? void 0 : s.open) === !0, t = E(S);
47
+ return n && t.includes(e);
48
+ };
49
+ export {
50
+ R as a,
51
+ f as b,
52
+ h as u
53
+ };
@@ -1,7 +1,7 @@
1
- import { useState as o, useCallback as b, useEffect as m, useMemo as D } from "react";
2
- import { by as v } from "./form-DSpx-AO8.js";
1
+ import { useState as o, useCallback as y, useEffect as m, useMemo as D } from "react";
2
+ import { bz as v } from "./form-BUqSKOvc.js";
3
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([]), [y, u] = o(!1), [c, f] = o(!1), s = v(L), r = b((e) => {
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) => {
5
5
  let d = e.map((l) => ({
6
6
  value: l.id ?? "",
7
7
  label: l.name ?? "",
@@ -26,16 +26,16 @@ const k = (I) => {
26
26
  a,
27
27
  t
28
28
  ]);
29
- const E = D(() => t || c, [
29
+ const b = D(() => t || c, [
30
30
  t,
31
31
  c
32
32
  ]);
33
33
  return {
34
34
  isLoading: O,
35
35
  options: g,
36
- isEmpty: y,
36
+ isEmpty: E,
37
37
  hasInitialDataLoaded: c,
38
- shouldRender: E,
38
+ shouldRender: b,
39
39
  setIsLoading: h,
40
40
  setOptions: p,
41
41
  setIsEmpty: u,
@@ -0,0 +1,6 @@
1
+ import { ao as a } from "./form-BUqSKOvc.js";
2
+ import { u as e } from "./use-hoverable-input-class-name-C__zqP5j.js";
3
+ const m = (...s) => e(a, s);
4
+ export {
5
+ m as u
6
+ };
package/dist/form.d.ts CHANGED
@@ -7000,6 +7000,9 @@ type ElementProps = ElementTree & {
7000
7000
  }> & {
7001
7001
  open?: boolean;
7002
7002
  };
7003
+ appointment?: ElementEntry & {
7004
+ noAvailability?: boolean;
7005
+ };
7003
7006
  signature?: ElementEntry<ElementTree & {
7004
7007
  dropZone?: ElementEntry<{
7005
7008
  uploadButton?: ElementEntry<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/form-elements",
3
- "version": "1.160.0",
3
+ "version": "1.161.0",
4
4
  "description": "The Wix Forms rendering element for Builder apps, loaded at runtime as @wix/form-elements/Form",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -156,5 +156,5 @@
156
156
  ]
157
157
  }
158
158
  },
159
- "falconPackageHash": "4056ec8b67966e77ee233ab87cc12bb9411034a30bc372bf323425d1"
159
+ "falconPackageHash": "4e52da43abe6970aa777385ba13b7dd06003f37016d904acd97f4b33"
160
160
  }
@@ -1,53 +0,0 @@
1
- import { useContext as c, useMemo as i } from "react";
2
- import { bt as r, aF as a, br as d, F as t } from "./form-DSpx-AO8.js";
3
- const u = [
4
- t.DROPDOWN,
5
- t.DEXT_DROPDOWN,
6
- t.SERVICES_DROPDOWN,
7
- t.DATE_INPUT,
8
- t.CONTACTS_BIRTHDATE,
9
- t.DATE_TIME_INPUT,
10
- t.DEXT_DATE_TIME_INPUT
11
- ], T = [
12
- t.DATE_PICKER,
13
- t.DEXT_DATE_PICKER
14
- ], O = [
15
- t.PHONE,
16
- t.CONTACTS_PHONE,
17
- t.BOOKINGS_PHONE,
18
- t.DEXT_PHONE
19
- ], p = [
20
- t.MULTILINE_ADDRESS,
21
- t.BOOKINGS_ADDRESS,
22
- t.ECOM_ADDRESS
23
- ], _ = ({ properties: e }) => {
24
- var n, o, s, D;
25
- return ((D = (s = (o = (n = e.validation) == null ? void 0 : n.string) == null ? void 0 : o.phoneOptions) == null ? void 0 : s.allowedCountryCodes) == null ? void 0 : D.length) !== 1;
26
- }, I = ({ properties: e }) => {
27
- var n, o;
28
- return ((o = (n = e.fieldSettings) == null ? void 0 : n.country) == null ? void 0 : o.show) !== !1;
29
- }, P = (e, n) => O.includes(e.fieldType) && !n && _(e), l = (e) => p.includes(e.fieldType) ? I(e) : u.includes(e.fieldType), S = (e) => T.includes(e.fieldType), C = ({ properties: e }) => !e.disabled && !e.readOnly, E = (e) => {
30
- const n = c(a), { isMobile: o = !1 } = d();
31
- return i(() => !n || n.parentId ? [] : n.fields.filter((s) => e(s, o) && C(s)).map((s) => s.id), [
32
- n,
33
- o,
34
- e
35
- ]);
36
- }, R = (e) => {
37
- var s;
38
- const n = ((s = r().dropdown) == null ? void 0 : s.open) === !0, o = E(l);
39
- return n && o.includes(e);
40
- }, F = (e) => {
41
- var s;
42
- const n = ((s = r().phone) == null ? void 0 : s.open) === !0, o = E(P);
43
- return n && o.includes(e);
44
- }, f = (e) => {
45
- var s;
46
- const n = ((s = r().datePicker) == null ? void 0 : s.open) === !0, o = E(S);
47
- return n && o.includes(e);
48
- };
49
- export {
50
- R as a,
51
- F as b,
52
- f as u
53
- };
@@ -1,6 +0,0 @@
1
- import { an as a } from "./form-DSpx-AO8.js";
2
- import { u as e } from "./use-hoverable-input-class-name-BnV_uerV.js";
3
- const m = (...s) => e(a, s);
4
- export {
5
- m as u
6
- };