@wix/form-elements 1.82.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 (120) hide show
  1. package/dist/component/{appointment-rac-DmwbqZse.js → appointment-rac-BSy3u0GK.js} +6 -6
  2. package/dist/component/{bookings-address-rac-RCzVU87c.js → bookings-address-rac-CL7Bh1yH.js} +1 -1
  3. package/dist/component/{bookings-email-rac-Df_Wte1_.js → bookings-email-rac-Bw9tj_tv.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-BmdRGYxF.js → bookings-first-name-rac-BOOu_AXM.js} +1 -1
  5. package/dist/component/{bookings-header-rac-DewQWtkZ.js → bookings-header-rac-3kBei7GF.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-DmmNBuqy.js → bookings-last-name-rac-CUKbu22q.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-QskvFo0C.js → bookings-login-bar-rac-CLrUhdX2.js} +2 -2
  8. package/dist/component/{bookings-phone-rac-7wn8IXna.js → bookings-phone-rac-7DViellg.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-B5nk0BlD.js → bookings-rich-text-rac-CIUZX--G.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-BnVNfYWL.js → checkbox-field-rac-C_jth3RK.js} +7 -7
  11. package/dist/component/{checkbox-group-field-headless-Bx5Y-RMP.js → checkbox-group-field-headless-D-c9Kyj8.js} +3 -3
  12. package/dist/component/checkbox-group-field-rac-MgGUuYII.js +42 -0
  13. package/dist/component/{checkbox-group-rac-B20t8dTB.js → checkbox-group-rac-rr1mN2EJ.js} +1 -1
  14. package/dist/component/{checkbox-indicator-module-classes-DqzGZQRQ.js → checkbox-indicator-module-classes-Bb3xB1ve.js} +1 -1
  15. package/dist/component/{checkbox-rac-ifC6qSE8.js → checkbox-rac-CRsLQKhN.js} +1 -1
  16. package/dist/component/{contacts-address-rac-XJRKvPlp.js → contacts-address-rac-BFlNbQKh.js} +1 -1
  17. package/dist/component/{contacts-birthdate-rac-CKYESrPO.js → contacts-birthdate-rac-D7Ww3iAz.js} +1 -1
  18. package/dist/component/{contacts-company-rac-BXwEeb0p.js → contacts-company-rac-DLl4nqH-.js} +1 -1
  19. package/dist/component/{contacts-email-rac-D8Yspo_m.js → contacts-email-rac-K8fCs8qS.js} +1 -1
  20. package/dist/component/{contacts-first-name-rac-mvCGP1LJ.js → contacts-first-name-rac-BOTxHl3m.js} +1 -1
  21. package/dist/component/{contacts-last-name-rac-Clg9RXal.js → contacts-last-name-rac-bFnG-7Hm.js} +1 -1
  22. package/dist/component/{contacts-phone-rac-qEwjhByI.js → contacts-phone-rac-B4teqDIV.js} +1 -1
  23. package/dist/component/{contacts-position-rac-Bh8fvf2M.js → contacts-position-rac-CnWoXO5h.js} +1 -1
  24. package/dist/component/{contacts-subscribe-rac-DEQ2XkZo.js → contacts-subscribe-rac-Bco722BU.js} +2 -2
  25. package/dist/component/{contacts-tax-id-rac-0DUZ4tJz.js → contacts-tax-id-rac-QQsKhAx3.js} +1 -1
  26. package/dist/component/{date-availability-2ek2RtXx.js → date-availability-DMbyb1GZ.js} +1 -1
  27. package/dist/component/{date-input-field-rac-Bp4SQB-t.js → date-input-field-rac-CVRjO19U.js} +80 -79
  28. package/dist/component/{date-input-rac-CYsJcMe5.js → date-input-rac-zi7AQ8Ai.js} +1 -1
  29. package/dist/component/{date-picker-field-rac-BGQvnSYI.js → date-picker-field-rac-5H10gH9D.js} +6 -6
  30. package/dist/component/{date-picker-rac-BVncggYR.js → date-picker-rac-CxWNDsyJ.js} +1 -1
  31. package/dist/component/date-time-input-field-rac-CDa-nyf8.js +423 -0
  32. package/dist/component/{date-time-input-rac-DzdCno0L.js → date-time-input-rac-DglwFYb0.js} +1 -1
  33. package/dist/component/{dext-checkbox-group-rac-CNCpeolD.js → dext-checkbox-group-rac-BBB652Uy.js} +2 -2
  34. package/dist/component/{dext-checkbox-rac-BYDQ58Mo.js → dext-checkbox-rac-BVtiGV3w.js} +1 -1
  35. package/dist/component/{dext-date-picker-rac-aYYk8Nrl.js → dext-date-picker-rac-Di4x6sI_.js} +1 -1
  36. package/dist/component/{dext-date-time-input-rac-v2v974p5.js → dext-date-time-input-rac-agWHwUo7.js} +1 -1
  37. package/dist/component/{dext-dropdown-rac-C846KZCe.js → dext-dropdown-rac-U3FZTA2-.js} +1 -1
  38. package/dist/component/{dext-email-rac-izjbfME9.js → dext-email-rac-CZ9AQw_k.js} +1 -1
  39. package/dist/component/{dext-number-input-rac-CnOFsD7l.js → dext-number-input-rac-DFr_9ZX5.js} +1 -1
  40. package/dist/component/{dext-phone-rac-D8GMXD88.js → dext-phone-rac-BYsfNwXn.js} +1 -1
  41. package/dist/component/{dext-radio-group-rac-BtiyGCRh.js → dext-radio-group-rac-B_jm5YAT.js} +2 -2
  42. package/dist/component/{dext-rating-input-rac-BHJ1kitb.js → dext-rating-input-rac-CNlhMKt-.js} +1 -1
  43. package/dist/component/{dext-tags-rac-CvNjwS5R.js → dext-tags-rac-y9x8Fg54.js} +2 -2
  44. package/dist/component/{dext-text-area-rac-X5L0Q3sC.js → dext-text-area-rac-BgRxIpn9.js} +1 -1
  45. package/dist/component/{dext-text-input-rac-swkyAJqC.js → dext-text-input-rac-CdzgUZ38.js} +1 -1
  46. package/dist/component/{dext-url-input-rac-BYlXOAkz.js → dext-url-input-rac-Cg1TYyNV.js} +1 -1
  47. package/dist/component/{donation-rac-CDWLBZZM.js → donation-rac-Deiw7Tl9.js} +92 -91
  48. package/dist/component/{dropdown-field-headless-JJzbZvps.js → dropdown-field-headless-BKj2rdy9.js} +3 -3
  49. package/dist/component/{dropdown-field-rac-BodpIQ9Q.js → dropdown-field-rac-CIdC2_O3.js} +3 -3
  50. package/dist/component/{dropdown-rac-Bfbxxx9k.js → dropdown-rac-CYxaJrXP.js} +1 -1
  51. package/dist/component/{ecom-address-rac-BCnsL5tr.js → ecom-address-rac-Crr3A_iU.js} +1 -1
  52. package/dist/component/{ecom-subscription-checkbox-rac-CNSdI_ty.js → ecom-subscription-checkbox-rac-DdXAex4c.js} +3 -3
  53. package/dist/component/{email-input-field-rac-Btaa4O5T.js → email-input-field-rac-C516Fm0v.js} +83 -79
  54. package/dist/component/{events-repeater-rac-xBwqJddt.js → events-repeater-rac-DL49KaIU.js} +6 -6
  55. package/dist/component/{events-rsvp-rac-D90PwkHd.js → events-rsvp-rac-B5EvAP8x.js} +4 -4
  56. package/dist/component/{field-error-headless-BErhh9GG.js → field-error-headless-D2CJ4Qk7.js} +1 -1
  57. package/dist/component/{field-label-headless-BGyK-5xW.js → field-label-headless-D2-WvVKT.js} +1 -1
  58. package/dist/component/field-rac.module-D06m9T9x.js +24 -0
  59. package/dist/component/{file-upload-rac-MxH3CVml.js → file-upload-rac-BG3msdbn.js} +5 -5
  60. package/dist/component/{fixed-payment-rac-DpBA9irF.js → fixed-payment-rac-3bI_h_W0.js} +5 -5
  61. package/dist/component/{form-f0tqdMye.js → form-B3KiRFhB.js} +69 -69
  62. package/dist/component/{form-element-classes-jC8D0LnK.js → form-element-classes-Ct1UaxuQ.js} +38 -32
  63. package/dist/component/form.css +1 -1
  64. package/dist/component/form.js +1 -1
  65. package/dist/component/{header-field-rac-BXxFqu9u.js → header-field-rac-Bp7hStrt.js} +3 -3
  66. package/dist/component/{header-rac-BN70esac.js → header-rac-yVYId2B_.js} +1 -1
  67. package/dist/component/{image-choice-rac-DLBGIBXL.js → image-choice-rac-D1mqJfcn.js} +6 -6
  68. package/dist/component/{index-DXLEHYlA.js → index-B0PANcv8.js} +4 -4
  69. package/dist/component/{index-BvB-uE1H.js → index-LrdDmlej.js} +2 -2
  70. package/dist/component/{isObjectLike-BYOX5XY4.js → isObjectLike-DH7T0Txd.js} +1 -1
  71. package/dist/component/multiline-address-field-rac-C-gtuNCU.js +1617 -0
  72. package/dist/component/{multiline-address-rac-D82Gbj3n.js → multiline-address-rac-B3ixmNqi.js} +1 -1
  73. package/dist/component/number-input-field-rac-BNPMYFay.js +93 -0
  74. package/dist/component/{number-input-rac-Bnsvb-SO.js → number-input-rac-BaEBt2uf.js} +1 -1
  75. package/dist/component/password-rac-B0H_ILkt.js +143 -0
  76. package/dist/component/payment-input-rac-LIk9MP5a.js +141 -0
  77. package/dist/component/{phone-input-field-rac-Ce_wuE46.js → phone-input-field-rac-CUUAacDK.js} +5 -5
  78. package/dist/component/{phone-rac-DslINtcH.js → phone-rac-BYqYOw60.js} +1 -1
  79. package/dist/component/{product-list-rac-C4P_SOyG.js → product-list-rac-CvoI6ajr.js} +7 -7
  80. package/dist/component/{quiz-radio-group-rac-noy4fmD8.js → quiz-radio-group-rac-D0IJGSh0.js} +2 -2
  81. package/dist/component/{radio-button-module-classes-DXQ1UlmI.js → radio-button-module-classes-CWfSY9kQ.js} +3 -3
  82. package/dist/component/radio-group-field-rac-DisEhh0b.js +48 -0
  83. package/dist/component/{radio-group-rac-CGHQFyJY.js → radio-group-rac-DrwjFNWh.js} +1 -1
  84. package/dist/component/{rating-input-field-rac-elaferlI.js → rating-input-field-rac-BLMQWT7z.js} +6 -6
  85. package/dist/component/{rating-input-rac-fnOtTKN8.js → rating-input-rac-CGJY2HSO.js} +1 -1
  86. package/dist/component/{rich-content-rac.module-DbwuwQeo.js → rich-content-rac.module-C9cKdumu.js} +1 -1
  87. package/dist/component/{rich-text-field-rac-DtcQC8zU.js → rich-text-field-rac-DTSRvaTK.js} +3 -3
  88. package/dist/component/{rich-text-rac-CuT97sby.js → rich-text-rac-Blk3neHN.js} +1 -1
  89. package/dist/component/{service-dropdown-rac-rk2tzikX.js → service-dropdown-rac-C9P5IWrV.js} +5 -5
  90. package/dist/component/{services-multi-choice-rac-BMQyF_xs.js → services-multi-choice-rac-Cnhwy1a9.js} +7 -7
  91. package/dist/component/{signature-rac-DeV9C6ta.js → signature-rac-Benar-ci.js} +5 -5
  92. package/dist/component/{submit-button-rac-BpN-FYtM.js → submit-button-rac-BDJQsZC3.js} +2 -2
  93. package/dist/component/tags-field-rac-wA_0ZinI.js +218 -0
  94. package/dist/component/{tags-rac-Dabz4jHd.js → tags-rac-BcVGekA6.js} +1 -1
  95. package/dist/component/text-area-field-rac-VpuojNac.js +73 -0
  96. package/dist/component/{text-area-rac-CDLF-_56.js → text-area-rac-DDvi8u5M.js} +1 -1
  97. package/dist/component/text-input-field-rac-C6LohBtn.js +28 -0
  98. package/dist/component/{text-input-headless-BwVLU9cp.js → text-input-headless-5yKhWpLD.js} +3 -3
  99. package/dist/component/{text-input-rac-CoGTzfo1.js → text-input-rac-C8hsNUp6.js} +1 -1
  100. package/dist/component/time-input-rac-fOT-pjju.js +159 -0
  101. package/dist/component/url-input-field-rac-DxR6Hymf.js +75 -0
  102. package/dist/component/{url-input-rac-_d6XRdKX.js → url-input-rac-B928R10o.js} +1 -1
  103. package/dist/component/use-element-state-class-name-CBjBYCW5.js +20 -0
  104. package/dist/component/{use-service-options-base-CRgxxz7b.js → use-service-options-base-UyJmT2P6.js} +1 -1
  105. package/dist/component/use-text-input-class-name-Qk2v8a6-.js +24 -0
  106. package/package.json +2 -2
  107. package/dist/component/checkbox-group-field-rac-CZW28rj5.js +0 -41
  108. package/dist/component/date-time-input-field-rac-B1mggelc.js +0 -422
  109. package/dist/component/field-rac.module-ColNPUt0.js +0 -23
  110. package/dist/component/multiline-address-field-rac-fcQYnPlO.js +0 -1613
  111. package/dist/component/number-input-field-rac-B0-4Rz3w.js +0 -89
  112. package/dist/component/password-rac-BdBjFa8y.js +0 -142
  113. package/dist/component/payment-input-rac-DkAGOvaF.js +0 -137
  114. package/dist/component/radio-group-field-rac-CYBDq7R1.js +0 -47
  115. package/dist/component/tags-field-rac-ByC9DnyH.js +0 -217
  116. package/dist/component/text-area-field-rac-CtSa8XW_.js +0 -69
  117. package/dist/component/text-input-field-rac-C6fQYKhI.js +0 -24
  118. package/dist/component/time-input-rac-DQDupKTA.js +0 -155
  119. package/dist/component/url-input-field-rac-4T8gcMHH.js +0 -71
  120. package/dist/component/use-element-state-class-name-BqmaTba3.js +0 -15
@@ -1,20 +1,20 @@
1
1
  import { RicosViewer as G } from "@wix/ricos/viewer";
2
2
  import C from "classnames";
3
3
  import e, { useState as Q, useCallback as F, useContext as Z, useRef as L, useMemo as _ } from "react";
4
- import { D, ai as v, af as A, ab as S, ak as z } from "./form-f0tqdMye.js";
4
+ import { D, ai as v, af as A, ab as S, ak as z } from "./form-B3KiRFhB.js";
5
5
  import { parseDate as J } from "@internationalized/date";
6
6
  import { UNSAFE_PortalProvider as X } from "react-aria";
7
7
  import { I18nProvider as ee, DatePicker as te, DatePickerStateContext as re, Group as ae, DateInput as ne, DateSegment as oe, Dialog as le, Calendar as se, CalendarMonthPicker as ce, CalendarYearPicker as ie, CalendarGrid as me, CalendarCell as ue, Button as R, Select as O, SelectValue as x, ListBox as k, ListBoxItem as M } from "react-aria-components";
8
8
  import { g as de } from "./get-first-day-of-the-week-DvnsxYhQ.js";
9
9
  import { f as E, a as b } from "./find-child-C60k4CxG.js";
10
- import { D as ge, E as Ee } from "./field-error-headless-BErhh9GG.js";
11
- import { L as pe } from "./field-label-headless-BGyK-5xW.js";
10
+ import { D as ge, E as Ee } from "./field-error-headless-D2CJ4Qk7.js";
11
+ import { L as pe } from "./field-label-headless-D2-WvVKT.js";
12
12
  import { D as De, N as I, S as w } from "./non-modal-popover-DtIMXHbe.js";
13
- import { i as fe } from "./date-availability-2ek2RtXx.js";
13
+ import { i as fe } from "./date-availability-DMbyb1GZ.js";
14
14
  import { C as N } from "./chevron-down-icon-CcpVm6B-.js";
15
15
  import { E as ye } from "./error-icon-hZxQ6DEy.js";
16
- import { s as p } from "./field-rac.module-ColNPUt0.js";
17
- import { y as Ce, O as he, x as ve, A as Se, o as Te, i as be } from "./form-element-classes-jC8D0LnK.js";
16
+ import { s as p } from "./field-rac.module-D06m9T9x.js";
17
+ import { y as Ce, O as he, x as ve, A as Se, o as Te, i as be } from "./form-element-classes-Ct1UaxuQ.js";
18
18
  const _e = [
19
19
  D.SUNDAY,
20
20
  D.MONDAY,
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { D as r } from "./date-picker-field-rac-BGQvnSYI.js";
2
+ import { D as r } from "./date-picker-field-rac-5H10gH9D.js";
3
3
  const a = () => /* @__PURE__ */ e.createElement(r, null);
4
4
  export {
5
5
  a as DatePickerRAC
@@ -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-B1mggelc.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-f0tqdMye.js";
3
- import { C as p } from "./checkbox-group-field-rac-CZW28rj5.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-BnVNfYWL.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-BGQvnSYI.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-B1mggelc.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-BodpIQ9Q.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-Btaa4O5T.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-B0-4Rz3w.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-Ce_wuE46.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-f0tqdMye.js";
3
- import { R as p } from "./radio-group-field-rac-CYBDq7R1.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-elaferlI.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-f0tqdMye.js";
3
- import { T as s } from "./tags-field-rac-ByC9DnyH.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-CtSa8XW_.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-C6fQYKhI.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-4T8gcMHH.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