@wix/form-elements 1.158.0 → 1.160.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 (117) hide show
  1. package/dist/component/{appointment-rac-m5-FH9kU.js → appointment-rac-BmHu56e5.js} +63 -63
  2. package/dist/component/{bookings-address-rac-VtG7wH0l.js → bookings-address-rac-DY9l2g0h.js} +1 -1
  3. package/dist/component/{bookings-email-rac-C8T3aTQH.js → bookings-email-rac-B5vNSOsS.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-BlhIWWNj.js → bookings-first-name-rac-CJiefCNz.js} +1 -1
  5. package/dist/component/{bookings-header-rac-adwR7PKJ.js → bookings-header-rac-BFu7Ko5w.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-z5z1GJQL.js → bookings-last-name-rac-DegMM13h.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-DMgVxy8J.js → bookings-login-bar-rac-DrA-5tBH.js} +7 -7
  8. package/dist/component/{bookings-phone-rac-DS7ffO6T.js → bookings-phone-rac-DsaeqxCI.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-BNWI0o60.js → bookings-rich-text-rac-jRHiwqi8.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-CUKZ9NHF.js → checkbox-field-rac-CyoBb6Yf.js} +43 -43
  11. package/dist/component/{checkbox-group-field-headless-Didam2ZD.js → checkbox-group-field-headless-Bv1gU3oL.js} +54 -54
  12. package/dist/component/{checkbox-group-field-rac-C3WCeVA8.js → checkbox-group-field-rac-DasArcdV.js} +6 -6
  13. package/dist/component/{checkbox-group-rac-Bkq-wm7_.js → checkbox-group-rac-CzmufV1U.js} +1 -1
  14. package/dist/component/{checkbox-rac-66ga9Lph.js → checkbox-rac-6C7XoUoZ.js} +1 -1
  15. package/dist/component/{contacts-address-rac-DSOk97te.js → contacts-address-rac-BZobbFtz.js} +1 -1
  16. package/dist/component/{contacts-birthdate-rac-1qguKm9O.js → contacts-birthdate-rac-DIzf41DS.js} +1 -1
  17. package/dist/component/{contacts-company-rac-Chefzmw3.js → contacts-company-rac-BiBDO28r.js} +1 -1
  18. package/dist/component/{contacts-email-rac-DG6eAnz2.js → contacts-email-rac-5mqokCSD.js} +1 -1
  19. package/dist/component/{contacts-first-name-rac-tSGE0w5w.js → contacts-first-name-rac-BXe3_Nz5.js} +1 -1
  20. package/dist/component/{contacts-last-name-rac-BjZWfbM5.js → contacts-last-name-rac-Cfqgh7u1.js} +1 -1
  21. package/dist/component/{contacts-phone-rac-jfGNKLoZ.js → contacts-phone-rac-cmLUWnAc.js} +1 -1
  22. package/dist/component/{contacts-position-rac-kv8I-m_Q.js → contacts-position-rac-DTyvklfN.js} +1 -1
  23. package/dist/component/{contacts-subscribe-rac-BkUG0AMs.js → contacts-subscribe-rac-D-ZEX1A3.js} +1 -1
  24. package/dist/component/{contacts-tax-id-rac-BtFrK_Ci.js → contacts-tax-id-rac-B4NYJwWt.js} +1 -1
  25. package/dist/component/{date-availability-_A9DS6za.js → date-availability-Dach9aRC.js} +1 -1
  26. package/dist/component/date-input-field-rac-B72mHcya.js +309 -0
  27. package/dist/component/{date-input-rac-CpseQkV4.js → date-input-rac-CYix11gT.js} +1 -1
  28. package/dist/component/{date-picker-field-rac-B4gjhxG6.js → date-picker-field-rac-B8pvtPir.js} +86 -86
  29. package/dist/component/{date-picker-rac-DDJfUDCM.js → date-picker-rac-D6cR0zH9.js} +1 -1
  30. package/dist/component/date-time-input-field-rac-B7Y3Yf5l.js +441 -0
  31. package/dist/component/{date-time-input-rac-BkvcyU3H.js → date-time-input-rac-DMN-noQX.js} +1 -1
  32. package/dist/component/{dext-checkbox-group-rac-UWDhIjU-.js → dext-checkbox-group-rac-Kq0GnteP.js} +2 -2
  33. package/dist/component/{dext-checkbox-rac-q9UJnqsC.js → dext-checkbox-rac-BY9GZ4n1.js} +1 -1
  34. package/dist/component/{dext-date-picker-rac-C164FDSF.js → dext-date-picker-rac-CXArIddp.js} +1 -1
  35. package/dist/component/{dext-date-time-input-rac-BvbnfRYU.js → dext-date-time-input-rac-B39TtxGq.js} +1 -1
  36. package/dist/component/{dext-dropdown-rac-z0xU1mRO.js → dext-dropdown-rac-C3y0G8cS.js} +1 -1
  37. package/dist/component/{dext-email-rac-BkiWpfNw.js → dext-email-rac-BIg3cq7Q.js} +1 -1
  38. package/dist/component/{dext-number-input-rac-DeQWO-RK.js → dext-number-input-rac-27sHJ7yN.js} +1 -1
  39. package/dist/component/{dext-phone-rac-CGlVpadW.js → dext-phone-rac-CcohoFQp.js} +1 -1
  40. package/dist/component/dext-radio-group-rac-eead3Gve.js +18 -0
  41. package/dist/component/{dext-rating-input-rac-ibIctxU_.js → dext-rating-input-rac-B_E6OcBr.js} +1 -1
  42. package/dist/component/{dext-tags-rac-snCgM6u0.js → dext-tags-rac-Yd9aAtnF.js} +2 -2
  43. package/dist/component/{dext-text-area-rac-BHVs8ixR.js → dext-text-area-rac-CMACri2C.js} +1 -1
  44. package/dist/component/{dext-text-input-rac-DGI747Od.js → dext-text-input-rac-sNjSCfQ-.js} +1 -1
  45. package/dist/component/{dext-url-input-rac-CpO2VDPE.js → dext-url-input-rac-DwhbzJty.js} +1 -1
  46. package/dist/component/{donation-rac-Ck6HkRcW.js → donation-rac-BVAN3kMk.js} +90 -90
  47. package/dist/component/{dropdown-field-rac-e5MjWn5B.js → dropdown-field-rac-DdoGigWx.js} +14 -14
  48. package/dist/component/{dropdown-rac-B2jprC8G.js → dropdown-rac-CRkt5w47.js} +1 -1
  49. package/dist/component/{ecom-address-rac-D0stOqRv.js → ecom-address-rac-C36hFHW0.js} +1 -1
  50. package/dist/component/{ecom-subscription-checkbox-rac-BRzaQKx3.js → ecom-subscription-checkbox-rac-BKfQ348w.js} +2 -2
  51. package/dist/component/{email-input-field-rac-0UIjNipg.js → email-input-field-rac-MOaISYxa.js} +59 -59
  52. package/dist/component/{events-repeater-rac-BBQZzP7U.js → events-repeater-rac-D6p-NgE8.js} +20 -20
  53. package/dist/component/{events-rsvp-rac-Ck7BXGKy.js → events-rsvp-rac-DVpgN8gm.js} +18 -18
  54. package/dist/component/{field-error-headless-vApyo-y9.js → field-error-headless-XNWmDH3E.js} +4 -4
  55. package/dist/component/{field-label-headless-C8-ShLxy.js → field-label-headless-CORRAJGt.js} +4 -4
  56. package/dist/component/{file-upload-rac-BzWJOM6C.js → file-upload-rac-DRMr7E4b.js} +89 -89
  57. package/dist/component/{fixed-payment-rac-C4_xI103.js → fixed-payment-rac-BUXzNex9.js} +18 -18
  58. package/dist/component/{form-D7ulDPh1.js → form-DSpx-AO8.js} +785 -728
  59. package/dist/component/form.css +1 -1
  60. package/dist/component/form.js +1 -1
  61. package/dist/component/{header-field-rac-BnBbhsOZ.js → header-field-rac-CiDXlNsa.js} +6 -6
  62. package/dist/component/{header-rac-CEWayr6b.js → header-rac-B5Rg-h8u.js} +1 -1
  63. package/dist/component/{image-choice-rac-DTZrz6oP.js → image-choice-rac-CtoA_KDp.js} +44 -44
  64. package/dist/component/{index-CKtw7kvn.js → index-Bz7ZhQsF.js} +53 -53
  65. package/dist/component/{index-DBbgIHYT.js → index-CwruESwc.js} +5 -5
  66. package/dist/component/{isObjectLike-BHfPE26c.js → isObjectLike-C5dHxHP0.js} +11 -11
  67. package/dist/component/multiline-address-field-rac-Z-qF366L.js +1664 -0
  68. package/dist/component/{multiline-address-rac-YQj_QROS.js → multiline-address-rac-CJIHTMw5.js} +1 -1
  69. package/dist/component/{number-input-field-rac-A7xM2c6F.js → number-input-field-rac-D4vf6I6N.js} +29 -29
  70. package/dist/component/{number-input-rac-DeDatLY5.js → number-input-rac-B2jW6JUQ.js} +1 -1
  71. package/dist/component/{password-rac-7Si7JHee.js → password-rac-DGRZ17Jl.js} +29 -29
  72. package/dist/component/{payment-input-rac-D4JKZl-5.js → payment-input-rac-BtD-tAKv.js} +27 -27
  73. package/dist/component/phone-input-field-rac-KD4-APhr.js +512 -0
  74. package/dist/component/{phone-rac-Y2mWnseb.js → phone-rac-Cw2yccgg.js} +1 -1
  75. package/dist/component/{product-list-rac-CYUcNqf3.js → product-list-rac-XbzTDdbp.js} +33 -33
  76. package/dist/component/{quiz-radio-group-rac-f3O7fksW.js → quiz-radio-group-rac-BDw_mAw5.js} +1 -1
  77. package/dist/component/{radio-button-module-classes-BgVUqcvD.js → radio-button-module-classes-CFGf0Hzh.js} +23 -23
  78. package/dist/component/{radio-group-field-rac-DrOiyk5C.js → radio-group-field-rac-CXN7tyVu.js} +6 -6
  79. package/dist/component/{radio-group-rac-Btt_bz_K.js → radio-group-rac-COHzqjBh.js} +1 -1
  80. package/dist/component/{rating-input-field-rac-CwN7wyaw.js → rating-input-field-rac-DCXNZgf1.js} +37 -37
  81. package/dist/component/{rating-input-rac-sTy0SV3L.js → rating-input-rac-DwQt9ML7.js} +1 -1
  82. package/dist/component/{rich-content-rac.module-C11w9mXa.js → rich-content-rac.module-B7rPwNns.js} +8 -8
  83. package/dist/component/{rich-text-field-rac-kGwuDtNs.js → rich-text-field-rac-DlER7NRD.js} +4 -4
  84. package/dist/component/{rich-text-rac-T4ic2hrA.js → rich-text-rac-CjicsHA7.js} +1 -1
  85. package/dist/component/service-dropdown-rac-B81LC_6_.js +145 -0
  86. package/dist/component/{services-multi-choice-rac-CLQ4dLxO.js → services-multi-choice-rac-BR6gZeHk.js} +16 -16
  87. package/dist/component/{signature-rac-DLiFeCNL.js → signature-rac-XFj7Ddtp.js} +69 -69
  88. package/dist/component/{submit-button-rac-CccO80E1.js → submit-button-rac-Bz7zs_3W.js} +12 -12
  89. package/dist/component/{tags-field-rac-DaghCGJU.js → tags-field-rac-DWWkNKqc.js} +79 -79
  90. package/dist/component/{tags-rac-3ly5shW2.js → tags-rac-BXyiQ9i1.js} +1 -1
  91. package/dist/component/{text-area-field-rac-2-TYC5Lb.js → text-area-field-rac-DsIRYi0d.js} +21 -21
  92. package/dist/component/{text-area-rac-Bx0pgw80.js → text-area-rac-CF9pDP9d.js} +1 -1
  93. package/dist/component/{text-input-field-rac-Dyur2Wby.js → text-input-field-rac-BwIDZACz.js} +5 -5
  94. package/dist/component/{text-input-headless-DZ-Pjpm4.js → text-input-headless-5kQs2_Xu.js} +14 -14
  95. package/dist/component/{text-input-rac-BuBtJDX_.js → text-input-rac-CRmSuw1k.js} +1 -1
  96. package/dist/component/{time-input-rac-AlDEpfXZ.js → time-input-rac-BRMNpe51.js} +20 -20
  97. package/dist/component/{url-input-field-rac-BzP4-8yP.js → url-input-field-rac-CKLS3QDk.js} +17 -17
  98. package/dist/component/{url-input-rac-DaBXuedf.js → url-input-rac-Dv-kp50D.js} +1 -1
  99. package/dist/component/use-dropdown-option-class-name-BQi_qE_-.js +116 -0
  100. package/dist/component/use-dropdown-trigger-class-name-bAK8aHiG.js +96 -0
  101. package/dist/component/{use-element-state-class-name-DY0UyIQg.js → use-element-state-class-name-rXM_lHug.js} +1 -1
  102. package/dist/component/{use-hoverable-input-class-name-C_Wh4Qfc.js → use-hoverable-input-class-name-BnV_uerV.js} +2 -2
  103. package/dist/component/use-is-forced-open-dropdown-Bp-5Xpmw.js +53 -0
  104. package/dist/component/{use-service-options-base-DgSaAuGy.js → use-service-options-base-CLeE9-Tx.js} +10 -10
  105. package/dist/component/use-text-input-class-name-DIKWvfkm.js +6 -0
  106. package/dist/form.d.ts +8 -0
  107. package/package.json +2 -2
  108. package/dist/component/date-input-field-rac-QZUxFX5e.js +0 -303
  109. package/dist/component/date-time-input-field-rac-DcwKQKHf.js +0 -433
  110. package/dist/component/dext-radio-group-rac-D8hMWNIQ.js +0 -18
  111. package/dist/component/dropdown-field-headless-Bv6LrkeA.js +0 -93
  112. package/dist/component/multiline-address-field-rac-jhcWn4wT.js +0 -1659
  113. package/dist/component/phone-input-field-rac-GxcQ_Pyl.js +0 -508
  114. package/dist/component/service-dropdown-rac-BfliE4hs.js +0 -145
  115. package/dist/component/use-dropdown-trigger-class-name-BKOFwNvc.js +0 -117
  116. package/dist/component/use-is-forced-open-dropdown-Bw_IFUKt.js +0 -48
  117. package/dist/component/use-text-input-class-name-DFMQAg_E.js +0 -6
@@ -0,0 +1,441 @@
1
+ import { RicosViewer as se } from "@wix/ricos/viewer";
2
+ import E from "classnames";
3
+ import t, { useMemo as L, useState as W, useCallback as B, useRef as z, useContext as le } from "react";
4
+ import { parseTime as ie } from "@internationalized/date";
5
+ import { UNSAFE_PortalProvider as ce } from "react-aria";
6
+ import { ListBoxItem as me, Select as de, TextField as K, TimeField as ue, SelectValue as pe, Input as Q, DateInput as Ee, DateSegment as x, TimeFieldStateContext as fe } from "react-aria-components";
7
+ import { bz as h, bw as X, br as $, b4 as Z, bh as ee, aT as d, bJ as y, bl as j, b6 as he, a_ as be, bo as _e, b0 as J, bB as q, t as Ie, V as ge, ab as De, v as V, I as Ne, L as Te, z as Oe, u as Le, w as k } from "./form-DSpx-AO8.js";
8
+ import { f as u, a as C } from "./find-child-C60k4CxG.js";
9
+ import { g as ye } from "./helpers-HmkkXrh2.js";
10
+ import { D as Fe, E as Pe } from "./field-error-headless-XNWmDH3E.js";
11
+ import { L as Ce } from "./field-label-headless-CORRAJGt.js";
12
+ import { F as Se } from "./fieldset-headless-CD3fds9J.js";
13
+ import { N as Me, E as Re, S as Ae } from "./non-modal-popover-D-u13tmp.js";
14
+ import { a as we } from "./use-is-forced-open-dropdown-Bp-5Xpmw.js";
15
+ import { V as ve, u as Ve } from "./use-dropdown-option-class-name-BQi_qE_-.js";
16
+ import { C as Ye } from "./chevron-down-icon-CcpVm6B-.js";
17
+ import { E as He } from "./error-icon-hZxQ6DEy.js";
18
+ import { H as Y } from "./custom-focus-class-_483Pkwp.js";
19
+ import { s as _ } from "./field-rac.module-DP0lkkEv.js";
20
+ import { u as H } from "./use-hoverable-input-class-name-BnV_uerV.js";
21
+ const l = ({ children: e, className: a }) => {
22
+ const { id: n, required: r, onBlur: o, onFocus: s, FieldLayout: i } = h(), { inputId: m, labelId: c, ariaDescribedBy: b } = X(), { regionalFormat: p } = $(), N = L(() => Z(p).filter(ee).map((M) => M.toUpperCase()), [
23
+ p
24
+ ]), S = u(e, l.Label), w = u(e, l.Description), g = u(e, l.Error), D = {
25
+ [d.MONTH]: u(e, l.Month),
26
+ [d.DAY]: u(e, l.Day),
27
+ [d.YEAR]: u(e, l.Year)
28
+ }, T = u(e, l.Time);
29
+ return /* @__PURE__ */ t.createElement(i, {
30
+ fieldId: n,
31
+ renderLabel: () => C(S, {
32
+ as: "div"
33
+ }),
34
+ renderInput: () => /* @__PURE__ */ t.createElement(Se, {
35
+ id: m,
36
+ ariaLabelledBy: c,
37
+ ariaDescribedBy: b,
38
+ required: r,
39
+ onBlur: o,
40
+ onFocus: s,
41
+ className: a
42
+ }, D[N[0]], D[N[1]], D[N[2]], T),
43
+ renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, g, w)
44
+ });
45
+ }, F = ({ children: e, className: a }) => {
46
+ const { id: n, disabled: r, readOnly: o, showDateLabels: s, hidePlaceholder: i } = h(), { labelId: m } = O(d.MONTH), { partValue: c, partError: b, onPartChange: p } = P(d.MONTH), { t: N } = y(), [S, w] = W(!1), g = we(n), [D, T] = W(null), M = i ? Re : N("field.date.placeholder.month"), te = B((v) => {
47
+ o || p(typeof v == "string" ? v : "");
48
+ }, [
49
+ p,
50
+ o
51
+ ]), ae = B((v) => {
52
+ w(v && !o);
53
+ }, [
54
+ o
55
+ ]), ne = u(e, F.Label), re = u(e, F.Trigger), oe = u(e, F.Options);
56
+ return /* @__PURE__ */ t.createElement("div", {
57
+ className: a,
58
+ "data-date-field": !0
59
+ }, s ? ne : null, /* @__PURE__ */ t.createElement("div", {
60
+ ref: T,
61
+ style: {
62
+ display: "contents"
63
+ }
64
+ }), /* @__PURE__ */ t.createElement(ce, {
65
+ getContainer: () => D
66
+ }, /* @__PURE__ */ t.createElement(de, {
67
+ "aria-labelledby": s ? m : void 0,
68
+ value: c || null,
69
+ onChange: te,
70
+ isDisabled: r,
71
+ isInvalid: b,
72
+ placeholder: M,
73
+ isOpen: g || S,
74
+ onOpenChange: g ? void 0 : ae
75
+ }, re, C(oe, {
76
+ isForcedOpen: g
77
+ }))));
78
+ }, Be = ({ className: e }) => /* @__PURE__ */ t.createElement(G, {
79
+ datePart: d.MONTH,
80
+ className: e
81
+ }), Ue = ({ children: e, className: a }) => {
82
+ const { id: n, readOnly: r } = h(), { inputId: o } = O(d.MONTH), { partError: s, isFirstPart: i } = P(d.MONTH), m = z(null);
83
+ return q(() => {
84
+ var c;
85
+ i && ((c = m.current) == null || c.focus({
86
+ preventScroll: !0
87
+ }));
88
+ }, n), /* @__PURE__ */ t.createElement(Ae, {
89
+ ref: m,
90
+ id: o,
91
+ className: a,
92
+ "data-hook": d.MONTH,
93
+ "data-invalid": s || void 0,
94
+ "data-readonly": r || void 0
95
+ }, /* @__PURE__ */ t.createElement(pe, null), e);
96
+ }, U = ({ children: e, className: a, ...n }) => {
97
+ const { isForcedOpen: r } = n, { language: o } = $(), s = L(() => ye(o), [
98
+ o
99
+ ]), i = u(e, U.Option) ?? /* @__PURE__ */ t.createElement(U.Option, null);
100
+ return /* @__PURE__ */ t.createElement(Me, {
101
+ className: a,
102
+ containerPadding: 0,
103
+ offset: 0
104
+ }, /* @__PURE__ */ t.createElement(ve, {
105
+ isForcedOpen: r,
106
+ autoFocus: r ? !1 : void 0
107
+ }, s.map((m, c) => C(i, {
108
+ key: String(c + 1),
109
+ value: String(c + 1),
110
+ label: m
111
+ }))));
112
+ }, xe = ({ className: e, ...a }) => {
113
+ const { value: n, label: r } = a;
114
+ return /* @__PURE__ */ t.createElement(me, {
115
+ className: e,
116
+ id: n,
117
+ textValue: r
118
+ }, r);
119
+ };
120
+ F.Label = Be;
121
+ F.Trigger = Ue;
122
+ F.Options = U;
123
+ U.Option = xe;
124
+ const R = ({ children: e, className: a }) => {
125
+ const { disabled: n, readOnly: r, showDateLabels: o } = h(), { labelId: s } = O(d.DAY), { partValue: i, partError: m, onPartChange: c } = P(d.DAY), b = u(e, R.Label), p = u(e, R.Input);
126
+ return /* @__PURE__ */ t.createElement("div", {
127
+ className: a,
128
+ "data-date-field": !0
129
+ }, o && b, /* @__PURE__ */ t.createElement(K, {
130
+ "aria-labelledby": o ? s : void 0,
131
+ value: i,
132
+ onChange: c,
133
+ isDisabled: n,
134
+ isReadOnly: r,
135
+ isInvalid: m
136
+ }, p));
137
+ }, ke = ({ className: e }) => /* @__PURE__ */ t.createElement(G, {
138
+ datePart: d.DAY,
139
+ className: e
140
+ }), ze = ({ className: e }) => {
141
+ const { id: a, hidePlaceholder: n } = h(), { inputId: r } = O(d.DAY), { isFirstPart: o } = P(d.DAY), { t: s } = y(), i = z(null), m = n ? void 0 : s("field.date.placeholder.day");
142
+ return q(() => {
143
+ var c;
144
+ o && ((c = i.current) == null || c.focus({
145
+ preventScroll: !0
146
+ }));
147
+ }, a), /* @__PURE__ */ t.createElement(Q, {
148
+ ref: i,
149
+ id: r,
150
+ className: e,
151
+ placeholder: m,
152
+ maxLength: 2,
153
+ inputMode: "numeric",
154
+ "data-hook": d.DAY
155
+ });
156
+ };
157
+ R.Label = ke;
158
+ R.Input = ze;
159
+ const A = ({ children: e, className: a }) => {
160
+ const { disabled: n, readOnly: r, showDateLabels: o } = h(), { labelId: s } = O(d.YEAR), { partValue: i, partError: m, onPartChange: c } = P(d.YEAR), b = u(e, A.Label), p = u(e, A.Input);
161
+ return /* @__PURE__ */ t.createElement("div", {
162
+ className: a,
163
+ "data-date-field": !0
164
+ }, o && b, /* @__PURE__ */ t.createElement(K, {
165
+ "aria-labelledby": o ? s : void 0,
166
+ value: i,
167
+ onChange: c,
168
+ isDisabled: n,
169
+ isReadOnly: r,
170
+ isInvalid: m
171
+ }, p));
172
+ }, $e = ({ className: e }) => /* @__PURE__ */ t.createElement(G, {
173
+ datePart: d.YEAR,
174
+ className: e
175
+ }), qe = ({ className: e }) => {
176
+ const { id: a, hidePlaceholder: n } = h(), { inputId: r } = O(d.YEAR), { isFirstPart: o } = P(d.YEAR), { t: s } = y(), i = z(null), m = n ? void 0 : s("field.date.placeholder.year");
177
+ return q(() => {
178
+ var c;
179
+ o && ((c = i.current) == null || c.focus({
180
+ preventScroll: !0
181
+ }));
182
+ }, a), /* @__PURE__ */ t.createElement(Q, {
183
+ ref: i,
184
+ id: r,
185
+ className: e,
186
+ placeholder: m,
187
+ maxLength: 4,
188
+ inputMode: "numeric",
189
+ "data-hook": d.YEAR
190
+ });
191
+ };
192
+ A.Label = $e;
193
+ A.Input = qe;
194
+ const I = ({ children: e, className: a }) => {
195
+ const { disabled: n, readOnly: r, use24HourFormat: o, showDateLabels: s } = h(), { labelId: i } = O("time"), { partValue: m, partError: c, onPartChange: b } = P("time"), p = u(e, I.Label), N = u(e, I.Input);
196
+ return /* @__PURE__ */ t.createElement("div", {
197
+ className: a,
198
+ "data-date-field": !0
199
+ }, s && p, /* @__PURE__ */ t.createElement(ue, {
200
+ "aria-labelledby": s ? i : void 0,
201
+ value: m,
202
+ onChange: b,
203
+ isDisabled: n,
204
+ isReadOnly: r,
205
+ isInvalid: c,
206
+ hourCycle: o ? 24 : 12
207
+ }, N));
208
+ }, Ge = ({ className: e }) => {
209
+ const { inputId: a, labelId: n } = O("time"), { t: r } = y(), o = r("field.date.label.time");
210
+ return /* @__PURE__ */ t.createElement("label", {
211
+ id: n,
212
+ htmlFor: a,
213
+ className: e
214
+ }, o);
215
+ }, We = ({ children: e, className: a }) => {
216
+ const { hidePlaceholder: n } = h(), r = u(e, I.Hour), o = u(e, I.Minute), s = u(e, I.Period);
217
+ return /* @__PURE__ */ t.createElement(Ee, {
218
+ className: a,
219
+ "data-hook": "time",
220
+ "data-placeholder-hidden": n || void 0
221
+ }, (i) => {
222
+ switch (i.type) {
223
+ case "hour":
224
+ return C(r, {
225
+ segment: i
226
+ }) || /* @__PURE__ */ t.createElement(t.Fragment, null);
227
+ case "minute":
228
+ return C(o, {
229
+ segment: i
230
+ }) || /* @__PURE__ */ t.createElement(t.Fragment, null);
231
+ case "dayPeriod":
232
+ return C(s, {
233
+ segment: i
234
+ }) || /* @__PURE__ */ t.createElement(t.Fragment, null);
235
+ case "literal":
236
+ return /* @__PURE__ */ t.createElement(x, {
237
+ segment: i
238
+ });
239
+ default:
240
+ return /* @__PURE__ */ t.createElement(t.Fragment, null);
241
+ }
242
+ });
243
+ }, je = ({ className: e, ...a }) => {
244
+ const { hidePlaceholder: n } = h(), { segment: r } = a, { t: o } = y(), s = n ? void 0 : o("field.date.placeholder.hour");
245
+ return /* @__PURE__ */ t.createElement(x, {
246
+ segment: r,
247
+ className: e,
248
+ ...s && {
249
+ placeholder: s
250
+ }
251
+ });
252
+ }, Je = ({ className: e, ...a }) => {
253
+ const { hidePlaceholder: n } = h(), { segment: r } = a, { t: o } = y(), s = n ? void 0 : o("field.date.placeholder.minute");
254
+ return /* @__PURE__ */ t.createElement(x, {
255
+ segment: r,
256
+ className: e,
257
+ ...s && {
258
+ placeholder: s
259
+ }
260
+ });
261
+ }, Ke = ({ className: e, ...a }) => {
262
+ const { hidePlaceholder: n } = h(), { segment: r } = a, { t: o } = y(), s = le(fe), i = n ? void 0 : o("field.date.placeholder.period"), m = () => s == null ? void 0 : s.increment("dayPeriod");
263
+ return /* @__PURE__ */ t.createElement(x, {
264
+ segment: r,
265
+ className: e,
266
+ onClick: m,
267
+ ...i && {
268
+ placeholder: i
269
+ }
270
+ });
271
+ };
272
+ I.Label = Ge;
273
+ I.Input = We;
274
+ I.Hour = je;
275
+ I.Minute = Je;
276
+ I.Period = Ke;
277
+ l.Label = Ce;
278
+ l.Month = F;
279
+ l.Day = R;
280
+ l.Year = A;
281
+ l.Time = I;
282
+ l.Description = Fe;
283
+ l.Error = Pe;
284
+ function O(e) {
285
+ const { inputId: a } = X();
286
+ return L(() => {
287
+ const n = e.toLowerCase();
288
+ return {
289
+ inputId: `${a}-${n}-input`,
290
+ labelId: `${a}-${n}-label`
291
+ };
292
+ }, [
293
+ a,
294
+ e
295
+ ]);
296
+ }
297
+ function P(e) {
298
+ const { value: a, onChange: n, hasError: r = !1 } = h(), { regionalFormat: o } = $(), [s, i] = L(() => j(a ?? ""), [
299
+ a
300
+ ]), m = L(() => he(r, a ?? ""), [
301
+ a,
302
+ r
303
+ ]), c = L(() => be(s), [
304
+ s
305
+ ]), b = L(() => Qe(i), [
306
+ i
307
+ ]), p = B((g) => {
308
+ const D = Xe(g), T = J(s, D);
309
+ n(T);
310
+ }, [
311
+ n,
312
+ s
313
+ ]), N = B((g) => {
314
+ const [, D] = j(a ?? ""), T = _e(g, e, c), M = J(T, D);
315
+ n(M);
316
+ }, [
317
+ n,
318
+ a,
319
+ c,
320
+ e
321
+ ]), S = L(() => e === "time" ? !1 : Z(o).filter(ee).map((T) => T.toUpperCase())[0] === e, [
322
+ o,
323
+ e
324
+ ]);
325
+ return e === "time" ? {
326
+ partValue: b,
327
+ partError: m.TIME,
328
+ onPartChange: p,
329
+ isFirstPart: !1
330
+ } : {
331
+ partValue: c[e] || "",
332
+ partError: m[e],
333
+ onPartChange: N,
334
+ isFirstPart: S
335
+ };
336
+ }
337
+ function G({ datePart: e, className: a }) {
338
+ const { inputId: n, labelId: r } = O(e), { t: o } = y(), s = `field.date.label.${e.toLowerCase()}`, i = o(s);
339
+ return /* @__PURE__ */ t.createElement("label", {
340
+ id: r,
341
+ htmlFor: n,
342
+ className: a
343
+ }, i);
344
+ }
345
+ function Qe(e) {
346
+ if (!e)
347
+ return null;
348
+ try {
349
+ return ie(e);
350
+ } catch {
351
+ return null;
352
+ }
353
+ }
354
+ function Xe(e) {
355
+ if (!e)
356
+ return null;
357
+ const a = String(e.hour).padStart(2, "0"), n = String(e.minute).padStart(2, "0"), r = String(e.second).padStart(2, "0");
358
+ return [
359
+ a,
360
+ n,
361
+ r
362
+ ].join(":");
363
+ }
364
+ const Ze = "_fields_1ofw4_1", et = "_month_1ofw4_10", tt = "_day_1ofw4_11", at = "_year_1ofw4_12", nt = "_timeGroup_1ofw4_13", rt = "_dayInput_1ofw4_34", ot = "_yearInput_1ofw4_35", st = "_monthTrigger_1ofw4_39", lt = "_monthOption_1ofw4_59", it = "_time_1ofw4_13", ct = "_hour_1ofw4_81", mt = "_minute_1ofw4_82", dt = "_period_1ofw4_83", f = {
365
+ fields: Ze,
366
+ month: et,
367
+ day: tt,
368
+ year: at,
369
+ timeGroup: nt,
370
+ dayInput: rt,
371
+ yearInput: ot,
372
+ monthTrigger: st,
373
+ monthOption: lt,
374
+ time: it,
375
+ hour: ct,
376
+ minute: mt,
377
+ period: dt
378
+ }, ut = ({ content: e, locale: a }) => /* @__PURE__ */ t.createElement(se, {
379
+ content: e,
380
+ locale: a
381
+ }), At = () => {
382
+ const e = H(Le, [
383
+ f.monthTrigger
384
+ ]), a = Ve(f.monthOption, Y), n = H(k, [
385
+ f.dayInput
386
+ ]), r = H(k, [
387
+ f.yearInput
388
+ ]), o = H(k, [
389
+ f.time
390
+ ]);
391
+ return /* @__PURE__ */ t.createElement(l, {
392
+ className: E(Ie, f.fields)
393
+ }, /* @__PURE__ */ t.createElement(l.Label, {
394
+ className: E(ge, _.label)
395
+ }, /* @__PURE__ */ t.createElement(l.Label.Required, {
396
+ className: E(De, _.requiredMark)
397
+ })), /* @__PURE__ */ t.createElement(l.Month, {
398
+ className: f.month
399
+ }, /* @__PURE__ */ t.createElement(l.Month.Label, {
400
+ className: E(V, _.label)
401
+ }), /* @__PURE__ */ t.createElement(l.Month.Trigger, {
402
+ className: e
403
+ }, /* @__PURE__ */ t.createElement(Ye, {
404
+ className: _.dropdownIcon
405
+ })), /* @__PURE__ */ t.createElement(l.Month.Options, {
406
+ className: E(Ne, _.selectPopover, _.dropdownPopover)
407
+ }, /* @__PURE__ */ t.createElement(l.Month.Options.Option, {
408
+ className: a
409
+ }))), /* @__PURE__ */ t.createElement(l.Day, {
410
+ className: f.day
411
+ }, /* @__PURE__ */ t.createElement(l.Day.Label, {
412
+ className: E(V, _.label)
413
+ }), /* @__PURE__ */ t.createElement(l.Day.Input, {
414
+ className: n
415
+ })), /* @__PURE__ */ t.createElement(l.Year, {
416
+ className: f.year
417
+ }, /* @__PURE__ */ t.createElement(l.Year.Label, {
418
+ className: E(V, _.label)
419
+ }), /* @__PURE__ */ t.createElement(l.Year.Input, {
420
+ className: r
421
+ })), /* @__PURE__ */ t.createElement(l.Time, {
422
+ className: f.timeGroup
423
+ }, /* @__PURE__ */ t.createElement(l.Time.Label, {
424
+ className: E(V, _.label)
425
+ }), /* @__PURE__ */ t.createElement(l.Time.Input, {
426
+ className: o
427
+ }, /* @__PURE__ */ t.createElement(l.Time.Hour, {
428
+ className: E(f.hour, Y)
429
+ }), /* @__PURE__ */ t.createElement(l.Time.Minute, {
430
+ className: E(f.minute, Y)
431
+ }), /* @__PURE__ */ t.createElement(l.Time.Period, {
432
+ className: E(f.period, Y)
433
+ }))), /* @__PURE__ */ t.createElement(l.Error, {
434
+ className: E(Te, _.error)
435
+ }, /* @__PURE__ */ t.createElement(He, null), /* @__PURE__ */ t.createElement(l.Error.Text, null)), /* @__PURE__ */ t.createElement(l.Description, {
436
+ className: E(Oe, _.description)
437
+ }, ut));
438
+ };
439
+ export {
440
+ At as D
441
+ };
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { D as t } from "./date-time-input-field-rac-DcwKQKHf.js";
2
+ import { D as t } from "./date-time-input-field-rac-B7Y3Yf5l.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 { bo as e, aq as t } from "./form-D7ulDPh1.js";
3
- import { C as p } from "./checkbox-group-field-rac-C3WCeVA8.js";
2
+ import { bz as e, aB as t } from "./form-DSpx-AO8.js";
3
+ import { C as p } from "./checkbox-group-field-rac-DasArcdV.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-CUKZ9NHF.js";
2
+ import { C as t } from "./checkbox-field-rac-CyoBb6Yf.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-B4gjhxG6.js";
2
+ import { D as t } from "./date-picker-field-rac-B8pvtPir.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-DcwKQKHf.js";
2
+ import { D as t } from "./date-time-input-field-rac-B7Y3Yf5l.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-e5MjWn5B.js";
2
+ import { D as r } from "./dropdown-field-rac-DdoGigWx.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-0UIjNipg.js";
2
+ import { E as e } from "./email-input-field-rac-MOaISYxa.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-A7xM2c6F.js";
2
+ import { N as t } from "./number-input-field-rac-D4vf6I6N.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-GxcQ_Pyl.js";
2
+ import { P as t } from "./phone-input-field-rac-KD4-APhr.js";
3
3
  const r = () => /* @__PURE__ */ e.createElement(t, null);
4
4
  export {
5
5
  r as DextPhoneRAC
@@ -0,0 +1,18 @@
1
+ import r from "react";
2
+ import { bz as e, aB as t } from "./form-DSpx-AO8.js";
3
+ import { R as p } from "./radio-group-field-rac-CXN7tyVu.js";
4
+ import { a } from "./default-limits-D7qVv_Hv.js";
5
+ const l = () => {
6
+ const o = {
7
+ ...e(),
8
+ otherInputCharacterLimit: a
9
+ };
10
+ return /* @__PURE__ */ r.createElement(t.Provider, {
11
+ value: {
12
+ v2: o
13
+ }
14
+ }, /* @__PURE__ */ r.createElement(p, null));
15
+ };
16
+ export {
17
+ l as DextRadioGroupRAC
18
+ };
@@ -1,5 +1,5 @@
1
1
  import t from "react";
2
- import { R as e } from "./rating-input-field-rac-CwN7wyaw.js";
2
+ import { R as e } from "./rating-input-field-rac-DCXNZgf1.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 { bo as e, aq as o } from "./form-D7ulDPh1.js";
3
- import { T as s } from "./tags-field-rac-DaghCGJU.js";
2
+ import { bz as e, aB as o } from "./form-DSpx-AO8.js";
3
+ import { T as s } from "./tags-field-rac-DWWkNKqc.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-2-TYC5Lb.js";
2
+ import { T as t } from "./text-area-field-rac-DsIRYi0d.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-Dyur2Wby.js";
2
+ import { T as e } from "./text-input-field-rac-BwIDZACz.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-BzP4-8yP.js";
2
+ import { U as r } from "./url-input-field-rac-CKLS3QDk.js";
3
3
  const n = () => /* @__PURE__ */ t.createElement(r, null);
4
4
  export {
5
5
  n as DextUrlInputRAC