@wix/form-elements 1.128.0 → 1.130.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 (112) hide show
  1. package/dist/component/{appointment-rac-S9z3s23G.js → appointment-rac-BpZGi0ra.js} +4 -4
  2. package/dist/component/{bookings-address-rac-B7wL2TjQ.js → bookings-address-rac-IU28SJy5.js} +1 -1
  3. package/dist/component/{bookings-email-rac-T2lFRGpg.js → bookings-email-rac-BkhnLFKC.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-BBrENRBf.js → bookings-first-name-rac-CwMmkICM.js} +1 -1
  5. package/dist/component/{bookings-header-rac-CWGMiMQz.js → bookings-header-rac-BtGNPfsP.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-BQWvH_gm.js → bookings-last-name-rac-BmloqxX9.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-tFs0Vioz.js → bookings-login-bar-rac-QHUQz0Do.js} +1 -1
  8. package/dist/component/{bookings-phone-rac-BV_BTfAh.js → bookings-phone-rac-CBKcGM_o.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-8cD6QJBZ.js → bookings-rich-text-rac-DnazNxHe.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-YmG26i31.js → checkbox-field-rac-BSiNWGvO.js} +4 -4
  11. package/dist/component/{checkbox-group-field-headless-CE8sEjZj.js → checkbox-group-field-headless-Bl_gIm5X.js} +3 -3
  12. package/dist/component/{checkbox-group-field-rac-CSuJRyk1.js → checkbox-group-field-rac-_cpM6zrw.js} +4 -4
  13. package/dist/component/{checkbox-group-rac-VDezm9js.js → checkbox-group-rac-mZwI2tQ7.js} +1 -1
  14. package/dist/component/{checkbox-rac-DoC1ZqAq.js → checkbox-rac-rfO8Kefs.js} +1 -1
  15. package/dist/component/{contacts-address-rac-10AZNzhI.js → contacts-address-rac-CHthblox.js} +1 -1
  16. package/dist/component/{contacts-birthdate-rac-C7YDiyg2.js → contacts-birthdate-rac-CuvwylkU.js} +1 -1
  17. package/dist/component/{contacts-company-rac-xQEtJ_-m.js → contacts-company-rac-D546Lq1s.js} +1 -1
  18. package/dist/component/{contacts-email-rac-Bryw_aCU.js → contacts-email-rac-DwXQ_wWS.js} +1 -1
  19. package/dist/component/{contacts-first-name-rac-BXmuuhfG.js → contacts-first-name-rac-C7bQDK9N.js} +1 -1
  20. package/dist/component/{contacts-last-name-rac-CVWVZO8I.js → contacts-last-name-rac-CQTkOyHY.js} +1 -1
  21. package/dist/component/{contacts-phone-rac-C-KSwisV.js → contacts-phone-rac-5_KC_NgQ.js} +1 -1
  22. package/dist/component/{contacts-position-rac-od-5Gie5.js → contacts-position-rac-Y467YbGC.js} +1 -1
  23. package/dist/component/{contacts-subscribe-rac-CCh9JcQx.js → contacts-subscribe-rac-By3IlB_r.js} +1 -1
  24. package/dist/component/{contacts-tax-id-rac-DOM7TPQz.js → contacts-tax-id-rac-Cz7LLBFg.js} +1 -1
  25. package/dist/component/{date-availability-G5IwqtRi.js → date-availability-2VUtbyz1.js} +1 -1
  26. package/dist/component/{date-input-field-rac-BpBqS7LG.js → date-input-field-rac-C0YZZ7d1.js} +86 -86
  27. package/dist/component/{date-input-rac-CQyqRqZK.js → date-input-rac-BIlIrfkK.js} +1 -1
  28. package/dist/component/{date-picker-field-rac-BsR_0eAW.js → date-picker-field-rac-D96wqSQ2.js} +92 -91
  29. package/dist/component/{date-picker-rac-Bl2k363u.js → date-picker-rac-CgVftEAJ.js} +1 -1
  30. package/dist/component/date-time-input-field-rac-C4uP9wLp.js +427 -0
  31. package/dist/component/{date-time-input-rac-CInfYWxN.js → date-time-input-rac-BgHUANTP.js} +1 -1
  32. package/dist/component/{dext-checkbox-group-rac-E36LjEfn.js → dext-checkbox-group-rac-DjiWZ293.js} +2 -2
  33. package/dist/component/{dext-checkbox-rac-DkMAv7aY.js → dext-checkbox-rac-BmUjJHD_.js} +1 -1
  34. package/dist/component/{dext-date-picker-rac-BNkJPlYo.js → dext-date-picker-rac-BlrV70R7.js} +1 -1
  35. package/dist/component/{dext-date-time-input-rac-BH3Q0pwI.js → dext-date-time-input-rac-JkFxwGgu.js} +1 -1
  36. package/dist/component/{dext-dropdown-rac-DkF_DD08.js → dext-dropdown-rac-Xbczi-Z0.js} +1 -1
  37. package/dist/component/{dext-email-rac-0x_DN0_O.js → dext-email-rac-DkMdn4ps.js} +1 -1
  38. package/dist/component/{dext-number-input-rac-UiIENkK3.js → dext-number-input-rac-CNMiNuNi.js} +1 -1
  39. package/dist/component/{dext-phone-rac-BZFK4Uq7.js → dext-phone-rac-C8c-RKQv.js} +1 -1
  40. package/dist/component/{dext-radio-group-rac-CBAdO7kt.js → dext-radio-group-rac-BAJJSIKu.js} +2 -2
  41. package/dist/component/{dext-rating-input-rac-fqR1sriq.js → dext-rating-input-rac-BdnfHwl1.js} +1 -1
  42. package/dist/component/{dext-tags-rac-mDuiUs9L.js → dext-tags-rac-BjsYYa9X.js} +2 -2
  43. package/dist/component/{dext-text-area-rac-C-8jKWpK.js → dext-text-area-rac-Aatrs0NK.js} +1 -1
  44. package/dist/component/{dext-text-input-rac-CCBAM9YO.js → dext-text-input-rac-DgUfidRi.js} +1 -1
  45. package/dist/component/{dext-url-input-rac-C4_8Yk0p.js → dext-url-input-rac-DQbUHNX7.js} +1 -1
  46. package/dist/component/{donation-rac-BwDHypVJ.js → donation-rac-BEbw90qi.js} +5 -5
  47. package/dist/component/dropdown-field-headless-Cg-_dZP4.js +91 -0
  48. package/dist/component/{dropdown-field-rac-DduQJ9rO.js → dropdown-field-rac-EjA-abC8.js} +4 -4
  49. package/dist/component/{dropdown-rac-BhhECLoH.js → dropdown-rac-zDidZ7dx.js} +1 -1
  50. package/dist/component/{ecom-address-rac-BJ1nnEVL.js → ecom-address-rac-Df9TvxEv.js} +1 -1
  51. package/dist/component/{ecom-subscription-checkbox-rac-4m1XMTDY.js → ecom-subscription-checkbox-rac-B6ztLCEK.js} +2 -2
  52. package/dist/component/{email-input-field-rac-bPEcgidt.js → email-input-field-rac-CpPKmeC5.js} +3 -3
  53. package/dist/component/{events-repeater-rac-CujTGEHx.js → events-repeater-rac-C5VWlWG-.js} +4 -4
  54. package/dist/component/{events-rsvp-rac-BPqr_aY9.js → events-rsvp-rac-CLTyr98o.js} +3 -3
  55. package/dist/component/{field-error-headless-Bu_4Huhb.js → field-error-headless-Dgx4BHo5.js} +1 -1
  56. package/dist/component/{field-label-headless-DkDmQPFG.js → field-label-headless-CsqtNbNm.js} +1 -1
  57. package/dist/component/{file-upload-rac-DmOQrGe8.js → file-upload-rac-1SX9-51k.js} +4 -4
  58. package/dist/component/{fixed-payment-rac-CDsddKrV.js → fixed-payment-rac-C_zIu17t.js} +3 -3
  59. package/dist/component/{form-BpJ4Lqbe.js → form-BoHpaLjl.js} +69 -69
  60. package/dist/component/form.css +1 -1
  61. package/dist/component/form.js +1 -1
  62. package/dist/component/{header-field-rac-Cr1FVQdq.js → header-field-rac-DBw1TpEG.js} +2 -2
  63. package/dist/component/{header-rac-CvAZsqDL.js → header-rac-DAnTKW4z.js} +1 -1
  64. package/dist/component/{image-choice-rac-D_EKrD73.js → image-choice-rac-CqnAnKbc.js} +4 -4
  65. package/dist/component/{index-Tnke1N8m.js → index-Rqkz8Lrx.js} +2 -2
  66. package/dist/component/{index-DxsHfkik.js → index-g0wVTJHp.js} +4 -4
  67. package/dist/component/{isObjectLike-CMWsWjX8.js → isObjectLike-Dt08IFKQ.js} +1 -1
  68. package/dist/component/{multiline-address-field-rac-BMeMP7J6.js → multiline-address-field-rac-1zdTMnWs.js} +7 -7
  69. package/dist/component/{multiline-address-rac-CFprfFXm.js → multiline-address-rac-DI_2qWao.js} +1 -1
  70. package/dist/component/non-modal-popover-D-u13tmp.js +64 -0
  71. package/dist/component/{number-input-field-rac-CaHySxYH.js → number-input-field-rac-1EfxOkZP.js} +4 -4
  72. package/dist/component/{number-input-rac-BezfoU8h.js → number-input-rac-AG8ecaT6.js} +1 -1
  73. package/dist/component/{password-rac-_wwZFd67.js → password-rac-CGu6cCp2.js} +4 -4
  74. package/dist/component/{payment-input-rac-CWrSvBDp.js → payment-input-rac-CRMqRcWZ.js} +4 -4
  75. package/dist/component/{phone-input-field-rac-R3LYdPIs.js → phone-input-field-rac-Bpk1kirr.js} +7 -7
  76. package/dist/component/{phone-rac-D6uILVRw.js → phone-rac-w7Kiv6ru.js} +1 -1
  77. package/dist/component/{product-list-rac-D3WTfC9k.js → product-list-rac-WIshqJ3F.js} +4 -4
  78. package/dist/component/{quiz-radio-group-rac-B6T7eedk.js → quiz-radio-group-rac-BkB4fikl.js} +1 -1
  79. package/dist/component/{radio-button-module-classes-D8Jm-Q6u.js → radio-button-module-classes-D78goUwl.js} +3 -3
  80. package/dist/component/{radio-group-field-rac-R5onZzJd.js → radio-group-field-rac-Cx2nvCDW.js} +4 -4
  81. package/dist/component/{radio-group-rac-DUPHR4tK.js → radio-group-rac-46JW3dAH.js} +1 -1
  82. package/dist/component/{rating-input-field-rac-C9GpwuRO.js → rating-input-field-rac-D05VBUGw.js} +4 -4
  83. package/dist/component/{rating-input-rac-Iv_2PVqP.js → rating-input-rac-DtnpPnnU.js} +1 -1
  84. package/dist/component/{rich-content-rac.module-Det3BKrI.js → rich-content-rac.module-W8U6Eupl.js} +1 -1
  85. package/dist/component/{rich-text-field-rac-DnBtp2d_.js → rich-text-field-rac-BKMs8NOQ.js} +2 -2
  86. package/dist/component/{rich-text-rac-CXzxap1G.js → rich-text-rac-BJ4Jii81.js} +1 -1
  87. package/dist/component/{service-dropdown-rac-CVyd2HYC.js → service-dropdown-rac-CEDqWqhg.js} +5 -5
  88. package/dist/component/{services-multi-choice-rac-BY-W0xIt.js → services-multi-choice-rac-9qwSAT5T.js} +5 -5
  89. package/dist/component/{signature-rac-BojdPJhg.js → signature-rac-D6BMpTFh.js} +4 -4
  90. package/dist/component/{submit-button-rac-Q7KKQbiL.js → submit-button-rac-Bj3iEONs.js} +2 -2
  91. package/dist/component/{tags-field-rac-CbmR6gi4.js → tags-field-rac-DMD53JR4.js} +5 -5
  92. package/dist/component/{tags-rac-hJo0tMVR.js → tags-rac-BNL4fHg-.js} +1 -1
  93. package/dist/component/{text-area-field-rac-DHQqkqtu.js → text-area-field-rac-CHJzdEBE.js} +4 -4
  94. package/dist/component/{text-area-rac-BTXxfWyK.js → text-area-rac-CgoEe9Qh.js} +1 -1
  95. package/dist/component/{text-input-field-rac-BVTBYjMM.js → text-input-field-rac-DewYQNfK.js} +3 -3
  96. package/dist/component/{text-input-headless-Dk_0y9U-.js → text-input-headless-OayaIOMS.js} +3 -3
  97. package/dist/component/{text-input-rac-DIwGn0WI.js → text-input-rac-4SxpOILY.js} +1 -1
  98. package/dist/component/{time-input-rac-ClyPOKOH.js → time-input-rac-CivcOPuU.js} +65 -64
  99. package/dist/component/{url-input-field-rac-BhPzHWTI.js → url-input-field-rac-BK3WIP-A.js} +4 -4
  100. package/dist/component/{url-input-rac-COD7T5wo.js → url-input-rac-Dgn9n6w1.js} +1 -1
  101. package/dist/component/{use-dropdown-option-class-name-CTDQ4YIC.js → use-dropdown-option-class-name-BZu-Fese.js} +2 -2
  102. package/dist/component/use-dropdown-trigger-class-name-Dpk8_xn2.js +40 -0
  103. package/dist/component/{use-element-state-class-name-BU86oHkX.js → use-element-state-class-name-Cby7DA2T.js} +1 -1
  104. package/dist/component/{use-hoverable-input-class-name-DWkmQfPd.js → use-hoverable-input-class-name-CKBvA8Gx.js} +2 -2
  105. package/dist/component/{use-service-options-base-jkecu8jY.js → use-service-options-base-Px-Ey93X.js} +1 -1
  106. package/dist/component/use-text-input-class-name-D30YesHa.js +6 -0
  107. package/package.json +2 -2
  108. package/dist/component/date-time-input-field-rac-C5TC2nsm.js +0 -426
  109. package/dist/component/dropdown-field-headless-CspX2zV_.js +0 -91
  110. package/dist/component/non-modal-popover-DtIMXHbe.js +0 -63
  111. package/dist/component/use-dropdown-trigger-class-name-DapDPNX0.js +0 -43
  112. package/dist/component/use-text-input-class-name-CNTXVb7N.js +0 -6
@@ -1,9 +1,9 @@
1
1
  import t, { useRef as L } from "react";
2
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-BpJ4Lqbe.js";
3
+ import { bh as d, be as c, bj as v } from "./form-BoHpaLjl.js";
4
4
  import { f as s } from "./find-child-C60k4CxG.js";
5
- import { D as T, E as g } from "./field-error-headless-Bu_4Huhb.js";
6
- import { L as x } from "./field-label-headless-DkDmQPFG.js";
5
+ import { D as T, E as g } from "./field-error-headless-Dgx4BHo5.js";
6
+ import { L as x } from "./field-label-headless-CsqtNbNm.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, {
@@ -1,5 +1,5 @@
1
1
  import t from "react";
2
- import { T as e } from "./text-input-field-rac-BVTBYjMM.js";
2
+ import { T as e } from "./text-input-field-rac-DewYQNfK.js";
3
3
  const o = () => /* @__PURE__ */ t.createElement(e, null);
4
4
  export {
5
5
  o as TextInputRAC
@@ -1,116 +1,117 @@
1
- import e, { useCallback as V, useRef as v, useContext as x } from "react";
2
- import { RicosViewer as q } from "@wix/ricos/viewer";
3
- import c from "classnames";
4
- import { parseTime as B } from "@internationalized/date";
5
- import { TimeField as U, DateInput as k, DateSegment as _, TimeFieldStateContext as j } from "react-aria-components";
6
- import { bh as p, be as w, br as S, bj as Q, I as z, U as G, v as J, p as K } from "./form-BpJ4Lqbe.js";
7
- import { f as m, a as F } from "./find-child-C60k4CxG.js";
8
- import { D as W, E as X } from "./field-error-headless-Bu_4Huhb.js";
9
- import { L as Y } from "./field-label-headless-DkDmQPFG.js";
1
+ import e, { useCallback as H, useRef as j, useContext as V } from "react";
2
+ import { RicosViewer as v } from "@wix/ricos/viewer";
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-BoHpaLjl.js";
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-Dgx4BHo5.js";
9
+ import { L as Y } from "./field-label-headless-CsqtNbNm.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-BIBNQEOK.js";
13
- import { u as $ } from "./use-text-input-class-name-CNTXVb7N.js";
13
+ import { u as $ } from "./use-text-input-class-name-D30YesHa.js";
14
14
  const r = ({ children: t }) => {
15
- const { id: n, value: l, onChange: o, disabled: i, readOnly: s, required: a, onBlur: d, onFocus: E, use24HourFormat: b, FieldLayout: C, hasError: I } = p(), { inputId: g, ariaDescribedBy: D, labelId: L } = w(), R = V((M) => {
16
- const H = ae(M);
17
- o(H);
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) => {
16
+ const k = ae(M);
17
+ a(k);
18
18
  }, [
19
- o
20
- ]), N = m(t, r.Label), y = m(t, r.Time), P = m(t, r.Description), A = m(t, r.Error), O = ne(l);
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
21
  return /* @__PURE__ */ e.createElement(C, {
22
22
  fieldId: n,
23
23
  renderLabel: () => N,
24
- renderInput: () => /* @__PURE__ */ e.createElement(U, {
24
+ renderInput: () => /* @__PURE__ */ e.createElement(q, {
25
25
  "aria-labelledby": L,
26
26
  id: g,
27
27
  "aria-describedby": D,
28
28
  value: O,
29
29
  onChange: R,
30
30
  isDisabled: i,
31
- isReadOnly: s,
31
+ isReadOnly: o,
32
32
  isInvalid: I,
33
- isRequired: a,
34
- onBlur: d,
33
+ isRequired: c,
34
+ onBlur: s,
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
- }, u = ({ children: t, className: n }) => {
41
- const { hasError: l } = p(), o = m(t, u.Hour), i = m(t, u.Minute), s = m(t, u.Period);
42
- return /* @__PURE__ */ e.createElement(k, {
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);
42
+ return /* @__PURE__ */ e.createElement(z, {
43
43
  className: n,
44
- "data-invalid": l || void 0
45
- }, (a) => {
46
- switch (a.type) {
44
+ "data-invalid": l || void 0,
45
+ "data-placeholder-hidden": a || void 0
46
+ }, (s) => {
47
+ switch (s.type) {
47
48
  case "hour":
48
- return F(o, {
49
- segment: a
49
+ return F(i, {
50
+ segment: s
50
51
  }) || /* @__PURE__ */ e.createElement(e.Fragment, null);
51
52
  case "minute":
52
- return F(i, {
53
- segment: a
53
+ return F(o, {
54
+ segment: s
54
55
  }) || /* @__PURE__ */ e.createElement(e.Fragment, null);
55
56
  case "dayPeriod":
56
- return F(s, {
57
- segment: a
57
+ return F(c, {
58
+ segment: s
58
59
  }) || /* @__PURE__ */ e.createElement(e.Fragment, null);
59
60
  case "literal":
60
61
  return /* @__PURE__ */ e.createElement(_, {
61
- segment: a
62
+ segment: s
62
63
  });
63
64
  default:
64
65
  return /* @__PURE__ */ e.createElement(e.Fragment, null);
65
66
  }
66
67
  });
67
68
  }, ee = ({ className: t, ...n }) => {
68
- const { id: l, hidePlaceholder: o } = p(), { segment: i } = n, { t: s } = S(), a = v(null);
69
- Q(() => {
69
+ const { id: l, hidePlaceholder: a } = p(), { segment: i } = n, { t: o } = S(), c = j(null);
70
+ w(() => {
70
71
  var E;
71
- (E = a.current) == null || E.focus();
72
+ (E = c.current) == null || E.focus();
72
73
  }, l);
73
- const d = o ? void 0 : s("field.date.placeholder.hour");
74
+ const s = a ? void 0 : o("field.date.placeholder.hour");
74
75
  return /* @__PURE__ */ e.createElement(_, {
75
- ref: a,
76
+ ref: c,
76
77
  segment: i,
77
78
  className: t,
78
- ...d && {
79
- placeholder: d
79
+ ...s && {
80
+ placeholder: s
80
81
  }
81
82
  });
82
83
  }, te = ({ className: t, ...n }) => {
83
- const { hidePlaceholder: l } = p(), { segment: o } = n, { t: i } = S(), s = l ? void 0 : i("field.date.placeholder.minute");
84
+ const { hidePlaceholder: l } = p(), { segment: a } = n, { t: i } = S(), o = l ? void 0 : i("field.date.placeholder.minute");
84
85
  return /* @__PURE__ */ e.createElement(_, {
85
- segment: o,
86
+ segment: a,
86
87
  className: t,
87
- ...s && {
88
- placeholder: s
88
+ ...o && {
89
+ placeholder: o
89
90
  }
90
91
  });
91
92
  }, re = ({ className: t, ...n }) => {
92
- const { hidePlaceholder: l } = p(), { segment: o } = n, { t: i } = S(), s = x(j), a = l ? void 0 : i("field.date.placeholder.period"), d = () => s == null ? void 0 : s.increment("dayPeriod");
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
94
  return /* @__PURE__ */ e.createElement(_, {
94
- segment: o,
95
+ segment: a,
95
96
  className: t,
96
- onClick: d,
97
- ...a && {
98
- placeholder: a
97
+ onClick: s,
98
+ ...c && {
99
+ placeholder: c
99
100
  }
100
101
  });
101
102
  };
102
- u.Hour = ee;
103
- u.Minute = te;
104
- u.Period = re;
103
+ d.Hour = ee;
104
+ d.Minute = te;
105
+ d.Period = re;
105
106
  r.Label = Y;
106
- r.Time = u;
107
+ r.Time = d;
107
108
  r.Description = W;
108
109
  r.Error = X;
109
110
  function ne(t) {
110
111
  if (!t)
111
112
  return null;
112
113
  try {
113
- return B(t);
114
+ return x(t);
114
115
  } catch {
115
116
  return null;
116
117
  }
@@ -118,39 +119,39 @@ function ne(t) {
118
119
  function ae(t) {
119
120
  if (!t)
120
121
  return null;
121
- const n = String(t.hour).padStart(2, "0"), l = String(t.minute).padStart(2, "0"), o = String(t.second).padStart(2, "0");
122
+ const n = String(t.hour).padStart(2, "0"), l = String(t.minute).padStart(2, "0"), a = String(t.second).padStart(2, "0");
122
123
  return [
123
124
  n,
124
125
  l,
125
- o
126
+ a
126
127
  ].join(":");
127
128
  }
128
- const oe = "_time_10p0h_1", se = "_hour_10p0h_14", le = "_minute_10p0h_15", ie = "_period_10p0h_16", h = {
129
+ const oe = "_time_rzj2k_1", se = "_hour_rzj2k_14", le = "_minute_rzj2k_15", ie = "_period_rzj2k_16", h = {
129
130
  time: oe,
130
131
  hour: se,
131
132
  minute: le,
132
133
  period: ie
133
- }, ce = ({ content: t, locale: n }) => /* @__PURE__ */ e.createElement(q, {
134
+ }, ce = ({ content: t, locale: n }) => /* @__PURE__ */ e.createElement(v, {
134
135
  content: t,
135
136
  locale: n
136
137
  }), me = () => {
137
138
  const t = $(h.time);
138
139
  return /* @__PURE__ */ e.createElement(r, null, /* @__PURE__ */ e.createElement(r.Label, {
139
- className: c(z, f.label)
140
+ className: m(Q, f.label)
140
141
  }, /* @__PURE__ */ e.createElement(r.Label.Required, {
141
- className: c(G, f.requiredMark)
142
+ className: m(G, f.requiredMark)
142
143
  })), /* @__PURE__ */ e.createElement(r.Time, {
143
144
  className: t
144
145
  }, /* @__PURE__ */ e.createElement(r.Time.Hour, {
145
- className: c(h.hour, T)
146
+ className: m(h.hour, T)
146
147
  }), /* @__PURE__ */ e.createElement(r.Time.Minute, {
147
- className: c(h.minute, T)
148
+ className: m(h.minute, T)
148
149
  }), /* @__PURE__ */ e.createElement(r.Time.Period, {
149
- className: c(h.period, T)
150
+ className: m(h.period, T)
150
151
  })), /* @__PURE__ */ e.createElement(r.Error, {
151
- className: c(J, f.error)
152
+ className: m(J, f.error)
152
153
  }, /* @__PURE__ */ e.createElement(Z, null), /* @__PURE__ */ e.createElement(r.Error.Text, null)), /* @__PURE__ */ e.createElement(r.Description, {
153
- className: c(K, f.description)
154
+ className: m(K, f.description)
154
155
  }, ce));
155
156
  }, ge = () => /* @__PURE__ */ e.createElement(me, null);
156
157
  export {
@@ -2,14 +2,14 @@ import { RicosViewer as N } from "@wix/ricos/viewer";
2
2
  import i from "classnames";
3
3
  import r, { useCallback as S, 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-BpJ4Lqbe.js";
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-BoHpaLjl.js";
6
6
  import { f as c } from "./find-child-C60k4CxG.js";
7
- import { D as M, E as P } from "./field-error-headless-Bu_4Huhb.js";
8
- import { L as U } from "./field-label-headless-DkDmQPFG.js";
7
+ import { D as M, E as P } from "./field-error-headless-Dgx4BHo5.js";
8
+ import { L as U } from "./field-label-headless-CsqtNbNm.js";
9
9
  import { u as q } from "./use-invoke-callback-UH73A_J3.js";
10
10
  import { E as x } from "./error-icon-hZxQ6DEy.js";
11
11
  import { s as u } from "./field-rac.module-BIBNQEOK.js";
12
- import { u as w } from "./use-text-input-class-name-CNTXVb7N.js";
12
+ import { u as w } from "./use-text-input-class-name-D30YesHa.js";
13
13
  const V = (t) => t ? `https://${String(t).replace(/^https?:\/\//, "")}` : "", e = ({ children: t }) => {
14
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(() => {
15
15
  n(V(s)), p();
@@ -1,5 +1,5 @@
1
1
  import r from "react";
2
- import { U as t } from "./url-input-field-rac-BhPzHWTI.js";
2
+ import { U as t } from "./url-input-field-rac-BK3WIP-A.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-BIBNQEOK.js";
5
- import { s as H } from "./form-BpJ4Lqbe.js";
6
- import { u as I } from "./use-element-state-class-name-BU86oHkX.js";
5
+ import { s as H } from "./form-BoHpaLjl.js";
6
+ import { u as I } from "./use-element-state-class-name-Cby7DA2T.js";
7
7
  const R = 1 / 0, B = {
8
8
  position: "absolute",
9
9
  width: 0,
@@ -0,0 +1,40 @@
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-BoHpaLjl.js";
3
+ import { u } from "./use-hoverable-input-class-name-CKBvA8Gx.js";
4
+ const I = [
5
+ s.DROPDOWN,
6
+ s.DEXT_DROPDOWN,
7
+ s.SERVICES_DROPDOWN,
8
+ s.DATE_INPUT,
9
+ s.CONTACTS_BIRTHDATE,
10
+ s.DATE_TIME_INPUT,
11
+ s.DEXT_DATE_TIME_INPUT,
12
+ s.DATE_PICKER,
13
+ s.DEXT_DATE_PICKER
14
+ ], d = [
15
+ s.PHONE,
16
+ s.CONTACTS_PHONE,
17
+ s.BOOKINGS_PHONE,
18
+ s.DEXT_PHONE
19
+ ], N = [
20
+ s.MULTILINE_ADDRESS,
21
+ s.BOOKINGS_ADDRESS,
22
+ s.ECOM_ADDRESS
23
+ ], P = ({ properties: o }) => {
24
+ var e, n, t, r;
25
+ return ((r = (t = (n = (e = o.validation) == null ? void 0 : e.string) == null ? void 0 : n.phoneOptions) == null ? void 0 : t.allowedCountryCodes) == null ? void 0 : r.length) !== 1;
26
+ }, S = ({ properties: o }) => {
27
+ var e, n;
28
+ return ((n = (e = o.fieldSettings) == null ? void 0 : e.country) == null ? void 0 : n.show) !== !1;
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
+ 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) : [], [
32
+ n,
33
+ t
34
+ ]);
35
+ return e && r.includes(o);
36
+ }, w = (...o) => u(i, o);
37
+ export {
38
+ A as a,
39
+ w as u
40
+ };
@@ -1,5 +1,5 @@
1
1
  import p from "classnames";
2
- import { ba as E, aJ as f } from "./form-BpJ4Lqbe.js";
2
+ import { ba as E, aJ as f } from "./form-BoHpaLjl.js";
3
3
  const J = ({ globalClasses: e, moduleClasses: c }) => {
4
4
  var d;
5
5
  const r = ((d = E(...f(e))) == null ? void 0 : d.split(/\s+/)) ?? [], h = [
@@ -1,6 +1,6 @@
1
- import { bh as i } from "./form-BpJ4Lqbe.js";
1
+ import { bh as i } from "./form-BoHpaLjl.js";
2
2
  import { s as e } from "./field-rac.module-BIBNQEOK.js";
3
- import { u as m } from "./use-element-state-class-name-BU86oHkX.js";
3
+ import { u as m } from "./use-element-state-class-name-Cby7DA2T.js";
4
4
  const d = (s, a) => {
5
5
  const { disabled: t, readOnly: o } = i(), r = m({
6
6
  globalClasses: s,
@@ -1,5 +1,5 @@
1
1
  import { useState as o, useCallback as y, useEffect as m, useMemo as D } from "react";
2
- import { bg as v } from "./form-BpJ4Lqbe.js";
2
+ import { bg as v } from "./form-BoHpaLjl.js";
3
3
  const k = (I) => {
4
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) => {
5
5
  let d = e.map((l) => ({
@@ -0,0 +1,6 @@
1
+ import { a5 as a } from "./form-BoHpaLjl.js";
2
+ import { u as e } from "./use-hoverable-input-class-name-CKBvA8Gx.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.128.0",
3
+ "version": "1.130.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": "3cc91aee772729660b5f820e19d5ab60df670a2b06211de6b0aa2672"
159
+ "falconPackageHash": "bff872a056dc909f48f3a7fb086db08e6584b5b905de0e9abbc6c80a"
160
160
  }