@wix/form-elements 1.83.0 → 1.84.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 (105) hide show
  1. package/dist/component/{appointment-rac-ky2cE6hE.js → appointment-rac-BSy3u0GK.js} +4 -4
  2. package/dist/component/{bookings-address-rac-Bxc6H9Pb.js → bookings-address-rac-CL7Bh1yH.js} +1 -1
  3. package/dist/component/{bookings-email-rac-Dw1Xttdx.js → bookings-email-rac-Bw9tj_tv.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-dgHOrJaJ.js → bookings-first-name-rac-BOOu_AXM.js} +1 -1
  5. package/dist/component/{bookings-header-rac-Bl9RYGWo.js → bookings-header-rac-3kBei7GF.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-BeqYpbZq.js → bookings-last-name-rac-CUKbu22q.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-C1k6o0A5.js → bookings-login-bar-rac-CLrUhdX2.js} +1 -1
  8. package/dist/component/{bookings-phone-rac-ByhaJrwE.js → bookings-phone-rac-7DViellg.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-Mw5-ZiIn.js → bookings-rich-text-rac-CIUZX--G.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-CMEI5t4Y.js → checkbox-field-rac-C_jth3RK.js} +4 -4
  11. package/dist/component/{checkbox-group-field-headless-CP21R7_s.js → checkbox-group-field-headless-D-c9Kyj8.js} +3 -3
  12. package/dist/component/{checkbox-group-field-rac-DGOZjSIY.js → checkbox-group-field-rac-MgGUuYII.js} +3 -3
  13. package/dist/component/{checkbox-group-rac-CEGtshrl.js → checkbox-group-rac-rr1mN2EJ.js} +1 -1
  14. package/dist/component/{checkbox-rac-DCnRh1WF.js → checkbox-rac-CRsLQKhN.js} +1 -1
  15. package/dist/component/{contacts-address-rac-CZb_5N5o.js → contacts-address-rac-BFlNbQKh.js} +1 -1
  16. package/dist/component/{contacts-birthdate-rac-DZlwSyp5.js → contacts-birthdate-rac-D7Ww3iAz.js} +1 -1
  17. package/dist/component/{contacts-company-rac-BNEF6LjB.js → contacts-company-rac-DLl4nqH-.js} +1 -1
  18. package/dist/component/{contacts-email-rac-CAgk_zfN.js → contacts-email-rac-K8fCs8qS.js} +1 -1
  19. package/dist/component/{contacts-first-name-rac-DyTVcmrX.js → contacts-first-name-rac-BOTxHl3m.js} +1 -1
  20. package/dist/component/{contacts-last-name-rac-DrFcDcGr.js → contacts-last-name-rac-bFnG-7Hm.js} +1 -1
  21. package/dist/component/{contacts-phone-rac-UAPALlFx.js → contacts-phone-rac-B4teqDIV.js} +1 -1
  22. package/dist/component/{contacts-position-rac-CJ1M4kJJ.js → contacts-position-rac-CnWoXO5h.js} +1 -1
  23. package/dist/component/{contacts-subscribe-rac-1cEd5s1l.js → contacts-subscribe-rac-Bco722BU.js} +1 -1
  24. package/dist/component/{contacts-tax-id-rac-CqnO__fd.js → contacts-tax-id-rac-QQsKhAx3.js} +1 -1
  25. package/dist/component/{date-availability-COM2EaRy.js → date-availability-DMbyb1GZ.js} +1 -1
  26. package/dist/component/{date-input-field-rac-CuuWbw42.js → date-input-field-rac-CVRjO19U.js} +4 -4
  27. package/dist/component/{date-input-rac-DfVmj9Gc.js → date-input-rac-zi7AQ8Ai.js} +1 -1
  28. package/dist/component/{date-picker-field-rac-BFCZik9T.js → date-picker-field-rac-5H10gH9D.js} +4 -4
  29. package/dist/component/{date-picker-rac-C2vajJpb.js → date-picker-rac-CxWNDsyJ.js} +1 -1
  30. package/dist/component/date-time-input-field-rac-CDa-nyf8.js +423 -0
  31. package/dist/component/{date-time-input-rac-D4FEieQz.js → date-time-input-rac-DglwFYb0.js} +1 -1
  32. package/dist/component/{dext-checkbox-group-rac-BDBBTNNo.js → dext-checkbox-group-rac-BBB652Uy.js} +2 -2
  33. package/dist/component/{dext-checkbox-rac-DAAhNboR.js → dext-checkbox-rac-BVtiGV3w.js} +1 -1
  34. package/dist/component/{dext-date-picker-rac-me7XbR5z.js → dext-date-picker-rac-Di4x6sI_.js} +1 -1
  35. package/dist/component/{dext-date-time-input-rac-DLsUl2Eg.js → dext-date-time-input-rac-agWHwUo7.js} +1 -1
  36. package/dist/component/{dext-dropdown-rac-C3vVIRir.js → dext-dropdown-rac-U3FZTA2-.js} +1 -1
  37. package/dist/component/{dext-email-rac-a8qXYTLP.js → dext-email-rac-CZ9AQw_k.js} +1 -1
  38. package/dist/component/{dext-number-input-rac-DdDnL_fX.js → dext-number-input-rac-DFr_9ZX5.js} +1 -1
  39. package/dist/component/{dext-phone-rac-ByaxbHpO.js → dext-phone-rac-BYsfNwXn.js} +1 -1
  40. package/dist/component/{dext-radio-group-rac-Bzubt7Uy.js → dext-radio-group-rac-B_jm5YAT.js} +2 -2
  41. package/dist/component/{dext-rating-input-rac-BZ1EvOkG.js → dext-rating-input-rac-CNlhMKt-.js} +1 -1
  42. package/dist/component/{dext-tags-rac-C_R89noV.js → dext-tags-rac-y9x8Fg54.js} +2 -2
  43. package/dist/component/{dext-text-area-rac-DRpYeQ-K.js → dext-text-area-rac-BgRxIpn9.js} +1 -1
  44. package/dist/component/{dext-text-input-rac-D_RtbQQ-.js → dext-text-input-rac-CdzgUZ38.js} +1 -1
  45. package/dist/component/{dext-url-input-rac-BSSjSbIo.js → dext-url-input-rac-Cg1TYyNV.js} +1 -1
  46. package/dist/component/{donation-rac-De0KyyGR.js → donation-rac-Deiw7Tl9.js} +5 -5
  47. package/dist/component/{dropdown-field-headless-DNhnTDlD.js → dropdown-field-headless-BKj2rdy9.js} +3 -3
  48. package/dist/component/{dropdown-field-rac-Bq_FNv9a.js → dropdown-field-rac-CIdC2_O3.js} +1 -1
  49. package/dist/component/{dropdown-rac-0UIyqF15.js → dropdown-rac-CYxaJrXP.js} +1 -1
  50. package/dist/component/{ecom-address-rac-7IVbvs3J.js → ecom-address-rac-Crr3A_iU.js} +1 -1
  51. package/dist/component/{ecom-subscription-checkbox-rac-DilgIpiG.js → ecom-subscription-checkbox-rac-DdXAex4c.js} +2 -2
  52. package/dist/component/{email-input-field-rac-CHJ6RSGy.js → email-input-field-rac-C516Fm0v.js} +3 -3
  53. package/dist/component/{events-repeater-rac-v18FFLC7.js → events-repeater-rac-DL49KaIU.js} +3 -3
  54. package/dist/component/{events-rsvp-rac-BpGLrxsf.js → events-rsvp-rac-B5EvAP8x.js} +2 -2
  55. package/dist/component/{field-error-headless-DAy-1oAQ.js → field-error-headless-D2CJ4Qk7.js} +1 -1
  56. package/dist/component/{field-label-headless-BWxHmO0c.js → field-label-headless-D2-WvVKT.js} +1 -1
  57. package/dist/component/{file-upload-rac-BfWN27JT.js → file-upload-rac-BG3msdbn.js} +3 -3
  58. package/dist/component/{fixed-payment-rac-Bha61SB4.js → fixed-payment-rac-3bI_h_W0.js} +3 -3
  59. package/dist/component/{form-D0eeH0lX.js → form-B3KiRFhB.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-uNzfDMbv.js → header-field-rac-Bp7hStrt.js} +2 -2
  63. package/dist/component/{header-rac-B91q4fHl.js → header-rac-yVYId2B_.js} +1 -1
  64. package/dist/component/{image-choice-rac-BKcnNGPp.js → image-choice-rac-D1mqJfcn.js} +4 -4
  65. package/dist/component/{index-BvzLLTKc.js → index-B0PANcv8.js} +4 -4
  66. package/dist/component/{index-BWHymomM.js → index-LrdDmlej.js} +2 -2
  67. package/dist/component/{isObjectLike-D7Mkqoju.js → isObjectLike-DH7T0Txd.js} +1 -1
  68. package/dist/component/{multiline-address-field-rac-Avd9Vlv1.js → multiline-address-field-rac-C-gtuNCU.js} +5 -5
  69. package/dist/component/{multiline-address-rac-BwQOoejw.js → multiline-address-rac-B3ixmNqi.js} +1 -1
  70. package/dist/component/{number-input-field-rac-CRqPXDl0.js → number-input-field-rac-BNPMYFay.js} +4 -4
  71. package/dist/component/{number-input-rac-0Y8K4e6K.js → number-input-rac-BaEBt2uf.js} +1 -1
  72. package/dist/component/{password-rac-C7F6sEB3.js → password-rac-B0H_ILkt.js} +4 -4
  73. package/dist/component/{payment-input-rac-CTJr4QTK.js → payment-input-rac-LIk9MP5a.js} +4 -4
  74. package/dist/component/{phone-input-field-rac-jjSmYCI1.js → phone-input-field-rac-CUUAacDK.js} +3 -3
  75. package/dist/component/{phone-rac-BwSnmgYF.js → phone-rac-BYqYOw60.js} +1 -1
  76. package/dist/component/{product-list-rac-CTN2wvHE.js → product-list-rac-CvoI6ajr.js} +4 -4
  77. package/dist/component/{quiz-radio-group-rac-CZHEDJxr.js → quiz-radio-group-rac-D0IJGSh0.js} +1 -1
  78. package/dist/component/{radio-button-module-classes-DCz6XS1X.js → radio-button-module-classes-CWfSY9kQ.js} +3 -3
  79. package/dist/component/{radio-group-field-rac-60MF_9DO.js → radio-group-field-rac-DisEhh0b.js} +3 -3
  80. package/dist/component/{radio-group-rac-Dqo-Earp.js → radio-group-rac-DrwjFNWh.js} +1 -1
  81. package/dist/component/{rating-input-field-rac-CzWTwWT8.js → rating-input-field-rac-BLMQWT7z.js} +4 -4
  82. package/dist/component/{rating-input-rac-Nq4tll2Z.js → rating-input-rac-CGJY2HSO.js} +1 -1
  83. package/dist/component/{rich-content-rac.module-sUUSbcSy.js → rich-content-rac.module-C9cKdumu.js} +1 -1
  84. package/dist/component/{rich-text-field-rac-BvLfS4I5.js → rich-text-field-rac-DTSRvaTK.js} +2 -2
  85. package/dist/component/{rich-text-rac-BWkTbWk3.js → rich-text-rac-Blk3neHN.js} +1 -1
  86. package/dist/component/{service-dropdown-rac-DZ3USe7_.js → service-dropdown-rac-C9P5IWrV.js} +3 -3
  87. package/dist/component/{services-multi-choice-rac-D-og7fMo.js → services-multi-choice-rac-Cnhwy1a9.js} +4 -4
  88. package/dist/component/{signature-rac-D3c4fnvN.js → signature-rac-Benar-ci.js} +3 -3
  89. package/dist/component/{submit-button-rac-Dn_BGt1n.js → submit-button-rac-BDJQsZC3.js} +1 -1
  90. package/dist/component/{tags-field-rac-DXmZBcpO.js → tags-field-rac-wA_0ZinI.js} +5 -5
  91. package/dist/component/{tags-rac-CoXWx42D.js → tags-rac-BcVGekA6.js} +1 -1
  92. package/dist/component/{text-area-field-rac-Cy0Mr29Z.js → text-area-field-rac-VpuojNac.js} +4 -4
  93. package/dist/component/{text-area-rac-C3Mjmgpa.js → text-area-rac-DDvi8u5M.js} +1 -1
  94. package/dist/component/{text-input-field-rac-D1TB9B_M.js → text-input-field-rac-C6LohBtn.js} +2 -2
  95. package/dist/component/{text-input-headless-BUa59Rgn.js → text-input-headless-5yKhWpLD.js} +3 -3
  96. package/dist/component/{text-input-rac-BQ3Z9ws4.js → text-input-rac-C8hsNUp6.js} +1 -1
  97. package/dist/component/time-input-rac-fOT-pjju.js +159 -0
  98. package/dist/component/{url-input-field-rac-DINXfZdf.js → url-input-field-rac-DxR6Hymf.js} +4 -4
  99. package/dist/component/{url-input-rac-Ch9eTIF_.js → url-input-rac-B928R10o.js} +1 -1
  100. package/dist/component/{use-element-state-class-name-j8W1zbdG.js → use-element-state-class-name-CBjBYCW5.js} +1 -1
  101. package/dist/component/{use-service-options-base-BJZhzDyO.js → use-service-options-base-UyJmT2P6.js} +1 -1
  102. package/dist/component/{use-text-input-class-name-8gMUWeCb.js → use-text-input-class-name-Qk2v8a6-.js} +2 -2
  103. package/package.json +2 -2
  104. package/dist/component/date-time-input-field-rac-B7ne2emo.js +0 -423
  105. package/dist/component/time-input-rac-Wi0oD5YF.js +0 -155
@@ -0,0 +1,423 @@
1
+ import { RicosViewer as ne } from "@wix/ricos/viewer";
2
+ import p from "classnames";
3
+ import t, { useMemo as L, useState as G, useCallback as x, useRef as z, useContext as re } from "react";
4
+ import { ai as g, af as K, ab as B, J as Q, a1 as W, r as d, as as O, a5 as j, O as se, x as oe, a8 as le, y as J, ak as $ } from "./form-B3KiRFhB.js";
5
+ import { parseTime as ie } from "@internationalized/date";
6
+ import { UNSAFE_PortalProvider as ce } from "react-aria";
7
+ import { ListBoxItem as me, ListBox as de, Select as ue, TextField as X, TimeField as pe, SelectValue as Ee, Input as Z, DateInput as fe, DateSegment as k, TimeFieldStateContext as he } from "react-aria-components";
8
+ import { f as u, a as S } from "./find-child-C60k4CxG.js";
9
+ import { g as be } from "./helpers-HmkkXrh2.js";
10
+ import { D as ge, E as Ie } from "./field-error-headless-D2CJ4Qk7.js";
11
+ import { L as _e } from "./field-label-headless-D2-WvVKT.js";
12
+ import { F as ye } from "./fieldset-headless-CD3fds9J.js";
13
+ import { N as Ne, S as De } from "./non-modal-popover-DtIMXHbe.js";
14
+ import { C as Te } from "./chevron-down-icon-CcpVm6B-.js";
15
+ import { E as Le } from "./error-icon-hZxQ6DEy.js";
16
+ import { H } from "./custom-focus-class-_483Pkwp.js";
17
+ import { s as f } from "./field-rac.module-D06m9T9x.js";
18
+ import { y as v, O as Oe, x as Ce, A as Fe, o as Pe, i as Me } from "./form-element-classes-Ct1UaxuQ.js";
19
+ import { u as U } from "./use-text-input-class-name-Qk2v8a6-.js";
20
+ const o = ({ children: e, className: a }) => {
21
+ const { id: n, required: r, onBlur: l, onFocus: s, FieldLayout: i } = g(), { inputId: m, labelId: c, ariaDescribedBy: h } = K(), { regionalFormat: b } = B(), y = L(() => Q(b).filter(W).map((M) => M.toUpperCase()), [
22
+ b
23
+ ]), P = u(e, o.Label), V = u(e, o.Description), T = u(e, o.Error), _ = {
24
+ [d.MONTH]: u(e, o.Month),
25
+ [d.DAY]: u(e, o.Day),
26
+ [d.YEAR]: u(e, o.Year)
27
+ }, N = u(e, o.Time);
28
+ return /* @__PURE__ */ t.createElement(i, {
29
+ fieldId: n,
30
+ renderLabel: () => S(P, {
31
+ as: "div"
32
+ }),
33
+ renderInput: () => /* @__PURE__ */ t.createElement(ye, {
34
+ id: m,
35
+ ariaLabelledBy: c,
36
+ ariaDescribedBy: h,
37
+ required: r,
38
+ onBlur: l,
39
+ onFocus: s,
40
+ className: a
41
+ }, _[y[0]], _[y[1]], _[y[2]], N),
42
+ renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, T, V)
43
+ });
44
+ }, C = ({ children: e, className: a }) => {
45
+ const { disabled: n, readOnly: r, showDateLabels: l, hidePlaceholder: s } = g(), { labelId: i } = D(d.MONTH), { partValue: m, partError: c, onPartChange: h } = F(d.MONTH), { t: b } = O(), [y, P] = G(!1), [V, T] = G(null), _ = s ? void 0 : b("field.date.placeholder.month"), N = x((Y) => {
46
+ r || h(typeof Y == "string" ? Y : "");
47
+ }, [
48
+ h,
49
+ r
50
+ ]), M = x((Y) => {
51
+ P(Y && !r);
52
+ }, [
53
+ r
54
+ ]), ee = u(e, C.Label), te = u(e, C.Trigger), ae = u(e, C.Options);
55
+ return /* @__PURE__ */ t.createElement("div", {
56
+ className: a,
57
+ "data-date-field": !0
58
+ }, l ? ee : null, /* @__PURE__ */ t.createElement("div", {
59
+ ref: T,
60
+ style: {
61
+ display: "contents"
62
+ }
63
+ }), /* @__PURE__ */ t.createElement(ce, {
64
+ getContainer: () => V
65
+ }, /* @__PURE__ */ t.createElement(ue, {
66
+ "aria-labelledby": l ? i : void 0,
67
+ value: m || null,
68
+ onChange: N,
69
+ isDisabled: n,
70
+ isInvalid: c,
71
+ placeholder: _,
72
+ isOpen: y,
73
+ onOpenChange: M
74
+ }, te, ae)));
75
+ }, ve = ({ className: e }) => /* @__PURE__ */ t.createElement(q, {
76
+ datePart: d.MONTH,
77
+ className: e
78
+ }), Se = ({ children: e, className: a }) => {
79
+ const { id: n, readOnly: r } = g(), { inputId: l } = D(d.MONTH), { partError: s, isFirstPart: i } = F(d.MONTH), m = z(null);
80
+ return $(() => {
81
+ var c;
82
+ i && ((c = m.current) == null || c.focus());
83
+ }, n), /* @__PURE__ */ t.createElement(De, {
84
+ ref: m,
85
+ id: l,
86
+ className: a,
87
+ "data-hook": d.MONTH,
88
+ "data-invalid": s || void 0,
89
+ "data-readonly": r || void 0
90
+ }, /* @__PURE__ */ t.createElement(Ee, null), e);
91
+ }, w = ({ children: e, className: a }) => {
92
+ const { language: n } = B(), r = L(() => be(n), [
93
+ n
94
+ ]), l = u(e, w.Option) ?? /* @__PURE__ */ t.createElement(w.Option, null);
95
+ return /* @__PURE__ */ t.createElement(Ne, {
96
+ className: a,
97
+ containerPadding: 0,
98
+ offset: 0
99
+ }, /* @__PURE__ */ t.createElement(de, null, r.map((s, i) => S(l, {
100
+ key: String(i + 1),
101
+ value: String(i + 1),
102
+ label: s
103
+ }))));
104
+ }, Re = ({ className: e, ...a }) => {
105
+ const { value: n, label: r } = a;
106
+ return /* @__PURE__ */ t.createElement(me, {
107
+ className: e,
108
+ id: n,
109
+ textValue: r
110
+ }, r);
111
+ };
112
+ C.Label = ve;
113
+ C.Trigger = Se;
114
+ C.Options = w;
115
+ w.Option = Re;
116
+ const R = ({ children: e, className: a }) => {
117
+ const { disabled: n, readOnly: r, showDateLabels: l } = g(), { labelId: s } = D(d.DAY), { partValue: i, partError: m, onPartChange: c } = F(d.DAY), h = u(e, R.Label), b = u(e, R.Input);
118
+ return /* @__PURE__ */ t.createElement("div", {
119
+ className: a,
120
+ "data-date-field": !0
121
+ }, l && h, /* @__PURE__ */ t.createElement(X, {
122
+ "aria-labelledby": l ? s : void 0,
123
+ value: i,
124
+ onChange: c,
125
+ isDisabled: n,
126
+ isReadOnly: r,
127
+ isInvalid: m
128
+ }, b));
129
+ }, Ae = ({ className: e }) => /* @__PURE__ */ t.createElement(q, {
130
+ datePart: d.DAY,
131
+ className: e
132
+ }), Ve = ({ className: e }) => {
133
+ const { id: a, hidePlaceholder: n } = g(), { inputId: r } = D(d.DAY), { isFirstPart: l } = F(d.DAY), { t: s } = O(), i = z(null), m = n ? void 0 : s("field.date.placeholder.day");
134
+ return $(() => {
135
+ var c;
136
+ l && ((c = i.current) == null || c.focus());
137
+ }, a), /* @__PURE__ */ t.createElement(Z, {
138
+ ref: i,
139
+ id: r,
140
+ className: e,
141
+ placeholder: m,
142
+ maxLength: 2,
143
+ inputMode: "numeric",
144
+ "data-hook": d.DAY
145
+ });
146
+ };
147
+ R.Label = Ae;
148
+ R.Input = Ve;
149
+ const A = ({ children: e, className: a }) => {
150
+ const { disabled: n, readOnly: r, showDateLabels: l } = g(), { labelId: s } = D(d.YEAR), { partValue: i, partError: m, onPartChange: c } = F(d.YEAR), h = u(e, A.Label), b = u(e, A.Input);
151
+ return /* @__PURE__ */ t.createElement("div", {
152
+ className: a,
153
+ "data-date-field": !0
154
+ }, l && h, /* @__PURE__ */ t.createElement(X, {
155
+ "aria-labelledby": l ? s : void 0,
156
+ value: i,
157
+ onChange: c,
158
+ isDisabled: n,
159
+ isReadOnly: r,
160
+ isInvalid: m
161
+ }, b));
162
+ }, Ye = ({ className: e }) => /* @__PURE__ */ t.createElement(q, {
163
+ datePart: d.YEAR,
164
+ className: e
165
+ }), He = ({ className: e }) => {
166
+ const { id: a, hidePlaceholder: n } = g(), { inputId: r } = D(d.YEAR), { isFirstPart: l } = F(d.YEAR), { t: s } = O(), i = z(null), m = n ? void 0 : s("field.date.placeholder.year");
167
+ return $(() => {
168
+ var c;
169
+ l && ((c = i.current) == null || c.focus());
170
+ }, a), /* @__PURE__ */ t.createElement(Z, {
171
+ ref: i,
172
+ id: r,
173
+ className: e,
174
+ placeholder: m,
175
+ maxLength: 4,
176
+ inputMode: "numeric",
177
+ "data-hook": d.YEAR
178
+ });
179
+ };
180
+ A.Label = Ye;
181
+ A.Input = He;
182
+ const I = ({ children: e, className: a }) => {
183
+ const { disabled: n, readOnly: r, use24HourFormat: l, showDateLabels: s } = g(), { labelId: i } = D("time"), { partValue: m, partError: c, onPartChange: h } = F("time"), b = u(e, I.Label), y = u(e, I.Input);
184
+ return /* @__PURE__ */ t.createElement("div", {
185
+ className: a,
186
+ "data-date-field": !0
187
+ }, s && b, /* @__PURE__ */ t.createElement(pe, {
188
+ "aria-labelledby": s ? i : void 0,
189
+ value: m,
190
+ onChange: h,
191
+ isDisabled: n,
192
+ isReadOnly: r,
193
+ isInvalid: c,
194
+ hourCycle: l ? 24 : 12
195
+ }, y));
196
+ }, xe = ({ className: e }) => {
197
+ const { inputId: a, labelId: n } = D("time"), { t: r } = O(), l = r("field.date.label.time");
198
+ return /* @__PURE__ */ t.createElement("label", {
199
+ id: n,
200
+ htmlFor: a,
201
+ className: e
202
+ }, l);
203
+ }, we = ({ children: e, className: a }) => {
204
+ const n = u(e, I.Hour), r = u(e, I.Minute), l = u(e, I.Period);
205
+ return /* @__PURE__ */ t.createElement(fe, {
206
+ className: a,
207
+ "data-hook": "time"
208
+ }, (s) => {
209
+ switch (s.type) {
210
+ case "hour":
211
+ return S(n, {
212
+ segment: s
213
+ }) || /* @__PURE__ */ t.createElement(t.Fragment, null);
214
+ case "minute":
215
+ return S(r, {
216
+ segment: s
217
+ }) || /* @__PURE__ */ t.createElement(t.Fragment, null);
218
+ case "dayPeriod":
219
+ return S(l, {
220
+ segment: s
221
+ }) || /* @__PURE__ */ t.createElement(t.Fragment, null);
222
+ case "literal":
223
+ return /* @__PURE__ */ t.createElement(k, {
224
+ segment: s
225
+ });
226
+ default:
227
+ return /* @__PURE__ */ t.createElement(t.Fragment, null);
228
+ }
229
+ });
230
+ }, Be = ({ className: e, ...a }) => {
231
+ const { hidePlaceholder: n } = g(), { segment: r } = a, { t: l } = O(), s = n ? void 0 : l("field.date.placeholder.hour");
232
+ return /* @__PURE__ */ t.createElement(k, {
233
+ segment: r,
234
+ className: e,
235
+ ...s && {
236
+ placeholder: s
237
+ }
238
+ });
239
+ }, ke = ({ className: e, ...a }) => {
240
+ const { hidePlaceholder: n } = g(), { segment: r } = a, { t: l } = O(), s = n ? void 0 : l("field.date.placeholder.minute");
241
+ return /* @__PURE__ */ t.createElement(k, {
242
+ segment: r,
243
+ className: e,
244
+ ...s && {
245
+ placeholder: s
246
+ }
247
+ });
248
+ }, Ue = ({ className: e, ...a }) => {
249
+ const { hidePlaceholder: n } = g(), { segment: r } = a, { t: l } = O(), s = re(he), i = n ? void 0 : l("field.date.placeholder.period"), m = () => s == null ? void 0 : s.increment("dayPeriod");
250
+ return /* @__PURE__ */ t.createElement(k, {
251
+ segment: r,
252
+ className: e,
253
+ onClick: m,
254
+ ...i && {
255
+ placeholder: i
256
+ }
257
+ });
258
+ };
259
+ I.Label = xe;
260
+ I.Input = we;
261
+ I.Hour = Be;
262
+ I.Minute = ke;
263
+ I.Period = Ue;
264
+ o.Label = _e;
265
+ o.Month = C;
266
+ o.Day = R;
267
+ o.Year = A;
268
+ o.Time = I;
269
+ o.Description = ge;
270
+ o.Error = Ie;
271
+ function D(e) {
272
+ const { inputId: a } = K();
273
+ return L(() => {
274
+ const n = e.toLowerCase();
275
+ return {
276
+ inputId: `${a}-${n}-input`,
277
+ labelId: `${a}-${n}-label`
278
+ };
279
+ }, [
280
+ a,
281
+ e
282
+ ]);
283
+ }
284
+ function F(e) {
285
+ const { value: a, onChange: n, hasError: r = !1 } = g(), { regionalFormat: l } = B(), [s, i] = L(() => j(a ?? ""), [
286
+ a
287
+ ]), m = L(() => se(r, a ?? ""), [
288
+ a,
289
+ r
290
+ ]), c = L(() => oe(s), [
291
+ s
292
+ ]), h = L(() => ze(i), [
293
+ i
294
+ ]), b = x((T) => {
295
+ const _ = $e(T), N = J(s, _);
296
+ n(N);
297
+ }, [
298
+ n,
299
+ s
300
+ ]), y = x((T) => {
301
+ const [, _] = j(a ?? ""), N = le(T, e, c), M = J(N, _);
302
+ n(M);
303
+ }, [
304
+ n,
305
+ a,
306
+ c,
307
+ e
308
+ ]), P = L(() => e === "time" ? !1 : Q(l).filter(W).map((N) => N.toUpperCase())[0] === e, [
309
+ l,
310
+ e
311
+ ]);
312
+ return e === "time" ? {
313
+ partValue: h,
314
+ partError: m.TIME,
315
+ onPartChange: b,
316
+ isFirstPart: !1
317
+ } : {
318
+ partValue: c[e] || "",
319
+ partError: m[e],
320
+ onPartChange: y,
321
+ isFirstPart: P
322
+ };
323
+ }
324
+ function q({ datePart: e, className: a }) {
325
+ const { inputId: n, labelId: r } = D(e), { t: l } = O(), s = `field.date.label.${e.toLowerCase()}`, i = l(s);
326
+ return /* @__PURE__ */ t.createElement("label", {
327
+ id: r,
328
+ htmlFor: n,
329
+ className: a
330
+ }, i);
331
+ }
332
+ function ze(e) {
333
+ if (!e)
334
+ return null;
335
+ try {
336
+ return ie(e);
337
+ } catch {
338
+ return null;
339
+ }
340
+ }
341
+ function $e(e) {
342
+ if (!e)
343
+ return null;
344
+ const a = String(e.hour).padStart(2, "0"), n = String(e.minute).padStart(2, "0"), r = String(e.second).padStart(2, "0");
345
+ return [
346
+ a,
347
+ n,
348
+ r
349
+ ].join(":");
350
+ }
351
+ const qe = "_fields_1svr5_1", Ge = "_month_1svr5_10", je = "_day_1svr5_11", Je = "_year_1svr5_12", Ke = "_timeGroup_1svr5_13", Qe = "_mobile_1svr5_32", We = "_dayInput_1svr5_45", Xe = "_yearInput_1svr5_46", Ze = "_monthTrigger_1svr5_50", et = "_monthOption_1svr5_70", tt = "_time_1svr5_13", at = "_hour_1svr5_89", nt = "_minute_1svr5_90", rt = "_period_1svr5_91", E = {
352
+ fields: qe,
353
+ month: Ge,
354
+ day: je,
355
+ year: Je,
356
+ timeGroup: Ke,
357
+ mobile: Qe,
358
+ dayInput: We,
359
+ yearInput: Xe,
360
+ monthTrigger: Ze,
361
+ monthOption: et,
362
+ time: tt,
363
+ hour: at,
364
+ minute: nt,
365
+ period: rt
366
+ }, st = ({ content: e, locale: a }) => /* @__PURE__ */ t.createElement(ne, {
367
+ content: e,
368
+ locale: a
369
+ }), Lt = () => {
370
+ const { isMobile: e } = B(), a = U(E.dayInput), n = U(E.yearInput), r = U(E.time);
371
+ return /* @__PURE__ */ t.createElement(o, {
372
+ className: p(E.fields, {
373
+ [E.mobile]: e
374
+ })
375
+ }, /* @__PURE__ */ t.createElement(o.Label, {
376
+ className: p(v, f.label)
377
+ }, /* @__PURE__ */ t.createElement(o.Label.Required, {
378
+ className: p(Oe, f.requiredMark)
379
+ })), /* @__PURE__ */ t.createElement(o.Month, {
380
+ className: E.month
381
+ }, /* @__PURE__ */ t.createElement(o.Month.Label, {
382
+ className: p(v, f.label)
383
+ }), /* @__PURE__ */ t.createElement(o.Month.Trigger, {
384
+ className: p(Ce, f.input, E.monthTrigger)
385
+ }, /* @__PURE__ */ t.createElement(Te, {
386
+ className: f.dropdownIcon
387
+ })), /* @__PURE__ */ t.createElement(o.Month.Options, {
388
+ className: p(Fe, f.selectPopover, f.dropdownPopover)
389
+ }, /* @__PURE__ */ t.createElement(o.Month.Options.Option, {
390
+ className: p(f.selectOption, E.monthOption, H)
391
+ }))), /* @__PURE__ */ t.createElement(o.Day, {
392
+ className: E.day
393
+ }, /* @__PURE__ */ t.createElement(o.Day.Label, {
394
+ className: p(v, f.label)
395
+ }), /* @__PURE__ */ t.createElement(o.Day.Input, {
396
+ className: a
397
+ })), /* @__PURE__ */ t.createElement(o.Year, {
398
+ className: E.year
399
+ }, /* @__PURE__ */ t.createElement(o.Year.Label, {
400
+ className: p(v, f.label)
401
+ }), /* @__PURE__ */ t.createElement(o.Year.Input, {
402
+ className: n
403
+ })), /* @__PURE__ */ t.createElement(o.Time, {
404
+ className: E.timeGroup
405
+ }, /* @__PURE__ */ t.createElement(o.Time.Label, {
406
+ className: p(v, f.label)
407
+ }), /* @__PURE__ */ t.createElement(o.Time.Input, {
408
+ className: r
409
+ }, /* @__PURE__ */ t.createElement(o.Time.Hour, {
410
+ className: p(E.hour, H)
411
+ }), /* @__PURE__ */ t.createElement(o.Time.Minute, {
412
+ className: p(E.minute, H)
413
+ }), /* @__PURE__ */ t.createElement(o.Time.Period, {
414
+ className: p(E.period, H)
415
+ }))), /* @__PURE__ */ t.createElement(o.Error, {
416
+ className: p(Pe, f.error)
417
+ }, /* @__PURE__ */ t.createElement(Le, null), /* @__PURE__ */ t.createElement(o.Error.Text, null)), /* @__PURE__ */ t.createElement(o.Description, {
418
+ className: p(Me, f.description)
419
+ }, st));
420
+ };
421
+ export {
422
+ Lt as D
423
+ };
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { D as t } from "./date-time-input-field-rac-B7ne2emo.js";
2
+ import { D as t } from "./date-time-input-field-rac-CDa-nyf8.js";
3
3
  const n = () => /* @__PURE__ */ e.createElement(t, null);
4
4
  export {
5
5
  n as DateTimeInputRAC
@@ -1,6 +1,6 @@
1
1
  import o from "react";
2
- import { ai as e, h as t } from "./form-D0eeH0lX.js";
3
- import { C as p } from "./checkbox-group-field-rac-DGOZjSIY.js";
2
+ import { ai as e, h as t } from "./form-B3KiRFhB.js";
3
+ import { C as p } from "./checkbox-group-field-rac-MgGUuYII.js";
4
4
  import { D as s } from "./default-limits-D7qVv_Hv.js";
5
5
  const C = () => {
6
6
  const r = {
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { C as t } from "./checkbox-field-rac-CMEI5t4Y.js";
2
+ import { C as t } from "./checkbox-field-rac-C_jth3RK.js";
3
3
  const c = () => /* @__PURE__ */ e.createElement(t, null);
4
4
  export {
5
5
  c as DextCheckboxRAC
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { D as t } from "./date-picker-field-rac-BFCZik9T.js";
2
+ import { D as t } from "./date-picker-field-rac-5H10gH9D.js";
3
3
  const a = () => /* @__PURE__ */ e.createElement(t, null);
4
4
  export {
5
5
  a as DextDatePickerRAC
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { D as t } from "./date-time-input-field-rac-B7ne2emo.js";
2
+ import { D as t } from "./date-time-input-field-rac-CDa-nyf8.js";
3
3
  const n = () => /* @__PURE__ */ e.createElement(t, null);
4
4
  export {
5
5
  n as DextDateTimeInputRAC
@@ -1,5 +1,5 @@
1
1
  import o from "react";
2
- import { D as r } from "./dropdown-field-rac-Bq_FNv9a.js";
2
+ import { D as r } from "./dropdown-field-rac-CIdC2_O3.js";
3
3
  const n = () => /* @__PURE__ */ o.createElement(r, null);
4
4
  export {
5
5
  n as DextDropdownRAC
@@ -1,5 +1,5 @@
1
1
  import t from "react";
2
- import { E as e } from "./email-input-field-rac-CHJ6RSGy.js";
2
+ import { E as e } from "./email-input-field-rac-C516Fm0v.js";
3
3
  const l = () => /* @__PURE__ */ t.createElement(e, null);
4
4
  export {
5
5
  l as DextEmailRAC
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { N as t } from "./number-input-field-rac-CRqPXDl0.js";
2
+ import { N as t } from "./number-input-field-rac-BNPMYFay.js";
3
3
  const n = () => /* @__PURE__ */ e.createElement(t, null);
4
4
  export {
5
5
  n as DextNumberInputRAC
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { P as t } from "./phone-input-field-rac-jjSmYCI1.js";
2
+ import { P as t } from "./phone-input-field-rac-CUUAacDK.js";
3
3
  const r = () => /* @__PURE__ */ e.createElement(t, null);
4
4
  export {
5
5
  r as DextPhoneRAC
@@ -1,6 +1,6 @@
1
1
  import r from "react";
2
- import { ai as e, h as t } from "./form-D0eeH0lX.js";
3
- import { R as p } from "./radio-group-field-rac-60MF_9DO.js";
2
+ import { ai as e, h as t } from "./form-B3KiRFhB.js";
3
+ import { R as p } from "./radio-group-field-rac-DisEhh0b.js";
4
4
  import { a } from "./default-limits-D7qVv_Hv.js";
5
5
  const l = () => {
6
6
  const o = {
@@ -1,5 +1,5 @@
1
1
  import t from "react";
2
- import { R as e } from "./rating-input-field-rac-CzWTwWT8.js";
2
+ import { R as e } from "./rating-input-field-rac-BLMQWT7z.js";
3
3
  const o = () => /* @__PURE__ */ t.createElement(e, null);
4
4
  export {
5
5
  o as DextRatingInputRAC
@@ -1,6 +1,6 @@
1
1
  import r from "react";
2
- import { ai as e, h as o } from "./form-D0eeH0lX.js";
3
- import { T as s } from "./tags-field-rac-DXmZBcpO.js";
2
+ import { ai as e, h as o } from "./form-B3KiRFhB.js";
3
+ import { T as s } from "./tags-field-rac-wA_0ZinI.js";
4
4
  import { b as a } from "./default-limits-D7qVv_Hv.js";
5
5
  const l = () => {
6
6
  const t = {
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { T as t } from "./text-area-field-rac-Cy0Mr29Z.js";
2
+ import { T as t } from "./text-area-field-rac-VpuojNac.js";
3
3
  const a = () => /* @__PURE__ */ e.createElement(t, null);
4
4
  export {
5
5
  a as DextTextAreaRAC
@@ -1,5 +1,5 @@
1
1
  import t from "react";
2
- import { T as e } from "./text-input-field-rac-D1TB9B_M.js";
2
+ import { T as e } from "./text-input-field-rac-C6LohBtn.js";
3
3
  const o = () => /* @__PURE__ */ t.createElement(e, null);
4
4
  export {
5
5
  o as DextTextInputRAC
@@ -1,5 +1,5 @@
1
1
  import t from "react";
2
- import { U as r } from "./url-input-field-rac-DINXfZdf.js";
2
+ import { U as r } from "./url-input-field-rac-DxR6Hymf.js";
3
3
  const n = () => /* @__PURE__ */ t.createElement(r, null);
4
4
  export {
5
5
  n as DextUrlInputRAC
@@ -3,11 +3,11 @@ import { RicosViewer as re } from "@wix/ricos/viewer";
3
3
  import D from "classnames";
4
4
  import { RadioGroup as se, RadioField as G, RadioButton as Y, TextField as ae, Group as le, Input as ie } from "react-aria-components";
5
5
  import { debounce as ce } from "ts-debounce";
6
- import { P as Q, ai as L, af as B, as as ue, ab as A, ak as me } from "./form-D0eeH0lX.js";
6
+ import { P as Q, ai as L, af as B, as as ue, ab as A, ak as me } from "./form-B3KiRFhB.js";
7
7
  import { f, a as y } from "./find-child-C60k4CxG.js";
8
8
  import { a as W } from "./format-currency-BwShJ9vM.js";
9
- import { D as pe, E as de } from "./field-error-headless-DAy-1oAQ.js";
10
- import { L as Ce } from "./field-label-headless-BWxHmO0c.js";
9
+ import { D as pe, E as de } from "./field-error-headless-D2CJ4Qk7.js";
10
+ import { L as Ce } from "./field-label-headless-D2-WvVKT.js";
11
11
  import { N as Ie } from "./options-layout-constants-DEfIEJWD.js";
12
12
  import { a as Ee, b as fe } from "./numeric-input-utils-CuBMi4-a.js";
13
13
  import { g as Oe } from "./payment-field-utils-DobiK5Xh.js";
@@ -16,8 +16,8 @@ import { E as _e } from "./error-icon-hZxQ6DEy.js";
16
16
  import { s as S } from "./field-rac.module-D06m9T9x.js";
17
17
  import { y as be, O as ye, j as Ne, o as ge, i as Fe, k as De } from "./form-element-classes-Ct1UaxuQ.js";
18
18
  import { o as Se } from "./options-rac.module-KM-VT_KY.js";
19
- import { u as Re } from "./use-element-state-class-name-j8W1zbdG.js";
20
- import { u as ve } from "./use-text-input-class-name-8gMUWeCb.js";
19
+ import { u as Re } from "./use-element-state-class-name-CBjBYCW5.js";
20
+ import { u as ve } from "./use-text-input-class-name-Qk2v8a6-.js";
21
21
  function Le(e, t) {
22
22
  return e.reduce((o, r) => (o[r[t]] = r, o), {});
23
23
  }
@@ -1,10 +1,10 @@
1
1
  import e, { useState as E, useCallback as g, useRef as q } from "react";
2
2
  import { UNSAFE_PortalProvider as A } from "react-aria";
3
3
  import { Select as w, SelectValue as M, ListBox as U, ListBoxItem as _ } from "react-aria-components";
4
- import { ai as p, af as b, ak as j } from "./form-D0eeH0lX.js";
4
+ import { ai as p, af as b, ak as j } from "./form-B3KiRFhB.js";
5
5
  import { f as d, a as z } from "./find-child-C60k4CxG.js";
6
- import { D as G, E as H } from "./field-error-headless-DAy-1oAQ.js";
7
- import { L as J } from "./field-label-headless-BWxHmO0c.js";
6
+ import { D as G, E as H } from "./field-error-headless-D2CJ4Qk7.js";
7
+ import { L as J } from "./field-label-headless-D2-WvVKT.js";
8
8
  import { S as K, N as Q } from "./non-modal-popover-DtIMXHbe.js";
9
9
  const n = ({ children: t }) => {
10
10
  const { id: o, value: r, defaultValue: l, options: a = [], readOnly: s, onChange: u, placeholder: m, disabled: i, required: v, onBlur: O, onFocus: y, FieldLayout: F, hasError: C } = p(), [D, L] = E(!1), [h, I] = E(null), B = r && a.some((c) => (c.value ?? c.label) === r) ? r : l || null, { labelId: N } = b(), P = g((c) => {
@@ -1,7 +1,7 @@
1
1
  import { RicosViewer as m } from "@wix/ricos/viewer";
2
2
  import t from "classnames";
3
3
  import e from "react";
4
- import { D as o } from "./dropdown-field-headless-DNhnTDlD.js";
4
+ import { D as o } from "./dropdown-field-headless-BKj2rdy9.js";
5
5
  import { C as n } from "./chevron-down-icon-CcpVm6B-.js";
6
6
  import { E as l } from "./error-icon-hZxQ6DEy.js";
7
7
  import { H as c } from "./custom-focus-class-_483Pkwp.js";
@@ -1,5 +1,5 @@
1
1
  import o from "react";
2
- import { D as r } from "./dropdown-field-rac-Bq_FNv9a.js";
2
+ import { D as r } from "./dropdown-field-rac-CIdC2_O3.js";
3
3
  const n = () => /* @__PURE__ */ o.createElement(r, null);
4
4
  export {
5
5
  n as DropdownRAC
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { M as r } from "./multiline-address-field-rac-Avd9Vlv1.js";
2
+ import { M as r } from "./multiline-address-field-rac-C-gtuNCU.js";
3
3
  const l = () => /* @__PURE__ */ e.createElement(r, null);
4
4
  export {
5
5
  l as EcomAddressRAC
@@ -1,6 +1,6 @@
1
1
  import o, { useMemo as a } from "react";
2
- import { ai as n, as as c, h as i } from "./form-D0eeH0lX.js";
3
- import { C } from "./checkbox-field-rac-CMEI5t4Y.js";
2
+ import { ai as n, as as c, h as i } from "./form-B3KiRFhB.js";
3
+ import { C } from "./checkbox-field-rac-C_jth3RK.js";
4
4
  import { m as l, n as m, l as p } from "./form-element-classes-Ct1UaxuQ.js";
5
5
  const _ = (e) => ({
6
6
  nodes: [
@@ -2,7 +2,7 @@ import { RicosViewer as ie } from "@wix/ricos/viewer";
2
2
  import j from "classnames";
3
3
  import u, { createContext as Z, useContext as z, createElement as R, isValidElement as B, cloneElement as w, useState as le, useCallback as me, useEffect as ue } from "react";
4
4
  import { TextField as pe } from "react-aria-components";
5
- import { af as fe, as as ge, ad as ve, c as ye, ai as Ee, am as de, ag as be, f as Oe } from "./form-D0eeH0lX.js";
5
+ import { af as fe, as as ge, ad as ve, c as ye, ai as Ee, am as de, ag as be, f as Oe } from "./form-B3KiRFhB.js";
6
6
  import { f as C } from "./find-child-C60k4CxG.js";
7
7
  import ee from "@babel/runtime/helpers/objectWithoutProperties";
8
8
  import L from "@babel/runtime/helpers/typeof";
@@ -10,11 +10,11 @@ import Se from "@babel/runtime/helpers/defineProperty";
10
10
  import he from "html-parse-stringify";
11
11
  import Ie from "@babel/runtime/helpers/classCallCheck";
12
12
  import Ne from "@babel/runtime/helpers/createClass";
13
- import { T as U } from "./text-input-headless-BUa59Rgn.js";
13
+ import { T as U } from "./text-input-headless-5yKhWpLD.js";
14
14
  import { E as Ae } from "./error-icon-hZxQ6DEy.js";
15
15
  import { s as H } from "./field-rac.module-D06m9T9x.js";
16
16
  import { y as Fe, O as ke, o as Te, i as xe, Z as De } from "./form-element-classes-Ct1UaxuQ.js";
17
- import { u as je } from "./use-text-input-class-name-8gMUWeCb.js";
17
+ import { u as je } from "./use-text-input-class-name-Qk2v8a6-.js";
18
18
  var Ce = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, Le = {
19
19
  "&": "&",
20
20
  "&": "&",