@wix/form-elements 1.83.0 → 1.85.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-ky2cE6hE.js → appointment-rac-CCaJ6P5r.js} +78 -78
  2. package/dist/component/{bookings-address-rac-Bxc6H9Pb.js → bookings-address-rac-DEt9SGPG.js} +1 -1
  3. package/dist/component/{bookings-email-rac-Dw1Xttdx.js → bookings-email-rac-BydOvOUZ.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-dgHOrJaJ.js → bookings-first-name-rac-BoQki0Pb.js} +1 -1
  5. package/dist/component/{bookings-header-rac-Bl9RYGWo.js → bookings-header-rac-DK-EcXrk.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-BeqYpbZq.js → bookings-last-name-rac-BuGIyd43.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-C1k6o0A5.js → bookings-login-bar-rac-Cr500ehb.js} +6 -6
  8. package/dist/component/{bookings-phone-rac-ByhaJrwE.js → bookings-phone-rac-Bq2zdMxo.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-Mw5-ZiIn.js → bookings-rich-text-rac-DRmfusX9.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-CMEI5t4Y.js → checkbox-field-rac-b9mcZlMP.js} +5 -5
  11. package/dist/component/{checkbox-group-field-headless-CP21R7_s.js → checkbox-group-field-headless-BSNhdCfs.js} +30 -30
  12. package/dist/component/{checkbox-group-field-rac-DGOZjSIY.js → checkbox-group-field-rac-BObfui8r.js} +6 -6
  13. package/dist/component/{checkbox-group-rac-CEGtshrl.js → checkbox-group-rac-CBNMgBHU.js} +1 -1
  14. package/dist/component/{checkbox-rac-DCnRh1WF.js → checkbox-rac-DXh-i6Ot.js} +1 -1
  15. package/dist/component/{contacts-address-rac-CZb_5N5o.js → contacts-address-rac-BDQLFakc.js} +1 -1
  16. package/dist/component/{contacts-birthdate-rac-DZlwSyp5.js → contacts-birthdate-rac-BUMVVVfb.js} +1 -1
  17. package/dist/component/{contacts-company-rac-BNEF6LjB.js → contacts-company-rac-CidGcaA3.js} +1 -1
  18. package/dist/component/{contacts-email-rac-CAgk_zfN.js → contacts-email-rac-GePAhKDQ.js} +1 -1
  19. package/dist/component/{contacts-first-name-rac-DyTVcmrX.js → contacts-first-name-rac-kw5sIBEE.js} +1 -1
  20. package/dist/component/{contacts-last-name-rac-DrFcDcGr.js → contacts-last-name-rac-DzoZKs1n.js} +1 -1
  21. package/dist/component/{contacts-phone-rac-UAPALlFx.js → contacts-phone-rac-CxVW4Zp0.js} +1 -1
  22. package/dist/component/{contacts-position-rac-CJ1M4kJJ.js → contacts-position-rac-CXFxlSty.js} +1 -1
  23. package/dist/component/{contacts-subscribe-rac-1cEd5s1l.js → contacts-subscribe-rac-kpRGeELB.js} +2 -2
  24. package/dist/component/{contacts-tax-id-rac-CqnO__fd.js → contacts-tax-id-rac-B5qw-rtP.js} +1 -1
  25. package/dist/component/{date-availability-COM2EaRy.js → date-availability-BCDMem-_.js} +1 -1
  26. package/dist/component/{date-input-field-rac-CuuWbw42.js → date-input-field-rac-BLDZ4_Mw.js} +43 -43
  27. package/dist/component/{date-input-rac-DfVmj9Gc.js → date-input-rac-B1WGYKOp.js} +1 -1
  28. package/dist/component/{date-picker-field-rac-BFCZik9T.js → date-picker-field-rac-BNd8aZ0c.js} +20 -20
  29. package/dist/component/{date-picker-rac-C2vajJpb.js → date-picker-rac-ItWxSngw.js} +1 -1
  30. package/dist/component/date-time-input-field-rac-Ch8z0NRT.js +423 -0
  31. package/dist/component/{date-time-input-rac-D4FEieQz.js → date-time-input-rac-FebIovNN.js} +1 -1
  32. package/dist/component/{dext-checkbox-group-rac-BDBBTNNo.js → dext-checkbox-group-rac-BXYHMQ3R.js} +2 -2
  33. package/dist/component/{dext-checkbox-rac-DAAhNboR.js → dext-checkbox-rac-C78ScIGY.js} +1 -1
  34. package/dist/component/{dext-date-picker-rac-me7XbR5z.js → dext-date-picker-rac-BptT4fhe.js} +1 -1
  35. package/dist/component/{dext-date-time-input-rac-DLsUl2Eg.js → dext-date-time-input-rac-RWJ51IjA.js} +1 -1
  36. package/dist/component/{dext-dropdown-rac-C3vVIRir.js → dext-dropdown-rac-DZDOtSIG.js} +1 -1
  37. package/dist/component/{dext-email-rac-a8qXYTLP.js → dext-email-rac-CJceqZsw.js} +1 -1
  38. package/dist/component/{dext-number-input-rac-DdDnL_fX.js → dext-number-input-rac-buSXk49E.js} +1 -1
  39. package/dist/component/{dext-phone-rac-ByaxbHpO.js → dext-phone-rac-CeHUOWck.js} +1 -1
  40. package/dist/component/{dext-radio-group-rac-Bzubt7Uy.js → dext-radio-group-rac-CNyNSfeP.js} +2 -2
  41. package/dist/component/{dext-rating-input-rac-BZ1EvOkG.js → dext-rating-input-rac-mmdh9tYT.js} +1 -1
  42. package/dist/component/{dext-tags-rac-C_R89noV.js → dext-tags-rac-CqJ4iv-V.js} +2 -2
  43. package/dist/component/{dext-text-area-rac-DRpYeQ-K.js → dext-text-area-rac-P1EzLNDE.js} +1 -1
  44. package/dist/component/{dext-text-input-rac-D_RtbQQ-.js → dext-text-input-rac-Dtz4ZLj7.js} +1 -1
  45. package/dist/component/{dext-url-input-rac-BSSjSbIo.js → dext-url-input-rac-DUVbW2yl.js} +1 -1
  46. package/dist/component/{donation-rac-De0KyyGR.js → donation-rac-Nn7z8_to.js} +43 -43
  47. package/dist/component/{dropdown-field-headless-DNhnTDlD.js → dropdown-field-headless-CT4uSCPR.js} +11 -11
  48. package/dist/component/{dropdown-field-rac-Bq_FNv9a.js → dropdown-field-rac-CUiyFJi_.js} +5 -5
  49. package/dist/component/{dropdown-rac-0UIyqF15.js → dropdown-rac-Bs_PVy1q.js} +1 -1
  50. package/dist/component/{ecom-address-rac-7IVbvs3J.js → ecom-address-rac-BTXwDlMM.js} +1 -1
  51. package/dist/component/{ecom-subscription-checkbox-rac-DilgIpiG.js → ecom-subscription-checkbox-rac-CGI84A37.js} +3 -3
  52. package/dist/component/{email-input-field-rac-CHJ6RSGy.js → email-input-field-rac-DKD7FsQX.js} +54 -54
  53. package/dist/component/{events-repeater-rac-v18FFLC7.js → events-repeater-rac-B7yIRlyt.js} +30 -30
  54. package/dist/component/{events-rsvp-rac-BpGLrxsf.js → events-rsvp-rac-C7FOuFmH.js} +3 -3
  55. package/dist/component/{field-error-headless-DAy-1oAQ.js → field-error-headless-BHTkMu35.js} +1 -1
  56. package/dist/component/{field-label-headless-BWxHmO0c.js → field-label-headless-D3DwX65k.js} +7 -7
  57. package/dist/component/{file-upload-rac-BfWN27JT.js → file-upload-rac-B3n_LYYK.js} +85 -85
  58. package/dist/component/{fixed-payment-rac-Bha61SB4.js → fixed-payment-rac-C6jsiS4-.js} +12 -12
  59. package/dist/component/{form-D0eeH0lX.js → form-BkmOXzqo.js} +2510 -2487
  60. package/dist/component/{form-element-classes-Ct1UaxuQ.js → form-element-classes-BsXkFtp2.js} +90 -57
  61. package/dist/component/form.css +1 -1
  62. package/dist/component/form.js +1 -1
  63. package/dist/component/{header-field-rac-uNzfDMbv.js → header-field-rac-FG9EP9--.js} +5 -5
  64. package/dist/component/{header-rac-B91q4fHl.js → header-rac-DZZgqFjW.js} +1 -1
  65. package/dist/component/{image-choice-rac-BKcnNGPp.js → image-choice-rac-CXgE6z_f.js} +42 -42
  66. package/dist/component/{index-BWHymomM.js → index-CSwTHDCX.js} +2 -2
  67. package/dist/component/{index-BvzLLTKc.js → index-DKV2sNhD.js} +4 -4
  68. package/dist/component/{isObjectLike-D7Mkqoju.js → isObjectLike-DYfHbEQ3.js} +1 -1
  69. package/dist/component/{multiline-address-field-rac-Avd9Vlv1.js → multiline-address-field-rac-DnCOKW8F.js} +128 -128
  70. package/dist/component/{multiline-address-rac-BwQOoejw.js → multiline-address-rac-BZRlzLZq.js} +1 -1
  71. package/dist/component/{number-input-field-rac-CRqPXDl0.js → number-input-field-rac-BOJNJ50c.js} +30 -30
  72. package/dist/component/{number-input-rac-0Y8K4e6K.js → number-input-rac-D8ZcIPwq.js} +1 -1
  73. package/dist/component/{password-rac-C7F6sEB3.js → password-rac-T9PR5j2v.js} +19 -19
  74. package/dist/component/{payment-input-rac-CTJr4QTK.js → payment-input-rac-C9N3LZOZ.js} +17 -17
  75. package/dist/component/{phone-input-field-rac-jjSmYCI1.js → phone-input-field-rac-BxUiCV5Z.js} +40 -40
  76. package/dist/component/{phone-rac-BwSnmgYF.js → phone-rac-BjKFrr86.js} +1 -1
  77. package/dist/component/{product-list-rac-CTN2wvHE.js → product-list-rac-BG-VK_Hz.js} +41 -41
  78. package/dist/component/{quiz-radio-group-rac-CZHEDJxr.js → quiz-radio-group-rac-B1x7Yatu.js} +2 -2
  79. package/dist/component/{radio-button-module-classes-DCz6XS1X.js → radio-button-module-classes-BXWANbga.js} +7 -7
  80. package/dist/component/{radio-group-field-rac-60MF_9DO.js → radio-group-field-rac-DmEOydAr.js} +4 -4
  81. package/dist/component/{radio-group-rac-Dqo-Earp.js → radio-group-rac-DAcU_lkj.js} +1 -1
  82. package/dist/component/{rating-input-field-rac-CzWTwWT8.js → rating-input-field-rac-Cazqeqzw.js} +16 -16
  83. package/dist/component/{rating-input-rac-Nq4tll2Z.js → rating-input-rac-KJ8FnJTj.js} +1 -1
  84. package/dist/component/{rich-content-rac.module-sUUSbcSy.js → rich-content-rac.module-PZgMV2M7.js} +1 -1
  85. package/dist/component/{rich-text-field-rac-BvLfS4I5.js → rich-text-field-rac-DNEeY_m8.js} +3 -3
  86. package/dist/component/{rich-text-rac-BWkTbWk3.js → rich-text-rac-g9upYD25.js} +1 -1
  87. package/dist/component/{service-dropdown-rac-DZ3USe7_.js → service-dropdown-rac-CmmWetDa.js} +20 -20
  88. package/dist/component/{services-multi-choice-rac-D-og7fMo.js → services-multi-choice-rac-D0PJNlq2.js} +7 -7
  89. package/dist/component/{signature-rac-D3c4fnvN.js → signature-rac-Q4G3uEhw.js} +41 -41
  90. package/dist/component/submit-button-rac-DdLPGJ6v.js +141 -0
  91. package/dist/component/{tags-field-rac-DXmZBcpO.js → tags-field-rac-PZ8Vfmsn.js} +72 -72
  92. package/dist/component/{tags-rac-CoXWx42D.js → tags-rac-DLjeR5G1.js} +1 -1
  93. package/dist/component/{text-area-field-rac-Cy0Mr29Z.js → text-area-field-rac-BNVK0R0Z.js} +25 -25
  94. package/dist/component/{text-area-rac-C3Mjmgpa.js → text-area-rac-CNOLe3Vx.js} +1 -1
  95. package/dist/component/{text-input-field-rac-D1TB9B_M.js → text-input-field-rac-DjdW6TCf.js} +3 -3
  96. package/dist/component/{text-input-headless-BUa59Rgn.js → text-input-headless-DFWQwZAN.js} +10 -10
  97. package/dist/component/{text-input-rac-BQ3Z9ws4.js → text-input-rac-GXPtQEjT.js} +1 -1
  98. package/dist/component/time-input-rac-B_g-erqu.js +159 -0
  99. package/dist/component/{url-input-field-rac-DINXfZdf.js → url-input-field-rac-CXWYeQLf.js} +19 -19
  100. package/dist/component/{url-input-rac-Ch9eTIF_.js → url-input-rac-DX-vjyXj.js} +1 -1
  101. package/dist/component/use-element-state-class-name-lZnP6sE6.js +22 -0
  102. package/dist/component/{use-service-options-base-BJZhzDyO.js → use-service-options-base-BJE86Rzo.js} +5 -5
  103. package/dist/component/{use-text-input-class-name-8gMUWeCb.js → use-text-input-class-name-B-GYaltW.js} +5 -5
  104. package/dist/form.d.ts +58 -2
  105. package/package.json +5 -3
  106. package/dist/component/date-time-input-field-rac-B7ne2emo.js +0 -423
  107. package/dist/component/submit-button-rac-Dn_BGt1n.js +0 -116
  108. package/dist/component/time-input-rac-Wi0oD5YF.js +0 -155
  109. package/dist/component/use-element-state-class-name-j8W1zbdG.js +0 -20
@@ -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-D0eeH0lX.js";
4
+ import { D, aj as v, ag as A, ab as S, al as z } from "./form-BkmOXzqo.js";
5
5
  import { parseDate as J } from "@internationalized/date";
6
6
  import { UNSAFE_PortalProvider as X } from "react-aria";
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";
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 M, ListBoxItem as k } 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-DAy-1oAQ.js";
11
- import { L as pe } from "./field-label-headless-BWxHmO0c.js";
10
+ import { D as ge, E as Ee } from "./field-error-headless-BHTkMu35.js";
11
+ import { L as pe } from "./field-label-headless-D3DwX65k.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-COM2EaRy.js";
13
+ import { i as fe } from "./date-availability-BCDMem-_.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
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";
17
+ import { y as Ce, P as he, x as ve, B as Se, o as Te, i as be } from "./form-element-classes-BsXkFtp2.js";
18
18
  const _e = [
19
19
  D.SUNDAY,
20
20
  D.MONDAY,
@@ -26,12 +26,12 @@ const _e = [
26
26
  ], Ne = {
27
27
  availableDays: _e
28
28
  }, a = ({ children: t }) => {
29
- const { id: r, value: n, onChange: l, disabled: i, required: c, onBlur: d, onFocus: o, FieldLayout: m, hasError: u, readOnly: f } = v(), { labelId: y } = A(), { regionalFormat: s } = S(), [T, Y] = Q(null), B = F((H) => {
30
- const j = Me(H);
31
- l(j);
29
+ const { id: r, value: n, onChange: l, disabled: i, required: c, onBlur: d, onFocus: o, FieldLayout: m, hasError: u, readOnly: f } = v(), { labelId: y } = A(), { regionalFormat: s } = S(), [T, Y] = Q(null), B = F((j) => {
30
+ const H = ke(j);
31
+ l(H);
32
32
  }, [
33
33
  l
34
- ]), V = E(t, a.Label), q = E(t, a.Control), U = E(t, a.Calendar), W = E(t, a.Description), K = E(t, a.Error), $ = ke(n);
34
+ ]), V = E(t, a.Label), q = E(t, a.Control), U = E(t, a.Calendar), W = E(t, a.Description), K = E(t, a.Error), $ = Me(n);
35
35
  return /* @__PURE__ */ e.createElement(m, {
36
36
  fieldId: r,
37
37
  renderLabel: () => V,
@@ -165,9 +165,9 @@ const _e = [
165
165
  }, /* @__PURE__ */ e.createElement(x, null), t), /* @__PURE__ */ e.createElement(I, {
166
166
  className: o,
167
167
  containerPadding: 0
168
- }, /* @__PURE__ */ e.createElement(k, {
168
+ }, /* @__PURE__ */ e.createElement(M, {
169
169
  items: d
170
- }, (m) => /* @__PURE__ */ e.createElement(M, {
170
+ }, (m) => /* @__PURE__ */ e.createElement(k, {
171
171
  id: m.id
172
172
  }, m.formatted))));
173
173
  }, xe = ({ children: t, className: r, ...n }) => {
@@ -181,9 +181,9 @@ const _e = [
181
181
  }, /* @__PURE__ */ e.createElement(x, null), t), /* @__PURE__ */ e.createElement(I, {
182
182
  className: o,
183
183
  containerPadding: 0
184
- }, /* @__PURE__ */ e.createElement(k, {
184
+ }, /* @__PURE__ */ e.createElement(M, {
185
185
  items: d
186
- }, (m) => /* @__PURE__ */ e.createElement(M, {
186
+ }, (m) => /* @__PURE__ */ e.createElement(k, {
187
187
  id: m.id
188
188
  }, m.formatted))));
189
189
  };
@@ -199,7 +199,7 @@ a.Trigger = Pe;
199
199
  a.Calendar = g;
200
200
  a.Description = ge;
201
201
  a.Error = Ee;
202
- function ke(t) {
202
+ function Me(t) {
203
203
  if (!t)
204
204
  return null;
205
205
  try {
@@ -208,7 +208,7 @@ function ke(t) {
208
208
  return null;
209
209
  }
210
210
  }
211
- function Me(t) {
211
+ function ke(t) {
212
212
  if (!t)
213
213
  return null;
214
214
  const r = String(t.year).padStart(4, "0"), n = String(t.month).padStart(2, "0"), l = String(t.day).padStart(2, "0");
@@ -257,15 +257,15 @@ const Be = (t) => /* @__PURE__ */ e.createElement("svg", {
257
257
  calendarPopover: We,
258
258
  calendarDay: Ke,
259
259
  mobile: $e
260
- }, He = ({ content: t, locale: r }) => /* @__PURE__ */ e.createElement(G, {
260
+ }, je = ({ content: t, locale: r }) => /* @__PURE__ */ e.createElement(G, {
261
261
  content: t,
262
262
  locale: r
263
- }), je = {
263
+ }), He = {
264
264
  left: 90,
265
265
  right: -90
266
266
  }, P = ({ direction: t }) => /* @__PURE__ */ e.createElement(N, {
267
267
  style: {
268
- transform: `rotate(${je[t]}deg)`
268
+ transform: `rotate(${He[t]}deg)`
269
269
  }
270
270
  }), ut = () => {
271
271
  const { isMobile: t } = S();
@@ -297,7 +297,7 @@ const Be = (t) => /* @__PURE__ */ e.createElement("svg", {
297
297
  className: C(Te, p.error)
298
298
  }, /* @__PURE__ */ e.createElement(ye, null), /* @__PURE__ */ e.createElement(a.Error.Text, null)), /* @__PURE__ */ e.createElement(a.Description, {
299
299
  className: C(be, p.description)
300
- }, He));
300
+ }, je));
301
301
  };
302
302
  export {
303
303
  ut as D
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { D as r } from "./date-picker-field-rac-BFCZik9T.js";
2
+ import { D as r } from "./date-picker-field-rac-BNd8aZ0c.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 { aj as g, ag as K, ab as B, J as Q, a1 as W, r as d, at as O, a5 as j, O as se, x as oe, a8 as le, y as J, al as $ } from "./form-BkmOXzqo.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-BHTkMu35.js";
11
+ import { L as _e } from "./field-label-headless-D3DwX65k.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, P as Oe, x as Ce, B as Fe, o as Pe, i as Me } from "./form-element-classes-BsXkFtp2.js";
19
+ import { u as U } from "./use-text-input-class-name-B-GYaltW.js";
20
+ const o = ({ children: e, className: a }) => {
21
+ const { id: n, required: r, onBlur: l, onFocus: s, FieldLayout: i } = g(), { inputId: m, labelId: c, ariaDescribedBy: h } = K(), { regionalFormat: b } = B(), y = L(() => Q(b).filter(W).map((M) => M.toUpperCase()), [
22
+ b
23
+ ]), P = u(e, o.Label), V = u(e, o.Description), T = u(e, o.Error), _ = {
24
+ [d.MONTH]: u(e, o.Month),
25
+ [d.DAY]: u(e, o.Day),
26
+ [d.YEAR]: u(e, o.Year)
27
+ }, N = u(e, o.Time);
28
+ return /* @__PURE__ */ t.createElement(i, {
29
+ fieldId: n,
30
+ renderLabel: () => S(P, {
31
+ as: "div"
32
+ }),
33
+ renderInput: () => /* @__PURE__ */ t.createElement(ye, {
34
+ id: m,
35
+ ariaLabelledBy: c,
36
+ ariaDescribedBy: h,
37
+ required: r,
38
+ onBlur: l,
39
+ onFocus: s,
40
+ className: a
41
+ }, _[y[0]], _[y[1]], _[y[2]], N),
42
+ renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, T, V)
43
+ });
44
+ }, C = ({ children: e, className: a }) => {
45
+ const { disabled: n, readOnly: r, showDateLabels: l, hidePlaceholder: s } = g(), { labelId: i } = D(d.MONTH), { partValue: m, partError: c, onPartChange: h } = F(d.MONTH), { t: b } = O(), [y, P] = G(!1), [V, T] = G(null), _ = s ? void 0 : b("field.date.placeholder.month"), N = x((Y) => {
46
+ r || h(typeof Y == "string" ? Y : "");
47
+ }, [
48
+ h,
49
+ r
50
+ ]), M = x((Y) => {
51
+ P(Y && !r);
52
+ }, [
53
+ r
54
+ ]), ee = u(e, C.Label), te = u(e, C.Trigger), ae = u(e, C.Options);
55
+ return /* @__PURE__ */ t.createElement("div", {
56
+ className: a,
57
+ "data-date-field": !0
58
+ }, l ? ee : null, /* @__PURE__ */ t.createElement("div", {
59
+ ref: T,
60
+ style: {
61
+ display: "contents"
62
+ }
63
+ }), /* @__PURE__ */ t.createElement(ce, {
64
+ getContainer: () => V
65
+ }, /* @__PURE__ */ t.createElement(ue, {
66
+ "aria-labelledby": l ? i : void 0,
67
+ value: m || null,
68
+ onChange: N,
69
+ isDisabled: n,
70
+ isInvalid: c,
71
+ placeholder: _,
72
+ isOpen: y,
73
+ onOpenChange: M
74
+ }, te, ae)));
75
+ }, ve = ({ className: e }) => /* @__PURE__ */ t.createElement(q, {
76
+ datePart: d.MONTH,
77
+ className: e
78
+ }), Se = ({ children: e, className: a }) => {
79
+ const { id: n, readOnly: r } = g(), { inputId: l } = D(d.MONTH), { partError: s, isFirstPart: i } = F(d.MONTH), m = z(null);
80
+ return $(() => {
81
+ var c;
82
+ i && ((c = m.current) == null || c.focus());
83
+ }, n), /* @__PURE__ */ t.createElement(De, {
84
+ ref: m,
85
+ id: l,
86
+ className: a,
87
+ "data-hook": d.MONTH,
88
+ "data-invalid": s || void 0,
89
+ "data-readonly": r || void 0
90
+ }, /* @__PURE__ */ t.createElement(Ee, null), e);
91
+ }, w = ({ children: e, className: a }) => {
92
+ const { language: n } = B(), r = L(() => be(n), [
93
+ n
94
+ ]), l = u(e, w.Option) ?? /* @__PURE__ */ t.createElement(w.Option, null);
95
+ return /* @__PURE__ */ t.createElement(Ne, {
96
+ className: a,
97
+ containerPadding: 0,
98
+ offset: 0
99
+ }, /* @__PURE__ */ t.createElement(de, null, r.map((s, i) => S(l, {
100
+ key: String(i + 1),
101
+ value: String(i + 1),
102
+ label: s
103
+ }))));
104
+ }, Re = ({ className: e, ...a }) => {
105
+ const { value: n, label: r } = a;
106
+ return /* @__PURE__ */ t.createElement(me, {
107
+ className: e,
108
+ id: n,
109
+ textValue: r
110
+ }, r);
111
+ };
112
+ C.Label = ve;
113
+ C.Trigger = Se;
114
+ C.Options = w;
115
+ w.Option = Re;
116
+ const R = ({ children: e, className: a }) => {
117
+ const { disabled: n, readOnly: r, showDateLabels: l } = g(), { labelId: s } = D(d.DAY), { partValue: i, partError: m, onPartChange: c } = F(d.DAY), h = u(e, R.Label), b = u(e, R.Input);
118
+ return /* @__PURE__ */ t.createElement("div", {
119
+ className: a,
120
+ "data-date-field": !0
121
+ }, l && h, /* @__PURE__ */ t.createElement(X, {
122
+ "aria-labelledby": l ? s : void 0,
123
+ value: i,
124
+ onChange: c,
125
+ isDisabled: n,
126
+ isReadOnly: r,
127
+ isInvalid: m
128
+ }, b));
129
+ }, Ae = ({ className: e }) => /* @__PURE__ */ t.createElement(q, {
130
+ datePart: d.DAY,
131
+ className: e
132
+ }), Ve = ({ className: e }) => {
133
+ const { id: a, hidePlaceholder: n } = g(), { inputId: r } = D(d.DAY), { isFirstPart: l } = F(d.DAY), { t: s } = O(), i = z(null), m = n ? void 0 : s("field.date.placeholder.day");
134
+ return $(() => {
135
+ var c;
136
+ l && ((c = i.current) == null || c.focus());
137
+ }, a), /* @__PURE__ */ t.createElement(Z, {
138
+ ref: i,
139
+ id: r,
140
+ className: e,
141
+ placeholder: m,
142
+ maxLength: 2,
143
+ inputMode: "numeric",
144
+ "data-hook": d.DAY
145
+ });
146
+ };
147
+ R.Label = Ae;
148
+ R.Input = Ve;
149
+ const A = ({ children: e, className: a }) => {
150
+ const { disabled: n, readOnly: r, showDateLabels: l } = g(), { labelId: s } = D(d.YEAR), { partValue: i, partError: m, onPartChange: c } = F(d.YEAR), h = u(e, A.Label), b = u(e, A.Input);
151
+ return /* @__PURE__ */ t.createElement("div", {
152
+ className: a,
153
+ "data-date-field": !0
154
+ }, l && h, /* @__PURE__ */ t.createElement(X, {
155
+ "aria-labelledby": l ? s : void 0,
156
+ value: i,
157
+ onChange: c,
158
+ isDisabled: n,
159
+ isReadOnly: r,
160
+ isInvalid: m
161
+ }, b));
162
+ }, Ye = ({ className: e }) => /* @__PURE__ */ t.createElement(q, {
163
+ datePart: d.YEAR,
164
+ className: e
165
+ }), He = ({ className: e }) => {
166
+ const { id: a, hidePlaceholder: n } = g(), { inputId: r } = D(d.YEAR), { isFirstPart: l } = F(d.YEAR), { t: s } = O(), i = z(null), m = n ? void 0 : s("field.date.placeholder.year");
167
+ return $(() => {
168
+ var c;
169
+ l && ((c = i.current) == null || c.focus());
170
+ }, a), /* @__PURE__ */ t.createElement(Z, {
171
+ ref: i,
172
+ id: r,
173
+ className: e,
174
+ placeholder: m,
175
+ maxLength: 4,
176
+ inputMode: "numeric",
177
+ "data-hook": d.YEAR
178
+ });
179
+ };
180
+ A.Label = Ye;
181
+ A.Input = He;
182
+ const I = ({ children: e, className: a }) => {
183
+ const { disabled: n, readOnly: r, use24HourFormat: l, showDateLabels: s } = g(), { labelId: i } = D("time"), { partValue: m, partError: c, onPartChange: h } = F("time"), b = u(e, I.Label), y = u(e, I.Input);
184
+ return /* @__PURE__ */ t.createElement("div", {
185
+ className: a,
186
+ "data-date-field": !0
187
+ }, s && b, /* @__PURE__ */ t.createElement(pe, {
188
+ "aria-labelledby": s ? i : void 0,
189
+ value: m,
190
+ onChange: h,
191
+ isDisabled: n,
192
+ isReadOnly: r,
193
+ isInvalid: c,
194
+ hourCycle: l ? 24 : 12
195
+ }, y));
196
+ }, xe = ({ className: e }) => {
197
+ const { inputId: a, labelId: n } = D("time"), { t: r } = O(), l = r("field.date.label.time");
198
+ return /* @__PURE__ */ t.createElement("label", {
199
+ id: n,
200
+ htmlFor: a,
201
+ className: e
202
+ }, l);
203
+ }, we = ({ children: e, className: a }) => {
204
+ const n = u(e, I.Hour), r = u(e, I.Minute), l = u(e, I.Period);
205
+ return /* @__PURE__ */ t.createElement(fe, {
206
+ className: a,
207
+ "data-hook": "time"
208
+ }, (s) => {
209
+ switch (s.type) {
210
+ case "hour":
211
+ return S(n, {
212
+ segment: s
213
+ }) || /* @__PURE__ */ t.createElement(t.Fragment, null);
214
+ case "minute":
215
+ return S(r, {
216
+ segment: s
217
+ }) || /* @__PURE__ */ t.createElement(t.Fragment, null);
218
+ case "dayPeriod":
219
+ return S(l, {
220
+ segment: s
221
+ }) || /* @__PURE__ */ t.createElement(t.Fragment, null);
222
+ case "literal":
223
+ return /* @__PURE__ */ t.createElement(k, {
224
+ segment: s
225
+ });
226
+ default:
227
+ return /* @__PURE__ */ t.createElement(t.Fragment, null);
228
+ }
229
+ });
230
+ }, Be = ({ className: e, ...a }) => {
231
+ const { hidePlaceholder: n } = g(), { segment: r } = a, { t: l } = O(), s = n ? void 0 : l("field.date.placeholder.hour");
232
+ return /* @__PURE__ */ t.createElement(k, {
233
+ segment: r,
234
+ className: e,
235
+ ...s && {
236
+ placeholder: s
237
+ }
238
+ });
239
+ }, ke = ({ className: e, ...a }) => {
240
+ const { hidePlaceholder: n } = g(), { segment: r } = a, { t: l } = O(), s = n ? void 0 : l("field.date.placeholder.minute");
241
+ return /* @__PURE__ */ t.createElement(k, {
242
+ segment: r,
243
+ className: e,
244
+ ...s && {
245
+ placeholder: s
246
+ }
247
+ });
248
+ }, Ue = ({ className: e, ...a }) => {
249
+ const { hidePlaceholder: n } = g(), { segment: r } = a, { t: l } = O(), s = re(he), i = n ? void 0 : l("field.date.placeholder.period"), m = () => s == null ? void 0 : s.increment("dayPeriod");
250
+ return /* @__PURE__ */ t.createElement(k, {
251
+ segment: r,
252
+ className: e,
253
+ onClick: m,
254
+ ...i && {
255
+ placeholder: i
256
+ }
257
+ });
258
+ };
259
+ I.Label = xe;
260
+ I.Input = we;
261
+ I.Hour = Be;
262
+ I.Minute = ke;
263
+ I.Period = Ue;
264
+ o.Label = _e;
265
+ o.Month = C;
266
+ o.Day = R;
267
+ o.Year = A;
268
+ o.Time = I;
269
+ o.Description = ge;
270
+ o.Error = Ie;
271
+ function D(e) {
272
+ const { inputId: a } = K();
273
+ return L(() => {
274
+ const n = e.toLowerCase();
275
+ return {
276
+ inputId: `${a}-${n}-input`,
277
+ labelId: `${a}-${n}-label`
278
+ };
279
+ }, [
280
+ a,
281
+ e
282
+ ]);
283
+ }
284
+ function F(e) {
285
+ const { value: a, onChange: n, hasError: r = !1 } = g(), { regionalFormat: l } = B(), [s, i] = L(() => j(a ?? ""), [
286
+ a
287
+ ]), m = L(() => se(r, a ?? ""), [
288
+ a,
289
+ r
290
+ ]), c = L(() => oe(s), [
291
+ s
292
+ ]), h = L(() => ze(i), [
293
+ i
294
+ ]), b = x((T) => {
295
+ const _ = $e(T), N = J(s, _);
296
+ n(N);
297
+ }, [
298
+ n,
299
+ s
300
+ ]), y = x((T) => {
301
+ const [, _] = j(a ?? ""), N = le(T, e, c), M = J(N, _);
302
+ n(M);
303
+ }, [
304
+ n,
305
+ a,
306
+ c,
307
+ e
308
+ ]), P = L(() => e === "time" ? !1 : Q(l).filter(W).map((N) => N.toUpperCase())[0] === e, [
309
+ l,
310
+ e
311
+ ]);
312
+ return e === "time" ? {
313
+ partValue: h,
314
+ partError: m.TIME,
315
+ onPartChange: b,
316
+ isFirstPart: !1
317
+ } : {
318
+ partValue: c[e] || "",
319
+ partError: m[e],
320
+ onPartChange: y,
321
+ isFirstPart: P
322
+ };
323
+ }
324
+ function q({ datePart: e, className: a }) {
325
+ const { inputId: n, labelId: r } = D(e), { t: l } = O(), s = `field.date.label.${e.toLowerCase()}`, i = l(s);
326
+ return /* @__PURE__ */ t.createElement("label", {
327
+ id: r,
328
+ htmlFor: n,
329
+ className: a
330
+ }, i);
331
+ }
332
+ function ze(e) {
333
+ if (!e)
334
+ return null;
335
+ try {
336
+ return ie(e);
337
+ } catch {
338
+ return null;
339
+ }
340
+ }
341
+ function $e(e) {
342
+ if (!e)
343
+ return null;
344
+ const a = String(e.hour).padStart(2, "0"), n = String(e.minute).padStart(2, "0"), r = String(e.second).padStart(2, "0");
345
+ return [
346
+ a,
347
+ n,
348
+ r
349
+ ].join(":");
350
+ }
351
+ const qe = "_fields_1svr5_1", Ge = "_month_1svr5_10", je = "_day_1svr5_11", Je = "_year_1svr5_12", Ke = "_timeGroup_1svr5_13", Qe = "_mobile_1svr5_32", We = "_dayInput_1svr5_45", Xe = "_yearInput_1svr5_46", Ze = "_monthTrigger_1svr5_50", et = "_monthOption_1svr5_70", tt = "_time_1svr5_13", at = "_hour_1svr5_89", nt = "_minute_1svr5_90", rt = "_period_1svr5_91", E = {
352
+ fields: qe,
353
+ month: Ge,
354
+ day: je,
355
+ year: Je,
356
+ timeGroup: Ke,
357
+ mobile: Qe,
358
+ dayInput: We,
359
+ yearInput: Xe,
360
+ monthTrigger: Ze,
361
+ monthOption: et,
362
+ time: tt,
363
+ hour: at,
364
+ minute: nt,
365
+ period: rt
366
+ }, st = ({ content: e, locale: a }) => /* @__PURE__ */ t.createElement(ne, {
367
+ content: e,
368
+ locale: a
369
+ }), Lt = () => {
370
+ const { isMobile: e } = B(), a = U(E.dayInput), n = U(E.yearInput), r = U(E.time);
371
+ return /* @__PURE__ */ t.createElement(o, {
372
+ className: p(E.fields, {
373
+ [E.mobile]: e
374
+ })
375
+ }, /* @__PURE__ */ t.createElement(o.Label, {
376
+ className: p(v, f.label)
377
+ }, /* @__PURE__ */ t.createElement(o.Label.Required, {
378
+ className: p(Oe, f.requiredMark)
379
+ })), /* @__PURE__ */ t.createElement(o.Month, {
380
+ className: E.month
381
+ }, /* @__PURE__ */ t.createElement(o.Month.Label, {
382
+ className: p(v, f.label)
383
+ }), /* @__PURE__ */ t.createElement(o.Month.Trigger, {
384
+ className: p(Ce, f.input, E.monthTrigger)
385
+ }, /* @__PURE__ */ t.createElement(Te, {
386
+ className: f.dropdownIcon
387
+ })), /* @__PURE__ */ t.createElement(o.Month.Options, {
388
+ className: p(Fe, f.selectPopover, f.dropdownPopover)
389
+ }, /* @__PURE__ */ t.createElement(o.Month.Options.Option, {
390
+ className: p(f.selectOption, E.monthOption, H)
391
+ }))), /* @__PURE__ */ t.createElement(o.Day, {
392
+ className: E.day
393
+ }, /* @__PURE__ */ t.createElement(o.Day.Label, {
394
+ className: p(v, f.label)
395
+ }), /* @__PURE__ */ t.createElement(o.Day.Input, {
396
+ className: a
397
+ })), /* @__PURE__ */ t.createElement(o.Year, {
398
+ className: E.year
399
+ }, /* @__PURE__ */ t.createElement(o.Year.Label, {
400
+ className: p(v, f.label)
401
+ }), /* @__PURE__ */ t.createElement(o.Year.Input, {
402
+ className: n
403
+ })), /* @__PURE__ */ t.createElement(o.Time, {
404
+ className: E.timeGroup
405
+ }, /* @__PURE__ */ t.createElement(o.Time.Label, {
406
+ className: p(v, f.label)
407
+ }), /* @__PURE__ */ t.createElement(o.Time.Input, {
408
+ className: r
409
+ }, /* @__PURE__ */ t.createElement(o.Time.Hour, {
410
+ className: p(E.hour, H)
411
+ }), /* @__PURE__ */ t.createElement(o.Time.Minute, {
412
+ className: p(E.minute, H)
413
+ }), /* @__PURE__ */ t.createElement(o.Time.Period, {
414
+ className: p(E.period, H)
415
+ }))), /* @__PURE__ */ t.createElement(o.Error, {
416
+ className: p(Pe, f.error)
417
+ }, /* @__PURE__ */ t.createElement(Le, null), /* @__PURE__ */ t.createElement(o.Error.Text, null)), /* @__PURE__ */ t.createElement(o.Description, {
418
+ className: p(Me, f.description)
419
+ }, st));
420
+ };
421
+ export {
422
+ Lt as D
423
+ };
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { D as t } from "./date-time-input-field-rac-B7ne2emo.js";
2
+ import { D as t } from "./date-time-input-field-rac-Ch8z0NRT.js";
3
3
  const n = () => /* @__PURE__ */ e.createElement(t, null);
4
4
  export {
5
5
  n as DateTimeInputRAC
@@ -1,6 +1,6 @@
1
1
  import o from "react";
2
- import { ai as e, h as t } from "./form-D0eeH0lX.js";
3
- import { C as p } from "./checkbox-group-field-rac-DGOZjSIY.js";
2
+ import { aj as e, h as t } from "./form-BkmOXzqo.js";
3
+ import { C as p } from "./checkbox-group-field-rac-BObfui8r.js";
4
4
  import { D as s } from "./default-limits-D7qVv_Hv.js";
5
5
  const C = () => {
6
6
  const r = {
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { C as t } from "./checkbox-field-rac-CMEI5t4Y.js";
2
+ import { C as t } from "./checkbox-field-rac-b9mcZlMP.js";
3
3
  const c = () => /* @__PURE__ */ e.createElement(t, null);
4
4
  export {
5
5
  c as DextCheckboxRAC
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { D as t } from "./date-picker-field-rac-BFCZik9T.js";
2
+ import { D as t } from "./date-picker-field-rac-BNd8aZ0c.js";
3
3
  const a = () => /* @__PURE__ */ e.createElement(t, null);
4
4
  export {
5
5
  a as DextDatePickerRAC
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { D as t } from "./date-time-input-field-rac-B7ne2emo.js";
2
+ import { D as t } from "./date-time-input-field-rac-Ch8z0NRT.js";
3
3
  const n = () => /* @__PURE__ */ e.createElement(t, null);
4
4
  export {
5
5
  n as DextDateTimeInputRAC
@@ -1,5 +1,5 @@
1
1
  import o from "react";
2
- import { D as r } from "./dropdown-field-rac-Bq_FNv9a.js";
2
+ import { D as r } from "./dropdown-field-rac-CUiyFJi_.js";
3
3
  const n = () => /* @__PURE__ */ o.createElement(r, null);
4
4
  export {
5
5
  n as DextDropdownRAC
@@ -1,5 +1,5 @@
1
1
  import t from "react";
2
- import { E as e } from "./email-input-field-rac-CHJ6RSGy.js";
2
+ import { E as e } from "./email-input-field-rac-DKD7FsQX.js";
3
3
  const l = () => /* @__PURE__ */ t.createElement(e, null);
4
4
  export {
5
5
  l as DextEmailRAC
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { N as t } from "./number-input-field-rac-CRqPXDl0.js";
2
+ import { N as t } from "./number-input-field-rac-BOJNJ50c.js";
3
3
  const n = () => /* @__PURE__ */ e.createElement(t, null);
4
4
  export {
5
5
  n as DextNumberInputRAC
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { P as t } from "./phone-input-field-rac-jjSmYCI1.js";
2
+ import { P as t } from "./phone-input-field-rac-BxUiCV5Z.js";
3
3
  const r = () => /* @__PURE__ */ e.createElement(t, null);
4
4
  export {
5
5
  r as DextPhoneRAC
@@ -1,6 +1,6 @@
1
1
  import r from "react";
2
- import { ai as e, h as t } from "./form-D0eeH0lX.js";
3
- import { R as p } from "./radio-group-field-rac-60MF_9DO.js";
2
+ import { aj as e, h as t } from "./form-BkmOXzqo.js";
3
+ import { R as p } from "./radio-group-field-rac-DmEOydAr.js";
4
4
  import { a } from "./default-limits-D7qVv_Hv.js";
5
5
  const l = () => {
6
6
  const o = {
@@ -1,5 +1,5 @@
1
1
  import t from "react";
2
- import { R as e } from "./rating-input-field-rac-CzWTwWT8.js";
2
+ import { R as e } from "./rating-input-field-rac-Cazqeqzw.js";
3
3
  const o = () => /* @__PURE__ */ t.createElement(e, null);
4
4
  export {
5
5
  o as DextRatingInputRAC
@@ -1,6 +1,6 @@
1
1
  import r from "react";
2
- import { ai as e, h as o } from "./form-D0eeH0lX.js";
3
- import { T as s } from "./tags-field-rac-DXmZBcpO.js";
2
+ import { aj as e, h as o } from "./form-BkmOXzqo.js";
3
+ import { T as s } from "./tags-field-rac-PZ8Vfmsn.js";
4
4
  import { b as a } from "./default-limits-D7qVv_Hv.js";
5
5
  const l = () => {
6
6
  const t = {
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { T as t } from "./text-area-field-rac-Cy0Mr29Z.js";
2
+ import { T as t } from "./text-area-field-rac-BNVK0R0Z.js";
3
3
  const a = () => /* @__PURE__ */ e.createElement(t, null);
4
4
  export {
5
5
  a as DextTextAreaRAC
@@ -1,5 +1,5 @@
1
1
  import t from "react";
2
- import { T as e } from "./text-input-field-rac-D1TB9B_M.js";
2
+ import { T as e } from "./text-input-field-rac-DjdW6TCf.js";
3
3
  const o = () => /* @__PURE__ */ t.createElement(e, null);
4
4
  export {
5
5
  o as DextTextInputRAC
@@ -1,5 +1,5 @@
1
1
  import t from "react";
2
- import { U as r } from "./url-input-field-rac-DINXfZdf.js";
2
+ import { U as r } from "./url-input-field-rac-CXWYeQLf.js";
3
3
  const n = () => /* @__PURE__ */ t.createElement(r, null);
4
4
  export {
5
5
  n as DextUrlInputRAC