@wix/form-elements 1.135.0 → 1.137.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-DETLNlLb.js +1010 -0
  2. package/dist/component/{bookings-address-rac-BK-sU26E.js → bookings-address-rac-ZLK-g-4b.js} +1 -1
  3. package/dist/component/{bookings-email-rac-DZ3HVkyn.js → bookings-email-rac-C-406Pj1.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-Ci4PHqOr.js → bookings-first-name-rac-ClxJPAU2.js} +1 -1
  5. package/dist/component/{bookings-header-rac-C_MYNrDA.js → bookings-header-rac-B_xKyowA.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-CdNlwyjm.js → bookings-last-name-rac-DcExtGsO.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-CP2JcaVr.js → bookings-login-bar-rac-B5Gpk-kG.js} +6 -6
  8. package/dist/component/{bookings-phone-rac-BV8sqxil.js → bookings-phone-rac-DJSSDoRL.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-DQtcYRsh.js → bookings-rich-text-rac-D-v6z1Fs.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-DPNqHTNc.js → checkbox-field-rac-DJmjpsmU.js} +121 -121
  11. package/dist/component/{checkbox-group-field-headless-DhhynlgN.js → checkbox-group-field-headless-C4A_Kv1U.js} +19 -19
  12. package/dist/component/{checkbox-group-field-rac-B3zOW7qr.js → checkbox-group-field-rac-M1l5h3ii.js} +4 -4
  13. package/dist/component/{checkbox-group-rac-Qy03hO31.js → checkbox-group-rac-DRdzHVfR.js} +1 -1
  14. package/dist/component/{checkbox-rac-DYr3RaHj.js → checkbox-rac-Cyhg2Wvd.js} +1 -1
  15. package/dist/component/{contacts-address-rac-Bi-etpfX.js → contacts-address-rac-BQvrTPCI.js} +1 -1
  16. package/dist/component/{contacts-birthdate-rac-D2LLjX9P.js → contacts-birthdate-rac-DIMg-UlR.js} +1 -1
  17. package/dist/component/{contacts-company-rac-C9ImoG_i.js → contacts-company-rac-OgWSVsmZ.js} +1 -1
  18. package/dist/component/{contacts-email-rac-DeGblC9V.js → contacts-email-rac-39IQYxTe.js} +1 -1
  19. package/dist/component/{contacts-first-name-rac-Xk3m57jK.js → contacts-first-name-rac-CjwVQGS7.js} +1 -1
  20. package/dist/component/{contacts-last-name-rac-BKE-1IYB.js → contacts-last-name-rac-C6ftvjMG.js} +1 -1
  21. package/dist/component/{contacts-phone-rac-CHmtTutD.js → contacts-phone-rac-ldsxrFQH.js} +1 -1
  22. package/dist/component/{contacts-position-rac-BS3TySLG.js → contacts-position-rac-3RzQeh2P.js} +1 -1
  23. package/dist/component/{contacts-subscribe-rac--fpczJiB.js → contacts-subscribe-rac-CfuH705u.js} +1 -1
  24. package/dist/component/{contacts-tax-id-rac-CHkn8vkL.js → contacts-tax-id-rac-D85Dm5Pa.js} +1 -1
  25. package/dist/component/{date-availability-70Vb-dlb.js → date-availability-DcYOAszO.js} +1 -1
  26. package/dist/component/{date-input-field-rac-BlkYEYM_.js → date-input-field-rac-D4cr7NGI.js} +52 -52
  27. package/dist/component/{date-input-rac-JdNFk07Q.js → date-input-rac-BwJwmoZr.js} +1 -1
  28. package/dist/component/{date-picker-field-rac-DHu11mY1.js → date-picker-field-rac-C-IM7SHk.js} +5 -5
  29. package/dist/component/{date-picker-rac-CZtWhFzM.js → date-picker-rac-BkAp8Bgb.js} +1 -1
  30. package/dist/component/{date-time-input-field-rac-cHAALqS5.js → date-time-input-field-rac-DGCd-WUh.js} +58 -58
  31. package/dist/component/{date-time-input-rac-Dz7GfoJO.js → date-time-input-rac-ClLzxACj.js} +1 -1
  32. package/dist/component/{dext-checkbox-group-rac-ZNKzyWda.js → dext-checkbox-group-rac-DI26D3eR.js} +4 -4
  33. package/dist/component/{dext-checkbox-rac-DfPFXrKu.js → dext-checkbox-rac-CRJq1RxN.js} +1 -1
  34. package/dist/component/{dext-date-picker-rac-BPbl65qK.js → dext-date-picker-rac-CvzQs_Te.js} +1 -1
  35. package/dist/component/{dext-date-time-input-rac-D5ywbLtW.js → dext-date-time-input-rac-Dtysjtim.js} +1 -1
  36. package/dist/component/{dext-dropdown-rac-BuVsPZOU.js → dext-dropdown-rac-DHGo26Az.js} +1 -1
  37. package/dist/component/{dext-email-rac-DRjt3lqT.js → dext-email-rac-BpnNEdVF.js} +1 -1
  38. package/dist/component/{dext-number-input-rac-Bzrl87fo.js → dext-number-input-rac-C5iW_ei6.js} +1 -1
  39. package/dist/component/{dext-phone-rac-LibvQb8h.js → dext-phone-rac-KCTWlcaK.js} +1 -1
  40. package/dist/component/{dext-radio-group-rac-BTWnIvwW.js → dext-radio-group-rac-ad6j8I4s.js} +4 -4
  41. package/dist/component/{dext-rating-input-rac-DTlnOcC8.js → dext-rating-input-rac-B4AvCMi0.js} +1 -1
  42. package/dist/component/{dext-tags-rac-YdeijviH.js → dext-tags-rac-BMathc_H.js} +4 -4
  43. package/dist/component/{dext-text-area-rac-CdCzQYey.js → dext-text-area-rac-Xb-pGhSZ.js} +1 -1
  44. package/dist/component/{dext-text-input-rac-B28RTezm.js → dext-text-input-rac-CSE8qfGF.js} +1 -1
  45. package/dist/component/{dext-url-input-rac-B0ZBPbAb.js → dext-url-input-rac-Bq4iz5z9.js} +1 -1
  46. package/dist/component/donation-rac-DRUbysCr.js +306 -0
  47. package/dist/component/{dropdown-field-headless-DVZnbZAM.js → dropdown-field-headless-DO592qOP.js} +8 -8
  48. package/dist/component/{dropdown-field-rac-DWCj_Grt.js → dropdown-field-rac-C2yjQI-C.js} +7 -7
  49. package/dist/component/{dropdown-rac-Bpo-F5sc.js → dropdown-rac-DlrGt2kE.js} +1 -1
  50. package/dist/component/{ecom-address-rac-vJ0ku_Ld.js → ecom-address-rac-D_StW_li.js} +1 -1
  51. package/dist/component/{ecom-subscription-checkbox-rac-DgVReM6c.js → ecom-subscription-checkbox-rac-CrdttyUU.js} +2 -2
  52. package/dist/component/{email-input-field-rac-BXJGOBg-.js → email-input-field-rac-DqXazwV3.js} +46 -46
  53. package/dist/component/{events-repeater-rac-CrXE_ppd.js → events-repeater-rac-DDpRs7rY.js} +23 -23
  54. package/dist/component/{events-rsvp-rac-BGg3P1CQ.js → events-rsvp-rac-BN9axMYX.js} +10 -10
  55. package/dist/component/{field-error-headless-C3eOy1_l.js → field-error-headless-JU1yiTVE.js} +6 -6
  56. package/dist/component/{field-label-headless-BMmR_IeF.js → field-label-headless-CD4_8Ros.js} +7 -7
  57. package/dist/component/{file-upload-rac-Umix6wXx.js → file-upload-rac-CQTx6hEf.js} +50 -50
  58. package/dist/component/{fixed-payment-rac-CfIJCBjb.js → fixed-payment-rac-B5cRBcxY.js} +12 -12
  59. package/dist/component/{form-CYPNOMwk.js → form-Mla9_phC.js} +831 -823
  60. package/dist/component/form.css +1 -1
  61. package/dist/component/form.js +1 -1
  62. package/dist/component/{header-field-rac-oxHUTKYV.js → header-field-rac-B_F66ChH.js} +4 -4
  63. package/dist/component/{header-rac-DTGV923r.js → header-rac-BX6Df8ej.js} +1 -1
  64. package/dist/component/{image-choice-rac-B9JGl_h7.js → image-choice-rac-Ce01EhFJ.js} +32 -32
  65. package/dist/component/{index-C_ktc-yO.js → index-Ch7II1GU.js} +5 -5
  66. package/dist/component/{index-BOKSOnDK.js → index-DoIW9Cb6.js} +107 -107
  67. package/dist/component/{isObjectLike-Di8V7txC.js → isObjectLike-C1TnJWn6.js} +7 -7
  68. package/dist/component/{multiline-address-field-rac-zgmTbXlg.js → multiline-address-field-rac-DVDEcHtq.js} +115 -115
  69. package/dist/component/{multiline-address-rac-Cyb3dvBf.js → multiline-address-rac-BJ8ln_G5.js} +1 -1
  70. package/dist/component/{number-input-field-rac-DquqqRy_.js → number-input-field-rac-DTfx9YgL.js} +24 -24
  71. package/dist/component/{number-input-rac-G2DdTbk2.js → number-input-rac-pg7cmYpS.js} +1 -1
  72. package/dist/component/{password-rac-DJCU0F38.js → password-rac-D8BKTB_H.js} +50 -50
  73. package/dist/component/{payment-input-rac-DlIYza6N.js → payment-input-rac-HBquclKy.js} +38 -38
  74. package/dist/component/{phone-input-field-rac-B10TInMa.js → phone-input-field-rac-Fgfg5HwA.js} +56 -56
  75. package/dist/component/{phone-rac-BuyttJpM.js → phone-rac-pivMTIyc.js} +1 -1
  76. package/dist/component/{product-list-rac-WrSJwQ_g.js → product-list-rac-DauIxK2R.js} +61 -61
  77. package/dist/component/{quiz-radio-group-rac-CHxZ_pK_.js → quiz-radio-group-rac-B0OtjxKf.js} +1 -1
  78. package/dist/component/{radio-button-module-classes-DjJU-8ZB.js → radio-button-module-classes-Cu3KM625.js} +3 -3
  79. package/dist/component/{radio-group-field-rac-BImiqcKa.js → radio-group-field-rac-0dJHtf3G.js} +10 -10
  80. package/dist/component/{radio-group-rac-CDkJeGpN.js → radio-group-rac-CqtO1JqM.js} +1 -1
  81. package/dist/component/{rating-input-field-rac-Dsr_S5qN.js → rating-input-field-rac-CMny6OSF.js} +28 -28
  82. package/dist/component/{rating-input-rac-BJUW8U93.js → rating-input-rac-DA4iU_-m.js} +1 -1
  83. package/dist/component/{rich-content-rac.module-BfQJqA-x.js → rich-content-rac.module-CZX0cZst.js} +3 -3
  84. package/dist/component/{rich-text-field-rac-DIuZbu_u.js → rich-text-field-rac-Dtm6xFcj.js} +7 -7
  85. package/dist/component/{rich-text-rac-C39fpEiP.js → rich-text-rac-ClqIW5ds.js} +1 -1
  86. package/dist/component/service-dropdown-rac-_4T1OZGq.js +146 -0
  87. package/dist/component/{services-multi-choice-rac-GVb4qA7g.js → services-multi-choice-rac-BVim-jnM.js} +7 -7
  88. package/dist/component/{signature-rac-nC5pr6nB.js → signature-rac-D7w8WTLO.js} +73 -73
  89. package/dist/component/{submit-button-rac-eUjgrx9Q.js → submit-button-rac-BkUDj1dU.js} +12 -12
  90. package/dist/component/{tags-field-rac-zv30chSd.js → tags-field-rac-Di1aK4E2.js} +27 -27
  91. package/dist/component/{tags-rac-PnS2SxVP.js → tags-rac-CJ5f4Doi.js} +1 -1
  92. package/dist/component/{text-area-field-rac-DLeOMD4g.js → text-area-field-rac-DFjrT9fs.js} +16 -16
  93. package/dist/component/{text-area-rac-jZ_mh45C.js → text-area-rac-DBANidv_.js} +1 -1
  94. package/dist/component/{text-input-field-rac-DifV7Erd.js → text-input-field-rac-DJDzqR6d.js} +5 -5
  95. package/dist/component/{text-input-headless-DhVEjorY.js → text-input-headless-CG4wbxMG.js} +6 -6
  96. package/dist/component/{text-input-rac-Ce4qKN9M.js → text-input-rac-V0tK1Gj2.js} +1 -1
  97. package/dist/component/{time-input-rac-1kW3aDIo.js → time-input-rac-LSoyg8Ao.js} +46 -46
  98. package/dist/component/{url-input-field-rac-D9xXAQCq.js → url-input-field-rac-DI0SdDI0.js} +23 -23
  99. package/dist/component/{url-input-rac-SaAybDdN.js → url-input-rac-obx2Uf2F.js} +1 -1
  100. package/dist/component/{use-dropdown-option-class-name-C_MO_0JS.js → use-dropdown-option-class-name-BM-NiVtO.js} +2 -2
  101. package/dist/component/{use-dropdown-trigger-class-name-D7EMiD-M.js → use-dropdown-trigger-class-name-BHwQ-wZa.js} +4 -4
  102. package/dist/component/{use-element-state-class-name-DZFi3Z42.js → use-element-state-class-name-DAYz5X_i.js} +1 -1
  103. package/dist/component/{use-hoverable-input-class-name-JAZ1mif0.js → use-hoverable-input-class-name-DZ-4NGpv.js} +2 -2
  104. package/dist/component/{use-service-options-base-ZX4iaxzr.js → use-service-options-base-BOjt2sg9.js} +4 -4
  105. package/dist/component/use-text-input-class-name-Bqj4OoIw.js +6 -0
  106. package/package.json +2 -2
  107. package/dist/component/appointment-rac-CYCddSl9.js +0 -1010
  108. package/dist/component/donation-rac-_0cwsIAq.js +0 -314
  109. package/dist/component/service-dropdown-rac-Bc9hEpx3.js +0 -146
  110. package/dist/component/use-text-input-class-name-XFjQX8q1.js +0 -6
@@ -2,20 +2,20 @@ import { RicosViewer as N } from "@wix/ricos/viewer";
2
2
  import o from "classnames";
3
3
  import r, { useCallback as T, useRef as O } from "react";
4
4
  import { TextField as S, TextArea as y } from "react-aria-components";
5
- import { bh as p, be as d, bj as x, I as h, U as g, v, p as M } from "./form-CYPNOMwk.js";
5
+ import { bj as p, bg as d, bl as x, M as g, Y as h, G as M, u as v } from "./form-Mla9_phC.js";
6
6
  import { f as i } from "./find-child-C60k4CxG.js";
7
- import { D as q, E as B } from "./field-error-headless-C3eOy1_l.js";
8
- import { L as k } from "./field-label-headless-BMmR_IeF.js";
7
+ import { D as q, E as B } from "./field-error-headless-JU1yiTVE.js";
8
+ import { L as k } from "./field-label-headless-CD4_8Ros.js";
9
9
  import { E as P } from "./error-icon-hZxQ6DEy.js";
10
10
  import { s as c } from "./field-rac.module-DfEb7pBp.js";
11
- import { u as U } from "./use-text-input-class-name-XFjQX8q1.js";
11
+ import { u as V } from "./use-text-input-class-name-Bqj4OoIw.js";
12
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: F } = d(), L = T((A) => {
13
+ const { id: a, value: m, onChange: s, disabled: u, required: n, readOnly: l, onBlur: E, onFocus: b, FieldLayout: I, hasError: f } = p(), { labelId: F } = d(), L = T((A) => {
14
14
  s(A);
15
15
  }, [
16
16
  s
17
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, {
18
+ return /* @__PURE__ */ r.createElement(I, {
19
19
  fieldId: a,
20
20
  renderLabel: () => R,
21
21
  renderInput: () => /* @__PURE__ */ r.createElement(S, {
@@ -27,11 +27,11 @@ const e = ({ children: t }) => {
27
27
  isRequired: n,
28
28
  isInvalid: f,
29
29
  onBlur: E,
30
- onFocus: I
30
+ onFocus: b
31
31
  }, D),
32
32
  renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, C, _)
33
33
  });
34
- }, V = ({ className: t }) => {
34
+ }, j = ({ className: t }) => {
35
35
  const { inputId: a, ariaDescribedBy: m } = d(), { id: s, placeholder: u } = p(), n = O(null);
36
36
  return x(() => {
37
37
  var l;
@@ -45,26 +45,26 @@ const e = ({ children: t }) => {
45
45
  });
46
46
  };
47
47
  e.Label = k;
48
- e.Input = V;
48
+ e.Input = j;
49
49
  e.Description = q;
50
50
  e.Error = B;
51
- const j = "_input_ug5v8_1", w = {
52
- input: j
51
+ const w = "_input_ug5v8_1", G = {
52
+ input: w
53
53
  }, Q = ({ content: t, locale: a }) => /* @__PURE__ */ r.createElement(N, {
54
54
  content: t,
55
55
  locale: a
56
56
  }), re = () => {
57
- const t = U(w.input);
57
+ const t = V(G.input);
58
58
  return /* @__PURE__ */ r.createElement(e, null, /* @__PURE__ */ r.createElement(e.Label, {
59
- className: o(h, c.label)
59
+ className: o(g, c.label)
60
60
  }, /* @__PURE__ */ r.createElement(e.Label.Required, {
61
- className: o(g, c.requiredMark)
61
+ className: o(h, c.requiredMark)
62
62
  })), /* @__PURE__ */ r.createElement(e.Input, {
63
63
  className: t
64
64
  }), /* @__PURE__ */ r.createElement(e.Error, {
65
- className: o(v, c.error)
65
+ className: o(M, c.error)
66
66
  }, /* @__PURE__ */ r.createElement(P, null), /* @__PURE__ */ r.createElement(e.Error.Text, null)), /* @__PURE__ */ r.createElement(e.Description, {
67
- className: o(M, c.description)
67
+ className: o(v, c.description)
68
68
  }, Q));
69
69
  };
70
70
  export {
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { T as r } from "./text-area-field-rac-DLeOMD4g.js";
2
+ import { T as r } from "./text-area-field-rac-DFjrT9fs.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-DhVEjorY.js";
4
+ import { T as r } from "./text-input-headless-CG4wbxMG.js";
5
5
  import { E as o } from "./error-icon-hZxQ6DEy.js";
6
6
  import { s as a } from "./field-rac.module-DfEb7pBp.js";
7
- import { I as n, U as c, v as E, p as i } from "./form-CYPNOMwk.js";
8
- import { u as p } from "./use-text-input-class-name-XFjQX8q1.js";
9
- const I = ({ content: s, locale: m }) => /* @__PURE__ */ e.createElement(l, {
7
+ import { M as n, Y as c, G as E, u as i } from "./form-Mla9_phC.js";
8
+ import { u as p } from "./use-text-input-class-name-Bqj4OoIw.js";
9
+ const u = ({ content: s, locale: m }) => /* @__PURE__ */ e.createElement(l, {
10
10
  content: s,
11
11
  locale: m
12
12
  }), C = () => {
@@ -21,7 +21,7 @@ const I = ({ 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
- }, I));
24
+ }, u));
25
25
  };
26
26
  export {
27
27
  C as T
@@ -1,9 +1,9 @@
1
1
  import t, { useRef as L } from "react";
2
- import { TextField as R, Input as h } from "react-aria-components";
3
- import { bh as d, be as c, bj as v } from "./form-CYPNOMwk.js";
2
+ import { TextField as R, Input as g } from "react-aria-components";
3
+ import { bj as d, bg as c, bl as v } from "./form-Mla9_phC.js";
4
4
  import { f as s } from "./find-child-C60k4CxG.js";
5
- import { D as T, E as g } from "./field-error-headless-C3eOy1_l.js";
6
- import { L as x } from "./field-label-headless-BMmR_IeF.js";
5
+ import { D as T, E as h } from "./field-error-headless-JU1yiTVE.js";
6
+ import { L as x } from "./field-label-headless-CD4_8Ros.js";
7
7
  const e = ({ children: r }) => {
8
8
  const { id: a, value: i, onChange: l, disabled: u, readOnly: n, required: o, hasError: p, onBlur: m, onFocus: b, FieldLayout: f } = d(), { labelId: E } = c(), I = s(r, e.Label), F = s(r, e.Input), y = s(r, e.Description), D = s(r, e.Error);
9
9
  return /* @__PURE__ */ t.createElement(f, {
@@ -27,7 +27,7 @@ const e = ({ children: r }) => {
27
27
  return v(() => {
28
28
  var o;
29
29
  (o = n.current) == null || o.focus();
30
- }, a), /* @__PURE__ */ t.createElement(h, {
30
+ }, a), /* @__PURE__ */ t.createElement(g, {
31
31
  ref: n,
32
32
  id: l,
33
33
  "aria-describedby": u,
@@ -38,7 +38,7 @@ const e = ({ children: r }) => {
38
38
  e.Label = x;
39
39
  e.Input = B;
40
40
  e.Description = T;
41
- e.Error = g;
41
+ e.Error = h;
42
42
  export {
43
43
  e as T
44
44
  };
@@ -1,5 +1,5 @@
1
1
  import t from "react";
2
- import { T as e } from "./text-input-field-rac-DifV7Erd.js";
2
+ import { T as e } from "./text-input-field-rac-DJDzqR6d.js";
3
3
  const o = () => /* @__PURE__ */ t.createElement(e, null);
4
4
  export {
5
5
  o as TextInputRAC
@@ -1,87 +1,87 @@
1
1
  import e, { useCallback as H, useRef as j, useContext as V } from "react";
2
- import { RicosViewer as v } from "@wix/ricos/viewer";
2
+ import { RicosViewer as x } from "@wix/ricos/viewer";
3
3
  import m from "classnames";
4
- import { parseTime as x } from "@internationalized/date";
5
- import { TimeField as q, DateInput as z, DateSegment as _, TimeFieldStateContext as B } from "react-aria-components";
6
- import { bh as p, be as U, br as S, bj as w, I as Q, U as G, v as J, p as K } from "./form-CYPNOMwk.js";
4
+ import { parseTime as q } from "@internationalized/date";
5
+ import { TimeField as v, DateInput as z, DateSegment as _, TimeFieldStateContext as B } from "react-aria-components";
6
+ import { bj as p, bg as U, bt as S, bl as w, M as G, Y as Q, G as Y, u as J } from "./form-Mla9_phC.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-C3eOy1_l.js";
9
- import { L as Y } from "./field-label-headless-BMmR_IeF.js";
8
+ import { D as K, E as W } from "./field-error-headless-JU1yiTVE.js";
9
+ import { L as X } from "./field-label-headless-CD4_8Ros.js";
10
10
  import { E as Z } from "./error-icon-hZxQ6DEy.js";
11
11
  import { H as T } from "./custom-focus-class-_483Pkwp.js";
12
12
  import { s as f } from "./field-rac.module-DfEb7pBp.js";
13
- import { u as $ } from "./use-text-input-class-name-XFjQX8q1.js";
13
+ import { u as $ } from "./use-text-input-class-name-Bqj4OoIw.js";
14
14
  const r = ({ children: t }) => {
15
- const { id: n, value: l, onChange: a, disabled: i, readOnly: o, required: c, onBlur: s, onFocus: E, use24HourFormat: b, FieldLayout: C, hasError: I } = p(), { inputId: g, ariaDescribedBy: D, labelId: L } = U(), R = H((M) => {
15
+ const { id: n, value: s, onChange: a, disabled: i, readOnly: o, required: c, onBlur: l, onFocus: E, use24HourFormat: b, FieldLayout: g, hasError: C } = p(), { inputId: I, ariaDescribedBy: D, labelId: L } = U(), R = H((M) => {
16
16
  const k = ae(M);
17
17
  a(k);
18
18
  }, [
19
19
  a
20
- ]), N = u(t, r.Label), y = u(t, r.Time), P = u(t, r.Description), A = u(t, r.Error), O = ne(l);
21
- return /* @__PURE__ */ e.createElement(C, {
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(g, {
22
22
  fieldId: n,
23
23
  renderLabel: () => N,
24
- renderInput: () => /* @__PURE__ */ e.createElement(q, {
24
+ renderInput: () => /* @__PURE__ */ e.createElement(v, {
25
25
  "aria-labelledby": L,
26
- id: g,
26
+ id: I,
27
27
  "aria-describedby": D,
28
28
  value: O,
29
29
  onChange: R,
30
30
  isDisabled: i,
31
31
  isReadOnly: o,
32
- isInvalid: I,
32
+ isInvalid: C,
33
33
  isRequired: c,
34
- onBlur: s,
34
+ onBlur: l,
35
35
  onFocus: E,
36
36
  hourCycle: b ? 24 : 12
37
37
  }, y),
38
38
  renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, A, P)
39
39
  });
40
40
  }, d = ({ children: t, className: n }) => {
41
- const { hasError: l, hidePlaceholder: a } = p(), i = u(t, d.Hour), o = u(t, d.Minute), c = u(t, d.Period);
41
+ const { hasError: s, hidePlaceholder: a } = p(), i = u(t, d.Hour), o = u(t, d.Minute), c = u(t, d.Period);
42
42
  return /* @__PURE__ */ e.createElement(z, {
43
43
  className: n,
44
- "data-invalid": l || void 0,
44
+ "data-invalid": s || void 0,
45
45
  "data-placeholder-hidden": a || void 0
46
- }, (s) => {
47
- switch (s.type) {
46
+ }, (l) => {
47
+ switch (l.type) {
48
48
  case "hour":
49
49
  return F(i, {
50
- segment: s
50
+ segment: l
51
51
  }) || /* @__PURE__ */ e.createElement(e.Fragment, null);
52
52
  case "minute":
53
53
  return F(o, {
54
- segment: s
54
+ segment: l
55
55
  }) || /* @__PURE__ */ e.createElement(e.Fragment, null);
56
56
  case "dayPeriod":
57
57
  return F(c, {
58
- segment: s
58
+ segment: l
59
59
  }) || /* @__PURE__ */ e.createElement(e.Fragment, null);
60
60
  case "literal":
61
61
  return /* @__PURE__ */ e.createElement(_, {
62
- segment: s
62
+ segment: l
63
63
  });
64
64
  default:
65
65
  return /* @__PURE__ */ e.createElement(e.Fragment, null);
66
66
  }
67
67
  });
68
68
  }, ee = ({ className: t, ...n }) => {
69
- const { id: l, hidePlaceholder: a } = p(), { segment: i } = n, { t: o } = S(), c = j(null);
69
+ const { id: s, hidePlaceholder: a } = p(), { segment: i } = n, { t: o } = S(), c = j(null);
70
70
  w(() => {
71
71
  var E;
72
72
  (E = c.current) == null || E.focus();
73
- }, l);
74
- const s = a ? void 0 : o("field.date.placeholder.hour");
73
+ }, s);
74
+ const l = a ? void 0 : o("field.date.placeholder.hour");
75
75
  return /* @__PURE__ */ e.createElement(_, {
76
76
  ref: c,
77
77
  segment: i,
78
78
  className: t,
79
- ...s && {
80
- placeholder: s
79
+ ...l && {
80
+ placeholder: l
81
81
  }
82
82
  });
83
83
  }, te = ({ className: t, ...n }) => {
84
- const { hidePlaceholder: l } = p(), { segment: a } = n, { t: i } = S(), o = l ? void 0 : i("field.date.placeholder.minute");
84
+ const { hidePlaceholder: s } = p(), { segment: a } = n, { t: i } = S(), o = s ? void 0 : i("field.date.placeholder.minute");
85
85
  return /* @__PURE__ */ e.createElement(_, {
86
86
  segment: a,
87
87
  className: t,
@@ -90,11 +90,11 @@ const r = ({ children: t }) => {
90
90
  }
91
91
  });
92
92
  }, re = ({ className: t, ...n }) => {
93
- const { hidePlaceholder: l } = p(), { segment: a } = n, { t: i } = S(), o = V(B), c = l ? void 0 : i("field.date.placeholder.period"), s = () => o == null ? void 0 : o.increment("dayPeriod");
93
+ const { hidePlaceholder: s } = p(), { segment: a } = n, { t: i } = S(), o = V(B), c = s ? void 0 : i("field.date.placeholder.period"), l = () => o == null ? void 0 : o.increment("dayPeriod");
94
94
  return /* @__PURE__ */ e.createElement(_, {
95
95
  segment: a,
96
96
  className: t,
97
- onClick: s,
97
+ onClick: l,
98
98
  ...c && {
99
99
  placeholder: c
100
100
  }
@@ -103,15 +103,15 @@ const r = ({ children: t }) => {
103
103
  d.Hour = ee;
104
104
  d.Minute = te;
105
105
  d.Period = re;
106
- r.Label = Y;
106
+ r.Label = X;
107
107
  r.Time = d;
108
- r.Description = W;
109
- r.Error = X;
108
+ r.Description = K;
109
+ r.Error = W;
110
110
  function ne(t) {
111
111
  if (!t)
112
112
  return null;
113
113
  try {
114
- return x(t);
114
+ return q(t);
115
115
  } catch {
116
116
  return null;
117
117
  }
@@ -119,27 +119,27 @@ function ne(t) {
119
119
  function ae(t) {
120
120
  if (!t)
121
121
  return null;
122
- const n = String(t.hour).padStart(2, "0"), l = String(t.minute).padStart(2, "0"), a = String(t.second).padStart(2, "0");
122
+ const n = String(t.hour).padStart(2, "0"), s = String(t.minute).padStart(2, "0"), a = String(t.second).padStart(2, "0");
123
123
  return [
124
124
  n,
125
- l,
125
+ s,
126
126
  a
127
127
  ].join(":");
128
128
  }
129
- const oe = "_time_rzj2k_1", se = "_hour_rzj2k_14", le = "_minute_rzj2k_15", ie = "_period_rzj2k_16", h = {
129
+ const oe = "_time_rzj2k_1", le = "_hour_rzj2k_14", se = "_minute_rzj2k_15", ie = "_period_rzj2k_16", h = {
130
130
  time: oe,
131
- hour: se,
132
- minute: le,
131
+ hour: le,
132
+ minute: se,
133
133
  period: ie
134
- }, ce = ({ content: t, locale: n }) => /* @__PURE__ */ e.createElement(v, {
134
+ }, ce = ({ content: t, locale: n }) => /* @__PURE__ */ e.createElement(x, {
135
135
  content: t,
136
136
  locale: n
137
137
  }), me = () => {
138
138
  const t = $(h.time);
139
139
  return /* @__PURE__ */ e.createElement(r, null, /* @__PURE__ */ e.createElement(r.Label, {
140
- className: m(Q, f.label)
140
+ className: m(G, f.label)
141
141
  }, /* @__PURE__ */ e.createElement(r.Label.Required, {
142
- className: m(G, f.requiredMark)
142
+ className: m(Q, f.requiredMark)
143
143
  })), /* @__PURE__ */ e.createElement(r.Time, {
144
144
  className: t
145
145
  }, /* @__PURE__ */ e.createElement(r.Time.Hour, {
@@ -149,11 +149,11 @@ const oe = "_time_rzj2k_1", se = "_hour_rzj2k_14", le = "_minute_rzj2k_15", ie =
149
149
  }), /* @__PURE__ */ e.createElement(r.Time.Period, {
150
150
  className: m(h.period, T)
151
151
  })), /* @__PURE__ */ e.createElement(r.Error, {
152
- className: m(J, f.error)
152
+ className: m(Y, f.error)
153
153
  }, /* @__PURE__ */ e.createElement(Z, null), /* @__PURE__ */ e.createElement(r.Error.Text, null)), /* @__PURE__ */ e.createElement(r.Description, {
154
- className: m(K, f.description)
154
+ className: m(J, f.description)
155
155
  }, ce));
156
- }, ge = () => /* @__PURE__ */ e.createElement(me, null);
156
+ }, Ie = () => /* @__PURE__ */ e.createElement(me, null);
157
157
  export {
158
- ge as TimeInputRAC
158
+ Ie as TimeInputRAC
159
159
  };
@@ -1,17 +1,17 @@
1
- import { RicosViewer as N } from "@wix/ricos/viewer";
1
+ import { RicosViewer as S } from "@wix/ricos/viewer";
2
2
  import i from "classnames";
3
- import r, { useCallback as S, useRef as O } from "react";
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 { bh as d, be as E, bj as v, I as B, U as T, v as g, p as k } from "./form-CYPNOMwk.js";
5
+ import { bj as d, bg as E, bl as g, M as B, Y as M, G as T, u as k } from "./form-Mla9_phC.js";
6
6
  import { f as c } from "./find-child-C60k4CxG.js";
7
- import { D as M, E as P } from "./field-error-headless-C3eOy1_l.js";
8
- import { L as U } from "./field-label-headless-BMmR_IeF.js";
9
- import { u as q } from "./use-invoke-callback-UH73A_J3.js";
10
- import { E as x } from "./error-icon-hZxQ6DEy.js";
7
+ import { D as v, E as P } from "./field-error-headless-JU1yiTVE.js";
8
+ import { L as q } from "./field-label-headless-CD4_8Ros.js";
9
+ import { u as x } from "./use-invoke-callback-UH73A_J3.js";
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 w } from "./use-text-input-class-name-XFjQX8q1.js";
12
+ import { u as w } from "./use-text-input-class-name-Bqj4OoIw.js";
13
13
  const V = (t) => t ? `https://${String(t).replace(/^https?:\/\//, "")}` : "", e = ({ children: t }) => {
14
- const { id: o, value: s, onChange: n, disabled: m, readOnly: a, required: l, hasError: I, onBlur: b, onFocus: f, FieldLayout: R } = d(), { labelId: F } = E(), p = q(b), L = c(t, e.Label), D = c(t, e.Input), C = c(t, e.Description), _ = c(t, e.Error), h = S(() => {
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
15
  n(V(s)), p();
16
16
  }, [
17
17
  p,
@@ -26,21 +26,21 @@ const V = (t) => t ? `https://${String(t).replace(/^https?:\/\//, "")}` : "", e
26
26
  value: s ?? "",
27
27
  onChange: n,
28
28
  isDisabled: m,
29
- isReadOnly: a,
30
- isRequired: l,
29
+ isReadOnly: l,
30
+ isRequired: a,
31
31
  isInvalid: I,
32
- onBlur: h,
32
+ onBlur: N,
33
33
  onFocus: f
34
34
  }, D),
35
35
  renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, _, C)
36
36
  });
37
37
  }, W = ({ className: t }) => {
38
- const { id: o, placeholder: s } = d(), { inputId: n, ariaDescribedBy: m } = E(), a = O(null);
39
- return v(() => {
40
- var l;
41
- (l = a.current) == null || l.focus();
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
42
  }, o), /* @__PURE__ */ r.createElement(A, {
43
- ref: a,
43
+ ref: l,
44
44
  id: n,
45
45
  type: "url",
46
46
  "aria-describedby": m,
@@ -48,11 +48,11 @@ const V = (t) => t ? `https://${String(t).replace(/^https?:\/\//, "")}` : "", e
48
48
  placeholder: s
49
49
  });
50
50
  };
51
- e.Label = U;
51
+ e.Label = q;
52
52
  e.Input = W;
53
- e.Description = M;
53
+ e.Description = v;
54
54
  e.Error = P;
55
- const $ = ({ content: t, locale: o }) => /* @__PURE__ */ r.createElement(N, {
55
+ const $ = ({ content: t, locale: o }) => /* @__PURE__ */ r.createElement(S, {
56
56
  content: t,
57
57
  locale: o
58
58
  }), te = () => {
@@ -60,12 +60,12 @@ const $ = ({ content: t, locale: o }) => /* @__PURE__ */ r.createElement(N, {
60
60
  return /* @__PURE__ */ r.createElement(e, null, /* @__PURE__ */ r.createElement(e.Label, {
61
61
  className: i(B, u.label)
62
62
  }, /* @__PURE__ */ r.createElement(e.Label.Required, {
63
- className: i(T, u.requiredMark)
63
+ className: i(M, u.requiredMark)
64
64
  })), /* @__PURE__ */ r.createElement(e.Input, {
65
65
  className: t
66
66
  }), /* @__PURE__ */ r.createElement(e.Error, {
67
- className: i(g, u.error)
68
- }, /* @__PURE__ */ r.createElement(x, null), /* @__PURE__ */ r.createElement(e.Error.Text, null)), /* @__PURE__ */ r.createElement(e.Description, {
67
+ className: i(T, u.error)
68
+ }, /* @__PURE__ */ r.createElement(U, null), /* @__PURE__ */ r.createElement(e.Error.Text, null)), /* @__PURE__ */ r.createElement(e.Description, {
69
69
  className: i(k, u.description)
70
70
  }, $));
71
71
  };
@@ -1,5 +1,5 @@
1
1
  import r from "react";
2
- import { U as t } from "./url-input-field-rac-D9xXAQCq.js";
2
+ import { U as t } from "./url-input-field-rac-DI0SdDI0.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 T from "classnames";
4
4
  import { s as h } from "./field-rac.module-DfEb7pBp.js";
5
- import { s as H } from "./form-CYPNOMwk.js";
6
- import { u as I } from "./use-element-state-class-name-DZFi3Z42.js";
5
+ import { x as H } from "./form-Mla9_phC.js";
6
+ import { u as I } from "./use-element-state-class-name-DAYz5X_i.js";
7
7
  const R = 1 / 0, B = {
8
8
  position: "absolute",
9
9
  width: 0,
@@ -1,6 +1,6 @@
1
- import { useContext as T, useMemo as a } from "react";
2
- import { bb as p, an as O, b9 as _, F as s, t as i } from "./form-CYPNOMwk.js";
3
- import { u } from "./use-hoverable-input-class-name-JAZ1mif0.js";
1
+ import { useContext as p, useMemo as T } from "react";
2
+ import { bd as a, ap as O, bb as _, F as s, y as i } from "./form-Mla9_phC.js";
3
+ import { u } from "./use-hoverable-input-class-name-DZ-4NGpv.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 = 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) : [], [
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) : [], [
32
32
  n,
33
33
  t
34
34
  ]);
@@ -1,5 +1,5 @@
1
1
  import i from "classnames";
2
- import { ba as s, aJ as v } from "./form-CYPNOMwk.js";
2
+ import { bc as s, aL as v } from "./form-Mla9_phC.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 { bh as n } from "./form-CYPNOMwk.js";
1
+ import { bj as n } from "./form-Mla9_phC.js";
2
2
  import { s as e } from "./field-rac.module-DfEb7pBp.js";
3
- import { u } from "./use-element-state-class-name-DZFi3Z42.js";
3
+ import { u } from "./use-element-state-class-name-DAYz5X_i.js";
4
4
  const b = (s, a) => {
5
5
  const { disabled: t, readOnly: o } = n(), r = u({
6
6
  globalClasses: s,
@@ -1,7 +1,7 @@
1
1
  import { useState as o, useCallback as y, useEffect as m, useMemo as D } from "react";
2
- import { bg as v } from "./form-CYPNOMwk.js";
2
+ import { bi as v } from "./form-Mla9_phC.js";
3
3
  const k = (I) => {
4
- const { fieldType: L, isEditor: t = !1, postProcessOptions: i, customFetchLogic: a, onInitialDataLoaded: n } = I, [O, g] = o(!1), [h, p] = o([]), [E, u] = o(!1), [c, f] = o(!1), s = v(L), r = y((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 ?? "",
@@ -32,11 +32,11 @@ const k = (I) => {
32
32
  ]);
33
33
  return {
34
34
  isLoading: O,
35
- options: h,
35
+ options: g,
36
36
  isEmpty: E,
37
37
  hasInitialDataLoaded: c,
38
38
  shouldRender: b,
39
- setIsLoading: g,
39
+ setIsLoading: h,
40
40
  setOptions: p,
41
41
  setIsEmpty: u,
42
42
  setHasInitialDataLoaded: f,
@@ -0,0 +1,6 @@
1
+ import { a8 as a } from "./form-Mla9_phC.js";
2
+ import { u as e } from "./use-hoverable-input-class-name-DZ-4NGpv.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.135.0",
3
+ "version": "1.137.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": "12e3f67d4c05aed2d57a13a03e7c73fa28e7600b8b9342694d13cdb8"
159
+ "falconPackageHash": "d2db4efc896d8320b440e5ed26736b3908b81f47b8ae228dd37ecfac"
160
160
  }