@wix/form-elements 1.97.0 → 1.99.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 (106) hide show
  1. package/dist/component/{appointment-rac-BKgRKq3j.js → appointment-rac-CP8gfFze.js} +382 -385
  2. package/dist/component/{bookings-address-rac-C87x19gw.js → bookings-address-rac-CWs0gEUJ.js} +1 -1
  3. package/dist/component/{bookings-email-rac-f4nuC_pb.js → bookings-email-rac-D-HYHHg-.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-BGmuAmbu.js → bookings-first-name-rac-Sk9e2_l9.js} +1 -1
  5. package/dist/component/{bookings-header-rac-CoyxHljp.js → bookings-header-rac-idz-09i9.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-D2mBYwcR.js → bookings-last-name-rac-C4cCmRVy.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-BH2Mi6TR.js → bookings-login-bar-rac-BdVG5M2b.js} +1 -1
  8. package/dist/component/{bookings-phone-rac-Dz78ybFV.js → bookings-phone-rac-D09RuttH.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-8_h0cOoy.js → bookings-rich-text-rac-Ci26IHTA.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-CJnegjvL.js → checkbox-field-rac-Blko_wMR.js} +4 -4
  11. package/dist/component/{checkbox-group-field-headless-CrA7Gx2Y.js → checkbox-group-field-headless-DhV4VwZq.js} +3 -3
  12. package/dist/component/{checkbox-group-field-rac-DMg75l5Q.js → checkbox-group-field-rac-BtPnVYiW.js} +3 -3
  13. package/dist/component/{checkbox-group-rac-C9XWlO5D.js → checkbox-group-rac-eyClfhOO.js} +1 -1
  14. package/dist/component/{checkbox-rac-CrqhH4z9.js → checkbox-rac-I0i6q5tn.js} +1 -1
  15. package/dist/component/{contacts-address-rac-C2mqTiPg.js → contacts-address-rac-8UPBA_Nx.js} +1 -1
  16. package/dist/component/{contacts-birthdate-rac-i7_RMona.js → contacts-birthdate-rac-BuMsx4tn.js} +1 -1
  17. package/dist/component/{contacts-company-rac-7sdIosaG.js → contacts-company-rac-C4GszTsX.js} +1 -1
  18. package/dist/component/{contacts-email-rac-CrsksJ9G.js → contacts-email-rac-BdNzRUNL.js} +1 -1
  19. package/dist/component/{contacts-first-name-rac-I5xIYxgD.js → contacts-first-name-rac-D7otJsfF.js} +1 -1
  20. package/dist/component/{contacts-last-name-rac-DnzJYJh7.js → contacts-last-name-rac-DE2dfvRQ.js} +1 -1
  21. package/dist/component/{contacts-phone-rac-Cx1jpYmv.js → contacts-phone-rac-C-P4QUzI.js} +1 -1
  22. package/dist/component/{contacts-position-rac-CxddG_cE.js → contacts-position-rac-CD_mT8at.js} +1 -1
  23. package/dist/component/{contacts-subscribe-rac-C1nTAhnd.js → contacts-subscribe-rac-CyBwegiP.js} +1 -1
  24. package/dist/component/{contacts-tax-id-rac-B1lzfrj_.js → contacts-tax-id-rac-BVwa6_pq.js} +1 -1
  25. package/dist/component/{date-availability-LN33GU7O.js → date-availability-6u7UHGAa.js} +1 -1
  26. package/dist/component/{date-input-field-rac-zTcw6Mxx.js → date-input-field-rac-Dpb3imSq.js} +98 -101
  27. package/dist/component/{date-input-rac-NfVbrcoO.js → date-input-rac-CaRUO8qF.js} +1 -1
  28. package/dist/component/date-picker-field-rac-BuZ2Vdqw.js +311 -0
  29. package/dist/component/{date-picker-rac-C5iXyKdf.js → date-picker-rac-CQ0HLYC_.js} +1 -1
  30. package/dist/component/{date-time-input-field-rac-Cp34u7cC.js → date-time-input-field-rac-D-6fSa7K.js} +101 -104
  31. package/dist/component/{date-time-input-rac-CfFd56Xf.js → date-time-input-rac-DJvGnasb.js} +1 -1
  32. package/dist/component/{dext-checkbox-group-rac-BVx7XXwR.js → dext-checkbox-group-rac-4Xv2Yx1Q.js} +2 -2
  33. package/dist/component/{dext-checkbox-rac-CmUOLx_w.js → dext-checkbox-rac-MUiHjntT.js} +1 -1
  34. package/dist/component/{dext-date-picker-rac-XDrLGVTQ.js → dext-date-picker-rac-B7V77fPs.js} +1 -1
  35. package/dist/component/{dext-date-time-input-rac-ZLCq_taK.js → dext-date-time-input-rac-LDrnt4fH.js} +1 -1
  36. package/dist/component/{dext-dropdown-rac-C74zBq3M.js → dext-dropdown-rac-BP83OElK.js} +1 -1
  37. package/dist/component/{dext-email-rac-CqS9HcdY.js → dext-email-rac-Bi9qANCo.js} +1 -1
  38. package/dist/component/{dext-number-input-rac-DszjJDT-.js → dext-number-input-rac-BU4SEily.js} +1 -1
  39. package/dist/component/{dext-phone-rac-wt7T8hpM.js → dext-phone-rac-D5s8DrCc.js} +1 -1
  40. package/dist/component/{dext-radio-group-rac-BvRnaWP0.js → dext-radio-group-rac-DaTuyxUL.js} +2 -2
  41. package/dist/component/{dext-rating-input-rac-D1Lt9M3c.js → dext-rating-input-rac-CfMKqHHZ.js} +1 -1
  42. package/dist/component/{dext-tags-rac-70YO5CJH.js → dext-tags-rac-CyFzVZFw.js} +2 -2
  43. package/dist/component/{dext-text-area-rac-CC5RCvWh.js → dext-text-area-rac-D-kfFMUj.js} +1 -1
  44. package/dist/component/{dext-text-input-rac-s487DzPW.js → dext-text-input-rac-BOFj2FyN.js} +1 -1
  45. package/dist/component/{dext-url-input-rac-DEKwUh2a.js → dext-url-input-rac-BGPDEwNb.js} +1 -1
  46. package/dist/component/{donation-rac-C2bCFVHP.js → donation-rac-BMX9KxJP.js} +5 -5
  47. package/dist/component/{dropdown-field-headless-BMWwkydq.js → dropdown-field-headless-CIXH608w.js} +4 -4
  48. package/dist/component/{dropdown-field-rac-Cw5Cbpg0.js → dropdown-field-rac-daLrun-E.js} +2 -2
  49. package/dist/component/{dropdown-rac-CEmlDY3w.js → dropdown-rac-BTYSH3Zy.js} +1 -1
  50. package/dist/component/{ecom-address-rac-Dv6asnf_.js → ecom-address-rac-BDhiTREn.js} +1 -1
  51. package/dist/component/{ecom-subscription-checkbox-rac-DOwH-Ebd.js → ecom-subscription-checkbox-rac-Dbpa4fFi.js} +2 -2
  52. package/dist/component/{email-input-field-rac-CeFXPibq.js → email-input-field-rac-BJUszqvR.js} +3 -3
  53. package/dist/component/{events-repeater-rac-BUk5Qc8n.js → events-repeater-rac-DJrTlOGT.js} +4 -4
  54. package/dist/component/{events-rsvp-rac-CtFkVzUy.js → events-rsvp-rac-DDASk2XH.js} +2 -2
  55. package/dist/component/{field-error-headless-B6x_cVEi.js → field-error-headless-DJVkE5yv.js} +1 -1
  56. package/dist/component/{field-label-headless-BibCD8xx.js → field-label-headless-CyCHxPkd.js} +1 -1
  57. package/dist/component/{file-upload-rac-BUcktluW.js → file-upload-rac-BOpYihdw.js} +3 -3
  58. package/dist/component/{fixed-payment-rac-BMSBSo5c.js → fixed-payment-rac-DFi_YPyN.js} +3 -3
  59. package/dist/component/{form-9WmwgGNc.js → form-CVz1PefD.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-CxUuHOic.js → header-field-rac-C2PfSwil.js} +2 -2
  63. package/dist/component/{header-rac-DejI69X7.js → header-rac-D9YqB-O1.js} +1 -1
  64. package/dist/component/{image-choice-rac-BjI5a_co.js → image-choice-rac-t_I06vvU.js} +4 -4
  65. package/dist/component/{index-Dz2hV2_S.js → index-DLjekrTD.js} +4 -4
  66. package/dist/component/{index-Csso-2QH.js → index-yjAwk9mS.js} +2 -2
  67. package/dist/component/{isObjectLike-BN_BZMhy.js → isObjectLike-Cgzv4nCC.js} +1 -1
  68. package/dist/component/{multiline-address-field-rac-CYfphmfr.js → multiline-address-field-rac-Dnjmc0tO.js} +7 -7
  69. package/dist/component/{multiline-address-rac-Ccujt2bd.js → multiline-address-rac-ByL_NcH7.js} +1 -1
  70. package/dist/component/{number-input-field-rac-CfnRCRar.js → number-input-field-rac-BPTuhBlo.js} +4 -4
  71. package/dist/component/{number-input-rac-DnTO9d8P.js → number-input-rac-hLoHm0Ul.js} +1 -1
  72. package/dist/component/{password-rac-Be_YSb-Q.js → password-rac-DYqRtXl0.js} +4 -4
  73. package/dist/component/{payment-input-rac-DXUf5iYb.js → payment-input-rac-D9WtGI5n.js} +4 -4
  74. package/dist/component/{phone-input-field-rac-DYAwLuvJ.js → phone-input-field-rac-D2Emh-lo.js} +6 -6
  75. package/dist/component/{phone-rac-BlsvDmER.js → phone-rac-B8-6Mw36.js} +1 -1
  76. package/dist/component/{product-list-rac-DdXwRSc2.js → product-list-rac-B_wLuARQ.js} +4 -4
  77. package/dist/component/{quiz-radio-group-rac-B0yiKdbu.js → quiz-radio-group-rac-CcnfdObW.js} +1 -1
  78. package/dist/component/{radio-button-module-classes-t1jsWYpT.js → radio-button-module-classes-CyZYs0BH.js} +3 -3
  79. package/dist/component/{radio-group-field-rac-Cug1TtSq.js → radio-group-field-rac-BdNA6UOq.js} +3 -3
  80. package/dist/component/{radio-group-rac-_O5T0Pt8.js → radio-group-rac-CvhHM6v5.js} +1 -1
  81. package/dist/component/{rating-input-field-rac-BSKzQ3fq.js → rating-input-field-rac-wjWNPfRZ.js} +4 -4
  82. package/dist/component/{rating-input-rac-B71q44YO.js → rating-input-rac-qqUycDFh.js} +1 -1
  83. package/dist/component/{rich-content-rac.module-BJuoKIOt.js → rich-content-rac.module-BAMOVeFc.js} +1 -1
  84. package/dist/component/{rich-text-field-rac-CiSR82Fw.js → rich-text-field-rac-DRC3nap3.js} +2 -2
  85. package/dist/component/{rich-text-rac-Bo6UBwOg.js → rich-text-rac-DPgt6Zb4.js} +1 -1
  86. package/dist/component/{service-dropdown-rac-BJ7V-g8M.js → service-dropdown-rac-C79afx6z.js} +4 -4
  87. package/dist/component/{services-multi-choice-rac-CtBcc9WH.js → services-multi-choice-rac-Dv_3PkqW.js} +5 -5
  88. package/dist/component/{signature-rac-yvrHr1he.js → signature-rac-D2NLRFu0.js} +3 -3
  89. package/dist/component/{submit-button-rac-s-JdZgq7.js → submit-button-rac-CnmlHY57.js} +1 -1
  90. package/dist/component/{tags-field-rac-g_W0RMod.js → tags-field-rac-B5v917df.js} +5 -5
  91. package/dist/component/{tags-rac-DmvIH6HU.js → tags-rac-DCUcssn5.js} +1 -1
  92. package/dist/component/{text-area-field-rac-Duja5xOA.js → text-area-field-rac-7YmznS1S.js} +4 -4
  93. package/dist/component/{text-area-rac-DzRxgG6u.js → text-area-rac-C0Yuh6D2.js} +1 -1
  94. package/dist/component/{text-input-field-rac-C2eXeoBC.js → text-input-field-rac-Bpmukqyp.js} +2 -2
  95. package/dist/component/{text-input-headless-d1WK0nqR.js → text-input-headless-Cdpzu_eE.js} +3 -3
  96. package/dist/component/{text-input-rac-DM9MnoQs.js → text-input-rac-D7zsAary.js} +1 -1
  97. package/dist/component/{time-input-rac-CxVZ3USX.js → time-input-rac-CDiPbISF.js} +4 -4
  98. package/dist/component/{url-input-field-rac-4oVJMr1a.js → url-input-field-rac-oi5ViIKm.js} +4 -4
  99. package/dist/component/{url-input-rac--T-FnskQ.js → url-input-rac-Bs8MYm-g.js} +1 -1
  100. package/dist/component/{use-dropdown-option-class-name-BFHRYpVL.js → use-dropdown-option-class-name-BqtzLp8Y.js} +1 -1
  101. package/dist/component/{use-element-state-class-name-De5YnxMK.js → use-element-state-class-name-Cego6EXH.js} +1 -1
  102. package/dist/component/{use-is-forced-open-dropdown-CWvcd9Ex.js → use-is-forced-open-dropdown-Do-gps07.js} +1 -1
  103. package/dist/component/{use-service-options-base-CD1EVWRE.js → use-service-options-base-CoXyq3zH.js} +1 -1
  104. package/dist/component/{use-text-input-class-name-BYwXccvO.js → use-text-input-class-name-BUFPGIgC.js} +2 -2
  105. package/package.json +2 -2
  106. package/dist/component/date-picker-field-rac-Cc9hJloJ.js +0 -317
@@ -0,0 +1,311 @@
1
+ import { RicosViewer as X } from "@wix/ricos/viewer";
2
+ import D from "classnames";
3
+ import e, { useState as A, useCallback as M, useContext as ee, useRef as P, useMemo as b } from "react";
4
+ import { parseDate as te } from "@internationalized/date";
5
+ import { UNSAFE_PortalProvider as re } from "react-aria";
6
+ import { I18nProvider as ae, DatePicker as ne, DatePickerStateContext as oe, Group as le, DateInput as se, DateSegment as ce, Calendar as ie, CalendarMonthPicker as me, CalendarYearPicker as ue, CalendarGrid as de, Dialog as ge, CalendarCell as Ee, Button as w, Select as x, SelectValue as Y, ListBox as B, ListBoxItem as U } from "react-aria-components";
7
+ import { D as f, ak as T, ah as V, ac as L, am as pe } from "./form-CVz1PefD.js";
8
+ import { g as De, c as R } from "./calendar.module-DnhTT4QT.js";
9
+ import { f as E, a as h } from "./find-child-C60k4CxG.js";
10
+ import { D as fe, E as Ce } from "./field-error-headless-DJVkE5yv.js";
11
+ import { L as ye } from "./field-label-headless-CyCHxPkd.js";
12
+ import { D as Se, N as O, S as W } from "./non-modal-popover-DtIMXHbe.js";
13
+ import { u as he } from "./use-is-forced-open-dropdown-Do-gps07.js";
14
+ import { i as Te } from "./date-availability-6u7UHGAa.js";
15
+ import { C as F } from "./chevron-down-icon-CcpVm6B-.js";
16
+ import { E as ve } from "./error-icon-hZxQ6DEy.js";
17
+ import { H as _e } from "./custom-focus-class-_483Pkwp.js";
18
+ import { s as p } from "./field-rac.module-DobpyqOd.js";
19
+ import { C as Ne, S as Ie, n as be, h as Fe, r as Le, j as Oe } from "./form-element-classes-BtKlobUX.js";
20
+ const Ae = [
21
+ f.SUNDAY,
22
+ f.MONDAY,
23
+ f.TUESDAY,
24
+ f.WEDNESDAY,
25
+ f.THURSDAY,
26
+ f.FRIDAY,
27
+ f.SATURDAY
28
+ ], Pe = {
29
+ availableDays: Ae
30
+ }, a = ({ children: t }) => {
31
+ const { id: r, value: l, onChange: n, disabled: i, required: c, onBlur: d, onFocus: o, FieldLayout: m, hasError: u, readOnly: C } = T(), { labelId: y } = V(), { regionalFormat: v } = L(), [_, s] = A(null), [N, K] = A(!1), I = he(r), $ = M((z) => {
32
+ const J = Ke(z);
33
+ n(J);
34
+ }, [
35
+ n
36
+ ]), H = E(t, a.Label), q = E(t, a.Control), G = E(t, a.Calendar), j = E(t, a.Description), Q = E(t, a.Error), Z = We(l);
37
+ return /* @__PURE__ */ e.createElement(m, {
38
+ fieldId: r,
39
+ renderLabel: () => H,
40
+ renderInput: () => /* @__PURE__ */ e.createElement(ae, {
41
+ locale: v
42
+ }, /* @__PURE__ */ e.createElement("div", {
43
+ ref: s,
44
+ style: {
45
+ display: "contents"
46
+ }
47
+ }), /* @__PURE__ */ e.createElement(re, {
48
+ getContainer: () => _
49
+ }, /* @__PURE__ */ e.createElement(ne, {
50
+ "aria-labelledby": y,
51
+ value: Z,
52
+ onChange: $,
53
+ isDisabled: i,
54
+ isInvalid: u,
55
+ isReadOnly: C,
56
+ isRequired: c,
57
+ onBlur: d,
58
+ onFocus: o,
59
+ isOpen: I || N,
60
+ onOpenChange: I ? void 0 : K
61
+ }, q, h(G, {
62
+ isForcedOpen: I
63
+ })))),
64
+ renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, Q, j)
65
+ });
66
+ }, Re = ({ children: t, className: r }) => {
67
+ const { inputId: l, ariaDescribedBy: n } = V(), { hasError: i, disabled: c, readOnly: d } = T(), o = ee(oe), m = M((u) => {
68
+ if (!o || o.isOpen || c || d)
69
+ return;
70
+ const C = u.target;
71
+ if (C.closest("button"))
72
+ return;
73
+ const y = C.closest("[data-type]");
74
+ y && y.getAttribute("data-type") !== "literal" || o.setOpen(!0);
75
+ }, [
76
+ o,
77
+ c,
78
+ d
79
+ ]);
80
+ return /* @__PURE__ */ e.createElement(le, {
81
+ id: l,
82
+ "aria-describedby": n,
83
+ className: r,
84
+ "data-invalid": i,
85
+ onPointerDownCapture: m
86
+ }, t);
87
+ }, ke = ({ className: t }) => {
88
+ const { id: r, placeholder: l } = T(), { regionalFormat: n } = L(), i = P(null), c = P(!1);
89
+ pe(() => {
90
+ var o;
91
+ (o = i.current) == null || o.focus();
92
+ }, r);
93
+ const d = b(() => $e(n), [
94
+ n
95
+ ]);
96
+ return /* @__PURE__ */ e.createElement(se, {
97
+ className: t
98
+ }, (o) => {
99
+ const m = o.type === d && o.isPlaceholder && !!l;
100
+ return /* @__PURE__ */ e.createElement(ce, {
101
+ segment: o,
102
+ "data-first-segment": m || void 0,
103
+ ref: (u) => {
104
+ if (!u && c.current) {
105
+ i.current = null, c.current = !1;
106
+ return;
107
+ }
108
+ if (u && !c.current) {
109
+ i.current = u, c.current = !0;
110
+ return;
111
+ }
112
+ }
113
+ }, (u) => !u.isPlaceholder || !l ? u.text : m ? l : u.text);
114
+ });
115
+ }, Me = ({ children: t, className: r }) => /* @__PURE__ */ e.createElement(Se, {
116
+ className: r
117
+ }, t), g = ({ children: t, className: r, ...l }) => {
118
+ const { isForcedOpen: n } = l, { regionalFormat: i, isMobile: c } = L(), { availability: d } = T(), o = b(() => De(i), [
119
+ i
120
+ ]), m = b(() => (s) => {
121
+ const N = new Date(s.year, s.month - 1, s.day);
122
+ return !Te(N, d || Pe);
123
+ }, [
124
+ d
125
+ ]), u = E(t, g.Day) ?? /* @__PURE__ */ e.createElement(g.Day, null), C = E(t, g.PreviousTrigger), y = E(t, g.NextTrigger), v = E(t, g.MonthTrigger), _ = E(t, g.YearTrigger);
126
+ return /* @__PURE__ */ e.createElement(O, {
127
+ className: r,
128
+ containerPadding: 0
129
+ }, /* @__PURE__ */ e.createElement(we, {
130
+ isForcedOpen: n
131
+ }, /* @__PURE__ */ e.createElement(ie, {
132
+ autoFocus: n ? !1 : void 0,
133
+ firstDayOfWeek: He(o),
134
+ isDateUnavailable: m
135
+ }, /* @__PURE__ */ e.createElement("header", null, C, /* @__PURE__ */ e.createElement(me, null, (s) => h(v, {
136
+ ariaLabel: s["aria-label"],
137
+ selectedKey: s.value,
138
+ onSelectionChange: s.onChange,
139
+ items: s.items,
140
+ popoverClassName: r
141
+ })), /* @__PURE__ */ e.createElement(ue, {
142
+ visibleYears: 100
143
+ }, (s) => h(_, {
144
+ ariaLabel: s["aria-label"],
145
+ selectedKey: s.value,
146
+ onSelectionChange: s.onChange,
147
+ items: s.items,
148
+ popoverClassName: r
149
+ })), y), /* @__PURE__ */ e.createElement(de, {
150
+ weekdayStyle: c ? "narrow" : "short"
151
+ }, (s) => h(u, {
152
+ date: s
153
+ })))));
154
+ }, we = ({ isForcedOpen: t, children: r }) => t ? /* @__PURE__ */ e.createElement("div", {
155
+ role: "dialog"
156
+ }, r) : /* @__PURE__ */ e.createElement(ge, null, r), xe = ({ children: t, className: r, ...l }) => {
157
+ const { date: n } = l;
158
+ return /* @__PURE__ */ e.createElement(Ee, {
159
+ className: r,
160
+ date: n
161
+ }, t);
162
+ }, Ye = ({ children: t, className: r }) => /* @__PURE__ */ e.createElement(w, {
163
+ slot: "previous",
164
+ className: r
165
+ }, t), Be = ({ children: t, className: r }) => /* @__PURE__ */ e.createElement(w, {
166
+ slot: "next",
167
+ className: r
168
+ }, t), Ue = ({ children: t, className: r, ...l }) => {
169
+ const { ariaLabel: n, selectedKey: i, onSelectionChange: c, items: d, popoverClassName: o } = l;
170
+ return /* @__PURE__ */ e.createElement(x, {
171
+ "aria-label": n,
172
+ selectedKey: i,
173
+ onSelectionChange: c
174
+ }, /* @__PURE__ */ e.createElement(W, {
175
+ className: r
176
+ }, /* @__PURE__ */ e.createElement(Y, null), t), /* @__PURE__ */ e.createElement(O, {
177
+ className: o,
178
+ containerPadding: 0
179
+ }, /* @__PURE__ */ e.createElement(B, {
180
+ items: d
181
+ }, (m) => /* @__PURE__ */ e.createElement(U, {
182
+ id: m.id
183
+ }, m.formatted))));
184
+ }, Ve = ({ children: t, className: r, ...l }) => {
185
+ const { ariaLabel: n, selectedKey: i, onSelectionChange: c, items: d, popoverClassName: o } = l;
186
+ return /* @__PURE__ */ e.createElement(x, {
187
+ "aria-label": n,
188
+ selectedKey: i,
189
+ onSelectionChange: c
190
+ }, /* @__PURE__ */ e.createElement(W, {
191
+ className: r
192
+ }, /* @__PURE__ */ e.createElement(Y, null), t), /* @__PURE__ */ e.createElement(O, {
193
+ className: o,
194
+ containerPadding: 0
195
+ }, /* @__PURE__ */ e.createElement(B, {
196
+ items: d
197
+ }, (m) => /* @__PURE__ */ e.createElement(U, {
198
+ id: m.id
199
+ }, m.formatted))));
200
+ };
201
+ g.Day = xe;
202
+ g.PreviousTrigger = Ye;
203
+ g.NextTrigger = Be;
204
+ g.MonthTrigger = Ue;
205
+ g.YearTrigger = Ve;
206
+ a.Label = ye;
207
+ a.Control = Re;
208
+ a.Input = ke;
209
+ a.Trigger = Me;
210
+ a.Calendar = g;
211
+ a.Description = fe;
212
+ a.Error = Ce;
213
+ function We(t) {
214
+ if (!t)
215
+ return null;
216
+ try {
217
+ return te(t);
218
+ } catch {
219
+ return null;
220
+ }
221
+ }
222
+ function Ke(t) {
223
+ if (!t)
224
+ return null;
225
+ const r = String(t.year).padStart(4, "0"), l = String(t.month).padStart(2, "0"), n = String(t.day).padStart(2, "0");
226
+ return `${r}-${l}-${n}`;
227
+ }
228
+ function $e(t) {
229
+ var r;
230
+ try {
231
+ return ((r = new Intl.DateTimeFormat(t, {
232
+ year: "numeric",
233
+ month: "2-digit",
234
+ day: "2-digit"
235
+ }).formatToParts(/* @__PURE__ */ new Date()).find((n) => n.type !== "literal")) == null ? void 0 : r.type) ?? "month";
236
+ } catch {
237
+ return "month";
238
+ }
239
+ }
240
+ function He(t) {
241
+ return [
242
+ "sun",
243
+ "mon",
244
+ "tue",
245
+ "wed",
246
+ "thu",
247
+ "fri",
248
+ "sat"
249
+ ][t] || "mon";
250
+ }
251
+ const qe = (t) => /* @__PURE__ */ e.createElement("svg", {
252
+ viewBox: "0 0 24 24",
253
+ fill: "none",
254
+ width: 14,
255
+ height: 14,
256
+ "aria-hidden": "true",
257
+ ...t
258
+ }, /* @__PURE__ */ e.createElement("path", {
259
+ d: "M7 2v2M17 2v2M3 8h18M5 4h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2Z",
260
+ stroke: "currentColor",
261
+ strokeWidth: "1.5",
262
+ strokeLinecap: "round",
263
+ strokeLinejoin: "round"
264
+ })), Ge = "_control_1vunt_1", je = "_segments_1vunt_14", Qe = "_trigger_1vunt_65", Ze = "_calendarPopover_1vunt_96", ze = "_calendarDay_1vunt_242", S = {
265
+ control: Ge,
266
+ segments: je,
267
+ trigger: Qe,
268
+ calendarPopover: Ze,
269
+ calendarDay: ze
270
+ }, Je = ({ content: t, locale: r }) => /* @__PURE__ */ e.createElement(X, {
271
+ content: t,
272
+ locale: r
273
+ }), Xe = {
274
+ left: 90,
275
+ right: -90
276
+ }, k = ({ direction: t }) => /* @__PURE__ */ e.createElement(F, {
277
+ style: {
278
+ transform: `rotate(${Xe[t]}deg)`
279
+ }
280
+ }), yt = () => /* @__PURE__ */ e.createElement(a, null, /* @__PURE__ */ e.createElement(a.Label, {
281
+ className: D(Ne, p.label)
282
+ }, /* @__PURE__ */ e.createElement(a.Label.Required, {
283
+ className: D(Ie, p.requiredMark)
284
+ })), /* @__PURE__ */ e.createElement(a.Control, {
285
+ className: D(be, p.input, S.control)
286
+ }, /* @__PURE__ */ e.createElement(a.Trigger, {
287
+ className: S.trigger
288
+ }, /* @__PURE__ */ e.createElement(qe, null)), /* @__PURE__ */ e.createElement(a.Input, {
289
+ className: S.segments
290
+ })), /* @__PURE__ */ e.createElement(a.Calendar, {
291
+ className: D(Fe, p.selectPopover, S.calendarPopover)
292
+ }, /* @__PURE__ */ e.createElement(a.Calendar.PreviousTrigger, null, /* @__PURE__ */ e.createElement(k, {
293
+ direction: "left"
294
+ })), /* @__PURE__ */ e.createElement(a.Calendar.MonthTrigger, null, /* @__PURE__ */ e.createElement(F, {
295
+ className: p.dropdownIcon
296
+ })), /* @__PURE__ */ e.createElement(a.Calendar.YearTrigger, null, /* @__PURE__ */ e.createElement(F, {
297
+ className: p.dropdownIcon
298
+ })), /* @__PURE__ */ e.createElement(a.Calendar.NextTrigger, null, /* @__PURE__ */ e.createElement(k, {
299
+ direction: "right"
300
+ })), /* @__PURE__ */ e.createElement(a.Calendar.Day, {
301
+ className: D(_e, R.day, S.calendarDay)
302
+ }, ({ formattedDate: t }) => /* @__PURE__ */ e.createElement("span", {
303
+ className: R.dayNumber
304
+ }, t))), /* @__PURE__ */ e.createElement(a.Error, {
305
+ className: D(Le, p.error)
306
+ }, /* @__PURE__ */ e.createElement(ve, null), /* @__PURE__ */ e.createElement(a.Error.Text, null)), /* @__PURE__ */ e.createElement(a.Description, {
307
+ className: D(Oe, p.description)
308
+ }, Je));
309
+ export {
310
+ yt as D
311
+ };
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { D as r } from "./date-picker-field-rac-Cc9hJloJ.js";
2
+ import { D as r } from "./date-picker-field-rac-BuZ2Vdqw.js";
3
3
  const a = () => /* @__PURE__ */ e.createElement(r, null);
4
4
  export {
5
5
  a as DatePickerRAC