@wix/form-elements 1.145.0 → 1.146.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. package/dist/component/{appointment-rac-De-uH9rz.js → appointment-rac-scUix9QX.js} +4 -4
  2. package/dist/component/{bookings-address-rac-DB6QCMQJ.js → bookings-address-rac-CKemkJOO.js} +1 -1
  3. package/dist/component/{bookings-email-rac-g6ZdB_BO.js → bookings-email-rac-CDqdhPAB.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-DQgL_VHl.js → bookings-first-name-rac-DEy_7Hjb.js} +1 -1
  5. package/dist/component/{bookings-header-rac-DAnIm-Oq.js → bookings-header-rac-Bl4xy9lB.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-D62jNdDb.js → bookings-last-name-rac-CsL9xQ1W.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-5z8HfBhU.js → bookings-login-bar-rac-DkHYQ4No.js} +1 -1
  8. package/dist/component/{bookings-phone-rac-D0gu-_wy.js → bookings-phone-rac-BoBiFwbV.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-b4J1HcdI.js → bookings-rich-text-rac-DZZnPKWA.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-CmRRc9Dz.js → checkbox-field-rac-UgLmJxB-.js} +4 -4
  11. package/dist/component/{checkbox-group-field-headless-CB8yAfMe.js → checkbox-group-field-headless-C809nB0Q.js} +3 -3
  12. package/dist/component/{checkbox-group-field-rac-C5gRZRTd.js → checkbox-group-field-rac-u4i4wG21.js} +4 -4
  13. package/dist/component/{checkbox-group-rac-DNDF1Irh.js → checkbox-group-rac-DBAQhSo3.js} +1 -1
  14. package/dist/component/{checkbox-rac-B9vztGBU.js → checkbox-rac-FDQVsI5-.js} +1 -1
  15. package/dist/component/{contacts-address-rac-CKZeSncj.js → contacts-address-rac-DnArylPa.js} +1 -1
  16. package/dist/component/{contacts-birthdate-rac-BbpNNQgF.js → contacts-birthdate-rac-C19jhGEO.js} +1 -1
  17. package/dist/component/{contacts-company-rac-BX2KT201.js → contacts-company-rac-Dxs0hs_i.js} +1 -1
  18. package/dist/component/{contacts-email-rac-5Irzx1mA.js → contacts-email-rac-D-H43L8r.js} +1 -1
  19. package/dist/component/{contacts-first-name-rac-CxKp8_2u.js → contacts-first-name-rac-DwV5NESk.js} +1 -1
  20. package/dist/component/{contacts-last-name-rac-BDCbSv5I.js → contacts-last-name-rac-C5v2xurf.js} +1 -1
  21. package/dist/component/{contacts-phone-rac-BM_PV_uH.js → contacts-phone-rac-D9a5x-xl.js} +1 -1
  22. package/dist/component/{contacts-position-rac-1aqthQSi.js → contacts-position-rac-DfsgOv-k.js} +1 -1
  23. package/dist/component/{contacts-subscribe-rac-CdqXs4kp.js → contacts-subscribe-rac-B-Hho0Kb.js} +1 -1
  24. package/dist/component/{contacts-tax-id-rac-BKHpcDb6.js → contacts-tax-id-rac-q6TQkB4b.js} +1 -1
  25. package/dist/component/{date-availability-DmFFTX8p.js → date-availability-CMDvf5VU.js} +1 -1
  26. package/dist/component/date-input-field-rac-C1WLUct3.js +297 -0
  27. package/dist/component/{date-input-rac-BB6qZ16w.js → date-input-rac-cNQ-nr4D.js} +1 -1
  28. package/dist/component/{date-picker-field-rac-Ckwu2vD6.js → date-picker-field-rac-mx11z-MO.js} +5 -5
  29. package/dist/component/{date-picker-rac-DSqzUAaH.js → date-picker-rac-DeTz17zC.js} +1 -1
  30. package/dist/component/{date-time-input-field-rac-DO-iRdkW.js → date-time-input-field-rac-feQ2E1eU.js} +6 -6
  31. package/dist/component/{date-time-input-rac-smVCCxdY.js → date-time-input-rac-G0s0xP4v.js} +1 -1
  32. package/dist/component/{dext-checkbox-group-rac-B8bx3rT2.js → dext-checkbox-group-rac-BcTN1nJb.js} +2 -2
  33. package/dist/component/{dext-checkbox-rac-x8VLGRbc.js → dext-checkbox-rac-DX0TOrCO.js} +1 -1
  34. package/dist/component/{dext-date-picker-rac-D2a9NXap.js → dext-date-picker-rac-CpDp11oa.js} +1 -1
  35. package/dist/component/{dext-date-time-input-rac-Cp5XjpGv.js → dext-date-time-input-rac-BRvO8izU.js} +1 -1
  36. package/dist/component/{dext-dropdown-rac-nWgEvyxt.js → dext-dropdown-rac-DGZ4Yi_X.js} +1 -1
  37. package/dist/component/{dext-email-rac-CkX6ya8p.js → dext-email-rac-B9YCFHB4.js} +1 -1
  38. package/dist/component/{dext-number-input-rac-CKT0MS1x.js → dext-number-input-rac-D890dBZf.js} +1 -1
  39. package/dist/component/{dext-phone-rac-DM2E7zW_.js → dext-phone-rac-BAQftbXo.js} +1 -1
  40. package/dist/component/{dext-radio-group-rac-Czr5yY3K.js → dext-radio-group-rac-CtEjnu_X.js} +2 -2
  41. package/dist/component/{dext-rating-input-rac-CKWNpFuu.js → dext-rating-input-rac-BqQKVaHo.js} +1 -1
  42. package/dist/component/{dext-tags-rac-6AskGGTp.js → dext-tags-rac-zxxKcNUe.js} +2 -2
  43. package/dist/component/{dext-text-area-rac-ClGLD7sD.js → dext-text-area-rac-Ctp9SwPg.js} +1 -1
  44. package/dist/component/{dext-text-input-rac-Blbk53d4.js → dext-text-input-rac-c_QMlyjr.js} +1 -1
  45. package/dist/component/{dext-url-input-rac-BuitmJU0.js → dext-url-input-rac-96pv15aC.js} +1 -1
  46. package/dist/component/{donation-rac-DOifFCD7.js → donation-rac-GEWKSLJY.js} +5 -5
  47. package/dist/component/{dropdown-field-headless-m2P6s7X5.js → dropdown-field-headless-C3OxMhLE.js} +5 -5
  48. package/dist/component/{dropdown-field-rac-5e6wWJBl.js → dropdown-field-rac-CCXfBmSc.js} +4 -4
  49. package/dist/component/{dropdown-rac-BGxE9pJB.js → dropdown-rac-CR7hswXE.js} +1 -1
  50. package/dist/component/{ecom-address-rac-kbD9qW5Y.js → ecom-address-rac-khMuxEFD.js} +1 -1
  51. package/dist/component/{ecom-subscription-checkbox-rac-CE-Yixnj.js → ecom-subscription-checkbox-rac-CAi_AHpb.js} +2 -2
  52. package/dist/component/{email-input-field-rac-CbwcB33o.js → email-input-field-rac-B83mY2lg.js} +5 -3
  53. package/dist/component/{events-repeater-rac-CGhUscBr.js → events-repeater-rac-ClEwXgmb.js} +4 -4
  54. package/dist/component/{events-rsvp-rac-AQ33zPTe.js → events-rsvp-rac-BJ5q2SVR.js} +3 -3
  55. package/dist/component/{field-error-headless-ClPQ03Jc.js → field-error-headless-CsYQCsiT.js} +1 -1
  56. package/dist/component/{field-label-headless-DhN8Lkuq.js → field-label-headless-Yg_1PMSg.js} +1 -1
  57. package/dist/component/{file-upload-rac-yTx1ZRhZ.js → file-upload-rac-DJsuI_lR.js} +4 -4
  58. package/dist/component/{fixed-payment-rac-nlyxa9nB.js → fixed-payment-rac-BMFe9wxU.js} +3 -3
  59. package/dist/component/{form-D3iU18lh.js → form-Bed4Kfz8.js} +4135 -4163
  60. package/dist/component/form.css +1 -1
  61. package/dist/component/form.js +1 -1
  62. package/dist/component/{header-field-rac-DAEzcleV.js → header-field-rac-DPQTrOSZ.js} +2 -2
  63. package/dist/component/{header-rac-CJZ4qMFg.js → header-rac-CzXsuLmE.js} +1 -1
  64. package/dist/component/{image-choice-rac-BFAMHwPh.js → image-choice-rac-R_4pbOSr.js} +4 -4
  65. package/dist/component/{index-W7GOFnq8.js → index-DZxHlvzt.js} +4 -4
  66. package/dist/component/{index-DQW26cnX.js → index-qSZCe_WC.js} +2 -2
  67. package/dist/component/{isObjectLike-CE8eaxSI.js → isObjectLike-B-a5uaU-.js} +1 -1
  68. package/dist/component/{multiline-address-field-rac-FbJO0HFf.js → multiline-address-field-rac-rv4IZZy_.js} +15 -7
  69. package/dist/component/{multiline-address-rac-CI-vt6Pm.js → multiline-address-rac-DZ7cYtgn.js} +1 -1
  70. package/dist/component/{number-input-field-rac-BRVAr7LL.js → number-input-field-rac-CL9iXKIf.js} +4 -4
  71. package/dist/component/{number-input-rac-C8hCiJiu.js → number-input-rac-BeGn6qJR.js} +1 -1
  72. package/dist/component/{password-rac-Baslr6Ga.js → password-rac-DfvhdsKG.js} +51 -50
  73. package/dist/component/{payment-input-rac-CfJSKxYz.js → payment-input-rac-BmMfi5rf.js} +18 -17
  74. package/dist/component/{phone-input-field-rac-Dqh4CXdC.js → phone-input-field-rac-DW0a1pXs.js} +7 -6
  75. package/dist/component/{phone-rac-DaLuGuxd.js → phone-rac-quZjJ08H.js} +1 -1
  76. package/dist/component/{product-list-rac-PNMwRBtL.js → product-list-rac-Ci0KB7sN.js} +4 -4
  77. package/dist/component/{quiz-radio-group-rac-DN8vY-oM.js → quiz-radio-group-rac--UUtGx2t.js} +1 -1
  78. package/dist/component/{radio-button-module-classes-DlJi9a2f.js → radio-button-module-classes-CqdBGknT.js} +3 -3
  79. package/dist/component/{radio-group-field-rac-C0tLXhl5.js → radio-group-field-rac-w8fHpFKJ.js} +4 -4
  80. package/dist/component/{radio-group-rac-FAk7PYgP.js → radio-group-rac-jO8aghii.js} +1 -1
  81. package/dist/component/{rating-input-field-rac-Cl1kH_uu.js → rating-input-field-rac-BRc2PtqE.js} +4 -4
  82. package/dist/component/{rating-input-rac-D9p-0pkI.js → rating-input-rac-D9zs06xR.js} +1 -1
  83. package/dist/component/{rich-content-rac.module-Dkr46kPC.js → rich-content-rac.module-Cv3ZmD00.js} +1 -1
  84. package/dist/component/{rich-text-field-rac-DthhTvTp.js → rich-text-field-rac-BmWuIfA8.js} +2 -2
  85. package/dist/component/{rich-text-rac-DqZX4NeB.js → rich-text-rac-BnqnrvB1.js} +1 -1
  86. package/dist/component/{service-dropdown-rac-BMOGLU2Z.js → service-dropdown-rac-Cl81KfJU.js} +5 -5
  87. package/dist/component/{services-multi-choice-rac-DcdUewzJ.js → services-multi-choice-rac-sQ1NF9hY.js} +5 -5
  88. package/dist/component/{signature-rac-BRvN6kUW.js → signature-rac-Huairu7V.js} +4 -4
  89. package/dist/component/{submit-button-rac-B70UC8eS.js → submit-button-rac-Dpg7N0TG.js} +2 -2
  90. package/dist/component/{tags-field-rac-NpYyV8X4.js → tags-field-rac-BQ8TEqXH.js} +5 -5
  91. package/dist/component/{tags-rac-BMEbpJ-z.js → tags-rac-CFOmyCCc.js} +1 -1
  92. package/dist/component/{text-area-field-rac-BLSrNwJ6.js → text-area-field-rac-DNiMa7d3.js} +4 -4
  93. package/dist/component/{text-area-rac-Cm7aAfIz.js → text-area-rac-kLFe-KbZ.js} +1 -1
  94. package/dist/component/{text-input-field-rac-BDqV7s0M.js → text-input-field-rac-CqENSUUX.js} +3 -3
  95. package/dist/component/text-input-headless-BdPkEeK2.js +45 -0
  96. package/dist/component/{text-input-rac-Cc_SkCCS.js → text-input-rac-uYQEfOtE.js} +1 -1
  97. package/dist/component/{time-input-rac-DDCiAFe2.js → time-input-rac-BYoojlJ9.js} +4 -4
  98. package/dist/component/{url-input-field-rac-jen6pbz7.js → url-input-field-rac-BioH7kuz.js} +20 -19
  99. package/dist/component/{url-input-rac-BWh6udtS.js → url-input-rac-D2VSSyqW.js} +1 -1
  100. package/dist/component/{use-dropdown-option-class-name-OD8brKoy.js → use-dropdown-option-class-name-BEmvU-Gg.js} +2 -2
  101. package/dist/component/{use-dropdown-trigger-class-name-BrkmG0ad.js → use-dropdown-trigger-class-name-qj9skLWZ.js} +2 -2
  102. package/dist/component/{use-element-state-class-name-B1r_nXW1.js → use-element-state-class-name-oiKCauK-.js} +1 -1
  103. package/dist/component/{use-hoverable-input-class-name-B-FhrcyQ.js → use-hoverable-input-class-name-BW3nCyhG.js} +2 -2
  104. package/dist/component/{use-service-options-base-CTA_43F3.js → use-service-options-base-DXG60hA5.js} +1 -1
  105. package/dist/component/use-text-input-class-name-BhQFcXYH.js +6 -0
  106. package/package.json +2 -2
  107. package/dist/component/date-input-field-rac-BnlAOn12.js +0 -290
  108. package/dist/component/text-input-headless-B0jcwDev.js +0 -44
  109. package/dist/component/use-text-input-class-name-BXuk3TK7.js +0 -6
@@ -1,290 +0,0 @@
1
- import { RicosViewer as ee } from "@wix/ricos/viewer";
2
- import h from "classnames";
3
- import t, { useMemo as O, useState as k, useCallback as v, useRef as w } from "react";
4
- import { UNSAFE_PortalProvider as te } from "react-aria";
5
- import { ListBoxItem as ae, Select as ne, TextField as $, SelectValue as re, Input as q } from "react-aria-components";
6
- import { bn as D, bk as z, bf as V, aU as G, b5 as K, aH as m, bx as S, aO as se, aV as oe, bc as le, bp as H, R as P, $ as ce, x as ie, G as me, u as de } from "./form-D3iU18lh.js";
7
- import { f as u, a as x } from "./find-child-C60k4CxG.js";
8
- import { g as ue } from "./helpers-HmkkXrh2.js";
9
- import { D as pe, E as Ee } from "./field-error-headless-ClPQ03Jc.js";
10
- import { L as fe } from "./field-label-headless-DhN8Lkuq.js";
11
- import { F as be } from "./fieldset-headless-CD3fds9J.js";
12
- import { N as he, E as ye, S as De } from "./non-modal-popover-D-u13tmp.js";
13
- import { a as Ie, u as ge } from "./use-dropdown-trigger-class-name-BrkmG0ad.js";
14
- import { V as Oe, u as Ne } from "./use-dropdown-option-class-name-OD8brKoy.js";
15
- import { C as Le } from "./chevron-down-icon-CcpVm6B-.js";
16
- import { E as _e } from "./error-icon-hZxQ6DEy.js";
17
- import { H as Ce } from "./custom-focus-class-_483Pkwp.js";
18
- import { s as E } from "./field-rac.module-DfEb7pBp.js";
19
- import { u as U } from "./use-text-input-class-name-BXuk3TK7.js";
20
- const n = ({ children: e, className: a }) => {
21
- const { id: r, required: s, onBlur: o, onFocus: l, FieldLayout: c } = D(), { inputId: d, labelId: i, ariaDescribedBy: f } = z(), { regionalFormat: p } = V(), b = O(() => G(p).filter(K).map((Y) => Y.toUpperCase()), [
22
- p
23
- ]), L = u(e, n.Label), T = u(e, n.Description), _ = u(e, n.Error), C = {
24
- [m.MONTH]: u(e, n.Month),
25
- [m.DAY]: u(e, n.Day),
26
- [m.YEAR]: u(e, n.Year)
27
- };
28
- return /* @__PURE__ */ t.createElement(c, {
29
- fieldId: r,
30
- renderLabel: () => x(L, {
31
- as: "div"
32
- }),
33
- renderInput: () => /* @__PURE__ */ t.createElement(be, {
34
- id: d,
35
- ariaLabelledBy: i,
36
- ariaDescribedBy: f,
37
- required: s,
38
- onBlur: o,
39
- onFocus: l,
40
- className: a
41
- }, C[b[0]], C[b[1]], C[b[2]]),
42
- renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, _, T)
43
- });
44
- }, I = ({ children: e, className: a }) => {
45
- const { id: r, disabled: s, readOnly: o, showDateLabels: l, hidePlaceholder: c } = D(), { labelId: d } = g(m.MONTH), { partValue: i, partError: f, onPartChange: p } = N(m.MONTH), { t: b } = S(), [L, T] = k(!1), _ = Ie(r), [C, Y] = k(null), Q = c ? ye : b("field.date.placeholder.month"), W = v((M) => {
46
- o || p(typeof M == "string" ? M : "");
47
- }, [
48
- p,
49
- o
50
- ]), j = v((M) => {
51
- T(M && !o);
52
- }, [
53
- o
54
- ]), J = u(e, I.Label), X = u(e, I.Trigger), Z = u(e, I.Options);
55
- return /* @__PURE__ */ t.createElement("div", {
56
- className: a,
57
- "data-date-field": !0
58
- }, l ? J : null, /* @__PURE__ */ t.createElement("div", {
59
- ref: Y,
60
- style: {
61
- display: "contents"
62
- }
63
- }), /* @__PURE__ */ t.createElement(te, {
64
- getContainer: () => C
65
- }, /* @__PURE__ */ t.createElement(ne, {
66
- "aria-labelledby": l ? d : void 0,
67
- value: i || null,
68
- onChange: W,
69
- isDisabled: s,
70
- isInvalid: f,
71
- placeholder: Q,
72
- isOpen: _ || L,
73
- onOpenChange: _ ? void 0 : j
74
- }, X, x(Z, {
75
- isForcedOpen: _
76
- }))));
77
- }, Fe = ({ className: e }) => /* @__PURE__ */ t.createElement(B, {
78
- datePart: m.MONTH,
79
- className: e
80
- }), Re = ({ children: e, className: a }) => {
81
- const { id: r, readOnly: s } = D(), { inputId: o } = g(m.MONTH), { partError: l, isFirstPart: c } = N(m.MONTH), d = w(null);
82
- return H(() => {
83
- var i;
84
- c && ((i = d.current) == null || i.focus());
85
- }, r), /* @__PURE__ */ t.createElement(De, {
86
- ref: d,
87
- id: o,
88
- className: a,
89
- "data-hook": m.MONTH,
90
- "data-invalid": l || void 0,
91
- "data-readonly": s || void 0
92
- }, /* @__PURE__ */ t.createElement(re, null), e);
93
- }, A = ({ children: e, className: a, ...r }) => {
94
- const { isForcedOpen: s } = r, { language: o } = V(), l = O(() => ue(o), [
95
- o
96
- ]), c = u(e, A.Option) ?? /* @__PURE__ */ t.createElement(A.Option, null);
97
- return /* @__PURE__ */ t.createElement(he, {
98
- className: a,
99
- containerPadding: 0,
100
- offset: 0
101
- }, /* @__PURE__ */ t.createElement(Oe, {
102
- isForcedOpen: s,
103
- autoFocus: s ? !1 : void 0
104
- }, l.map((d, i) => x(c, {
105
- key: String(i + 1),
106
- value: String(i + 1),
107
- label: d
108
- }))));
109
- }, Me = ({ className: e, ...a }) => {
110
- const { value: r, label: s } = a;
111
- return /* @__PURE__ */ t.createElement(ae, {
112
- className: e,
113
- id: r,
114
- textValue: s
115
- }, s);
116
- };
117
- I.Label = Fe;
118
- I.Trigger = Re;
119
- I.Options = A;
120
- A.Option = Me;
121
- const F = ({ children: e, className: a }) => {
122
- const { disabled: r, readOnly: s, showDateLabels: o } = D(), { labelId: l } = g(m.DAY), { partValue: c, partError: d, onPartChange: i } = N(m.DAY), f = u(e, F.Label), p = u(e, F.Input);
123
- return /* @__PURE__ */ t.createElement("div", {
124
- className: a,
125
- "data-date-field": !0
126
- }, o && f, /* @__PURE__ */ t.createElement($, {
127
- "aria-labelledby": o ? l : void 0,
128
- value: c,
129
- onChange: i,
130
- isDisabled: r,
131
- isReadOnly: s,
132
- isInvalid: d
133
- }, p));
134
- }, Pe = ({ className: e }) => /* @__PURE__ */ t.createElement(B, {
135
- datePart: m.DAY,
136
- className: e
137
- }), Ae = ({ className: e }) => {
138
- const { id: a, hidePlaceholder: r } = D(), { inputId: s } = g(m.DAY), { isFirstPart: o } = N(m.DAY), { t: l } = S(), c = w(null), d = r ? void 0 : l("field.date.placeholder.day");
139
- return H(() => {
140
- var i;
141
- o && ((i = c.current) == null || i.focus());
142
- }, a), /* @__PURE__ */ t.createElement(q, {
143
- ref: c,
144
- id: s,
145
- className: e,
146
- placeholder: d,
147
- maxLength: 2,
148
- inputMode: "numeric",
149
- "data-hook": m.DAY
150
- });
151
- };
152
- F.Label = Pe;
153
- F.Input = Ae;
154
- const R = ({ children: e, className: a }) => {
155
- const { disabled: r, readOnly: s, showDateLabels: o } = D(), { labelId: l } = g(m.YEAR), { partValue: c, partError: d, onPartChange: i } = N(m.YEAR), f = u(e, R.Label), p = u(e, R.Input);
156
- return /* @__PURE__ */ t.createElement("div", {
157
- className: a,
158
- "data-date-field": !0
159
- }, o && f, /* @__PURE__ */ t.createElement($, {
160
- "aria-labelledby": o ? l : void 0,
161
- value: c,
162
- onChange: i,
163
- isDisabled: r,
164
- isReadOnly: s,
165
- isInvalid: d
166
- }, p));
167
- }, Se = ({ className: e }) => /* @__PURE__ */ t.createElement(B, {
168
- datePart: m.YEAR,
169
- className: e
170
- }), Te = ({ className: e }) => {
171
- const { id: a, hidePlaceholder: r } = D(), { inputId: s } = g(m.YEAR), { isFirstPart: o } = N(m.YEAR), { t: l } = S(), c = w(null), d = r ? void 0 : l("field.date.placeholder.year");
172
- return H(() => {
173
- var i;
174
- o && ((i = c.current) == null || i.focus());
175
- }, a), /* @__PURE__ */ t.createElement(q, {
176
- ref: c,
177
- id: s,
178
- className: e,
179
- placeholder: d,
180
- maxLength: 4,
181
- inputMode: "numeric",
182
- "data-hook": m.YEAR
183
- });
184
- };
185
- R.Label = Se;
186
- R.Input = Te;
187
- n.Label = fe;
188
- n.Month = I;
189
- n.Day = F;
190
- n.Year = R;
191
- n.Description = pe;
192
- n.Error = Ee;
193
- function g(e) {
194
- const { inputId: a } = z();
195
- return O(() => {
196
- const r = e.toLowerCase();
197
- return {
198
- inputId: `${a}-${r}-input`,
199
- labelId: `${a}-${r}-label`
200
- };
201
- }, [
202
- a,
203
- e
204
- ]);
205
- }
206
- function N(e) {
207
- const { value: a, onChange: r, hasError: s = !1 } = D(), { regionalFormat: o } = V(), l = O(() => se(a ?? ""), [
208
- a
209
- ]), c = O(() => oe(s, a ?? ""), [
210
- a,
211
- s
212
- ]), d = l[e] || "", i = v((p) => {
213
- const b = le(p, e, l);
214
- r(b);
215
- }, [
216
- r,
217
- l,
218
- e
219
- ]), f = O(() => G(o).filter(K).map((L) => L.toUpperCase())[0] === e, [
220
- o,
221
- e
222
- ]);
223
- return {
224
- partValue: d,
225
- partError: c[e],
226
- onPartChange: i,
227
- isFirstPart: f
228
- };
229
- }
230
- function B({ datePart: e, className: a }) {
231
- const { inputId: r, labelId: s } = g(e), { t: o } = S(), l = `field.date.label.${e.toLowerCase()}`, c = o(l);
232
- return /* @__PURE__ */ t.createElement("label", {
233
- id: s,
234
- htmlFor: r,
235
- className: a
236
- }, c);
237
- }
238
- const Ye = "_fields_fw9my_1", ve = "_month_fw9my_10", we = "_day_fw9my_11", Ve = "_year_fw9my_12", He = "_dayInput_fw9my_28", xe = "_yearInput_fw9my_29", Be = "_monthTrigger_fw9my_33", ke = "_monthOption_fw9my_53", y = {
239
- fields: Ye,
240
- month: ve,
241
- day: we,
242
- year: Ve,
243
- dayInput: He,
244
- yearInput: xe,
245
- monthTrigger: Be,
246
- monthOption: ke
247
- }, Ue = ({ content: e, locale: a }) => /* @__PURE__ */ t.createElement(ee, {
248
- content: e,
249
- locale: a
250
- }), ct = () => {
251
- const e = ge(y.monthTrigger), a = Ne(y.monthOption, Ce), r = U(y.dayInput), s = U(y.yearInput);
252
- return /* @__PURE__ */ t.createElement(n, {
253
- className: y.fields
254
- }, /* @__PURE__ */ t.createElement(n.Label, {
255
- className: h(P, E.label)
256
- }, /* @__PURE__ */ t.createElement(n.Label.Required, {
257
- className: h(ce, E.requiredMark)
258
- })), /* @__PURE__ */ t.createElement(n.Month, {
259
- className: y.month
260
- }, /* @__PURE__ */ t.createElement(n.Month.Label, {
261
- className: h(P, E.label)
262
- }), /* @__PURE__ */ t.createElement(n.Month.Trigger, {
263
- className: e
264
- }, /* @__PURE__ */ t.createElement(Le, {
265
- className: E.dropdownIcon
266
- })), /* @__PURE__ */ t.createElement(n.Month.Options, {
267
- className: h(ie, E.selectPopover, E.dropdownPopover)
268
- }, /* @__PURE__ */ t.createElement(n.Month.Options.Option, {
269
- className: a
270
- }))), /* @__PURE__ */ t.createElement(n.Day, {
271
- className: y.day
272
- }, /* @__PURE__ */ t.createElement(n.Day.Label, {
273
- className: h(P, E.label)
274
- }), /* @__PURE__ */ t.createElement(n.Day.Input, {
275
- className: r
276
- })), /* @__PURE__ */ t.createElement(n.Year, {
277
- className: y.year
278
- }, /* @__PURE__ */ t.createElement(n.Year.Label, {
279
- className: h(P, E.label)
280
- }), /* @__PURE__ */ t.createElement(n.Year.Input, {
281
- className: s
282
- })), /* @__PURE__ */ t.createElement(n.Error, {
283
- className: h(me, E.error)
284
- }, /* @__PURE__ */ t.createElement(_e, null), /* @__PURE__ */ t.createElement(n.Error.Text, null)), /* @__PURE__ */ t.createElement(n.Description, {
285
- className: h(de, E.description)
286
- }, Ue));
287
- };
288
- export {
289
- ct as D
290
- };
@@ -1,44 +0,0 @@
1
- import t, { useRef as L } from "react";
2
- import { TextField as R, Input as v } from "react-aria-components";
3
- import { bn as d, bk as c, bp as T } from "./form-D3iU18lh.js";
4
- import { f as s } from "./find-child-C60k4CxG.js";
5
- import { D as g, E as h } from "./field-error-headless-ClPQ03Jc.js";
6
- import { L as x } from "./field-label-headless-DhN8Lkuq.js";
7
- const e = ({ children: r }) => {
8
- const { id: a, value: i, onChange: l, disabled: u, readOnly: n, required: o, hasError: p, onBlur: m, onFocus: b, FieldLayout: f } = d(), { labelId: E } = c(), I = s(r, e.Label), F = s(r, e.Input), y = s(r, e.Description), D = s(r, e.Error);
9
- return /* @__PURE__ */ t.createElement(f, {
10
- fieldId: a,
11
- renderLabel: () => I,
12
- renderInput: () => /* @__PURE__ */ t.createElement(R, {
13
- "aria-labelledby": E,
14
- value: i ?? "",
15
- onChange: l,
16
- isDisabled: u,
17
- isReadOnly: n,
18
- isRequired: o,
19
- isInvalid: p,
20
- onBlur: m,
21
- onFocus: b
22
- }, F),
23
- renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, D, y)
24
- });
25
- }, B = ({ className: r }) => {
26
- const { id: a, placeholder: i } = d(), { inputId: l, ariaDescribedBy: u } = c(), n = L(null);
27
- return T(() => {
28
- var o;
29
- (o = n.current) == null || o.focus();
30
- }, a), /* @__PURE__ */ t.createElement(v, {
31
- ref: n,
32
- id: l,
33
- "aria-describedby": u,
34
- className: r,
35
- placeholder: i
36
- });
37
- };
38
- e.Label = x;
39
- e.Input = B;
40
- e.Description = g;
41
- e.Error = h;
42
- export {
43
- e as T
44
- };
@@ -1,6 +0,0 @@
1
- import { ab as a } from "./form-D3iU18lh.js";
2
- import { u as e } from "./use-hoverable-input-class-name-B-FhrcyQ.js";
3
- const m = (...s) => e(a, s);
4
- export {
5
- m as u
6
- };