@wix/form-elements 1.134.0 → 1.136.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-DsD7xLmb.js +1010 -0
  2. package/dist/component/{bookings-address-rac-F39MfGmX.js → bookings-address-rac-ByaFu51U.js} +1 -1
  3. package/dist/component/{bookings-email-rac-D4CurQjr.js → bookings-email-rac-CxuvkcYw.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-Bz9o1eLl.js → bookings-first-name-rac-JXLJa_7E.js} +1 -1
  5. package/dist/component/{bookings-header-rac-6mfX0WGf.js → bookings-header-rac-CIQTbf9d.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-CD1-B7Ao.js → bookings-last-name-rac-_2Xt4BPe.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-2eQkfhBb.js → bookings-login-bar-rac-BUjys5i9.js} +6 -6
  8. package/dist/component/{bookings-phone-rac-X6sSnHiH.js → bookings-phone-rac-DlsdGmOt.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-f2artJnn.js → bookings-rich-text-rac-BvRdhL7M.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-DoZ9bcw3.js → checkbox-field-rac-Be6wicaA.js} +121 -121
  11. package/dist/component/{checkbox-group-field-headless-B-d37T4z.js → checkbox-group-field-headless-BJ0pGvXi.js} +19 -19
  12. package/dist/component/{checkbox-group-field-rac-0qYHz3g1.js → checkbox-group-field-rac-D7xqqVf6.js} +4 -4
  13. package/dist/component/{checkbox-group-rac-BqUJdAju.js → checkbox-group-rac-DtCS-gEH.js} +1 -1
  14. package/dist/component/{checkbox-rac-BN-qNzpH.js → checkbox-rac-ub7MFwY-.js} +1 -1
  15. package/dist/component/{contacts-address-rac-B7vWOTFf.js → contacts-address-rac-Bwsdpg11.js} +1 -1
  16. package/dist/component/{contacts-birthdate-rac-Dl0OatzW.js → contacts-birthdate-rac-D54hibhb.js} +1 -1
  17. package/dist/component/{contacts-company-rac-DIeGU0Bf.js → contacts-company-rac-CKqzgKio.js} +1 -1
  18. package/dist/component/{contacts-email-rac-BCH6ogWv.js → contacts-email-rac-Dxm31wuY.js} +1 -1
  19. package/dist/component/{contacts-first-name-rac-Cx-USWmx.js → contacts-first-name-rac-CXHsx6Vy.js} +1 -1
  20. package/dist/component/{contacts-last-name-rac-CUZdJI9J.js → contacts-last-name-rac-B0S268f3.js} +1 -1
  21. package/dist/component/{contacts-phone-rac-hNCW_2UC.js → contacts-phone-rac-DEbgIiEj.js} +1 -1
  22. package/dist/component/{contacts-position-rac-CJfOgxZc.js → contacts-position-rac-D31uoOlR.js} +1 -1
  23. package/dist/component/{contacts-subscribe-rac-69721_c9.js → contacts-subscribe-rac-DJ8NtoxZ.js} +1 -1
  24. package/dist/component/{contacts-tax-id-rac-CXXBqWIm.js → contacts-tax-id-rac-DTQffHAo.js} +1 -1
  25. package/dist/component/{date-availability-NQGPIrdZ.js → date-availability-DmhJ9apH.js} +1 -1
  26. package/dist/component/{date-input-field-rac-C-we-suG.js → date-input-field-rac-BwM_q4FW.js} +52 -52
  27. package/dist/component/{date-input-rac-Cif7Bqxc.js → date-input-rac-C93pgocp.js} +1 -1
  28. package/dist/component/{date-picker-field-rac-CHDkTXVH.js → date-picker-field-rac-CtZL368W.js} +5 -5
  29. package/dist/component/{date-picker-rac-DdhgbY6W.js → date-picker-rac-4DNe6hOX.js} +1 -1
  30. package/dist/component/{date-time-input-field-rac-BjtDbiqE.js → date-time-input-field-rac-MlCVy3Oz.js} +58 -58
  31. package/dist/component/{date-time-input-rac-BDP5SN-i.js → date-time-input-rac-ByyBvFgo.js} +1 -1
  32. package/dist/component/{dext-checkbox-group-rac-CkF41kIR.js → dext-checkbox-group-rac-BP76Xwiq.js} +4 -4
  33. package/dist/component/{dext-checkbox-rac-DjYpsxmq.js → dext-checkbox-rac-DGaKSh4Z.js} +1 -1
  34. package/dist/component/{dext-date-picker-rac-BxXZLogr.js → dext-date-picker-rac-UEXbMSlL.js} +1 -1
  35. package/dist/component/{dext-date-time-input-rac-e4y_JjEx.js → dext-date-time-input-rac-CsJcGK4I.js} +1 -1
  36. package/dist/component/{dext-dropdown-rac-DsjB3ZX7.js → dext-dropdown-rac-BzbRzloh.js} +1 -1
  37. package/dist/component/{dext-email-rac-ClPp1g4D.js → dext-email-rac-DufFAnTi.js} +1 -1
  38. package/dist/component/{dext-number-input-rac-D2nZNzyN.js → dext-number-input-rac-D6xXi7B2.js} +1 -1
  39. package/dist/component/{dext-phone-rac-PNiQZ-Lr.js → dext-phone-rac-svy9CDHW.js} +1 -1
  40. package/dist/component/{dext-radio-group-rac-DUltmMHM.js → dext-radio-group-rac-C4p9NuQS.js} +4 -4
  41. package/dist/component/{dext-rating-input-rac-C_apsfGT.js → dext-rating-input-rac-wJ7-RFFN.js} +1 -1
  42. package/dist/component/{dext-tags-rac-DkB_CmOD.js → dext-tags-rac-D2myHrSZ.js} +4 -4
  43. package/dist/component/{dext-text-area-rac-CfoIK0S7.js → dext-text-area-rac-B4Fw_9mF.js} +1 -1
  44. package/dist/component/{dext-text-input-rac-CIOXlk6U.js → dext-text-input-rac-DlZanFMT.js} +1 -1
  45. package/dist/component/{dext-url-input-rac-UHJAs3ck.js → dext-url-input-rac-DYjl3wuk.js} +1 -1
  46. package/dist/component/{donation-rac-BJfvVi_d.js → donation-rac-B6LwJxik.js} +72 -72
  47. package/dist/component/{dropdown-field-headless-0DB-T-3t.js → dropdown-field-headless-BAt2RoAH.js} +8 -8
  48. package/dist/component/{dropdown-field-rac-DB-pd2a8.js → dropdown-field-rac-DFjn3ecV.js} +7 -7
  49. package/dist/component/{dropdown-rac-4T4zRBVy.js → dropdown-rac-DQ6keNRI.js} +1 -1
  50. package/dist/component/{ecom-address-rac-BjWD1sRX.js → ecom-address-rac-j1T2zp0k.js} +1 -1
  51. package/dist/component/{ecom-subscription-checkbox-rac-CYCufut6.js → ecom-subscription-checkbox-rac-viTaRZsk.js} +2 -2
  52. package/dist/component/{email-input-field-rac-DlLoY9jB.js → email-input-field-rac-5eb-1w7B.js} +46 -46
  53. package/dist/component/{events-repeater-rac-CPHJbWcZ.js → events-repeater-rac-BtcoN_Ra.js} +23 -23
  54. package/dist/component/{events-rsvp-rac-NXf8Fv3A.js → events-rsvp-rac-DSzFEmty.js} +10 -10
  55. package/dist/component/{field-error-headless-C-wyL0uw.js → field-error-headless-Bpe041x2.js} +6 -6
  56. package/dist/component/{field-label-headless-32mvEUId.js → field-label-headless-BUuK1Ftv.js} +7 -7
  57. package/dist/component/{file-upload-rac-BicD_Bhj.js → file-upload-rac-CfU8Ygwq.js} +50 -50
  58. package/dist/component/{fixed-payment-rac-DxHalHUv.js → fixed-payment-rac-CYp7zNq8.js} +12 -12
  59. package/dist/component/{form-B2wZnWX9.js → form-C6lnbh2O.js} +1948 -1896
  60. package/dist/component/form.css +1 -1
  61. package/dist/component/form.js +1 -1
  62. package/dist/component/{header-field-rac-C47Te_oW.js → header-field-rac-B7YfrhId.js} +4 -4
  63. package/dist/component/{header-rac-ChDYKTx5.js → header-rac-BtJKAKAz.js} +1 -1
  64. package/dist/component/{image-choice-rac-CqTBWpcY.js → image-choice-rac-Bmq7Pyg6.js} +32 -32
  65. package/dist/component/{index-BF_Aifc-.js → index-BjPSeVyh.js} +107 -107
  66. package/dist/component/{index-Br8x_xx8.js → index-CQdUOkIN.js} +5 -5
  67. package/dist/component/{isObjectLike-D4VXbd0T.js → isObjectLike-CxNqKfU5.js} +7 -7
  68. package/dist/component/{multiline-address-field-rac-DYcfzGJb.js → multiline-address-field-rac-BeiUJWKd.js} +115 -115
  69. package/dist/component/{multiline-address-rac-DcGDGyL-.js → multiline-address-rac-B2mocF6M.js} +1 -1
  70. package/dist/component/{number-input-field-rac-C_Fh8oeD.js → number-input-field-rac-CQX7_S2O.js} +24 -24
  71. package/dist/component/{number-input-rac-J2tCaAYx.js → number-input-rac-BZri-E8P.js} +1 -1
  72. package/dist/component/{password-rac-wlfBhft8.js → password-rac-CdwrtDJU.js} +50 -50
  73. package/dist/component/{payment-input-rac-DKxy3uE0.js → payment-input-rac-ClQiqmjm.js} +38 -38
  74. package/dist/component/{phone-input-field-rac-ClXUOLpB.js → phone-input-field-rac-BtG_Rado.js} +56 -56
  75. package/dist/component/{phone-rac-D0-Poz1e.js → phone-rac-CdcAMa5E.js} +1 -1
  76. package/dist/component/{product-list-rac-TF5fgLyc.js → product-list-rac-Dp_YK6mo.js} +61 -61
  77. package/dist/component/{quiz-radio-group-rac-BX4V_6wg.js → quiz-radio-group-rac-CorojxKD.js} +1 -1
  78. package/dist/component/{radio-button-module-classes-D8UpzVUK.js → radio-button-module-classes-ZX12Fyj4.js} +3 -3
  79. package/dist/component/{radio-group-field-rac-C0zCVtjj.js → radio-group-field-rac-BifCDpE4.js} +10 -10
  80. package/dist/component/{radio-group-rac-DrKqgPRT.js → radio-group-rac-CJ2fzqnY.js} +1 -1
  81. package/dist/component/{rating-input-field-rac-DjxfTgv5.js → rating-input-field-rac-Dg1T0DZW.js} +28 -28
  82. package/dist/component/{rating-input-rac-DO4Bpdj3.js → rating-input-rac-Ba4YK13i.js} +1 -1
  83. package/dist/component/{rich-content-rac.module-DUNKiTkT.js → rich-content-rac.module-BehwBL3L.js} +3 -3
  84. package/dist/component/{rich-text-field-rac-DIOTzVwj.js → rich-text-field-rac-DtIWdB-S.js} +7 -7
  85. package/dist/component/{rich-text-rac-C_E_vEGz.js → rich-text-rac-BX4eDDFw.js} +1 -1
  86. package/dist/component/service-dropdown-rac-68WLBlsa.js +146 -0
  87. package/dist/component/{services-multi-choice-rac-D40hZhBB.js → services-multi-choice-rac-8yNdAHfS.js} +7 -7
  88. package/dist/component/{signature-rac-CKXpb2WN.js → signature-rac-DeVOyl5O.js} +73 -73
  89. package/dist/component/{submit-button-rac-CDS-vtXq.js → submit-button-rac-IOr1g-G-.js} +12 -12
  90. package/dist/component/{tags-field-rac-CdQWq8k5.js → tags-field-rac-DaiMlAxt.js} +27 -27
  91. package/dist/component/{tags-rac-BwChqdGx.js → tags-rac-BgrUkY0A.js} +1 -1
  92. package/dist/component/{text-area-field-rac-VCFJuHx4.js → text-area-field-rac-CLPZEY93.js} +16 -16
  93. package/dist/component/{text-area-rac-BICVNsdn.js → text-area-rac-C8PdPSzX.js} +1 -1
  94. package/dist/component/{text-input-field-rac-C9gyRhcK.js → text-input-field-rac-Dm-xU8Rg.js} +5 -5
  95. package/dist/component/{text-input-headless-BdkaD-re.js → text-input-headless-BEmRjL8Z.js} +6 -6
  96. package/dist/component/{text-input-rac-B7buOGbq.js → text-input-rac-C-FnaOXT.js} +1 -1
  97. package/dist/component/{time-input-rac-CSFhEYi0.js → time-input-rac-VmTURkiK.js} +46 -46
  98. package/dist/component/{url-input-field-rac-BIXokgHy.js → url-input-field-rac-CnnS0tVx.js} +23 -23
  99. package/dist/component/{url-input-rac-tTN0GaTH.js → url-input-rac-6nd_ccoP.js} +1 -1
  100. package/dist/component/{use-dropdown-option-class-name-C6zB6TNA.js → use-dropdown-option-class-name-CcZl1qrj.js} +2 -2
  101. package/dist/component/{use-dropdown-trigger-class-name-CEq68SuK.js → use-dropdown-trigger-class-name-BNc0mkdK.js} +4 -4
  102. package/dist/component/{use-element-state-class-name-BFZzVwqe.js → use-element-state-class-name-BU6RXqBy.js} +1 -1
  103. package/dist/component/{use-hoverable-input-class-name-CzZmczhf.js → use-hoverable-input-class-name-CkXPkbiP.js} +2 -2
  104. package/dist/component/{use-service-options-base-DOCVW9ax.js → use-service-options-base-B5afDbnr.js} +4 -4
  105. package/dist/component/use-text-input-class-name-BB3V6Q0b.js +6 -0
  106. package/package.json +2 -2
  107. package/dist/component/appointment-rac-CZHb5jGz.js +0 -1010
  108. package/dist/component/service-dropdown-rac-B3gQT9Tj.js +0 -146
  109. package/dist/component/use-text-input-class-name-BNX3qkmh.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-B2wZnWX9.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-C6lnbh2O.js";
6
6
  import { f as i } from "./find-child-C60k4CxG.js";
7
- import { D as q, E as B } from "./field-error-headless-C-wyL0uw.js";
8
- import { L as k } from "./field-label-headless-32mvEUId.js";
7
+ import { D as q, E as B } from "./field-error-headless-Bpe041x2.js";
8
+ import { L as k } from "./field-label-headless-BUuK1Ftv.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-BNX3qkmh.js";
11
+ import { u as V } from "./use-text-input-class-name-BB3V6Q0b.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-VCFJuHx4.js";
2
+ import { T as r } from "./text-area-field-rac-CLPZEY93.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-BdkaD-re.js";
4
+ import { T as r } from "./text-input-headless-BEmRjL8Z.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-B2wZnWX9.js";
8
- import { u as p } from "./use-text-input-class-name-BNX3qkmh.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-C6lnbh2O.js";
8
+ import { u as p } from "./use-text-input-class-name-BB3V6Q0b.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-B2wZnWX9.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-C6lnbh2O.js";
4
4
  import { f as s } from "./find-child-C60k4CxG.js";
5
- import { D as T, E as g } from "./field-error-headless-C-wyL0uw.js";
6
- import { L as x } from "./field-label-headless-32mvEUId.js";
5
+ import { D as T, E as h } from "./field-error-headless-Bpe041x2.js";
6
+ import { L as x } from "./field-label-headless-BUuK1Ftv.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-C9gyRhcK.js";
2
+ import { T as e } from "./text-input-field-rac-Dm-xU8Rg.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-B2wZnWX9.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-C6lnbh2O.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-C-wyL0uw.js";
9
- import { L as Y } from "./field-label-headless-32mvEUId.js";
8
+ import { D as K, E as W } from "./field-error-headless-Bpe041x2.js";
9
+ import { L as X } from "./field-label-headless-BUuK1Ftv.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-BNX3qkmh.js";
13
+ import { u as $ } from "./use-text-input-class-name-BB3V6Q0b.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-B2wZnWX9.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-C6lnbh2O.js";
6
6
  import { f as c } from "./find-child-C60k4CxG.js";
7
- import { D as M, E as P } from "./field-error-headless-C-wyL0uw.js";
8
- import { L as U } from "./field-label-headless-32mvEUId.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-Bpe041x2.js";
8
+ import { L as q } from "./field-label-headless-BUuK1Ftv.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-BNX3qkmh.js";
12
+ import { u as w } from "./use-text-input-class-name-BB3V6Q0b.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-BIXokgHy.js";
2
+ import { U as t } from "./url-input-field-rac-CnnS0tVx.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-B2wZnWX9.js";
6
- import { u as I } from "./use-element-state-class-name-BFZzVwqe.js";
5
+ import { x as H } from "./form-C6lnbh2O.js";
6
+ import { u as I } from "./use-element-state-class-name-BU6RXqBy.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-B2wZnWX9.js";
3
- import { u } from "./use-hoverable-input-class-name-CzZmczhf.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-C6lnbh2O.js";
3
+ import { u } from "./use-hoverable-input-class-name-CkXPkbiP.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-B2wZnWX9.js";
2
+ import { bc as s, aL as v } from "./form-C6lnbh2O.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-B2wZnWX9.js";
1
+ import { bj as n } from "./form-C6lnbh2O.js";
2
2
  import { s as e } from "./field-rac.module-DfEb7pBp.js";
3
- import { u } from "./use-element-state-class-name-BFZzVwqe.js";
3
+ import { u } from "./use-element-state-class-name-BU6RXqBy.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-B2wZnWX9.js";
2
+ import { bi as v } from "./form-C6lnbh2O.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-C6lnbh2O.js";
2
+ import { u as e } from "./use-hoverable-input-class-name-CkXPkbiP.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.134.0",
3
+ "version": "1.136.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": "252c4549b97ab1e357978a947a98841c846443de071d36a931c2b0cf"
159
+ "falconPackageHash": "36bc57a309039b6261f8bc4fe0b7bcea920eb93444d3b135ec090374"
160
160
  }