@wix/form-elements 1.108.0 → 1.110.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 (107) hide show
  1. package/dist/component/{appointment-rac-ZAp8oWbK.js → appointment-rac-CfPs6AsU.js} +60 -60
  2. package/dist/component/{bookings-address-rac-x-Az7vHf.js → bookings-address-rac-XkgsBu8i.js} +1 -1
  3. package/dist/component/{bookings-email-rac-MoF_CaqB.js → bookings-email-rac-CyESeQLD.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-CWh3Rb0M.js → bookings-first-name-rac-CFY5Qwk9.js} +1 -1
  5. package/dist/component/{bookings-header-rac-BVTiXUWk.js → bookings-header-rac-lRsebspV.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-kXRRlyHl.js → bookings-last-name-rac-B7J2K4oK.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-C4Zr6kXE.js → bookings-login-bar-rac-BD97U76_.js} +3 -3
  8. package/dist/component/{bookings-phone-rac-2rz1m_xi.js → bookings-phone-rac-CpgDCLTp.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-BEjGypQw.js → bookings-rich-text-rac-DQUQMN3s.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-DwEQLIaz.js → checkbox-field-rac-CcOW4yol.js} +43 -43
  11. package/dist/component/{checkbox-group-field-headless-BsOww_QB.js → checkbox-group-field-headless-DiBxnwOj.js} +8 -8
  12. package/dist/component/{checkbox-group-field-rac-DTcZcVS6.js → checkbox-group-field-rac-BCzS44NM.js} +4 -4
  13. package/dist/component/{checkbox-group-rac-DQsML-pW.js → checkbox-group-rac-C2oHVikX.js} +1 -1
  14. package/dist/component/{checkbox-rac-irEBBOxP.js → checkbox-rac-DPhswfJ9.js} +1 -1
  15. package/dist/component/{contacts-address-rac-B5bSAYrm.js → contacts-address-rac-Cjqot4Vo.js} +1 -1
  16. package/dist/component/{contacts-birthdate-rac-DyScj8f4.js → contacts-birthdate-rac-C3uYlFa3.js} +1 -1
  17. package/dist/component/{contacts-company-rac-C5X9-jXa.js → contacts-company-rac-BDmDrlJm.js} +1 -1
  18. package/dist/component/{contacts-email-rac-B0vkfmrS.js → contacts-email-rac-9NI8430K.js} +1 -1
  19. package/dist/component/{contacts-first-name-rac-Cfil3U_e.js → contacts-first-name-rac-PNgDNwXZ.js} +1 -1
  20. package/dist/component/{contacts-last-name-rac-CtPLE-7-.js → contacts-last-name-rac-Dkf8oYRe.js} +1 -1
  21. package/dist/component/{contacts-phone-rac-YkzsAoBZ.js → contacts-phone-rac-BefG0umR.js} +1 -1
  22. package/dist/component/{contacts-position-rac-BS4j8QC-.js → contacts-position-rac-8ZWMa74Q.js} +1 -1
  23. package/dist/component/{contacts-subscribe-rac-z_9VsEZL.js → contacts-subscribe-rac-Dj0k_O2C.js} +1 -1
  24. package/dist/component/{contacts-tax-id-rac-WFkmKyZv.js → contacts-tax-id-rac-Dbz0SEH9.js} +1 -1
  25. package/dist/component/{date-availability-NN3rxosk.js → date-availability-CpZYBX1d.js} +1 -1
  26. package/dist/component/{date-input-field-rac-mdhEC3oq.js → date-input-field-rac-8CkusNEQ.js} +64 -64
  27. package/dist/component/{date-input-rac-CGciuoTx.js → date-input-rac-CH1ke9-c.js} +1 -1
  28. package/dist/component/{date-picker-field-rac-CRZVODfF.js → date-picker-field-rac-pZQhHvZc.js} +31 -31
  29. package/dist/component/{date-picker-rac-Bfbvjy8W.js → date-picker-rac-BOdzNgu6.js} +1 -1
  30. package/dist/component/{date-time-input-field-rac-TDWBXZ44.js → date-time-input-field-rac-DDUZvi8G.js} +70 -70
  31. package/dist/component/{date-time-input-rac-DY0qdSix.js → date-time-input-rac-DkjW7KId.js} +1 -1
  32. package/dist/component/{dext-checkbox-group-rac-BFGM7SOt.js → dext-checkbox-group-rac-Cjx062TO.js} +2 -2
  33. package/dist/component/{dext-checkbox-rac-DPZvTeUZ.js → dext-checkbox-rac-CIqsZ8Cf.js} +1 -1
  34. package/dist/component/{dext-date-picker-rac-Xd5kojsQ.js → dext-date-picker-rac-BYQN00yy.js} +1 -1
  35. package/dist/component/{dext-date-time-input-rac-C0RIdxJW.js → dext-date-time-input-rac-Bh-HYZ_X.js} +1 -1
  36. package/dist/component/{dext-dropdown-rac-D1m8vJvm.js → dext-dropdown-rac-rnkUqsSx.js} +1 -1
  37. package/dist/component/{dext-email-rac-BC81RFYY.js → dext-email-rac-DtW_DadC.js} +1 -1
  38. package/dist/component/{dext-number-input-rac-Z_ih9FfX.js → dext-number-input-rac-DTfdLXFG.js} +1 -1
  39. package/dist/component/{dext-phone-rac-s3BOnXuI.js → dext-phone-rac-D3anV8iB.js} +1 -1
  40. package/dist/component/{dext-radio-group-rac-CL3jcezs.js → dext-radio-group-rac-CIO_2H7F.js} +4 -4
  41. package/dist/component/{dext-rating-input-rac-wz1EyP5b.js → dext-rating-input-rac-Bdtbwo1W.js} +1 -1
  42. package/dist/component/{dext-tags-rac-BY4Rf2BP.js → dext-tags-rac-DT4_lRM0.js} +4 -4
  43. package/dist/component/{dext-text-area-rac-DRJzlsq8.js → dext-text-area-rac-BgMlIgik.js} +1 -1
  44. package/dist/component/{dext-text-input-rac-BGcRNNAi.js → dext-text-input-rac-DDc6-lsN.js} +1 -1
  45. package/dist/component/{dext-url-input-rac-CRAIm8yp.js → dext-url-input-rac-CrOT7XQf.js} +1 -1
  46. package/dist/component/{donation-rac-BlTfOIlE.js → donation-rac-CORUAfww.js} +74 -74
  47. package/dist/component/{dropdown-field-headless-DhzRAMcM.js → dropdown-field-headless-B-82vlHV.js} +10 -10
  48. package/dist/component/{dropdown-field-rac-DXyY5we-.js → dropdown-field-rac-AYGyhYSH.js} +3 -3
  49. package/dist/component/{dropdown-rac-C6YM6qxm.js → dropdown-rac-g-zqV-y4.js} +1 -1
  50. package/dist/component/{ecom-address-rac-CAdr7wya.js → ecom-address-rac-BQqh4QrW.js} +1 -1
  51. package/dist/component/{ecom-subscription-checkbox-rac-Z2VMuCbt.js → ecom-subscription-checkbox-rac-Cf7Ou6Om.js} +2 -2
  52. package/dist/component/{email-input-field-rac-DpkfunVK.js → email-input-field-rac-BFrfF6TW.js} +47 -47
  53. package/dist/component/{events-repeater-rac-CuJkdrPo.js → events-repeater-rac-CNifjThM.js} +8 -8
  54. package/dist/component/{events-rsvp-rac-BKWlSeQ9.js → events-rsvp-rac-CnW7CNdo.js} +10 -10
  55. package/dist/component/{field-error-headless-tsg9FQ-_.js → field-error-headless-BLgaEh1d.js} +11 -11
  56. package/dist/component/{field-label-headless-CB8dEat8.js → field-label-headless-C8NbnF9M.js} +4 -4
  57. package/dist/component/file-upload-rac-Yk44koqY.js +561 -0
  58. package/dist/component/{fixed-payment-rac-CuIQEeHh.js → fixed-payment-rac-r_OUP_KD.js} +15 -15
  59. package/dist/component/{form-0jt4L5xo.js → form-DC8xFBa_.js} +6178 -5729
  60. package/dist/component/form.css +1 -1
  61. package/dist/component/form.js +3 -3
  62. package/dist/component/{header-field-rac-CWVGzxKb.js → header-field-rac-6NOymbBc.js} +4 -4
  63. package/dist/component/{header-rac-D6KsV-ko.js → header-rac-DzK8Cg5s.js} +1 -1
  64. package/dist/component/{image-choice-rac-CUCyVS8c.js → image-choice-rac-CcCInqrr.js} +9 -9
  65. package/dist/component/{index-iOqQidgV.js → index-B_72TOzS.js} +2 -2
  66. package/dist/component/{index-TJSnVtCO.js → index-CGbawBGb.js} +43 -43
  67. package/dist/component/{isObjectLike-DQbx8r1c.js → isObjectLike-BziKAUTi.js} +1 -1
  68. package/dist/component/{multiline-address-field-rac-DtZ1NTfD.js → multiline-address-field-rac-CJw6HvHY.js} +78 -78
  69. package/dist/component/{multiline-address-rac-ub-_XzHU.js → multiline-address-rac-B_GR1nkJ.js} +1 -1
  70. package/dist/component/{number-input-field-rac-DLItn4DK.js → number-input-field-rac-CXFmpNWL.js} +13 -13
  71. package/dist/component/{number-input-rac-UuxJzqEx.js → number-input-rac-sr4Dhnxa.js} +1 -1
  72. package/dist/component/{password-rac-Di6q96Rn.js → password-rac-BwBEPYo3.js} +15 -15
  73. package/dist/component/{payment-input-rac-CG6c4-Ge.js → payment-input-rac-BcLSkgtK.js} +44 -44
  74. package/dist/component/{phone-input-field-rac-D4JphCuT.js → phone-input-field-rac-4kp5xRJZ.js} +50 -50
  75. package/dist/component/{phone-rac-_vDw2usa.js → phone-rac-B_QYTg28.js} +1 -1
  76. package/dist/component/{product-list-rac-CgxRlj1f.js → product-list-rac-C7YDHPj_.js} +50 -50
  77. package/dist/component/{quiz-radio-group-rac-bi26aGxN.js → quiz-radio-group-rac-Be1v1PyS.js} +1 -1
  78. package/dist/component/{radio-button-module-classes-DDJq2ESf.js → radio-button-module-classes-k9DhZ1Fd.js} +14 -14
  79. package/dist/component/{radio-group-field-rac-D1aMVO6l.js → radio-group-field-rac-BDEAYQH5.js} +6 -6
  80. package/dist/component/{radio-group-rac-HKC85M6t.js → radio-group-rac-DcmSrcGy.js} +1 -1
  81. package/dist/component/{rating-input-field-rac-CpRehxFB.js → rating-input-field-rac-CcO3-3O3.js} +20 -20
  82. package/dist/component/{rating-input-rac-BMuCZ3oj.js → rating-input-rac-wl8G35Xv.js} +1 -1
  83. package/dist/component/{rich-content-rac.module-mZ6xoAOd.js → rich-content-rac.module-CzZ6x_Yf.js} +1 -1
  84. package/dist/component/{rich-text-field-rac-CUK8V8Kf.js → rich-text-field-rac-B4l_YgG7.js} +4 -4
  85. package/dist/component/{rich-text-rac-B-7sR2FJ.js → rich-text-rac-BlW4v4gg.js} +1 -1
  86. package/dist/component/{service-dropdown-rac-1DDNT5bn.js → service-dropdown-rac-CJTrm0iL.js} +33 -33
  87. package/dist/component/{services-multi-choice-rac-CB-6dwxz.js → services-multi-choice-rac-BkiL2Pct.js} +13 -13
  88. package/dist/component/{signature-rac-7XBci6P2.js → signature-rac-_fTng53p.js} +133 -133
  89. package/dist/component/{submit-button-rac-B1-Mk8Gg.js → submit-button-rac-EmqyRMuE.js} +17 -17
  90. package/dist/component/{tags-field-rac-CQ9Y7mq-.js → tags-field-rac-CTlZZLdv.js} +32 -32
  91. package/dist/component/{tags-rac-Visic-Ml.js → tags-rac-xd-CpByf.js} +1 -1
  92. package/dist/component/{text-area-field-rac-C8fP1g-w.js → text-area-field-rac-Dap_aF4j.js} +14 -14
  93. package/dist/component/{text-area-rac-B6yZxzxm.js → text-area-rac-rKSZi3gu.js} +1 -1
  94. package/dist/component/{text-input-field-rac-CNjbOxD1.js → text-input-field-rac-GBsaUY0A.js} +5 -5
  95. package/dist/component/{text-input-headless-Bm8PJGep.js → text-input-headless-SHtvSa6y.js} +3 -3
  96. package/dist/component/{text-input-rac-BEPC1Z-4.js → text-input-rac-v4R17Vxm.js} +1 -1
  97. package/dist/component/{time-input-rac-3m6C_Jp5.js → time-input-rac-DgnhZSjV.js} +27 -27
  98. package/dist/component/{url-input-field-rac-CIk_6Lf6.js → url-input-field-rac-BuTadRMy.js} +19 -19
  99. package/dist/component/{url-input-rac-DyVoygXH.js → url-input-rac-BpVSwqpz.js} +1 -1
  100. package/dist/component/{use-dropdown-option-class-name-McG3ayOT.js → use-dropdown-option-class-name-Cwfh_4oi.js} +2 -2
  101. package/dist/component/{use-element-state-class-name-B9MBWX44.js → use-element-state-class-name-BF7I_Ju7.js} +1 -1
  102. package/dist/component/{use-is-forced-open-dropdown-r5G_sZsO.js → use-is-forced-open-dropdown-BMuhxge2.js} +8 -8
  103. package/dist/component/{use-service-options-base-hcbkvhpw.js → use-service-options-base-DfyQZjmw.js} +1 -1
  104. package/dist/component/{use-text-input-class-name-SnurFqAr.js → use-text-input-class-name-ixt7gTGg.js} +2 -2
  105. package/dist/form.d.ts +18 -0
  106. package/package.json +3 -3
  107. package/dist/component/file-upload-rac-ZdgYt646.js +0 -483
@@ -1,24 +1,24 @@
1
1
  import { RicosViewer as ee } from "@wix/ricos/viewer";
2
- import b from "classnames";
3
- import t, { useMemo as y, useState as x, useCallback as v, useRef as k } from "react";
2
+ import f from "classnames";
3
+ import t, { useMemo as y, useState as j, useCallback as v, useRef as k } from "react";
4
4
  import { UNSAFE_PortalProvider as te } from "react-aria";
5
- import { ListBoxItem as ae, ListBox as ne, Select as re, TextField as U, SelectValue as se, Input as q } from "react-aria-components";
6
- import { b5 as I, b2 as $, aZ as w, aC as z, aP as G, aq as d, bf as P, ax as oe, aD as le, aW as ce, b7 as H, H as S, T as ie, t as de, J as me, u as ue, p as pe } from "./form-0jt4L5xo.js";
7
- import { f as u, a as B } from "./find-child-C60k4CxG.js";
5
+ import { ListBoxItem as ae, ListBox as ne, Select as re, TextField as U, SelectValue as se, Input as $ } from "react-aria-components";
6
+ import { b9 as D, b6 as q, b1 as w, aG as z, aT as G, au as d, bj as P, aB as oe, aH as le, a_ as ce, bb as B, I as S, U as ie, t as de, K as me, v as ue, p as pe } from "./form-DC8xFBa_.js";
7
+ import { f as u, a as H } from "./find-child-C60k4CxG.js";
8
8
  import { g as Ee } from "./helpers-HmkkXrh2.js";
9
- import { D as fe, E as be } from "./field-error-headless-tsg9FQ-_.js";
10
- import { L as he } from "./field-label-headless-CB8dEat8.js";
11
- import { F as De } from "./fieldset-headless-CD3fds9J.js";
12
- import { N as Ie, S as Oe } from "./non-modal-popover-DtIMXHbe.js";
13
- import { u as ge } from "./use-is-forced-open-dropdown-r5G_sZsO.js";
9
+ import { D as be, E as fe } from "./field-error-headless-BLgaEh1d.js";
10
+ import { L as he } from "./field-label-headless-C8NbnF9M.js";
11
+ import { F as Ie } from "./fieldset-headless-CD3fds9J.js";
12
+ import { N as De, S as Oe } from "./non-modal-popover-DtIMXHbe.js";
13
+ import { u as ge } from "./use-is-forced-open-dropdown-BMuhxge2.js";
14
14
  import { C as ye } from "./chevron-down-icon-CcpVm6B-.js";
15
15
  import { E as Ne } from "./error-icon-hZxQ6DEy.js";
16
16
  import { H as _e } from "./custom-focus-class-_483Pkwp.js";
17
17
  import { s as E } from "./field-rac.module-B4l_0KRU.js";
18
- import { u as Le } from "./use-dropdown-option-class-name-McG3ayOT.js";
19
- import { u as j } from "./use-text-input-class-name-SnurFqAr.js";
18
+ import { u as Le } from "./use-dropdown-option-class-name-Cwfh_4oi.js";
19
+ import { u as x } from "./use-text-input-class-name-ixt7gTGg.js";
20
20
  const n = ({ children: e, className: a }) => {
21
- const { id: r, required: o, onBlur: s, onFocus: l, FieldLayout: c } = I(), { inputId: m, labelId: i, ariaDescribedBy: f } = $(), { regionalFormat: p } = w(), h = y(() => z(p).filter(G).map((Y) => Y.toUpperCase()), [
21
+ const { id: r, required: o, onBlur: s, onFocus: l, FieldLayout: c } = D(), { inputId: m, labelId: i, ariaDescribedBy: b } = q(), { regionalFormat: p } = w(), h = y(() => z(p).filter(G).map((Y) => Y.toUpperCase()), [
22
22
  p
23
23
  ]), _ = u(e, n.Label), T = u(e, n.Description), L = u(e, n.Error), F = {
24
24
  [d.MONTH]: u(e, n.Month),
@@ -27,13 +27,13 @@ const n = ({ children: e, className: a }) => {
27
27
  };
28
28
  return /* @__PURE__ */ t.createElement(c, {
29
29
  fieldId: r,
30
- renderLabel: () => B(_, {
30
+ renderLabel: () => H(_, {
31
31
  as: "div"
32
32
  }),
33
- renderInput: () => /* @__PURE__ */ t.createElement(De, {
33
+ renderInput: () => /* @__PURE__ */ t.createElement(Ie, {
34
34
  id: m,
35
35
  ariaLabelledBy: i,
36
- ariaDescribedBy: f,
36
+ ariaDescribedBy: b,
37
37
  required: o,
38
38
  onBlur: s,
39
39
  onFocus: l,
@@ -42,20 +42,20 @@ const n = ({ children: e, className: a }) => {
42
42
  renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, L, T)
43
43
  });
44
44
  }, O = ({ children: e, className: a }) => {
45
- const { id: r, disabled: o, readOnly: s, showDateLabels: l, hidePlaceholder: c } = I(), { labelId: m } = g(d.MONTH), { partValue: i, partError: f, onPartChange: p } = N(d.MONTH), { t: h } = P(), [_, T] = x(!1), L = ge(r), [F, Y] = x(null), W = c ? void 0 : h("field.date.placeholder.month"), J = v((M) => {
45
+ const { id: r, disabled: o, readOnly: s, showDateLabels: l, hidePlaceholder: c } = D(), { labelId: m } = g(d.MONTH), { partValue: i, partError: b, onPartChange: p } = N(d.MONTH), { t: h } = P(), [_, T] = j(!1), L = ge(r), [F, Y] = j(null), K = c ? void 0 : h("field.date.placeholder.month"), Q = v((M) => {
46
46
  s || p(typeof M == "string" ? M : "");
47
47
  }, [
48
48
  p,
49
49
  s
50
- ]), K = v((M) => {
50
+ ]), W = v((M) => {
51
51
  T(M && !s);
52
52
  }, [
53
53
  s
54
- ]), Q = u(e, O.Label), Z = u(e, O.Trigger), X = u(e, O.Options);
54
+ ]), J = u(e, O.Label), X = u(e, O.Trigger), Z = u(e, O.Options);
55
55
  return /* @__PURE__ */ t.createElement("div", {
56
56
  className: a,
57
57
  "data-date-field": !0
58
- }, l ? Q : null, /* @__PURE__ */ t.createElement("div", {
58
+ }, l ? J : null, /* @__PURE__ */ t.createElement("div", {
59
59
  ref: Y,
60
60
  style: {
61
61
  display: "contents"
@@ -65,21 +65,21 @@ const n = ({ children: e, className: a }) => {
65
65
  }, /* @__PURE__ */ t.createElement(re, {
66
66
  "aria-labelledby": l ? m : void 0,
67
67
  value: i || null,
68
- onChange: J,
68
+ onChange: Q,
69
69
  isDisabled: o,
70
- isInvalid: f,
71
- placeholder: W,
70
+ isInvalid: b,
71
+ placeholder: K,
72
72
  isOpen: L || _,
73
- onOpenChange: L ? void 0 : K
74
- }, Z, B(X, {
73
+ onOpenChange: L ? void 0 : W
74
+ }, X, H(Z, {
75
75
  isForcedOpen: L
76
76
  }))));
77
77
  }, Fe = ({ className: e }) => /* @__PURE__ */ t.createElement(V, {
78
78
  datePart: d.MONTH,
79
79
  className: e
80
80
  }), Ce = ({ children: e, className: a }) => {
81
- const { id: r, readOnly: o } = I(), { inputId: s } = g(d.MONTH), { partError: l, isFirstPart: c } = N(d.MONTH), m = k(null);
82
- return H(() => {
81
+ const { id: r, readOnly: o } = D(), { inputId: s } = g(d.MONTH), { partError: l, isFirstPart: c } = N(d.MONTH), m = k(null);
82
+ return B(() => {
83
83
  var i;
84
84
  c && ((i = m.current) == null || i.focus());
85
85
  }, r), /* @__PURE__ */ t.createElement(Oe, {
@@ -94,13 +94,13 @@ const n = ({ children: e, className: a }) => {
94
94
  const { isForcedOpen: o } = r, { language: s } = w(), l = y(() => Ee(s), [
95
95
  s
96
96
  ]), c = u(e, A.Option) ?? /* @__PURE__ */ t.createElement(A.Option, null);
97
- return /* @__PURE__ */ t.createElement(Ie, {
97
+ return /* @__PURE__ */ t.createElement(De, {
98
98
  className: a,
99
99
  containerPadding: 0,
100
100
  offset: 0
101
101
  }, /* @__PURE__ */ t.createElement(ne, {
102
102
  autoFocus: o ? !1 : void 0
103
- }, l.map((m, i) => B(c, {
103
+ }, l.map((m, i) => H(c, {
104
104
  key: String(i + 1),
105
105
  value: String(i + 1),
106
106
  label: m
@@ -118,11 +118,11 @@ O.Trigger = Ce;
118
118
  O.Options = A;
119
119
  A.Option = Re;
120
120
  const C = ({ children: e, className: a }) => {
121
- const { disabled: r, readOnly: o, showDateLabels: s } = I(), { labelId: l } = g(d.DAY), { partValue: c, partError: m, onPartChange: i } = N(d.DAY), f = u(e, C.Label), p = u(e, C.Input);
121
+ const { disabled: r, readOnly: o, showDateLabels: s } = D(), { labelId: l } = g(d.DAY), { partValue: c, partError: m, onPartChange: i } = N(d.DAY), b = u(e, C.Label), p = u(e, C.Input);
122
122
  return /* @__PURE__ */ t.createElement("div", {
123
123
  className: a,
124
124
  "data-date-field": !0
125
- }, s && f, /* @__PURE__ */ t.createElement(U, {
125
+ }, s && b, /* @__PURE__ */ t.createElement(U, {
126
126
  "aria-labelledby": s ? l : void 0,
127
127
  value: c,
128
128
  onChange: i,
@@ -134,11 +134,11 @@ const C = ({ children: e, className: a }) => {
134
134
  datePart: d.DAY,
135
135
  className: e
136
136
  }), Se = ({ className: e }) => {
137
- const { id: a, hidePlaceholder: r } = I(), { inputId: o } = g(d.DAY), { isFirstPart: s } = N(d.DAY), { t: l } = P(), c = k(null), m = r ? void 0 : l("field.date.placeholder.day");
138
- return H(() => {
137
+ const { id: a, hidePlaceholder: r } = D(), { inputId: o } = g(d.DAY), { isFirstPart: s } = N(d.DAY), { t: l } = P(), c = k(null), m = r ? void 0 : l("field.date.placeholder.day");
138
+ return B(() => {
139
139
  var i;
140
140
  s && ((i = c.current) == null || i.focus());
141
- }, a), /* @__PURE__ */ t.createElement(q, {
141
+ }, a), /* @__PURE__ */ t.createElement($, {
142
142
  ref: c,
143
143
  id: o,
144
144
  className: e,
@@ -151,11 +151,11 @@ const C = ({ children: e, className: a }) => {
151
151
  C.Label = Me;
152
152
  C.Input = Se;
153
153
  const R = ({ children: e, className: a }) => {
154
- const { disabled: r, readOnly: o, showDateLabels: s } = I(), { labelId: l } = g(d.YEAR), { partValue: c, partError: m, onPartChange: i } = N(d.YEAR), f = u(e, R.Label), p = u(e, R.Input);
154
+ const { disabled: r, readOnly: o, showDateLabels: s } = D(), { labelId: l } = g(d.YEAR), { partValue: c, partError: m, onPartChange: i } = N(d.YEAR), b = u(e, R.Label), p = u(e, R.Input);
155
155
  return /* @__PURE__ */ t.createElement("div", {
156
156
  className: a,
157
157
  "data-date-field": !0
158
- }, s && f, /* @__PURE__ */ t.createElement(U, {
158
+ }, s && b, /* @__PURE__ */ t.createElement(U, {
159
159
  "aria-labelledby": s ? l : void 0,
160
160
  value: c,
161
161
  onChange: i,
@@ -167,11 +167,11 @@ const R = ({ children: e, className: a }) => {
167
167
  datePart: d.YEAR,
168
168
  className: e
169
169
  }), Pe = ({ className: e }) => {
170
- const { id: a, hidePlaceholder: r } = I(), { inputId: o } = g(d.YEAR), { isFirstPart: s } = N(d.YEAR), { t: l } = P(), c = k(null), m = r ? void 0 : l("field.date.placeholder.year");
171
- return H(() => {
170
+ const { id: a, hidePlaceholder: r } = D(), { inputId: o } = g(d.YEAR), { isFirstPart: s } = N(d.YEAR), { t: l } = P(), c = k(null), m = r ? void 0 : l("field.date.placeholder.year");
171
+ return B(() => {
172
172
  var i;
173
173
  s && ((i = c.current) == null || i.focus());
174
- }, a), /* @__PURE__ */ t.createElement(q, {
174
+ }, a), /* @__PURE__ */ t.createElement($, {
175
175
  ref: c,
176
176
  id: o,
177
177
  className: e,
@@ -187,10 +187,10 @@ n.Label = he;
187
187
  n.Month = O;
188
188
  n.Day = C;
189
189
  n.Year = R;
190
- n.Description = fe;
191
- n.Error = be;
190
+ n.Description = be;
191
+ n.Error = fe;
192
192
  function g(e) {
193
- const { inputId: a } = $();
193
+ const { inputId: a } = q();
194
194
  return y(() => {
195
195
  const r = e.toLowerCase();
196
196
  return {
@@ -203,7 +203,7 @@ function g(e) {
203
203
  ]);
204
204
  }
205
205
  function N(e) {
206
- const { value: a, onChange: r, hasError: o = !1 } = I(), { regionalFormat: s } = w(), l = y(() => oe(a ?? ""), [
206
+ const { value: a, onChange: r, hasError: o = !1 } = D(), { regionalFormat: s } = w(), l = y(() => oe(a ?? ""), [
207
207
  a
208
208
  ]), c = y(() => le(o, a ?? ""), [
209
209
  a,
@@ -215,7 +215,7 @@ function N(e) {
215
215
  r,
216
216
  l,
217
217
  e
218
- ]), f = y(() => z(s).filter(G).map((_) => _.toUpperCase())[0] === e, [
218
+ ]), b = y(() => z(s).filter(G).map((_) => _.toUpperCase())[0] === e, [
219
219
  s,
220
220
  e
221
221
  ]);
@@ -223,7 +223,7 @@ function N(e) {
223
223
  partValue: m,
224
224
  partError: c[e],
225
225
  onPartChange: i,
226
- isFirstPart: f
226
+ isFirstPart: b
227
227
  };
228
228
  }
229
229
  function V({ datePart: e, className: a }) {
@@ -234,55 +234,55 @@ function V({ datePart: e, className: a }) {
234
234
  className: a
235
235
  }, c);
236
236
  }
237
- const Te = "_fields_bc5kj_1", Ye = "_month_bc5kj_11", ve = "_day_bc5kj_12", ke = "_year_bc5kj_13", we = "_dayInput_bc5kj_35", He = "_yearInput_bc5kj_36", Be = "_monthTrigger_bc5kj_40", Ve = "_monthOption_bc5kj_60", D = {
237
+ const Te = "_fields_bc5kj_1", Ye = "_month_bc5kj_11", ve = "_day_bc5kj_12", ke = "_year_bc5kj_13", we = "_dayInput_bc5kj_35", Be = "_yearInput_bc5kj_36", He = "_monthTrigger_bc5kj_40", Ve = "_monthOption_bc5kj_60", I = {
238
238
  fields: Te,
239
239
  month: Ye,
240
240
  day: ve,
241
241
  year: ke,
242
242
  dayInput: we,
243
- yearInput: He,
244
- monthTrigger: Be,
243
+ yearInput: Be,
244
+ monthTrigger: He,
245
245
  monthOption: Ve
246
- }, xe = ({ content: e, locale: a }) => /* @__PURE__ */ t.createElement(ee, {
246
+ }, je = ({ content: e, locale: a }) => /* @__PURE__ */ t.createElement(ee, {
247
247
  content: e,
248
248
  locale: a
249
249
  }), lt = () => {
250
- const e = Le(D.monthOption, _e), a = j(D.dayInput), r = j(D.yearInput);
250
+ const e = Le(I.monthOption, _e), a = x(I.dayInput), r = x(I.yearInput);
251
251
  return /* @__PURE__ */ t.createElement(n, {
252
- className: D.fields
252
+ className: I.fields
253
253
  }, /* @__PURE__ */ t.createElement(n.Label, {
254
- className: b(S, E.label)
254
+ className: f(S, E.label)
255
255
  }, /* @__PURE__ */ t.createElement(n.Label.Required, {
256
- className: b(ie, E.requiredMark)
256
+ className: f(ie, E.requiredMark)
257
257
  })), /* @__PURE__ */ t.createElement(n.Month, {
258
- className: D.month
258
+ className: I.month
259
259
  }, /* @__PURE__ */ t.createElement(n.Month.Label, {
260
- className: b(S, E.label)
260
+ className: f(S, E.label)
261
261
  }), /* @__PURE__ */ t.createElement(n.Month.Trigger, {
262
- className: b(de, E.input, D.monthTrigger)
262
+ className: f(de, E.input, I.monthTrigger)
263
263
  }, /* @__PURE__ */ t.createElement(ye, {
264
264
  className: E.dropdownIcon
265
265
  })), /* @__PURE__ */ t.createElement(n.Month.Options, {
266
- className: b(me, E.selectPopover, E.dropdownPopover)
266
+ className: f(me, E.selectPopover, E.dropdownPopover)
267
267
  }, /* @__PURE__ */ t.createElement(n.Month.Options.Option, {
268
268
  className: e
269
269
  }))), /* @__PURE__ */ t.createElement(n.Day, {
270
- className: D.day
270
+ className: I.day
271
271
  }, /* @__PURE__ */ t.createElement(n.Day.Label, {
272
- className: b(S, E.label)
272
+ className: f(S, E.label)
273
273
  }), /* @__PURE__ */ t.createElement(n.Day.Input, {
274
274
  className: a
275
275
  })), /* @__PURE__ */ t.createElement(n.Year, {
276
- className: D.year
276
+ className: I.year
277
277
  }, /* @__PURE__ */ t.createElement(n.Year.Label, {
278
- className: b(S, E.label)
278
+ className: f(S, E.label)
279
279
  }), /* @__PURE__ */ t.createElement(n.Year.Input, {
280
280
  className: r
281
281
  })), /* @__PURE__ */ t.createElement(n.Error, {
282
- className: b(ue, E.error)
282
+ className: f(ue, E.error)
283
283
  }, /* @__PURE__ */ t.createElement(Ne, null), /* @__PURE__ */ t.createElement(n.Error.Text, null)), /* @__PURE__ */ t.createElement(n.Description, {
284
- className: b(pe, E.description)
285
- }, xe));
284
+ className: f(pe, E.description)
285
+ }, je));
286
286
  };
287
287
  export {
288
288
  lt as D
@@ -1,5 +1,5 @@
1
1
  import t from "react";
2
- import { D as e } from "./date-input-field-rac-mdhEC3oq.js";
2
+ import { D as e } from "./date-input-field-rac-8CkusNEQ.js";
3
3
  const o = () => /* @__PURE__ */ t.createElement(e, null);
4
4
  export {
5
5
  o as DateInputRAC
@@ -4,14 +4,14 @@ import e, { useState as O, useCallback as k, useContext as ee, useRef as A, useM
4
4
  import { parseDate as te } from "@internationalized/date";
5
5
  import { UNSAFE_PortalProvider as re } from "react-aria";
6
6
  import { I18nProvider as ne, DatePicker as ae, 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 M, Select as x, SelectValue as w, ListBox as Y, ListBoxItem as B } from "react-aria-components";
7
- import { D as f, b5 as h, b2 as U, aZ as F, b7 as pe, H as De, T as fe, t as Ce, n as ye, u as Se, p as Te } from "./form-0jt4L5xo.js";
8
- import { g as he, c as P } from "./calendar.module-DnhTT4QT.js";
9
- import { f as E, a as T } from "./find-child-C60k4CxG.js";
10
- import { D as ve, E as _e } from "./field-error-headless-tsg9FQ-_.js";
11
- import { L as Ne } from "./field-label-headless-CB8dEat8.js";
7
+ import { D as f, b9 as T, b6 as U, b1 as F, bb as pe, I as De, U as fe, t as Ce, n as ye, v as Se, p as ve } from "./form-DC8xFBa_.js";
8
+ import { g as Te, c as P } from "./calendar.module-DnhTT4QT.js";
9
+ import { f as E, a as v } from "./find-child-C60k4CxG.js";
10
+ import { D as he, E as _e } from "./field-error-headless-BLgaEh1d.js";
11
+ import { L as Ne } from "./field-label-headless-C8NbnF9M.js";
12
12
  import { D as be, N as L, S as V } from "./non-modal-popover-DtIMXHbe.js";
13
- import { u as Ie } from "./use-is-forced-open-dropdown-r5G_sZsO.js";
14
- import { i as Fe } from "./date-availability-NN3rxosk.js";
13
+ import { u as Ie } from "./use-is-forced-open-dropdown-BMuhxge2.js";
14
+ import { i as Fe } from "./date-availability-CpZYBX1d.js";
15
15
  import { C as I } from "./chevron-down-icon-CcpVm6B-.js";
16
16
  import { E as Le } from "./error-icon-hZxQ6DEy.js";
17
17
  import { H as Oe } from "./custom-focus-class-_483Pkwp.js";
@@ -27,17 +27,17 @@ const Ae = [
27
27
  ], Pe = {
28
28
  availableDays: Ae
29
29
  }, n = ({ children: t }) => {
30
- const { id: r, value: l, onChange: a, disabled: i, required: c, onBlur: d, onFocus: o, FieldLayout: m, hasError: u, readOnly: C } = h(), { labelId: y } = U(), { regionalFormat: v } = F(), [s, _] = O(null), [W, K] = O(!1), N = Ie(r), H = k((z) => {
30
+ const { id: r, value: l, onChange: a, disabled: i, required: c, onBlur: d, onFocus: o, FieldLayout: m, hasError: u, readOnly: C } = T(), { labelId: y } = U(), { regionalFormat: h } = F(), [s, _] = O(null), [W, K] = O(!1), N = Ie(r), $ = k((z) => {
31
31
  const J = Ke(z);
32
32
  a(J);
33
33
  }, [
34
34
  a
35
- ]), $ = E(t, n.Label), q = E(t, n.Control), G = E(t, n.Calendar), j = E(t, n.Description), Z = E(t, n.Error), Q = We(l);
35
+ ]), H = E(t, n.Label), q = E(t, n.Control), G = E(t, n.Calendar), j = E(t, n.Description), Q = E(t, n.Error), Z = We(l);
36
36
  return /* @__PURE__ */ e.createElement(m, {
37
37
  fieldId: r,
38
- renderLabel: () => $,
38
+ renderLabel: () => H,
39
39
  renderInput: () => /* @__PURE__ */ e.createElement(ne, {
40
- locale: v
40
+ locale: h
41
41
  }, /* @__PURE__ */ e.createElement("div", {
42
42
  ref: _,
43
43
  style: {
@@ -47,8 +47,8 @@ const Ae = [
47
47
  getContainer: () => s
48
48
  }, /* @__PURE__ */ e.createElement(ae, {
49
49
  "aria-labelledby": y,
50
- value: Q,
51
- onChange: H,
50
+ value: Z,
51
+ onChange: $,
52
52
  isDisabled: i,
53
53
  isInvalid: u,
54
54
  isReadOnly: C,
@@ -57,13 +57,13 @@ const Ae = [
57
57
  onFocus: o,
58
58
  isOpen: N || W,
59
59
  onOpenChange: N ? void 0 : K
60
- }, q, T(G, {
60
+ }, q, v(G, {
61
61
  isForcedOpen: N
62
62
  })))),
63
- renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, Z, j)
63
+ renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, Q, j)
64
64
  });
65
65
  }, Re = ({ children: t, className: r }) => {
66
- const { inputId: l, ariaDescribedBy: a } = U(), { hasError: i, disabled: c, readOnly: d } = h(), o = ee(oe), m = k((u) => {
66
+ const { inputId: l, ariaDescribedBy: a } = U(), { hasError: i, disabled: c, readOnly: d } = T(), o = ee(oe), m = k((u) => {
67
67
  if (!o || o.isOpen || c || d)
68
68
  return;
69
69
  const C = u.target;
@@ -84,12 +84,12 @@ const Ae = [
84
84
  onPointerDownCapture: m
85
85
  }, t);
86
86
  }, ke = ({ className: t }) => {
87
- const { id: r, placeholder: l } = h(), { regionalFormat: a } = F(), i = A(null), c = A(!1);
87
+ const { id: r, placeholder: l } = T(), { regionalFormat: a } = F(), i = A(null), c = A(!1);
88
88
  pe(() => {
89
89
  var o;
90
90
  (o = i.current) == null || o.focus();
91
91
  }, r);
92
- const d = b(() => He(a), [
92
+ const d = b(() => $e(a), [
93
93
  a
94
94
  ]);
95
95
  return /* @__PURE__ */ e.createElement(se, {
@@ -114,14 +114,14 @@ const Ae = [
114
114
  }, Me = ({ children: t, className: r }) => /* @__PURE__ */ e.createElement(be, {
115
115
  className: r
116
116
  }, t), g = ({ children: t, className: r, ...l }) => {
117
- const { isForcedOpen: a } = l, { regionalFormat: i } = F(), { availability: c } = h(), d = b(() => he(i), [
117
+ const { isForcedOpen: a } = l, { regionalFormat: i } = F(), { availability: c } = T(), d = b(() => Te(i), [
118
118
  i
119
119
  ]), o = b(() => (s) => {
120
120
  const _ = new Date(s.year, s.month - 1, s.day);
121
121
  return !Fe(_, c || Pe);
122
122
  }, [
123
123
  c
124
- ]), m = E(t, g.Day) ?? /* @__PURE__ */ e.createElement(g.Day, null), u = E(t, g.PreviousTrigger), C = E(t, g.NextTrigger), y = E(t, g.MonthTrigger), v = E(t, g.YearTrigger);
124
+ ]), m = E(t, g.Day) ?? /* @__PURE__ */ e.createElement(g.Day, null), u = E(t, g.PreviousTrigger), C = E(t, g.NextTrigger), y = E(t, g.MonthTrigger), h = E(t, g.YearTrigger);
125
125
  return /* @__PURE__ */ e.createElement(L, {
126
126
  className: r,
127
127
  containerPadding: 0
@@ -129,9 +129,9 @@ const Ae = [
129
129
  isForcedOpen: a
130
130
  }, /* @__PURE__ */ e.createElement(ie, {
131
131
  autoFocus: a ? !1 : void 0,
132
- firstDayOfWeek: $e(d),
132
+ firstDayOfWeek: He(d),
133
133
  isDateUnavailable: o
134
- }, /* @__PURE__ */ e.createElement("header", null, u, /* @__PURE__ */ e.createElement(me, null, (s) => T(y, {
134
+ }, /* @__PURE__ */ e.createElement("header", null, u, /* @__PURE__ */ e.createElement(me, null, (s) => v(y, {
135
135
  ariaLabel: s["aria-label"],
136
136
  selectedKey: s.value,
137
137
  onSelectionChange: s.onChange,
@@ -139,7 +139,7 @@ const Ae = [
139
139
  popoverClassName: r
140
140
  })), /* @__PURE__ */ e.createElement(ue, {
141
141
  visibleYears: 100
142
- }, (s) => T(v, {
142
+ }, (s) => v(h, {
143
143
  ariaLabel: s["aria-label"],
144
144
  selectedKey: s.value,
145
145
  onSelectionChange: s.onChange,
@@ -147,7 +147,7 @@ const Ae = [
147
147
  popoverClassName: r
148
148
  })), C), /* @__PURE__ */ e.createElement(de, {
149
149
  weekdayStyle: "short"
150
- }, (s) => T(m, {
150
+ }, (s) => v(m, {
151
151
  date: s
152
152
  })))));
153
153
  }, xe = ({ isForcedOpen: t, children: r }) => t ? /* @__PURE__ */ e.createElement("div", {
@@ -207,7 +207,7 @@ n.Control = Re;
207
207
  n.Input = ke;
208
208
  n.Trigger = Me;
209
209
  n.Calendar = g;
210
- n.Description = ve;
210
+ n.Description = he;
211
211
  n.Error = _e;
212
212
  function We(t) {
213
213
  if (!t)
@@ -224,7 +224,7 @@ function Ke(t) {
224
224
  const r = String(t.year).padStart(4, "0"), l = String(t.month).padStart(2, "0"), a = String(t.day).padStart(2, "0");
225
225
  return `${r}-${l}-${a}`;
226
226
  }
227
- function He(t) {
227
+ function $e(t) {
228
228
  var r;
229
229
  try {
230
230
  return ((r = new Intl.DateTimeFormat(t, {
@@ -236,7 +236,7 @@ function He(t) {
236
236
  return "month";
237
237
  }
238
238
  }
239
- function $e(t) {
239
+ function He(t) {
240
240
  return [
241
241
  "sun",
242
242
  "mon",
@@ -260,11 +260,11 @@ const qe = (t) => /* @__PURE__ */ e.createElement("svg", {
260
260
  strokeWidth: "1.5",
261
261
  strokeLinecap: "round",
262
262
  strokeLinejoin: "round"
263
- })), Ge = "_control_1vunt_1", je = "_segments_1vunt_14", Ze = "_trigger_1vunt_65", Qe = "_calendarPopover_1vunt_96", ze = "_calendarDay_1vunt_242", S = {
263
+ })), Ge = "_control_1vunt_1", je = "_segments_1vunt_14", Qe = "_trigger_1vunt_65", Ze = "_calendarPopover_1vunt_96", ze = "_calendarDay_1vunt_242", S = {
264
264
  control: Ge,
265
265
  segments: je,
266
- trigger: Ze,
267
- calendarPopover: Qe,
266
+ trigger: Qe,
267
+ calendarPopover: Ze,
268
268
  calendarDay: ze
269
269
  }, Je = ({ content: t, locale: r }) => /* @__PURE__ */ e.createElement(X, {
270
270
  content: t,
@@ -303,7 +303,7 @@ const qe = (t) => /* @__PURE__ */ e.createElement("svg", {
303
303
  }, t))), /* @__PURE__ */ e.createElement(n.Error, {
304
304
  className: D(Se, p.error)
305
305
  }, /* @__PURE__ */ e.createElement(Le, null), /* @__PURE__ */ e.createElement(n.Error.Text, null)), /* @__PURE__ */ e.createElement(n.Description, {
306
- className: D(Te, p.description)
306
+ className: D(ve, p.description)
307
307
  }, Je));
308
308
  export {
309
309
  Ct as D
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { D as r } from "./date-picker-field-rac-CRZVODfF.js";
2
+ import { D as r } from "./date-picker-field-rac-pZQhHvZc.js";
3
3
  const a = () => /* @__PURE__ */ e.createElement(r, null);
4
4
  export {
5
5
  a as DatePickerRAC