@wix/form-elements 1.143.0 → 1.145.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 (110) hide show
  1. package/dist/component/{appointment-rac-BAwonF75.js → appointment-rac-De-uH9rz.js} +93 -93
  2. package/dist/component/{bookings-address-rac-xhj2n7jK.js → bookings-address-rac-DB6QCMQJ.js} +1 -1
  3. package/dist/component/{bookings-email-rac-BGjeAwgm.js → bookings-email-rac-g6ZdB_BO.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-l392yYAU.js → bookings-first-name-rac-DQgL_VHl.js} +1 -1
  5. package/dist/component/{bookings-header-rac-JwIo7hsJ.js → bookings-header-rac-DAnIm-Oq.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-CJp81BPl.js → bookings-last-name-rac-D62jNdDb.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-BiPklGE_.js → bookings-login-bar-rac-5z8HfBhU.js} +1 -1
  8. package/dist/component/{bookings-phone-rac-mQfDJGkK.js → bookings-phone-rac-D0gu-_wy.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-BOfHn2EU.js → bookings-rich-text-rac-b4J1HcdI.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-CA6SeM0c.js → checkbox-field-rac-CmRRc9Dz.js} +83 -83
  11. package/dist/component/{checkbox-group-field-headless-ChLT0zKA.js → checkbox-group-field-headless-CB8yAfMe.js} +61 -61
  12. package/dist/component/{checkbox-group-field-rac-_Fkre79S.js → checkbox-group-field-rac-C5gRZRTd.js} +4 -4
  13. package/dist/component/{checkbox-group-rac-esBLJZ6Y.js → checkbox-group-rac-DNDF1Irh.js} +1 -1
  14. package/dist/component/{checkbox-rac-C3vXtbJh.js → checkbox-rac-B9vztGBU.js} +1 -1
  15. package/dist/component/{contacts-address-rac-BuBBBt19.js → contacts-address-rac-CKZeSncj.js} +1 -1
  16. package/dist/component/{contacts-birthdate-rac-BMBJeVOK.js → contacts-birthdate-rac-BbpNNQgF.js} +1 -1
  17. package/dist/component/{contacts-company-rac-CZl168-E.js → contacts-company-rac-BX2KT201.js} +1 -1
  18. package/dist/component/{contacts-email-rac-CJgVzCns.js → contacts-email-rac-5Irzx1mA.js} +1 -1
  19. package/dist/component/{contacts-first-name-rac-9ZNYKQeb.js → contacts-first-name-rac-CxKp8_2u.js} +1 -1
  20. package/dist/component/{contacts-last-name-rac-KgylQwHW.js → contacts-last-name-rac-BDCbSv5I.js} +1 -1
  21. package/dist/component/{contacts-phone-rac-DYr30FLP.js → contacts-phone-rac-BM_PV_uH.js} +1 -1
  22. package/dist/component/{contacts-position-rac-B9BZZ3K9.js → contacts-position-rac-1aqthQSi.js} +1 -1
  23. package/dist/component/{contacts-subscribe-rac-DOQb2GLm.js → contacts-subscribe-rac-CdqXs4kp.js} +1 -1
  24. package/dist/component/{contacts-tax-id-rac-cYE1ehXN.js → contacts-tax-id-rac-BKHpcDb6.js} +1 -1
  25. package/dist/component/{date-availability-BOKvA8w-.js → date-availability-DmFFTX8p.js} +1 -1
  26. package/dist/component/{date-input-field-rac-BwY53gNr.js → date-input-field-rac-BnlAOn12.js} +45 -45
  27. package/dist/component/{date-input-rac-Cgg4QJbB.js → date-input-rac-BB6qZ16w.js} +1 -1
  28. package/dist/component/{date-picker-field-rac-0Ue6uiCM.js → date-picker-field-rac-Ckwu2vD6.js} +11 -11
  29. package/dist/component/{date-picker-rac-CgICj33f.js → date-picker-rac-DSqzUAaH.js} +1 -1
  30. package/dist/component/{date-time-input-field-rac-ChRCMk7_.js → date-time-input-field-rac-DO-iRdkW.js} +21 -21
  31. package/dist/component/{date-time-input-rac-B8tRZrri.js → date-time-input-rac-smVCCxdY.js} +1 -1
  32. package/dist/component/{dext-checkbox-group-rac-B_qjx1QD.js → dext-checkbox-group-rac-B8bx3rT2.js} +4 -4
  33. package/dist/component/{dext-checkbox-rac-Bw9SyhHA.js → dext-checkbox-rac-x8VLGRbc.js} +1 -1
  34. package/dist/component/{dext-date-picker-rac-Bzn28zNq.js → dext-date-picker-rac-D2a9NXap.js} +1 -1
  35. package/dist/component/{dext-date-time-input-rac-7Cuk3PoA.js → dext-date-time-input-rac-Cp5XjpGv.js} +1 -1
  36. package/dist/component/{dext-dropdown-rac-Md1VI5pc.js → dext-dropdown-rac-nWgEvyxt.js} +1 -1
  37. package/dist/component/{dext-email-rac-DbHwHGKz.js → dext-email-rac-CkX6ya8p.js} +1 -1
  38. package/dist/component/{dext-number-input-rac-DIVk3zXL.js → dext-number-input-rac-CKT0MS1x.js} +1 -1
  39. package/dist/component/{dext-phone-rac-ZIya63UJ.js → dext-phone-rac-DM2E7zW_.js} +1 -1
  40. package/dist/component/{dext-radio-group-rac-DV1xHkOD.js → dext-radio-group-rac-Czr5yY3K.js} +4 -4
  41. package/dist/component/{dext-rating-input-rac-YRIYgeT4.js → dext-rating-input-rac-CKWNpFuu.js} +1 -1
  42. package/dist/component/{dext-tags-rac-DTJ6Pz_x.js → dext-tags-rac-6AskGGTp.js} +4 -4
  43. package/dist/component/{dext-text-area-rac-V-d9i95A.js → dext-text-area-rac-ClGLD7sD.js} +1 -1
  44. package/dist/component/{dext-text-input-rac-ccrundX-.js → dext-text-input-rac-Blbk53d4.js} +1 -1
  45. package/dist/component/{dext-url-input-rac-Bd5SZ2U4.js → dext-url-input-rac-BuitmJU0.js} +1 -1
  46. package/dist/component/{donation-rac-BFmpW-3b.js → donation-rac-DOifFCD7.js} +52 -52
  47. package/dist/component/{dropdown-field-headless-C2qgeReH.js → dropdown-field-headless-m2P6s7X5.js} +22 -22
  48. package/dist/component/{dropdown-field-rac-Bj1YSgpT.js → dropdown-field-rac-5e6wWJBl.js} +4 -4
  49. package/dist/component/{dropdown-rac-DfdvX5I5.js → dropdown-rac-BGxE9pJB.js} +1 -1
  50. package/dist/component/{ecom-address-rac-DOWNQhhX.js → ecom-address-rac-kbD9qW5Y.js} +1 -1
  51. package/dist/component/{ecom-subscription-checkbox-rac-2ELdC1ql.js → ecom-subscription-checkbox-rac-CE-Yixnj.js} +5 -5
  52. package/dist/component/{email-input-field-rac-CY0U6vEM.js → email-input-field-rac-CbwcB33o.js} +46 -46
  53. package/dist/component/{events-repeater-rac-C2oo_RZt.js → events-repeater-rac-CGhUscBr.js} +4 -4
  54. package/dist/component/{events-rsvp-rac-BrimIo0r.js → events-rsvp-rac-AQ33zPTe.js} +3 -3
  55. package/dist/component/{field-error-headless-r0fX50xw.js → field-error-headless-ClPQ03Jc.js} +9 -9
  56. package/dist/component/field-label-headless-DhN8Lkuq.js +52 -0
  57. package/dist/component/{file-upload-rac-Beb2BcFK.js → file-upload-rac-yTx1ZRhZ.js} +53 -53
  58. package/dist/component/{fixed-payment-rac-DGFWYMZG.js → fixed-payment-rac-nlyxa9nB.js} +12 -12
  59. package/dist/component/{form-DtzwuBIo.js → form-D3iU18lh.js} +2386 -2352
  60. package/dist/component/form.css +1 -1
  61. package/dist/component/form.js +2 -2
  62. package/dist/component/{header-field-rac-CVmGSa0E.js → header-field-rac-DAEzcleV.js} +4 -4
  63. package/dist/component/{header-rac-C3AEJmYN.js → header-rac-CJZ4qMFg.js} +1 -1
  64. package/dist/component/{image-choice-rac-Ch-mxLgP.js → image-choice-rac-BFAMHwPh.js} +10 -10
  65. package/dist/component/{index-CTn6AQ3A.js → index-DQW26cnX.js} +2 -2
  66. package/dist/component/{index-CmqLlW8X.js → index-W7GOFnq8.js} +43 -43
  67. package/dist/component/{isObjectLike-iyypwAQL.js → isObjectLike-CE8eaxSI.js} +7 -7
  68. package/dist/component/{multiline-address-field-rac-DJXcb6NG.js → multiline-address-field-rac-FbJO0HFf.js} +94 -94
  69. package/dist/component/{multiline-address-rac-DcZgTx1c.js → multiline-address-rac-CI-vt6Pm.js} +1 -1
  70. package/dist/component/{number-input-field-rac-W3TqQGhC.js → number-input-field-rac-BRVAr7LL.js} +21 -21
  71. package/dist/component/{number-input-rac-CdXigsba.js → number-input-rac-C8hCiJiu.js} +1 -1
  72. package/dist/component/{password-rac-Dph6984u.js → password-rac-Baslr6Ga.js} +7 -7
  73. package/dist/component/{payment-input-rac-D5ARk1lF.js → payment-input-rac-CfJSKxYz.js} +17 -17
  74. package/dist/component/{phone-input-field-rac-BUfe-B2i.js → phone-input-field-rac-Dqh4CXdC.js} +24 -24
  75. package/dist/component/{phone-rac-DTiWT1uy.js → phone-rac-DaLuGuxd.js} +1 -1
  76. package/dist/component/{product-list-rac-1_Q2JYwH.js → product-list-rac-PNMwRBtL.js} +31 -31
  77. package/dist/component/{quiz-radio-group-rac-iyBhi0wJ.js → quiz-radio-group-rac-DN8vY-oM.js} +1 -1
  78. package/dist/component/{radio-button-module-classes-DwfobXBe.js → radio-button-module-classes-DlJi9a2f.js} +11 -11
  79. package/dist/component/{radio-group-field-rac-BkKNVwMi.js → radio-group-field-rac-C0tLXhl5.js} +4 -4
  80. package/dist/component/{radio-group-rac-CH0nkJ8V.js → radio-group-rac-FAk7PYgP.js} +1 -1
  81. package/dist/component/{rating-input-field-rac-CUUUlgZi.js → rating-input-field-rac-Cl1kH_uu.js} +12 -12
  82. package/dist/component/{rating-input-rac-8yEiqBR5.js → rating-input-rac-D9p-0pkI.js} +1 -1
  83. package/dist/component/{rich-content-rac.module-DeKU0pwh.js → rich-content-rac.module-Dkr46kPC.js} +3 -3
  84. package/dist/component/{rich-text-field-rac-Cwd-RWTi.js → rich-text-field-rac-DthhTvTp.js} +4 -4
  85. package/dist/component/{rich-text-rac-C5-jPNYP.js → rich-text-rac-DqZX4NeB.js} +1 -1
  86. package/dist/component/{service-dropdown-rac-DBGAnsut.js → service-dropdown-rac-BMOGLU2Z.js} +30 -30
  87. package/dist/component/{services-multi-choice-rac-CqEoGsuw.js → services-multi-choice-rac-DcdUewzJ.js} +5 -5
  88. package/dist/component/{signature-rac-Cq3y66Cr.js → signature-rac-BRvN6kUW.js} +37 -37
  89. package/dist/component/submit-button-rac-B70UC8eS.js +228 -0
  90. package/dist/component/{tags-field-rac-CpJ0O9f_.js → tags-field-rac-NpYyV8X4.js} +16 -16
  91. package/dist/component/{tags-rac-BPjw67Po.js → tags-rac-BMEbpJ-z.js} +1 -1
  92. package/dist/component/{text-area-field-rac-BG6MJuIW.js → text-area-field-rac-BLSrNwJ6.js} +9 -9
  93. package/dist/component/{text-area-rac-BAS4F4VC.js → text-area-rac-Cm7aAfIz.js} +1 -1
  94. package/dist/component/{text-input-field-rac-BhMktcEd.js → text-input-field-rac-BDqV7s0M.js} +3 -3
  95. package/dist/component/{text-input-headless-Bpjd70nh.js → text-input-headless-B0jcwDev.js} +7 -7
  96. package/dist/component/{text-input-rac-Bj21XKGA.js → text-input-rac-Cc_SkCCS.js} +1 -1
  97. package/dist/component/{time-input-rac-DBpRHdnX.js → time-input-rac-DDCiAFe2.js} +33 -33
  98. package/dist/component/{url-input-field-rac-B_EMXVWh.js → url-input-field-rac-jen6pbz7.js} +24 -24
  99. package/dist/component/{url-input-rac-D0Ck-9KV.js → url-input-rac-BWh6udtS.js} +1 -1
  100. package/dist/component/{use-dropdown-option-class-name-CkpHwC6t.js → use-dropdown-option-class-name-OD8brKoy.js} +2 -2
  101. package/dist/component/{use-dropdown-trigger-class-name-DmDwpAVn.js → use-dropdown-trigger-class-name-BrkmG0ad.js} +4 -4
  102. package/dist/component/{use-element-state-class-name-BrgdwHYP.js → use-element-state-class-name-B1r_nXW1.js} +3 -3
  103. package/dist/component/{use-hoverable-input-class-name-qVo45l-t.js → use-hoverable-input-class-name-B-FhrcyQ.js} +6 -6
  104. package/dist/component/{use-service-options-base-Dlqs4p0Z.js → use-service-options-base-CTA_43F3.js} +1 -1
  105. package/dist/component/use-text-input-class-name-BXuk3TK7.js +6 -0
  106. package/dist/form.d.ts +36 -0
  107. package/package.json +2 -2
  108. package/dist/component/field-label-headless-D-kCfg8j.js +0 -52
  109. package/dist/component/submit-button-rac-CKM7yUL4.js +0 -172
  110. package/dist/component/use-text-input-class-name-CP2VJOso.js +0 -6
@@ -2,32 +2,32 @@ import { RicosViewer as S } from "@wix/ricos/viewer";
2
2
  import i 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 { bj as d, bg as E, bl as g, R as B, $ as T, G as k, u as v } from "./form-DtzwuBIo.js";
5
+ import { bn as d, bk as E, bp as k, R as B, $ as T, G as g, u as v } from "./form-D3iU18lh.js";
6
6
  import { f as c } from "./find-child-C60k4CxG.js";
7
- import { D as M, E as P } from "./field-error-headless-r0fX50xw.js";
8
- import { L as q } from "./field-label-headless-D-kCfg8j.js";
7
+ import { D as M, E as P } from "./field-error-headless-ClPQ03Jc.js";
8
+ import { L as q } from "./field-label-headless-DhN8Lkuq.js";
9
9
  import { u as x } 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-DfEb7pBp.js";
12
- import { u as $ } from "./use-text-input-class-name-CP2VJOso.js";
12
+ import { u as $ } from "./use-text-input-class-name-BXuk3TK7.js";
13
13
  const w = (t) => t ? `https://${String(t).replace(/^https?:\/\//, "")}` : "", e = ({ children: t }) => {
14
- const { id: o, value: s, onChange: n, disabled: m, readOnly: l, 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), N = h(() => {
15
- n(w(s)), p();
14
+ const { id: n, value: o, onChange: s, disabled: m, readOnly: a, required: l, 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), N = h(() => {
15
+ s(w(o)), p();
16
16
  }, [
17
17
  p,
18
- n,
19
- s
18
+ s,
19
+ o
20
20
  ]);
21
21
  return /* @__PURE__ */ r.createElement(R, {
22
- fieldId: o,
22
+ fieldId: n,
23
23
  renderLabel: () => L,
24
24
  renderInput: () => /* @__PURE__ */ r.createElement(y, {
25
25
  "aria-labelledby": F,
26
- value: s ?? "",
27
- onChange: n,
26
+ value: o ?? "",
27
+ onChange: s,
28
28
  isDisabled: m,
29
- isReadOnly: l,
30
- isRequired: a,
29
+ isReadOnly: a,
30
+ isRequired: l,
31
31
  isInvalid: I,
32
32
  onBlur: N,
33
33
  onFocus: f
@@ -35,26 +35,26 @@ const w = (t) => t ? `https://${String(t).replace(/^https?:\/\//, "")}` : "", e
35
35
  renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, _, C)
36
36
  });
37
37
  }, V = ({ className: t }) => {
38
- const { id: o, placeholder: s } = d(), { inputId: n, ariaDescribedBy: m } = E(), l = O(null);
39
- return g(() => {
40
- var a;
41
- (a = l.current) == null || a.focus();
42
- }, o), /* @__PURE__ */ r.createElement(A, {
43
- ref: l,
44
- id: n,
38
+ const { id: n, placeholder: o } = d(), { inputId: s, ariaDescribedBy: m } = E(), a = O(null);
39
+ return k(() => {
40
+ var l;
41
+ (l = a.current) == null || l.focus();
42
+ }, n), /* @__PURE__ */ r.createElement(A, {
43
+ ref: a,
44
+ id: s,
45
45
  type: "url",
46
46
  "aria-describedby": m,
47
47
  className: t,
48
- placeholder: s
48
+ placeholder: o
49
49
  });
50
50
  };
51
51
  e.Label = q;
52
52
  e.Input = V;
53
53
  e.Description = M;
54
54
  e.Error = P;
55
- const W = ({ content: t, locale: o }) => /* @__PURE__ */ r.createElement(S, {
55
+ const W = ({ content: t, locale: n }) => /* @__PURE__ */ r.createElement(S, {
56
56
  content: t,
57
- locale: o
57
+ locale: n
58
58
  }), te = () => {
59
59
  const t = $();
60
60
  return /* @__PURE__ */ r.createElement(e, null, /* @__PURE__ */ r.createElement(e.Label, {
@@ -64,7 +64,7 @@ const W = ({ content: t, locale: o }) => /* @__PURE__ */ r.createElement(S, {
64
64
  })), /* @__PURE__ */ r.createElement(e.Input, {
65
65
  className: t
66
66
  }), /* @__PURE__ */ r.createElement(e.Error, {
67
- className: i(k, u.error)
67
+ className: i(g, u.error)
68
68
  }, /* @__PURE__ */ r.createElement(U, null), /* @__PURE__ */ r.createElement(e.Error.Text, null)), /* @__PURE__ */ r.createElement(e.Description, {
69
69
  className: i(v, u.description)
70
70
  }, W));
@@ -1,5 +1,5 @@
1
1
  import r from "react";
2
- import { U as t } from "./url-input-field-rac-B_EMXVWh.js";
2
+ import { U as t } from "./url-input-field-rac-jen6pbz7.js";
3
3
  const n = () => /* @__PURE__ */ r.createElement(t, null);
4
4
  export {
5
5
  n as UrlInputRAC
@@ -2,8 +2,8 @@ import d, { useContext as _, useRef as D, useState as m, Children as L, useLayou
2
2
  import { CollectionRendererContext as g, DefaultCollectionRenderer as E, ListBox as N } from "react-aria-components";
3
3
  import P from "classnames";
4
4
  import { s as h } from "./field-rac.module-DfEb7pBp.js";
5
- import { y as T } from "./form-DtzwuBIo.js";
6
- import { u as H } from "./use-element-state-class-name-BrgdwHYP.js";
5
+ import { y as T } from "./form-D3iU18lh.js";
6
+ import { u as H } from "./use-element-state-class-name-B1r_nXW1.js";
7
7
  const R = 1 / 0, I = {
8
8
  position: "absolute",
9
9
  width: 0,
@@ -1,6 +1,6 @@
1
- import { useContext as p, useMemo as T } from "react";
2
- import { bd as a, ap as O, bb as _, F as s, z as i } from "./form-DtzwuBIo.js";
3
- import { u } from "./use-hoverable-input-class-name-qVo45l-t.js";
1
+ import { useContext as T, useMemo as a } from "react";
2
+ import { bh as p, at as O, bf as _, F as s, z as i } from "./form-D3iU18lh.js";
3
+ import { u } from "./use-hoverable-input-class-name-B-FhrcyQ.js";
4
4
  const I = [
5
5
  s.DROPDOWN,
6
6
  s.DEXT_DROPDOWN,
@@ -28,7 +28,7 @@ const I = [
28
28
  return ((n = (e = o.fieldSettings) == null ? void 0 : e.country) == null ? void 0 : n.show) !== !1;
29
29
  }, c = (o, e) => d.includes(o.fieldType) ? !e && P(o) : N.includes(o.fieldType) ? S(o) : I.includes(o.fieldType), l = (o, e) => c(o, e) && !o.properties.disabled && !o.properties.readOnly, A = (o) => {
30
30
  var E;
31
- const e = ((E = a().dropdown) == null ? void 0 : E.open) === !0, n = p(O), { isMobile: t = !1 } = _(), r = T(() => n && !n.parentId ? n.fields.filter((D) => l(D, t)).map((D) => D.id) : [], [
31
+ const e = ((E = p().dropdown) == null ? void 0 : E.open) === !0, n = T(O), { isMobile: t = !1 } = _(), r = a(() => n && !n.parentId ? n.fields.filter((D) => l(D, t)).map((D) => D.id) : [], [
32
32
  n,
33
33
  t
34
34
  ]);
@@ -1,6 +1,6 @@
1
1
  import i from "classnames";
2
- import { bc as s, aL as v } from "./form-DtzwuBIo.js";
3
- const x = ({ globalClasses: e, moduleClasses: r }) => {
2
+ import { bg as s, aP as v } from "./form-D3iU18lh.js";
3
+ const S = ({ 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,
@@ -19,5 +19,5 @@ const x = ({ globalClasses: e, moduleClasses: r }) => {
19
19
  };
20
20
  };
21
21
  export {
22
- x as u
22
+ S as u
23
23
  };
@@ -1,8 +1,8 @@
1
- import { bj as n } from "./form-DtzwuBIo.js";
1
+ import { bn as m } from "./form-D3iU18lh.js";
2
2
  import { s as e } from "./field-rac.module-DfEb7pBp.js";
3
- import { u } from "./use-element-state-class-name-BrgdwHYP.js";
3
+ import { u } from "./use-element-state-class-name-B1r_nXW1.js";
4
4
  const b = (s, a) => {
5
- const { disabled: t, readOnly: o } = n(), r = u({
5
+ const { disabled: t, readOnly: o } = m(), r = u({
6
6
  globalClasses: s,
7
7
  moduleClasses: {
8
8
  base: [
@@ -12,11 +12,11 @@ const b = (s, a) => {
12
12
  hover: e.inputHover
13
13
  }
14
14
  });
15
- return ({ isHovered: l, isFocused: i, isFocusWithin: m }) => r({
15
+ return ({ isHovered: l, isFocused: n, isFocusWithin: i }) => r({
16
16
  isSelected: !1,
17
17
  isHovered: l,
18
- isFocused: i,
19
- isFocusWithin: m,
18
+ isFocused: n,
19
+ isFocusWithin: i,
20
20
  isInteractive: !t && !o
21
21
  });
22
22
  };
@@ -1,5 +1,5 @@
1
1
  import { useState as o, useCallback as y, useEffect as m, useMemo as D } from "react";
2
- import { bi as v } from "./form-DtzwuBIo.js";
2
+ import { bm as v } from "./form-D3iU18lh.js";
3
3
  const k = (I) => {
4
4
  const { fieldType: L, isEditor: t = !1, postProcessOptions: i, customFetchLogic: a, onInitialDataLoaded: n } = I, [O, h] = o(!1), [g, p] = o([]), [E, u] = o(!1), [c, f] = o(!1), s = v(L), r = y((e) => {
5
5
  let d = e.map((l) => ({
@@ -0,0 +1,6 @@
1
+ import { ab as a } from "./form-D3iU18lh.js";
2
+ import { u as e } from "./use-hoverable-input-class-name-B-FhrcyQ.js";
3
+ const m = (...s) => e(a, s);
4
+ export {
5
+ m as u
6
+ };
package/dist/form.d.ts CHANGED
@@ -7001,6 +7001,14 @@ type ElementProps = ElementTree & {
7001
7001
  icon?: IconEntry;
7002
7002
  label?: LeafEntry;
7003
7003
  }>;
7004
+ nextButton?: ElementEntry<{
7005
+ icon?: IconEntry;
7006
+ label?: LeafEntry;
7007
+ }>;
7008
+ previousButton?: ElementEntry<{
7009
+ icon?: IconEntry;
7010
+ label?: LeafEntry;
7011
+ }>;
7004
7012
  fileUpload?: ElementEntry<{
7005
7013
  uploadButton?: ElementEntry<{
7006
7014
  icon?: IconEntry;
@@ -7059,6 +7067,34 @@ declare const defaultProps: {
7059
7067
  };
7060
7068
  };
7061
7069
  };
7070
+ readonly nextButton: {
7071
+ readonly elementProps: {
7072
+ readonly icon: {
7073
+ readonly svg: {
7074
+ readonly uri: '11062b_d61f9ce4f6fb46a881e3f715059fe1ee.svg';
7075
+ readonly viewBox: '0 0 200 200';
7076
+ readonly contentBox: '0 0 200 200';
7077
+ readonly colors: {};
7078
+ readonly contentType: 'shape';
7079
+ readonly svgContent: '<svg data-bbox="20 51.5 160 97" viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg" data-type="shape"><g><path d="m131.5 51.5-8.1 8.1L158.1 95H20v11h138.1l-34.7 34.4 8.1 8.1L180 100l-48.5-48.5z" fill-rule="evenodd" clip-rule="evenodd"/></g></svg>';
7080
+ };
7081
+ };
7082
+ };
7083
+ };
7084
+ readonly previousButton: {
7085
+ readonly elementProps: {
7086
+ readonly icon: {
7087
+ readonly svg: {
7088
+ readonly uri: '';
7089
+ readonly viewBox: '0 0 200 200';
7090
+ readonly contentBox: '0 0 200 200';
7091
+ readonly colors: {};
7092
+ readonly contentType: 'shape';
7093
+ readonly svgContent: '<svg data-bbox="20 51.5 160 97" viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg" data-type="shape"><g><path d="m68.5 51.5 8.1 8.1L41.9 95H180v11H41.9l34.7 34.4-8.1 8.1L20 100l48.5-48.5z" fill-rule="evenodd" clip-rule="evenodd"/></g></svg>';
7094
+ };
7095
+ };
7096
+ };
7097
+ };
7062
7098
  readonly fileUpload: {
7063
7099
  readonly elementProps: {
7064
7100
  readonly uploadButton: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/form-elements",
3
- "version": "1.143.0",
3
+ "version": "1.145.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": "0b14c93bc143df37a51af03075ad972faa84f980214037ab85c6d8c1"
159
+ "falconPackageHash": "5fdf705c85d0a8048b3baf1d8fb6da636a2a6835970b5eccbf04785e"
160
160
  }
@@ -1,52 +0,0 @@
1
- import { bj as m, aA as d, aB as p, bg as B, bt as D } from "./form-DtzwuBIo.js";
2
- import l from "react";
3
- import { f as g } from "./find-child-C60k4CxG.js";
4
- import { sdk as L } from "@wix/image-kit";
5
- function N({ id: e, width: t, height: n }, a, r, o = "fill") {
6
- return (o === "fit" ? L.getScaleToFitImageURL : L.getScaleToFillImageURL)(e, t, n, typeof a == "number" ? a : parseInt(a, 10), typeof r == "number" ? r : parseInt(r, 10));
7
- }
8
- var u = /* @__PURE__ */ (function(e) {
9
- return e.TOP = "top", e.BOTTOM = "bottom", e;
10
- })({});
11
- const S = {
12
- visibility: "hidden",
13
- display: "block",
14
- height: 0,
15
- margin: 0,
16
- padding: 0
17
- }, U = "​", i = ({ children: e, className: t, ...n }) => {
18
- const { as: a = "label", requiredIndicatorHidden: r = !1, label: o } = n, { label: T, required: R = !1, hideLabel: F = !1, requiredIndicatorType: q = d.ASTERISK, requiredIndicatorPlacement: O = p.AFTER_FIELD_TITLE, media: A, mediaSettings: s } = m(), { labelId: y, inputId: P } = B(), _ = a, b = R && !r ? g(e, i.Required) : null, c = A ? g(e, i.Image) : null, E = (s == null ? void 0 : s.imagePosition) ?? u.TOP, h = q === d.ASTERISK && O === p.BEFORE_FIELD_TITLE, f = (o ?? T) || U, I = /* @__PURE__ */ l.createElement(_, {
19
- id: y,
20
- htmlFor: a === "label" ? P : void 0,
21
- className: t,
22
- style: F ? S : void 0
23
- }, h ? /* @__PURE__ */ l.createElement(l.Fragment, null, b, f) : /* @__PURE__ */ l.createElement(l.Fragment, null, f, b));
24
- return c ? /* @__PURE__ */ l.createElement("div", null, E === u.TOP ? c : null, I, E === u.BOTTOM ? c : null) : I;
25
- }, v = ({ className: e }) => {
26
- const { t } = D(), { requiredIndicatorType: n } = m();
27
- return n === d.TEXT ? /* @__PURE__ */ l.createElement("span", {
28
- className: e,
29
- "aria-hidden": "true"
30
- }, t("settings.required-indicator-text")) : /* @__PURE__ */ l.createElement("span", {
31
- className: e,
32
- "aria-hidden": "true"
33
- }, "*");
34
- }, x = ({ className: e }) => {
35
- const { media: t, mediaSettings: n } = m();
36
- if (!t)
37
- return null;
38
- const a = N(t, t.width, t.height);
39
- return a ? /* @__PURE__ */ l.createElement("img", {
40
- className: e,
41
- src: a,
42
- alt: t.altText || "",
43
- "data-fit": n == null ? void 0 : n.imageFit,
44
- "data-alignment": n == null ? void 0 : n.imageAlignment
45
- }) : null;
46
- };
47
- i.Required = v;
48
- i.Image = x;
49
- export {
50
- i as L,
51
- N as g
52
- };
@@ -1,172 +0,0 @@
1
- import t, { useRef as F, useCallback as P } from "react";
2
- import q from "@wix/editor-react-components/AnimatedIcon";
3
- import v from "classnames";
4
- import { bj as B, bd as A, ai as R, b as k, ah as y, ad as M, ac as U, ag as D } from "./form-DtzwuBIo.js";
5
- import { ProgressBar as W, Button as C } from "react-aria-components";
6
- import { f as m } from "./find-child-C60k4CxG.js";
7
- import { u as N } from "./use-element-state-class-name-BrgdwHYP.js";
8
- function V(e) {
9
- const s = "calc(50% - 2px)";
10
- return /* @__PURE__ */ t.createElement(W, {
11
- ...e,
12
- isIndeterminate: !0
13
- }, ({ percentage: n, isIndeterminate: i }) => /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("svg", {
14
- fill: "none",
15
- width: "100%",
16
- height: "100%",
17
- viewBox: "0 0 32 32"
18
- }, /* @__PURE__ */ t.createElement("circle", {
19
- cx: "50%",
20
- cy: "50%",
21
- r: s
22
- }), /* @__PURE__ */ t.createElement("circle", {
23
- cx: "50%",
24
- cy: "50%",
25
- r: s,
26
- // Normalize the path length to 100 so we can easily set stroke-dasharray/-offset to a percentage.
27
- pathLength: "100",
28
- strokeDasharray: i || n == null ? "25 100" : "100 100",
29
- strokeDashoffset: i || n == null ? 0 : 100 - n,
30
- strokeLinecap: "round"
31
- }, i && /* @__PURE__ */ t.createElement("animateTransform", {
32
- attributeName: "transform",
33
- type: "rotate",
34
- // Rotate around the circle's own center (viewBox is 32x32), not the SVG origin.
35
- values: "0 16 16;360 16 16",
36
- dur: "0.75s",
37
- repeatCount: "indefinite"
38
- })))));
39
- }
40
- const u = ({ children: e }) => {
41
- const { id: o, FieldLayout: s } = B(), n = m(e, u.SubmitButton);
42
- return /* @__PURE__ */ t.createElement(s, {
43
- fieldId: o,
44
- renderLabel: () => null,
45
- renderInput: () => /* @__PURE__ */ t.createElement(t.Fragment, null, n),
46
- renderDescription: () => null
47
- });
48
- }, _ = ({ className: e, children: o }) => {
49
- const s = m(o, L), n = m(o, I), i = m(o, l);
50
- return /* @__PURE__ */ t.createElement("div", {
51
- className: e
52
- }, s, n, i);
53
- }, L = ({ className: e }) => {
54
- const { showPreviousButton: o, onPreviousClick: s, previousText: n } = B();
55
- return o ? /* @__PURE__ */ t.createElement(C, {
56
- className: e,
57
- onPress: s
58
- }, n) : null;
59
- }, I = ({ className: e }) => {
60
- const { showNextButton: o, onNextClick: s, nextText: n } = B();
61
- return o ? /* @__PURE__ */ t.createElement(C, {
62
- className: e,
63
- onPress: s
64
- }, n) : null;
65
- }, l = ({ className: e, onHoverStart: o, onHoverEnd: s, children: n }) => {
66
- const { showSubmitButton: i, onSubmitClick: f, submitText: p, isDisabled: x, isInProgress: b, isSubmitting: g } = B();
67
- if (!i)
68
- return null;
69
- const E = m(n, l.Label), d = m(n, l.Icon), S = m(n, l.Loader), c = g || b;
70
- return /* @__PURE__ */ t.createElement(C, {
71
- className: e,
72
- "aria-label": p,
73
- onPress: c ? void 0 : f,
74
- onHoverStart: o,
75
- onHoverEnd: s,
76
- isDisabled: x && !c,
77
- "aria-disabled": c || void 0,
78
- "data-in-progress": b
79
- }, b && S ? S : /* @__PURE__ */ t.createElement(t.Fragment, null, E ?? /* @__PURE__ */ t.createElement(H, null), d));
80
- }, H = ({ className: e }) => {
81
- const { submitText: o } = B();
82
- return /* @__PURE__ */ t.createElement("span", {
83
- className: e
84
- }, o);
85
- }, j = ({ children: e }) => /* @__PURE__ */ t.createElement(t.Fragment, null, e), X = ({ className: e }) => /* @__PURE__ */ t.createElement("span", {
86
- className: e
87
- }, /* @__PURE__ */ t.createElement(V, null));
88
- l.Label = H;
89
- l.Icon = j;
90
- l.Loader = X;
91
- _.PreviousButton = L;
92
- _.NextButton = I;
93
- _.SubmitButton = l;
94
- u.SubmitButton = _;
95
- const $ = "_navigationContainer_1vqug_1", z = "_rowSpacing_1vqug_6", G = "_navigationButton_1vqug_10", J = "_nextButton_1vqug_29", K = "_previousButton_1vqug_55", Q = "_navigationButtonHover_1vqug_85", Y = "_button_1vqug_101", Z = "_buttonNoSteps_1vqug_149", tt = "_buttonWithSteps_1vqug_153", et = "_buttonHover_1vqug_157", nt = "_progress_1vqug_181", a = {
96
- navigationContainer: $,
97
- rowSpacing: z,
98
- navigationButton: G,
99
- nextButton: J,
100
- previousButton: K,
101
- navigationButtonHover: Q,
102
- button: Y,
103
- buttonNoSteps: Z,
104
- buttonWithSteps: tt,
105
- buttonHover: et,
106
- progress: nt
107
- }, ot = () => {
108
- var T, h;
109
- const { hasSteps: e, showPreviousButton: o, isDisabled: s, isInProgress: n, isSubmitting: i } = B(), p = !s && !(i || n), { wix: x, className: b, ...g } = ((h = (T = A().submitButton) == null ? void 0 : T.elementProps) == null ? void 0 : h.icon) ?? {}, E = N({
110
- globalClasses: M,
111
- moduleClasses: {
112
- base: v(a.navigationButton, a.previousButton),
113
- hover: a.navigationButtonHover
114
- }
115
- }), d = N({
116
- globalClasses: U,
117
- moduleClasses: {
118
- base: v(a.navigationButton, a.nextButton),
119
- hover: a.navigationButtonHover
120
- }
121
- }), S = N({
122
- globalClasses: D,
123
- moduleClasses: {
124
- base: v(a.button, {
125
- [a.buttonNoSteps]: !e,
126
- [a.buttonWithSteps]: e
127
- }),
128
- hover: a.buttonHover
129
- }
130
- }), c = F(null), O = P(() => {
131
- var r;
132
- return (r = c.current) == null ? void 0 : r.runAnimationForward();
133
- }, []), w = P(() => {
134
- var r;
135
- return (r = c.current) == null ? void 0 : r.runAnimationBackward();
136
- }, []);
137
- return /* @__PURE__ */ t.createElement(u, null, /* @__PURE__ */ t.createElement(u.SubmitButton, {
138
- className: v({
139
- [a.navigationContainer]: e,
140
- [a.rowSpacing]: o
141
- })
142
- }, /* @__PURE__ */ t.createElement(u.SubmitButton.PreviousButton, {
143
- className: ({ isHovered: r }) => E({
144
- isSelected: !1,
145
- isHovered: r
146
- })
147
- }), /* @__PURE__ */ t.createElement(u.SubmitButton.NextButton, {
148
- className: ({ isHovered: r }) => d({
149
- isSelected: !1,
150
- isHovered: r
151
- })
152
- }), /* @__PURE__ */ t.createElement(u.SubmitButton.SubmitButton, {
153
- className: ({ isHovered: r }) => S({
154
- isSelected: !1,
155
- isHovered: r,
156
- isInteractive: p
157
- }),
158
- onHoverStart: O,
159
- onHoverEnd: w
160
- }, /* @__PURE__ */ t.createElement(u.SubmitButton.SubmitButton.Label, {
161
- className: R
162
- }), /* @__PURE__ */ t.createElement(u.SubmitButton.SubmitButton.Icon, null, g.svg ? /* @__PURE__ */ t.createElement(q, {
163
- ...g,
164
- ref: c,
165
- className: v(k, y, b)
166
- }) : null), /* @__PURE__ */ t.createElement(u.SubmitButton.SubmitButton.Loader, {
167
- className: a.progress
168
- }))));
169
- }, mt = () => /* @__PURE__ */ t.createElement(ot, null);
170
- export {
171
- mt as SubmitButtonRAC
172
- };
@@ -1,6 +0,0 @@
1
- import { ab as a } from "./form-DtzwuBIo.js";
2
- import { u as e } from "./use-hoverable-input-class-name-qVo45l-t.js";
3
- const m = (...s) => e(a, s);
4
- export {
5
- m as u
6
- };