@wix/form-elements 1.126.0 → 1.128.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 (113) hide show
  1. package/dist/component/{appointment-rac-CYB_k6uF.js → appointment-rac-S9z3s23G.js} +5 -5
  2. package/dist/component/{bookings-address-rac-yJjV3u5m.js → bookings-address-rac-B7wL2TjQ.js} +1 -1
  3. package/dist/component/{bookings-email-rac-WkFgaEv5.js → bookings-email-rac-T2lFRGpg.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-CJ1cBR5Z.js → bookings-first-name-rac-BBrENRBf.js} +1 -1
  5. package/dist/component/{bookings-header-rac-DiC19ttR.js → bookings-header-rac-CWGMiMQz.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-Dx0Nt5Z_.js → bookings-last-name-rac-BQWvH_gm.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-CcW2nUYQ.js → bookings-login-bar-rac-tFs0Vioz.js} +6 -6
  8. package/dist/component/{bookings-phone-rac-BMLrrTf6.js → bookings-phone-rac-BV_BTfAh.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-DIbRjzxZ.js → bookings-rich-text-rac-8cD6QJBZ.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-3a6NYcNf.js → checkbox-field-rac-YmG26i31.js} +45 -45
  11. package/dist/component/{checkbox-group-field-headless-CM-2wLJv.js → checkbox-group-field-headless-CE8sEjZj.js} +3 -3
  12. package/dist/component/{checkbox-group-field-rac-CNWwJ_No.js → checkbox-group-field-rac-CSuJRyk1.js} +6 -6
  13. package/dist/component/{checkbox-group-rac-F08XYJSA.js → checkbox-group-rac-VDezm9js.js} +1 -1
  14. package/dist/component/{checkbox-indicator-module-classes-DOAYUQ_Q.js → checkbox-indicator-module-classes-Bqo0QILF.js} +1 -1
  15. package/dist/component/{checkbox-rac-z98USBLu.js → checkbox-rac-DoC1ZqAq.js} +1 -1
  16. package/dist/component/{contacts-address-rac-DuodyS7l.js → contacts-address-rac-10AZNzhI.js} +1 -1
  17. package/dist/component/{contacts-birthdate-rac-BY7L9nWm.js → contacts-birthdate-rac-C7YDiyg2.js} +1 -1
  18. package/dist/component/{contacts-company-rac-iPNPKhx2.js → contacts-company-rac-xQEtJ_-m.js} +1 -1
  19. package/dist/component/{contacts-email-rac-C7kBUzQH.js → contacts-email-rac-Bryw_aCU.js} +1 -1
  20. package/dist/component/{contacts-first-name-rac-DvDNRs2q.js → contacts-first-name-rac-BXmuuhfG.js} +1 -1
  21. package/dist/component/{contacts-last-name-rac-Cls5_7W0.js → contacts-last-name-rac-CVWVZO8I.js} +1 -1
  22. package/dist/component/{contacts-phone-rac-DMy2lBJl.js → contacts-phone-rac-C-KSwisV.js} +1 -1
  23. package/dist/component/{contacts-position-rac-Bn21lF_i.js → contacts-position-rac-od-5Gie5.js} +1 -1
  24. package/dist/component/{contacts-subscribe-rac-QSC_n_T_.js → contacts-subscribe-rac-CCh9JcQx.js} +1 -1
  25. package/dist/component/{contacts-tax-id-rac-BvqoePCN.js → contacts-tax-id-rac-DOM7TPQz.js} +1 -1
  26. package/dist/component/{date-availability-SErYnVtm.js → date-availability-G5IwqtRi.js} +1 -1
  27. package/dist/component/{date-input-field-rac-H81WktJT.js → date-input-field-rac-BpBqS7LG.js} +42 -42
  28. package/dist/component/{date-input-rac-C6ZeK0zQ.js → date-input-rac-CQyqRqZK.js} +1 -1
  29. package/dist/component/{date-picker-field-rac-BwSKny80.js → date-picker-field-rac-BsR_0eAW.js} +15 -15
  30. package/dist/component/{date-picker-rac-BB5zswk4.js → date-picker-rac-Bl2k363u.js} +1 -1
  31. package/dist/component/{date-time-input-field-rac-C4srGo4X.js → date-time-input-field-rac-C5TC2nsm.js} +64 -64
  32. package/dist/component/{date-time-input-rac-6PXunNeR.js → date-time-input-rac-CInfYWxN.js} +1 -1
  33. package/dist/component/{dext-checkbox-group-rac-B1GOhxW8.js → dext-checkbox-group-rac-E36LjEfn.js} +2 -2
  34. package/dist/component/{dext-checkbox-rac-DVels76t.js → dext-checkbox-rac-DkMAv7aY.js} +1 -1
  35. package/dist/component/{dext-date-picker-rac-kKH7Nu_c.js → dext-date-picker-rac-BNkJPlYo.js} +1 -1
  36. package/dist/component/{dext-date-time-input-rac-C2xk0pv1.js → dext-date-time-input-rac-BH3Q0pwI.js} +1 -1
  37. package/dist/component/{dext-dropdown-rac-bd3XpA-l.js → dext-dropdown-rac-DkF_DD08.js} +1 -1
  38. package/dist/component/{dext-email-rac-BtEeJsrT.js → dext-email-rac-0x_DN0_O.js} +1 -1
  39. package/dist/component/{dext-number-input-rac-BLPAbm2q.js → dext-number-input-rac-UiIENkK3.js} +1 -1
  40. package/dist/component/{dext-phone-rac-ByEP8XRg.js → dext-phone-rac-BZFK4Uq7.js} +1 -1
  41. package/dist/component/{dext-radio-group-rac-AY271KFi.js → dext-radio-group-rac-CBAdO7kt.js} +4 -4
  42. package/dist/component/{dext-rating-input-rac-Dp9N8OWT.js → dext-rating-input-rac-fqR1sriq.js} +1 -1
  43. package/dist/component/{dext-tags-rac-PgZGGDwj.js → dext-tags-rac-mDuiUs9L.js} +4 -4
  44. package/dist/component/{dext-text-area-rac-BN99TM9O.js → dext-text-area-rac-C-8jKWpK.js} +1 -1
  45. package/dist/component/{dext-text-input-rac-C5TaQVi8.js → dext-text-input-rac-CCBAM9YO.js} +1 -1
  46. package/dist/component/{dext-url-input-rac-BvMh_jc6.js → dext-url-input-rac-C4_8Yk0p.js} +1 -1
  47. package/dist/component/{donation-rac-BSCyAZPx.js → donation-rac-BwDHypVJ.js} +36 -36
  48. package/dist/component/{dropdown-field-headless-DzDE-6ha.js → dropdown-field-headless-CspX2zV_.js} +16 -16
  49. package/dist/component/{dropdown-field-rac-mbYavQtS.js → dropdown-field-rac-DduQJ9rO.js} +5 -5
  50. package/dist/component/{dropdown-rac-BUJag5ow.js → dropdown-rac-BhhECLoH.js} +1 -1
  51. package/dist/component/{ecom-address-rac-B7_RYjoj.js → ecom-address-rac-BJ1nnEVL.js} +1 -1
  52. package/dist/component/{ecom-subscription-checkbox-rac-BCDyH7x-.js → ecom-subscription-checkbox-rac-4m1XMTDY.js} +2 -2
  53. package/dist/component/{email-input-field-rac-CUi08-gD.js → email-input-field-rac-bPEcgidt.js} +19 -19
  54. package/dist/component/{events-repeater-rac-CkHq7ADr.js → events-repeater-rac-CujTGEHx.js} +11 -11
  55. package/dist/component/{events-rsvp-rac-DBwLvDeR.js → events-rsvp-rac-BPqr_aY9.js} +4 -4
  56. package/dist/component/{field-error-headless-Ct41F8cQ.js → field-error-headless-Bu_4Huhb.js} +6 -6
  57. package/dist/component/{field-label-headless-DUqBV42_.js → field-label-headless-DkDmQPFG.js} +1 -1
  58. package/dist/component/field-rac.module-BIBNQEOK.js +25 -0
  59. package/dist/component/{file-upload-rac-CkbjhtAl.js → file-upload-rac-DmOQrGe8.js} +68 -68
  60. package/dist/component/{fixed-payment-rac-Dgnhsx3e.js → fixed-payment-rac-CDsddKrV.js} +9 -9
  61. package/dist/component/{form-Dx1bK3Fi.js → form-BpJ4Lqbe.js} +668 -617
  62. package/dist/component/form.css +1 -1
  63. package/dist/component/form.js +3 -3
  64. package/dist/component/{header-field-rac-BuUxOZO1.js → header-field-rac-Cr1FVQdq.js} +6 -6
  65. package/dist/component/{header-rac-CIvWVvYs.js → header-rac-CvAZsqDL.js} +1 -1
  66. package/dist/component/{image-choice-rac-BBo0PiW4.js → image-choice-rac-D_EKrD73.js} +12 -12
  67. package/dist/component/{index-BmMiwDw9.js → index-DxsHfkik.js} +44 -44
  68. package/dist/component/{index-BDSs3l4d.js → index-Tnke1N8m.js} +15 -15
  69. package/dist/component/{isObjectLike-xZCFQW_t.js → isObjectLike-CMWsWjX8.js} +7 -7
  70. package/dist/component/{multiline-address-field-rac-C6mRorOw.js → multiline-address-field-rac-BMeMP7J6.js} +8 -8
  71. package/dist/component/{multiline-address-rac-BOjsVo4R.js → multiline-address-rac-CFprfFXm.js} +1 -1
  72. package/dist/component/{number-input-field-rac-C89M-zOh.js → number-input-field-rac-CaHySxYH.js} +9 -9
  73. package/dist/component/{number-input-rac-DttY0Ll3.js → number-input-rac-BezfoU8h.js} +1 -1
  74. package/dist/component/{password-rac-C2KTrH40.js → password-rac-_wwZFd67.js} +32 -32
  75. package/dist/component/{payment-input-rac-BhyBxeu1.js → payment-input-rac-CWrSvBDp.js} +15 -15
  76. package/dist/component/{phone-input-field-rac-BT-Fe6WZ.js → phone-input-field-rac-R3LYdPIs.js} +39 -39
  77. package/dist/component/{phone-rac-B26qwlDN.js → phone-rac-D6uILVRw.js} +1 -1
  78. package/dist/component/{product-list-rac-CF4gkfTK.js → product-list-rac-D3WTfC9k.js} +28 -28
  79. package/dist/component/{quiz-radio-group-rac-Bf2HeDDw.js → quiz-radio-group-rac-B6T7eedk.js} +1 -1
  80. package/dist/component/{radio-button-module-classes-DtmmP89u.js → radio-button-module-classes-D8Jm-Q6u.js} +3 -3
  81. package/dist/component/{radio-group-field-rac-BY2OIFFr.js → radio-group-field-rac-R5onZzJd.js} +5 -5
  82. package/dist/component/{radio-group-rac-BuxVel2l.js → radio-group-rac-DUPHR4tK.js} +1 -1
  83. package/dist/component/{rating-input-field-rac-CbLzvwyk.js → rating-input-field-rac-C9GpwuRO.js} +10 -10
  84. package/dist/component/{rating-input-rac-B8QxNYHU.js → rating-input-rac-Iv_2PVqP.js} +1 -1
  85. package/dist/component/{rich-content-rac.module-wu4JPlkg.js → rich-content-rac.module-Det3BKrI.js} +1 -1
  86. package/dist/component/{rich-text-field-rac-CTrEe0SQ.js → rich-text-field-rac-DnBtp2d_.js} +9 -9
  87. package/dist/component/{rich-text-rac-kmzPTMKb.js → rich-text-rac-CXzxap1G.js} +1 -1
  88. package/dist/component/{service-dropdown-rac-C8nTy49F.js → service-dropdown-rac-CVyd2HYC.js} +14 -14
  89. package/dist/component/{services-multi-choice-rac-rDkpN2fs.js → services-multi-choice-rac-BY-W0xIt.js} +7 -7
  90. package/dist/component/signature-rac-BojdPJhg.js +918 -0
  91. package/dist/component/{submit-button-rac-BFywt2Fn.js → submit-button-rac-Q7KKQbiL.js} +15 -15
  92. package/dist/component/{tags-field-rac-rpzvIn_0.js → tags-field-rac-CbmR6gi4.js} +17 -17
  93. package/dist/component/{tags-rac-DVLGSSvh.js → tags-rac-hJo0tMVR.js} +1 -1
  94. package/dist/component/{text-area-field-rac-BfVrtvl8.js → text-area-field-rac-DHQqkqtu.js} +15 -15
  95. package/dist/component/{text-area-rac-VP-yXdJ6.js → text-area-rac-BTXxfWyK.js} +1 -1
  96. package/dist/component/{text-input-field-rac-BlaXiXoF.js → text-input-field-rac-BVTBYjMM.js} +4 -4
  97. package/dist/component/{text-input-headless-ChCTtqUX.js → text-input-headless-Dk_0y9U-.js} +8 -8
  98. package/dist/component/{text-input-rac-CG-Oo3nZ.js → text-input-rac-DIwGn0WI.js} +1 -1
  99. package/dist/component/{time-input-rac-CzUGIr2X.js → time-input-rac-ClyPOKOH.js} +10 -10
  100. package/dist/component/{url-input-field-rac-BHF6gZlT.js → url-input-field-rac-BhPzHWTI.js} +10 -10
  101. package/dist/component/{url-input-rac-DouQt3DF.js → url-input-rac-COD7T5wo.js} +1 -1
  102. package/dist/component/{use-dropdown-option-class-name-AklIMCCI.js → use-dropdown-option-class-name-CTDQ4YIC.js} +3 -3
  103. package/dist/component/{use-dropdown-trigger-class-name-COJhxT4T.js → use-dropdown-trigger-class-name-DapDPNX0.js} +10 -10
  104. package/dist/component/use-element-state-class-name-BU86oHkX.js +20 -0
  105. package/dist/component/{use-hoverable-input-class-name-CtHJHqiV.js → use-hoverable-input-class-name-DWkmQfPd.js} +3 -3
  106. package/dist/component/{use-service-options-base-2u1I6l-t.js → use-service-options-base-jkecu8jY.js} +4 -4
  107. package/dist/component/use-text-input-class-name-CNTXVb7N.js +6 -0
  108. package/dist/form.d.ts +10 -0
  109. package/package.json +2 -2
  110. package/dist/component/field-rac.module-DQxyEwK7.js +0 -26
  111. package/dist/component/signature-rac-6r_gWBD2.js +0 -794
  112. package/dist/component/use-element-state-class-name-CCe7Cvsu.js +0 -22
  113. package/dist/component/use-text-input-class-name-Bnfv7ZsJ.js +0 -6
@@ -1,26 +1,26 @@
1
1
  import { RicosViewer as ee } from "@wix/ricos/viewer";
2
2
  import h from "classnames";
3
- import t, { useMemo as N, useState as x, useCallback as v, useRef as w } from "react";
3
+ import t, { useMemo as y, useState as x, useCallback as v, useRef as w } from "react";
4
4
  import { UNSAFE_PortalProvider as te } from "react-aria";
5
5
  import { ListBoxItem as ae, Select as ne, TextField as k, SelectValue as re, Input as $ } from "react-aria-components";
6
- import { b9 as g, b6 as q, b1 as V, aG as K, aT as j, au as d, bj as T, aB as se, aH as oe, a_ as le, bb as z, I as A, U as ce, K as ie, v as de, p as me } from "./form-Dx1bK3Fi.js";
6
+ import { bh as g, be as q, b9 as V, aO as K, a$ as j, aB as d, br as S, aI as se, aP as oe, b6 as le, bj as z, I as A, U as ce, K as ie, v as de, p as me } from "./form-BpJ4Lqbe.js";
7
7
  import { f as u, a as B } from "./find-child-C60k4CxG.js";
8
8
  import { g as ue } from "./helpers-HmkkXrh2.js";
9
- import { D as pe, E as Ee } from "./field-error-headless-Ct41F8cQ.js";
10
- import { L as fe } from "./field-label-headless-DUqBV42_.js";
9
+ import { D as pe, E as Ee } from "./field-error-headless-Bu_4Huhb.js";
10
+ import { L as fe } from "./field-label-headless-DkDmQPFG.js";
11
11
  import { F as be } from "./fieldset-headless-CD3fds9J.js";
12
12
  import { N as he, S as Ie } from "./non-modal-popover-DtIMXHbe.js";
13
- import { a as ge, u as De } from "./use-dropdown-trigger-class-name-COJhxT4T.js";
14
- import { V as ye, u as Ne } from "./use-dropdown-option-class-name-AklIMCCI.js";
15
- import { C as Oe } from "./chevron-down-icon-CcpVm6B-.js";
13
+ import { a as ge, u as De } from "./use-dropdown-trigger-class-name-DapDPNX0.js";
14
+ import { V as Oe, u as ye } from "./use-dropdown-option-class-name-CTDQ4YIC.js";
15
+ import { C as Ne } from "./chevron-down-icon-CcpVm6B-.js";
16
16
  import { E as Le } from "./error-icon-hZxQ6DEy.js";
17
17
  import { H as _e } from "./custom-focus-class-_483Pkwp.js";
18
- import { s as E } from "./field-rac.module-DQxyEwK7.js";
19
- import { u as U } from "./use-text-input-class-name-Bnfv7ZsJ.js";
18
+ import { s as E } from "./field-rac.module-BIBNQEOK.js";
19
+ import { u as U } from "./use-text-input-class-name-CNTXVb7N.js";
20
20
  const n = ({ children: e, className: a }) => {
21
- const { id: r, required: s, onBlur: o, onFocus: l, FieldLayout: c } = g(), { inputId: m, labelId: i, ariaDescribedBy: f } = q(), { regionalFormat: p } = V(), b = N(() => K(p).filter(j).map((Y) => Y.toUpperCase()), [
21
+ const { id: r, required: s, onBlur: o, onFocus: l, FieldLayout: c } = g(), { inputId: m, labelId: i, ariaDescribedBy: f } = q(), { regionalFormat: p } = V(), b = y(() => K(p).filter(j).map((Y) => Y.toUpperCase()), [
22
22
  p
23
- ]), L = u(e, n.Label), P = u(e, n.Description), _ = u(e, n.Error), F = {
23
+ ]), L = u(e, n.Label), T = u(e, n.Description), _ = u(e, n.Error), F = {
24
24
  [d.MONTH]: u(e, n.Month),
25
25
  [d.DAY]: u(e, n.Day),
26
26
  [d.YEAR]: u(e, n.Year)
@@ -39,16 +39,16 @@ const n = ({ children: e, className: a }) => {
39
39
  onFocus: l,
40
40
  className: a
41
41
  }, F[b[0]], F[b[1]], F[b[2]]),
42
- renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, _, P)
42
+ renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, _, T)
43
43
  });
44
44
  }, D = ({ children: e, className: a }) => {
45
- const { id: r, disabled: s, readOnly: o, showDateLabels: l, hidePlaceholder: c } = g(), { labelId: m } = y(d.MONTH), { partValue: i, partError: f, onPartChange: p } = O(d.MONTH), { t: b } = T(), [L, P] = x(!1), _ = ge(r), [F, Y] = x(null), G = c ? void 0 : b("field.date.placeholder.month"), Q = v((R) => {
45
+ const { id: r, disabled: s, readOnly: o, showDateLabels: l, hidePlaceholder: c } = g(), { labelId: m } = O(d.MONTH), { partValue: i, partError: f, onPartChange: p } = N(d.MONTH), { t: b } = S(), [L, T] = x(!1), _ = ge(r), [F, Y] = x(null), Q = c ? void 0 : b("field.date.placeholder.month"), G = v((R) => {
46
46
  o || p(typeof R == "string" ? R : "");
47
47
  }, [
48
48
  p,
49
49
  o
50
50
  ]), J = v((R) => {
51
- P(R && !o);
51
+ T(R && !o);
52
52
  }, [
53
53
  o
54
54
  ]), W = u(e, D.Label), X = u(e, D.Trigger), Z = u(e, D.Options);
@@ -65,10 +65,10 @@ const n = ({ children: e, className: a }) => {
65
65
  }, /* @__PURE__ */ t.createElement(ne, {
66
66
  "aria-labelledby": l ? m : void 0,
67
67
  value: i || null,
68
- onChange: Q,
68
+ onChange: G,
69
69
  isDisabled: s,
70
70
  isInvalid: f,
71
- placeholder: G,
71
+ placeholder: Q,
72
72
  isOpen: _ || L,
73
73
  onOpenChange: _ ? void 0 : J
74
74
  }, X, B(Z, {
@@ -78,7 +78,7 @@ const n = ({ children: e, className: a }) => {
78
78
  datePart: d.MONTH,
79
79
  className: e
80
80
  }), Ce = ({ children: e, className: a }) => {
81
- const { id: r, readOnly: s } = g(), { inputId: o } = y(d.MONTH), { partError: l, isFirstPart: c } = O(d.MONTH), m = w(null);
81
+ const { id: r, readOnly: s } = g(), { inputId: o } = O(d.MONTH), { partError: l, isFirstPart: c } = N(d.MONTH), m = w(null);
82
82
  return z(() => {
83
83
  var i;
84
84
  c && ((i = m.current) == null || i.focus());
@@ -90,15 +90,15 @@ const n = ({ children: e, className: a }) => {
90
90
  "data-invalid": l || void 0,
91
91
  "data-readonly": s || void 0
92
92
  }, /* @__PURE__ */ t.createElement(re, null), e);
93
- }, S = ({ children: e, className: a, ...r }) => {
94
- const { isForcedOpen: s } = r, { language: o } = V(), l = N(() => ue(o), [
93
+ }, P = ({ children: e, className: a, ...r }) => {
94
+ const { isForcedOpen: s } = r, { language: o } = V(), l = y(() => ue(o), [
95
95
  o
96
- ]), c = u(e, S.Option) ?? /* @__PURE__ */ t.createElement(S.Option, null);
96
+ ]), c = u(e, P.Option) ?? /* @__PURE__ */ t.createElement(P.Option, null);
97
97
  return /* @__PURE__ */ t.createElement(he, {
98
98
  className: a,
99
99
  containerPadding: 0,
100
100
  offset: 0
101
- }, /* @__PURE__ */ t.createElement(ye, {
101
+ }, /* @__PURE__ */ t.createElement(Oe, {
102
102
  isForcedOpen: s,
103
103
  autoFocus: s ? !1 : void 0
104
104
  }, l.map((m, i) => B(c, {
@@ -116,10 +116,10 @@ const n = ({ children: e, className: a }) => {
116
116
  };
117
117
  D.Label = Fe;
118
118
  D.Trigger = Ce;
119
- D.Options = S;
120
- S.Option = Me;
119
+ D.Options = P;
120
+ P.Option = Me;
121
121
  const C = ({ children: e, className: a }) => {
122
- const { disabled: r, readOnly: s, showDateLabels: o } = g(), { labelId: l } = y(d.DAY), { partValue: c, partError: m, onPartChange: i } = O(d.DAY), f = u(e, C.Label), p = u(e, C.Input);
122
+ const { disabled: r, readOnly: s, showDateLabels: o } = g(), { labelId: l } = O(d.DAY), { partValue: c, partError: m, onPartChange: i } = N(d.DAY), f = u(e, C.Label), p = u(e, C.Input);
123
123
  return /* @__PURE__ */ t.createElement("div", {
124
124
  className: a,
125
125
  "data-date-field": !0
@@ -135,7 +135,7 @@ const C = ({ children: e, className: a }) => {
135
135
  datePart: d.DAY,
136
136
  className: e
137
137
  }), Ae = ({ className: e }) => {
138
- const { id: a, hidePlaceholder: r } = g(), { inputId: s } = y(d.DAY), { isFirstPart: o } = O(d.DAY), { t: l } = T(), c = w(null), m = r ? void 0 : l("field.date.placeholder.day");
138
+ const { id: a, hidePlaceholder: r } = g(), { inputId: s } = O(d.DAY), { isFirstPart: o } = N(d.DAY), { t: l } = S(), c = w(null), m = r ? void 0 : l("field.date.placeholder.day");
139
139
  return z(() => {
140
140
  var i;
141
141
  o && ((i = c.current) == null || i.focus());
@@ -152,7 +152,7 @@ const C = ({ children: e, className: a }) => {
152
152
  C.Label = Re;
153
153
  C.Input = Ae;
154
154
  const M = ({ children: e, className: a }) => {
155
- const { disabled: r, readOnly: s, showDateLabels: o } = g(), { labelId: l } = y(d.YEAR), { partValue: c, partError: m, onPartChange: i } = O(d.YEAR), f = u(e, M.Label), p = u(e, M.Input);
155
+ const { disabled: r, readOnly: s, showDateLabels: o } = g(), { labelId: l } = O(d.YEAR), { partValue: c, partError: m, onPartChange: i } = N(d.YEAR), f = u(e, M.Label), p = u(e, M.Input);
156
156
  return /* @__PURE__ */ t.createElement("div", {
157
157
  className: a,
158
158
  "data-date-field": !0
@@ -164,11 +164,11 @@ const M = ({ children: e, className: a }) => {
164
164
  isReadOnly: s,
165
165
  isInvalid: m
166
166
  }, p));
167
- }, Se = ({ className: e }) => /* @__PURE__ */ t.createElement(H, {
167
+ }, Pe = ({ className: e }) => /* @__PURE__ */ t.createElement(H, {
168
168
  datePart: d.YEAR,
169
169
  className: e
170
- }), Te = ({ className: e }) => {
171
- const { id: a, hidePlaceholder: r } = g(), { inputId: s } = y(d.YEAR), { isFirstPart: o } = O(d.YEAR), { t: l } = T(), c = w(null), m = r ? void 0 : l("field.date.placeholder.year");
170
+ }), Se = ({ className: e }) => {
171
+ const { id: a, hidePlaceholder: r } = g(), { inputId: s } = O(d.YEAR), { isFirstPart: o } = N(d.YEAR), { t: l } = S(), c = w(null), m = r ? void 0 : l("field.date.placeholder.year");
172
172
  return z(() => {
173
173
  var i;
174
174
  o && ((i = c.current) == null || i.focus());
@@ -182,17 +182,17 @@ const M = ({ children: e, className: a }) => {
182
182
  "data-hook": d.YEAR
183
183
  });
184
184
  };
185
- M.Label = Se;
186
- M.Input = Te;
185
+ M.Label = Pe;
186
+ M.Input = Se;
187
187
  n.Label = fe;
188
188
  n.Month = D;
189
189
  n.Day = C;
190
190
  n.Year = M;
191
191
  n.Description = pe;
192
192
  n.Error = Ee;
193
- function y(e) {
193
+ function O(e) {
194
194
  const { inputId: a } = q();
195
- return N(() => {
195
+ return y(() => {
196
196
  const r = e.toLowerCase();
197
197
  return {
198
198
  inputId: `${a}-${r}-input`,
@@ -203,10 +203,10 @@ function y(e) {
203
203
  e
204
204
  ]);
205
205
  }
206
- function O(e) {
207
- const { value: a, onChange: r, hasError: s = !1 } = g(), { regionalFormat: o } = V(), l = N(() => se(a ?? ""), [
206
+ function N(e) {
207
+ const { value: a, onChange: r, hasError: s = !1 } = g(), { regionalFormat: o } = V(), l = y(() => se(a ?? ""), [
208
208
  a
209
- ]), c = N(() => oe(s, a ?? ""), [
209
+ ]), c = y(() => oe(s, a ?? ""), [
210
210
  a,
211
211
  s
212
212
  ]), m = l[e] || "", i = v((p) => {
@@ -216,7 +216,7 @@ function O(e) {
216
216
  r,
217
217
  l,
218
218
  e
219
- ]), f = N(() => K(o).filter(j).map((L) => L.toUpperCase())[0] === e, [
219
+ ]), f = y(() => K(o).filter(j).map((L) => L.toUpperCase())[0] === e, [
220
220
  o,
221
221
  e
222
222
  ]);
@@ -228,15 +228,15 @@ function O(e) {
228
228
  };
229
229
  }
230
230
  function H({ datePart: e, className: a }) {
231
- const { inputId: r, labelId: s } = y(e), { t: o } = T(), l = `field.date.label.${e.toLowerCase()}`, c = o(l);
231
+ const { inputId: r, labelId: s } = O(e), { t: o } = S(), l = `field.date.label.${e.toLowerCase()}`, c = o(l);
232
232
  return /* @__PURE__ */ t.createElement("label", {
233
233
  id: s,
234
234
  htmlFor: r,
235
235
  className: a
236
236
  }, c);
237
237
  }
238
- const Pe = "_fields_16lz4_1", Ye = "_month_16lz4_10", ve = "_day_16lz4_11", we = "_year_16lz4_12", Ve = "_dayInput_16lz4_28", ze = "_yearInput_16lz4_29", Be = "_monthTrigger_16lz4_33", He = "_monthOption_16lz4_53", I = {
239
- fields: Pe,
238
+ const Te = "_fields_16lz4_1", Ye = "_month_16lz4_10", ve = "_day_16lz4_11", we = "_year_16lz4_12", Ve = "_dayInput_16lz4_28", ze = "_yearInput_16lz4_29", Be = "_monthTrigger_16lz4_33", He = "_monthOption_16lz4_53", I = {
239
+ fields: Te,
240
240
  month: Ye,
241
241
  day: ve,
242
242
  year: we,
@@ -248,7 +248,7 @@ const Pe = "_fields_16lz4_1", Ye = "_month_16lz4_10", ve = "_day_16lz4_11", we =
248
248
  content: e,
249
249
  locale: a
250
250
  }), lt = () => {
251
- const e = De(I.monthTrigger), a = Ne(I.monthOption, _e), r = U(I.dayInput), s = U(I.yearInput);
251
+ const e = De(I.monthTrigger), a = ye(I.monthOption, _e), r = U(I.dayInput), s = U(I.yearInput);
252
252
  return /* @__PURE__ */ t.createElement(n, {
253
253
  className: I.fields
254
254
  }, /* @__PURE__ */ t.createElement(n.Label, {
@@ -261,7 +261,7 @@ const Pe = "_fields_16lz4_1", Ye = "_month_16lz4_10", ve = "_day_16lz4_11", we =
261
261
  className: h(A, E.label)
262
262
  }), /* @__PURE__ */ t.createElement(n.Month.Trigger, {
263
263
  className: e
264
- }, /* @__PURE__ */ t.createElement(Oe, {
264
+ }, /* @__PURE__ */ t.createElement(Ne, {
265
265
  className: E.dropdownIcon
266
266
  })), /* @__PURE__ */ t.createElement(n.Month.Options, {
267
267
  className: h(ie, E.selectPopover, E.dropdownPopover)
@@ -1,5 +1,5 @@
1
1
  import t from "react";
2
- import { D as e } from "./date-input-field-rac-H81WktJT.js";
2
+ import { D as e } from "./date-input-field-rac-BpBqS7LG.js";
3
3
  const o = () => /* @__PURE__ */ t.createElement(e, null);
4
4
  export {
5
5
  o as DateInputRAC
@@ -4,18 +4,18 @@ import e, { useState as A, useCallback as k, useContext as ee, useRef as O, 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 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 M, Select as w, SelectValue as x, ListBox as Y, ListBoxItem as B } from "react-aria-components";
7
- import { D as p, b9 as v, b6 as U, b1 as F, bb as pe, I as De, U as fe, n as Ce, v as ye, p as Se } from "./form-Dx1bK3Fi.js";
7
+ import { D as p, bh as h, be as U, b9 as F, bj as pe, I as De, U as fe, n as Ce, v as ye, p as Se } from "./form-BpJ4Lqbe.js";
8
8
  import { g as Te, c as P } from "./calendar.module-DnhTT4QT.js";
9
9
  import { f as E, a as T } from "./find-child-C60k4CxG.js";
10
- import { D as ve, E as he } from "./field-error-headless-Ct41F8cQ.js";
11
- import { L as Ne } from "./field-label-headless-DUqBV42_.js";
10
+ import { D as he, E as ve } from "./field-error-headless-Bu_4Huhb.js";
11
+ import { L as Ne } from "./field-label-headless-DkDmQPFG.js";
12
12
  import { D as be, N as L, S as V } from "./non-modal-popover-DtIMXHbe.js";
13
- import { a as _e, u as Ie } from "./use-dropdown-trigger-class-name-COJhxT4T.js";
14
- import { i as Fe } from "./date-availability-SErYnVtm.js";
13
+ import { a as _e, u as Ie } from "./use-dropdown-trigger-class-name-DapDPNX0.js";
14
+ import { i as Fe } from "./date-availability-G5IwqtRi.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 Ae } from "./custom-focus-class-_483Pkwp.js";
18
- import { s as D } from "./field-rac.module-DQxyEwK7.js";
18
+ import { s as D } from "./field-rac.module-BIBNQEOK.js";
19
19
  const Oe = [
20
20
  p.SUNDAY,
21
21
  p.MONDAY,
@@ -27,7 +27,7 @@ const Oe = [
27
27
  ], Pe = {
28
28
  availableDays: Oe
29
29
  }, a = ({ children: t }) => {
30
- const { id: r, value: l, onChange: n, disabled: i, required: c, onBlur: d, onFocus: o, FieldLayout: m, hasError: u, readOnly: f } = v(), { labelId: C } = U(), { regionalFormat: h } = F(), [s, N] = A(null), [K, W] = A(!1), b = _e(r), $ = k((z) => {
30
+ const { id: r, value: l, onChange: n, disabled: i, required: c, onBlur: d, onFocus: o, FieldLayout: m, hasError: u, readOnly: f } = h(), { labelId: C } = U(), { regionalFormat: v } = F(), [s, N] = A(null), [K, W] = A(!1), b = _e(r), $ = k((z) => {
31
31
  const J = We(z);
32
32
  n(J);
33
33
  }, [
@@ -37,7 +37,7 @@ const Oe = [
37
37
  fieldId: r,
38
38
  renderLabel: () => H,
39
39
  renderInput: () => /* @__PURE__ */ e.createElement(ae, {
40
- locale: h
40
+ locale: v
41
41
  }, /* @__PURE__ */ e.createElement("div", {
42
42
  ref: N,
43
43
  style: {
@@ -63,7 +63,7 @@ const Oe = [
63
63
  renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, Q, G)
64
64
  });
65
65
  }, Re = ({ children: t, className: r }) => {
66
- const { inputId: l, ariaDescribedBy: n } = U(), { hasError: i, disabled: c, readOnly: d } = v(), o = ee(oe), m = k((u) => {
66
+ const { inputId: l, ariaDescribedBy: n } = U(), { hasError: i, disabled: c, readOnly: d } = h(), o = ee(oe), m = k((u) => {
67
67
  if (!o || o.isOpen || c || d)
68
68
  return;
69
69
  const f = u.target;
@@ -84,7 +84,7 @@ const Oe = [
84
84
  onPointerDownCapture: m
85
85
  }, t);
86
86
  }, ke = ({ className: t }) => {
87
- const { id: r, placeholder: l } = v(), { regionalFormat: n } = F(), i = O(null), c = O(!1);
87
+ const { id: r, placeholder: l } = h(), { regionalFormat: n } = F(), i = O(null), c = O(!1);
88
88
  pe(() => {
89
89
  var o;
90
90
  (o = i.current) == null || o.focus();
@@ -114,14 +114,14 @@ const Oe = [
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: n } = l, { regionalFormat: i } = F(), { availability: c } = v(), d = _(() => Te(i), [
117
+ const { isForcedOpen: n } = l, { regionalFormat: i } = F(), { availability: c } = h(), d = _(() => Te(i), [
118
118
  i
119
119
  ]), o = _(() => (s) => {
120
120
  const N = new Date(s.year, s.month - 1, s.day);
121
121
  return !Fe(N, c || Pe);
122
122
  }, [
123
123
  c
124
- ]), m = E(t, g.Day) ?? /* @__PURE__ */ e.createElement(g.Day, null), u = E(t, g.PreviousTrigger), f = E(t, g.NextTrigger), C = E(t, g.MonthTrigger), h = E(t, g.YearTrigger);
124
+ ]), m = E(t, g.Day) ?? /* @__PURE__ */ e.createElement(g.Day, null), u = E(t, g.PreviousTrigger), f = E(t, g.NextTrigger), C = E(t, g.MonthTrigger), v = E(t, g.YearTrigger);
125
125
  return /* @__PURE__ */ e.createElement(L, {
126
126
  className: r,
127
127
  containerPadding: 0
@@ -139,7 +139,7 @@ const Oe = [
139
139
  popoverClassName: r
140
140
  })), /* @__PURE__ */ e.createElement(ue, {
141
141
  visibleYears: 100
142
- }, (s) => T(h, {
142
+ }, (s) => T(v, {
143
143
  ariaLabel: s["aria-label"],
144
144
  selectedKey: s.value,
145
145
  onSelectionChange: s.onChange,
@@ -207,8 +207,8 @@ a.Control = Re;
207
207
  a.Input = ke;
208
208
  a.Trigger = Me;
209
209
  a.Calendar = g;
210
- a.Description = ve;
211
- a.Error = he;
210
+ a.Description = he;
211
+ a.Error = ve;
212
212
  function Ke(t) {
213
213
  if (!t)
214
214
  return null;
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { D as r } from "./date-picker-field-rac-BwSKny80.js";
2
+ import { D as r } from "./date-picker-field-rac-BsR_0eAW.js";
3
3
  const a = () => /* @__PURE__ */ e.createElement(r, null);
4
4
  export {
5
5
  a as DatePickerRAC