@wix/form-elements 1.154.0 → 1.156.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.
- package/dist/component/{appointment-rac-BREodmO6.js → appointment-rac-BejJuk4y.js} +4 -4
- package/dist/component/{bookings-address-rac-CbzQuC4a.js → bookings-address-rac-CCbsyfYB.js} +1 -1
- package/dist/component/{bookings-email-rac-BABJu-ys.js → bookings-email-rac-DtkvYYB2.js} +1 -1
- package/dist/component/{bookings-first-name-rac-r41DbpiP.js → bookings-first-name-rac-D3djY0vF.js} +1 -1
- package/dist/component/{bookings-header-rac-CXUoOrjd.js → bookings-header-rac-D5aTKL9h.js} +1 -1
- package/dist/component/{bookings-last-name-rac-C8TTPUep.js → bookings-last-name-rac-ZTV1iaf5.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-BRytovY_.js → bookings-login-bar-rac-D6DJrmMG.js} +1 -1
- package/dist/component/{bookings-phone-rac-DbXmCZYj.js → bookings-phone-rac-BdZJSFNp.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-BqekFvWt.js → bookings-rich-text-rac-DcLCYKhH.js} +1 -1
- package/dist/component/{checkbox-field-rac-BKnBBi-8.js → checkbox-field-rac-BlDS05Oq.js} +4 -4
- package/dist/component/{checkbox-group-field-headless-BeAltANO.js → checkbox-group-field-headless-DccvpYjL.js} +3 -3
- package/dist/component/{checkbox-group-field-rac-DgmEyTvk.js → checkbox-group-field-rac-CfZuZtis.js} +4 -4
- package/dist/component/{checkbox-group-rac-BoTxBsvh.js → checkbox-group-rac-BRYmgtrd.js} +1 -1
- package/dist/component/{checkbox-rac-9NkG_e-P.js → checkbox-rac-BYGpZym_.js} +1 -1
- package/dist/component/{contacts-address-rac-CktWDQXv.js → contacts-address-rac-CZuQtpY5.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-vofZRF78.js → contacts-birthdate-rac-D7VSHZb5.js} +1 -1
- package/dist/component/{contacts-company-rac-FH4bqqmL.js → contacts-company-rac-CxY2Zmru.js} +1 -1
- package/dist/component/{contacts-email-rac-ClmCXT2W.js → contacts-email-rac-BsRuOGKl.js} +1 -1
- package/dist/component/{contacts-first-name-rac-CFXJjvMY.js → contacts-first-name-rac-QzDB5OOu.js} +1 -1
- package/dist/component/{contacts-last-name-rac-ClZ9GrKb.js → contacts-last-name-rac-Cgav6Wey.js} +1 -1
- package/dist/component/{contacts-phone-rac-DcszNrJB.js → contacts-phone-rac-B4CcLsPd.js} +1 -1
- package/dist/component/{contacts-position-rac-D2pjbq53.js → contacts-position-rac-D3ngVdPm.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-C1FCWS9h.js → contacts-subscribe-rac-NyrcQ7FY.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-c0dUDX-k.js → contacts-tax-id-rac-DkcFjidK.js} +1 -1
- package/dist/component/{date-availability-DaQTbmfi.js → date-availability-Bvxd9UT1.js} +1 -1
- package/dist/component/{date-input-field-rac-BksivOLF.js → date-input-field-rac-DJlB_y93.js} +82 -82
- package/dist/component/{date-input-rac-BUam5BwB.js → date-input-rac-BD89YOj1.js} +1 -1
- package/dist/component/{date-picker-field-rac-Bu4ktXeW.js → date-picker-field-rac-DBORRL0M.js} +6 -6
- package/dist/component/{date-picker-rac-DY348VYk.js → date-picker-rac-B4j1WE2E.js} +1 -1
- package/dist/component/{date-time-input-field-rac-CA6T9fAt.js → date-time-input-field-rac-yZMz4NK5.js} +36 -36
- package/dist/component/{date-time-input-rac-6VY6ZXPE.js → date-time-input-rac-BhAC7gU3.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-DtLn--qM.js → dext-checkbox-group-rac-plfVJAX4.js} +2 -2
- package/dist/component/{dext-checkbox-rac-BWJon7fC.js → dext-checkbox-rac-Do3tFCPC.js} +1 -1
- package/dist/component/{dext-date-picker-rac-Cp-lyCLE.js → dext-date-picker-rac-CUEpqD10.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-DUtw79WO.js → dext-date-time-input-rac-CRAbNDbW.js} +1 -1
- package/dist/component/{dext-dropdown-rac-9kpfZWls.js → dext-dropdown-rac-BJx9TIRz.js} +1 -1
- package/dist/component/{dext-email-rac-3TQoE8yZ.js → dext-email-rac-DpvOHvck.js} +1 -1
- package/dist/component/{dext-number-input-rac-XyUk4LN-.js → dext-number-input-rac-CZgkXMF8.js} +1 -1
- package/dist/component/{dext-phone-rac-BPQe0kWJ.js → dext-phone-rac-kHiTA89w.js} +1 -1
- package/dist/component/{dext-radio-group-rac-BftOrpSw.js → dext-radio-group-rac-D7r1Smme.js} +2 -2
- package/dist/component/{dext-rating-input-rac-C0qW9iPX.js → dext-rating-input-rac-C-ChMXNY.js} +1 -1
- package/dist/component/{dext-tags-rac-Crbg8RBu.js → dext-tags-rac-DpdE7ixp.js} +2 -2
- package/dist/component/{dext-text-area-rac-CnlTesSB.js → dext-text-area-rac-BJB2kqm4.js} +1 -1
- package/dist/component/{dext-text-input-rac-yoh7D_si.js → dext-text-input-rac-BTvbfP3X.js} +1 -1
- package/dist/component/{dext-url-input-rac-C3vqz8Qb.js → dext-url-input-rac-CZJD5r0_.js} +1 -1
- package/dist/component/{donation-rac-CctTkNl4.js → donation-rac-o2Hj3jcn.js} +5 -5
- package/dist/component/{dropdown-field-headless-CTitXCCI.js → dropdown-field-headless-beEnm9T4.js} +5 -5
- package/dist/component/{dropdown-field-rac-CralVcWU.js → dropdown-field-rac-DnZD2zj1.js} +3 -3
- package/dist/component/{dropdown-rac-CqUI_mQM.js → dropdown-rac-VfF262VC.js} +1 -1
- package/dist/component/{ecom-address-rac-BJpiKFYi.js → ecom-address-rac-eyNn03vu.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-DZoIt-xg.js → ecom-subscription-checkbox-rac-CCW-C1XZ.js} +2 -2
- package/dist/component/{email-input-field-rac-DYlWsVbu.js → email-input-field-rac-BB9m8hQ8.js} +3 -3
- package/dist/component/{events-repeater-rac-Cn4f_LUJ.js → events-repeater-rac-BZB2GkW6.js} +4 -4
- package/dist/component/{events-rsvp-rac-Cd1UuAJX.js → events-rsvp-rac-BgOCd-MP.js} +3 -3
- package/dist/component/{field-error-headless-BRkANfJD.js → field-error-headless-YQxvHPll.js} +1 -1
- package/dist/component/{field-label-headless-CfjNwIls.js → field-label-headless-BZJwsuwz.js} +1 -1
- package/dist/component/{file-upload-rac-C5grGSH_.js → file-upload-rac-BaUamuvp.js} +4 -4
- package/dist/component/{fixed-payment-rac-BNF97Cwx.js → fixed-payment-rac-AzTuwpKe.js} +3 -3
- package/dist/component/{form-CxcW-OZk.js → form-DPK7-EZv.js} +69 -69
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-tHP64ewc.js → header-field-rac-uH-B7lbB.js} +2 -2
- package/dist/component/{header-rac-BBOamXC4.js → header-rac-0WJvnej2.js} +1 -1
- package/dist/component/{image-choice-rac-CdAHcmIT.js → image-choice-rac-wtcuA_K_.js} +4 -4
- package/dist/component/{index-C2UfSlGS.js → index-BuBR2585.js} +4 -4
- package/dist/component/{index-hqZcODVc.js → index-VXS27zVa.js} +2 -2
- package/dist/component/{isObjectLike-CoIYr-Re.js → isObjectLike-B7XrgMod.js} +1 -1
- package/dist/component/{multiline-address-field-rac-BKaSmrUJ.js → multiline-address-field-rac-Cqnw2Pnc.js} +7 -7
- package/dist/component/{multiline-address-rac-COB0k0HE.js → multiline-address-rac-DMxbxFLJ.js} +1 -1
- package/dist/component/{number-input-field-rac-DHayV-8B.js → number-input-field-rac-DIVb4U_q.js} +4 -4
- package/dist/component/{number-input-rac-oRaLgMr3.js → number-input-rac-DA5xE_ML.js} +1 -1
- package/dist/component/{password-rac-DX_kds9A.js → password-rac-SQNL72BK.js} +4 -4
- package/dist/component/{payment-input-rac-C0H5Apf3.js → payment-input-rac-C8qOze0U.js} +4 -4
- package/dist/component/{phone-input-field-rac-BDP4tMBh.js → phone-input-field-rac-DDBceXj7.js} +6 -6
- package/dist/component/{phone-rac-kzqJ9hWX.js → phone-rac-C6sPA99S.js} +1 -1
- package/dist/component/{product-list-rac-CNS3WsXF.js → product-list-rac-BIGcteH9.js} +4 -4
- package/dist/component/{quiz-radio-group-rac-C0EIO51W.js → quiz-radio-group-rac-CwmeJ1Bu.js} +1 -1
- package/dist/component/{radio-button-module-classes-DbuOTF9y.js → radio-button-module-classes-B4wDjgg7.js} +3 -3
- package/dist/component/{radio-group-field-rac-CUKYt3EN.js → radio-group-field-rac-D4PS3V4K.js} +4 -4
- package/dist/component/{radio-group-rac-D4MY1Scz.js → radio-group-rac-CrxtI9ne.js} +1 -1
- package/dist/component/{rating-input-field-rac-D0H_jf_B.js → rating-input-field-rac-Bz-e4160.js} +4 -4
- package/dist/component/{rating-input-rac-BJ0fNxke.js → rating-input-rac-eyFPVocD.js} +1 -1
- package/dist/component/{rich-content-rac.module-oa-7Do_I.js → rich-content-rac.module-BDHxHfIN.js} +1 -1
- package/dist/component/{rich-text-field-rac-C7vFveC_.js → rich-text-field-rac-Cxr2SQrZ.js} +2 -2
- package/dist/component/{rich-text-rac-Zm8L_JN0.js → rich-text-rac-ir_V0_nK.js} +1 -1
- package/dist/component/{service-dropdown-rac-BzcAW8Bh.js → service-dropdown-rac-CitukGuQ.js} +4 -4
- package/dist/component/{services-multi-choice-rac-B31k-m9l.js → services-multi-choice-rac-0X-JCrJf.js} +5 -5
- package/dist/component/{signature-rac-CF9WEpm6.js → signature-rac-BXfWWg0O.js} +4 -4
- package/dist/component/{submit-button-rac-C5rwjw8w.js → submit-button-rac-CdCpHReS.js} +2 -2
- package/dist/component/{tags-field-rac-C0SDh9Rh.js → tags-field-rac-C_zQko1S.js} +5 -5
- package/dist/component/{tags-rac-Z3rCeuYN.js → tags-rac-CfLYiIFl.js} +1 -1
- package/dist/component/{text-area-field-rac-j_RYG--e.js → text-area-field-rac-B4O1X3h5.js} +4 -4
- package/dist/component/{text-area-rac-MLkNDflO.js → text-area-rac-BPVUO12d.js} +1 -1
- package/dist/component/{text-input-field-rac-BSr_vSYW.js → text-input-field-rac-8uxeWGbw.js} +3 -3
- package/dist/component/{text-input-headless-BLpxnylb.js → text-input-headless-Cu1WjpsX.js} +3 -3
- package/dist/component/{text-input-rac-BRu-hoEm.js → text-input-rac-DJuGfuwR.js} +1 -1
- package/dist/component/{time-input-rac-D_SFOMGL.js → time-input-rac-BLGw5D6U.js} +4 -4
- package/dist/component/{url-input-field-rac-BO9wvD0O.js → url-input-field-rac-CSlsixl_.js} +4 -4
- package/dist/component/{url-input-rac-D0vvFpds.js → url-input-rac-DDqQKgMU.js} +1 -1
- package/dist/component/{use-dropdown-trigger-class-name-Diq9OiQA.js → use-dropdown-trigger-class-name-CVIxf5Io.js} +3 -3
- package/dist/component/{use-element-state-class-name-3FbzhLJ7.js → use-element-state-class-name-D824XkYk.js} +1 -1
- package/dist/component/{use-hoverable-input-class-name-ZbZesY1F.js → use-hoverable-input-class-name-C7QeI5oY.js} +2 -2
- package/dist/component/{use-is-forced-open-dropdown-D0BimaBl.js → use-is-forced-open-dropdown-F53La73p.js} +1 -1
- package/dist/component/{use-service-options-base-ilQRjIoN.js → use-service-options-base-CcKiB-fR.js} +1 -1
- package/dist/component/use-text-input-class-name-yjYwDWHw.js +6 -0
- package/package.json +2 -2
- package/dist/component/use-text-input-class-name-C8uEoKDN.js +0 -6
|
@@ -6,12 +6,12 @@ import { E as lt } from "./error-icon-hZxQ6DEy.js";
|
|
|
6
6
|
import { g as ct, c as Ce } from "./calendar.module-CKCBG_Pg.js";
|
|
7
7
|
import { H as me } from "./custom-focus-class-_483Pkwp.js";
|
|
8
8
|
import { s as ue } from "./field-rac.module-DP0lkkEv.js";
|
|
9
|
-
import { bg as De, bf as mt, bk as Te, by as ut, bx as dt, bo as ie, bl as le, bq as ft, bn as Dt, F as Et, h as St, R as _t, a0 as pt, g as Nt, j as We, i as yt, m as At, k as bt, H as It, v as Lt, l as Ot } from "./form-
|
|
10
|
-
import { u as gt } from "./use-element-state-class-name-
|
|
9
|
+
import { bg as De, bf as mt, bk as Te, by as ut, bx as dt, bo as ie, bl as le, bq as ft, bn as Dt, F as Et, h as St, R as _t, a0 as pt, g as Nt, j as We, i as yt, m as At, k as bt, H as It, v as Lt, l as Ot } from "./form-DPK7-EZv.js";
|
|
10
|
+
import { u as gt } from "./use-element-state-class-name-D824XkYk.js";
|
|
11
11
|
import { ListBox as Tt, Button as ve, ListBoxItem as vt, RadioGroup as kt, RadioField as Rt, RadioButton as Mt } from "react-aria-components";
|
|
12
12
|
import { f as T, a as Ee } from "./find-child-C60k4CxG.js";
|
|
13
|
-
import { D as wt, E as Ft } from "./field-error-headless-
|
|
14
|
-
import { L as ht } from "./field-label-headless-
|
|
13
|
+
import { D as wt, E as Ft } from "./field-error-headless-YQxvHPll.js";
|
|
14
|
+
import { L as ht } from "./field-label-headless-BZJwsuwz.js";
|
|
15
15
|
import { F as Ct } from "./fieldset-headless-CD3fds9J.js";
|
|
16
16
|
import "date-fns";
|
|
17
17
|
import { V as Ge } from "./headless-styles-CmcyA_pi.js";
|
package/dist/component/{bookings-login-bar-rac-BRytovY_.js → bookings-login-bar-rac-D6DJrmMG.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import o from "react";
|
|
2
2
|
import E from "classnames";
|
|
3
|
-
import { bo as d, by as b, bg as f, bk as x, Q as p } from "./form-
|
|
3
|
+
import { bo as d, by as b, bg as f, bk as x, Q as p } from "./form-DPK7-EZv.js";
|
|
4
4
|
import { Button as L } from "react-aria-components";
|
|
5
5
|
import { a as m, f as g } from "./find-child-C60k4CxG.js";
|
|
6
6
|
const l = ({ children: n }) => {
|
|
@@ -2,16 +2,16 @@ import { RicosViewer as Xn } from "@wix/ricos/viewer";
|
|
|
2
2
|
import U from "classnames";
|
|
3
3
|
import b, { useMemo as $n, useRef as Jn, useCallback as Yn } from "react";
|
|
4
4
|
import { CheckboxField as Qn, CheckboxButton as Zn } from "react-aria-components";
|
|
5
|
-
import { aY as ei, bo as Zr, aG as Qr, aF as fn, by as ri, bg as ti, b4 as ai, bl as ni, bq as ii, n as si, a0 as oi, s as ui, aB as ci, H as fi, v as li, r as _i } from "./form-
|
|
5
|
+
import { aY as ei, bo as Zr, aG as Qr, aF as fn, by as ri, bg as ti, b4 as ai, bl as ni, bq as ii, n as si, a0 as oi, s as ui, aB as ci, H as fi, v as li, r as _i } from "./form-DPK7-EZv.js";
|
|
6
6
|
import { f as W, a as vi } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as hi, E as pi } from "./field-error-headless-
|
|
7
|
+
import { D as hi, E as pi } from "./field-error-headless-YQxvHPll.js";
|
|
8
8
|
import { Node_Type as di } from "@wix/ricos/schema";
|
|
9
|
-
import { c as re, r as $, e as S, a as J, d as yi, b as bi } from "./isObjectLike-
|
|
9
|
+
import { c as re, r as $, e as S, a as J, d as yi, b as bi } from "./isObjectLike-B7XrgMod.js";
|
|
10
10
|
import { S as gi } from "./selection-indicator-XQ8MYHUQ.js";
|
|
11
11
|
import { E as qi } from "./error-icon-hZxQ6DEy.js";
|
|
12
12
|
import { C as Ci } from "./checkbox-indicator-module-classes-akWZsZNn.js";
|
|
13
13
|
import { s as oe } from "./field-rac.module-DP0lkkEv.js";
|
|
14
|
-
import { u as Ai } from "./use-element-state-class-name-
|
|
14
|
+
import { u as Ai } from "./use-element-state-class-name-D824XkYk.js";
|
|
15
15
|
var ue, dt;
|
|
16
16
|
function mi() {
|
|
17
17
|
if (dt) return ue;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import r, { useMemo as y, useCallback as $, useRef as w, useState as W, useEffect as A } from "react";
|
|
2
2
|
import { CheckboxGroup as M, CheckboxField as j, CheckboxButton as z, TextField as J, Input as K } from "react-aria-components";
|
|
3
3
|
import { debounce as Q } from "ts-debounce";
|
|
4
|
-
import { bo as R, bl as U, by as X, bq as Y } from "./form-
|
|
4
|
+
import { bo as R, bl as U, by as X, bq as Y } from "./form-DPK7-EZv.js";
|
|
5
5
|
import { f as I, a as F } from "./find-child-C60k4CxG.js";
|
|
6
|
-
import { D as Z, E as ee } from "./field-error-headless-
|
|
7
|
-
import { L as te } from "./field-label-headless-
|
|
6
|
+
import { D as Z, E as ee } from "./field-error-headless-YQxvHPll.js";
|
|
7
|
+
import { L as te } from "./field-label-headless-BZJwsuwz.js";
|
|
8
8
|
import { F as ae } from "./fieldset-headless-CD3fds9J.js";
|
|
9
9
|
import { S as ne } from "./selection-indicator-XQ8MYHUQ.js";
|
|
10
10
|
const B = "Other", le = (e, t) => e.some((o) => !t.includes(o)), N = (e, t) => e.length > 0 && le(e, t), se = (e, t) => {
|
package/dist/component/{checkbox-group-field-rac-DgmEyTvk.js → checkbox-group-field-rac-CfZuZtis.js}
RENAMED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { RicosViewer as m } from "@wix/ricos/viewer";
|
|
2
2
|
import a from "classnames";
|
|
3
3
|
import e from "react";
|
|
4
|
-
import { C as t } from "./checkbox-group-field-headless-
|
|
4
|
+
import { C as t } from "./checkbox-group-field-headless-DccvpYjL.js";
|
|
5
5
|
import { E as n } from "./error-icon-hZxQ6DEy.js";
|
|
6
6
|
import { C as c } from "./checkbox-indicator-module-classes-akWZsZNn.js";
|
|
7
7
|
import { s } from "./field-rac.module-DP0lkkEv.js";
|
|
8
|
-
import { R as i, a0 as E, o as p, q as C, H as O, v as _, p as R } from "./form-
|
|
8
|
+
import { R as i, a0 as E, o as p, q as C, H as O, v as _, p as R } from "./form-DPK7-EZv.js";
|
|
9
9
|
import { o as l } from "./options-rac.module-_THNq6Qq.js";
|
|
10
|
-
import { u as I } from "./use-element-state-class-name-
|
|
11
|
-
import { u as L } from "./use-text-input-class-name-
|
|
10
|
+
import { u as I } from "./use-element-state-class-name-D824XkYk.js";
|
|
11
|
+
import { u as L } from "./use-text-input-class-name-yjYwDWHw.js";
|
|
12
12
|
const u = ({ content: o, locale: r }) => /* @__PURE__ */ e.createElement(m, {
|
|
13
13
|
content: o,
|
|
14
14
|
locale: r
|
package/dist/component/{date-input-field-rac-BksivOLF.js → date-input-field-rac-DJlB_y93.js}
RENAMED
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
import { RicosViewer as ae } from "@wix/ricos/viewer";
|
|
2
|
-
import
|
|
3
|
-
import t, { useMemo as N, useState as
|
|
2
|
+
import D from "classnames";
|
|
3
|
+
import t, { useMemo as N, useState as k, useCallback as Y, useRef as H } from "react";
|
|
4
4
|
import { UNSAFE_PortalProvider as ne } from "react-aria";
|
|
5
5
|
import { ListBoxItem as re, Select as oe, TextField as $, SelectValue as se, Input as z } from "react-aria-components";
|
|
6
|
-
import { bo as
|
|
7
|
-
import { f as p, a as
|
|
6
|
+
import { bo as y, bl as W, bg as w, aV as K, b6 as Q, aI as o, by as T, aP as le, aW as ce, bd as ie, bq as V, R as M, a0 as me, y as de, H as ue, v as pe } from "./form-DPK7-EZv.js";
|
|
7
|
+
import { f as p, a as B } 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-
|
|
10
|
-
import { L as
|
|
11
|
-
import { F as
|
|
12
|
-
import { N as
|
|
13
|
-
import { a as
|
|
14
|
-
import { V as Ne, a as Ce, u as _e } from "./use-dropdown-trigger-class-name-
|
|
9
|
+
import { D as fe, E as be } from "./field-error-headless-YQxvHPll.js";
|
|
10
|
+
import { L as De } from "./field-label-headless-BZJwsuwz.js";
|
|
11
|
+
import { F as he } from "./fieldset-headless-CD3fds9J.js";
|
|
12
|
+
import { N as ye, E as Ie, S as Oe } from "./non-modal-popover-D-u13tmp.js";
|
|
13
|
+
import { a as ge } from "./use-is-forced-open-dropdown-F53La73p.js";
|
|
14
|
+
import { V as Ne, a as Ce, u as _e } from "./use-dropdown-trigger-class-name-CVIxf5Io.js";
|
|
15
15
|
import { C as Le } from "./chevron-down-icon-CcpVm6B-.js";
|
|
16
16
|
import { E as Fe } from "./error-icon-hZxQ6DEy.js";
|
|
17
17
|
import { H as Re } from "./custom-focus-class-_483Pkwp.js";
|
|
18
18
|
import { s as f } from "./field-rac.module-DP0lkkEv.js";
|
|
19
|
-
import { u as q } from "./use-text-input-class-name-
|
|
19
|
+
import { u as q } from "./use-text-input-class-name-yjYwDWHw.js";
|
|
20
20
|
const Me = {
|
|
21
21
|
[o.MONTH]: "bday-month",
|
|
22
22
|
[o.DAY]: "bday-day",
|
|
23
23
|
[o.YEAR]: "bday-year"
|
|
24
|
-
},
|
|
25
|
-
const { id: r, required: s, onBlur: l, onFocus: c, FieldLayout: m } =
|
|
24
|
+
}, x = (e, a) => e === "bday" ? Me[a] : void 0, n = ({ children: e, className: a }) => {
|
|
25
|
+
const { id: r, required: s, onBlur: l, onFocus: c, FieldLayout: m } = y(), { inputId: i, labelId: d, ariaDescribedBy: u } = W(), { regionalFormat: E } = w(), b = N(() => K(E).filter(Q).map((S) => S.toUpperCase()), [
|
|
26
26
|
E
|
|
27
|
-
]), _ = p(e, n.Label),
|
|
27
|
+
]), _ = p(e, n.Label), v = p(e, n.Description), P = p(e, n.Error), I = {
|
|
28
28
|
[o.MONTH]: p(e, n.Month),
|
|
29
29
|
[o.DAY]: p(e, n.Day),
|
|
30
30
|
[o.YEAR]: p(e, n.Year)
|
|
31
31
|
};
|
|
32
32
|
return /* @__PURE__ */ t.createElement(m, {
|
|
33
33
|
fieldId: r,
|
|
34
|
-
renderLabel: () =>
|
|
34
|
+
renderLabel: () => B(_, {
|
|
35
35
|
as: "div"
|
|
36
36
|
}),
|
|
37
|
-
renderInput: () => /* @__PURE__ */ t.createElement(
|
|
37
|
+
renderInput: () => /* @__PURE__ */ t.createElement(he, {
|
|
38
38
|
id: i,
|
|
39
39
|
ariaLabelledBy: d,
|
|
40
40
|
ariaDescribedBy: u,
|
|
@@ -42,20 +42,20 @@ const Me = {
|
|
|
42
42
|
onBlur: l,
|
|
43
43
|
onFocus: c,
|
|
44
44
|
className: a
|
|
45
|
-
},
|
|
46
|
-
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null,
|
|
45
|
+
}, I[b[0]], I[b[1]], I[b[2]]),
|
|
46
|
+
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, P, v)
|
|
47
47
|
});
|
|
48
|
-
},
|
|
49
|
-
const { id: r, disabled: s, readOnly: l, showDateLabels: c, hidePlaceholder: m, autoComplete: i } =
|
|
48
|
+
}, O = ({ children: e, className: a }) => {
|
|
49
|
+
const { id: r, disabled: s, readOnly: l, showDateLabels: c, hidePlaceholder: m, autoComplete: i } = y(), { labelId: d } = g(o.MONTH), { partValue: u, partError: E, onPartChange: b } = C(o.MONTH), { t: _ } = T(), [v, P] = k(!1), I = ge(r), [S, j] = k(null), G = m ? Ie : _("field.date.placeholder.month"), J = Y((R) => {
|
|
50
50
|
l || b(typeof R == "string" ? R : "");
|
|
51
51
|
}, [
|
|
52
52
|
b,
|
|
53
53
|
l
|
|
54
|
-
]), X =
|
|
55
|
-
|
|
54
|
+
]), X = Y((R) => {
|
|
55
|
+
P(R && !l);
|
|
56
56
|
}, [
|
|
57
57
|
l
|
|
58
|
-
]), Z = p(e,
|
|
58
|
+
]), Z = p(e, O.Label), ee = p(e, O.Trigger), te = p(e, O.Options);
|
|
59
59
|
return /* @__PURE__ */ t.createElement("div", {
|
|
60
60
|
className: a,
|
|
61
61
|
"data-date-field": !0
|
|
@@ -65,31 +65,31 @@ const Me = {
|
|
|
65
65
|
display: "contents"
|
|
66
66
|
}
|
|
67
67
|
}), /* @__PURE__ */ t.createElement(ne, {
|
|
68
|
-
getContainer: () =>
|
|
68
|
+
getContainer: () => S
|
|
69
69
|
}, /* @__PURE__ */ t.createElement(oe, {
|
|
70
|
-
autoComplete:
|
|
70
|
+
autoComplete: x(i, o.MONTH),
|
|
71
71
|
"aria-labelledby": c ? d : void 0,
|
|
72
72
|
value: u || null,
|
|
73
73
|
onChange: J,
|
|
74
74
|
isDisabled: s,
|
|
75
75
|
isInvalid: E,
|
|
76
76
|
placeholder: G,
|
|
77
|
-
isOpen:
|
|
78
|
-
onOpenChange:
|
|
79
|
-
}, ee,
|
|
80
|
-
isForcedOpen:
|
|
77
|
+
isOpen: I || v,
|
|
78
|
+
onOpenChange: I ? void 0 : X
|
|
79
|
+
}, ee, B(te, {
|
|
80
|
+
isForcedOpen: I
|
|
81
81
|
}))));
|
|
82
|
-
}, Ae = ({ className: e }) => /* @__PURE__ */ t.createElement(
|
|
82
|
+
}, Ae = ({ className: e }) => /* @__PURE__ */ t.createElement(U, {
|
|
83
83
|
datePart: o.MONTH,
|
|
84
84
|
className: e
|
|
85
85
|
}), Te = ({ children: e, className: a }) => {
|
|
86
|
-
const { id: r, readOnly: s } =
|
|
87
|
-
return
|
|
86
|
+
const { id: r, readOnly: s } = y(), { inputId: l } = g(o.MONTH), { partError: c, isFirstPart: m } = C(o.MONTH), i = H(null);
|
|
87
|
+
return V(() => {
|
|
88
88
|
var d;
|
|
89
89
|
m && ((d = i.current) == null || d.focus({
|
|
90
90
|
preventScroll: !0
|
|
91
91
|
}));
|
|
92
|
-
}, r), /* @__PURE__ */ t.createElement(
|
|
92
|
+
}, r), /* @__PURE__ */ t.createElement(Oe, {
|
|
93
93
|
ref: i,
|
|
94
94
|
id: l,
|
|
95
95
|
className: a,
|
|
@@ -98,22 +98,22 @@ const Me = {
|
|
|
98
98
|
"data-readonly": s || void 0
|
|
99
99
|
}, /* @__PURE__ */ t.createElement(se, null), e);
|
|
100
100
|
}, A = ({ children: e, className: a, ...r }) => {
|
|
101
|
-
const { isForcedOpen: s } = r, { language: l } =
|
|
101
|
+
const { isForcedOpen: s } = r, { language: l } = w(), c = N(() => Ee(l), [
|
|
102
102
|
l
|
|
103
103
|
]), m = p(e, A.Option) ?? /* @__PURE__ */ t.createElement(A.Option, null);
|
|
104
|
-
return /* @__PURE__ */ t.createElement(
|
|
104
|
+
return /* @__PURE__ */ t.createElement(ye, {
|
|
105
105
|
className: a,
|
|
106
106
|
containerPadding: 0,
|
|
107
107
|
offset: 0
|
|
108
108
|
}, /* @__PURE__ */ t.createElement(Ne, {
|
|
109
109
|
isForcedOpen: s,
|
|
110
110
|
autoFocus: s ? !1 : void 0
|
|
111
|
-
}, c.map((i, d) =>
|
|
111
|
+
}, c.map((i, d) => B(m, {
|
|
112
112
|
key: String(d + 1),
|
|
113
113
|
value: String(d + 1),
|
|
114
114
|
label: i
|
|
115
115
|
}))));
|
|
116
|
-
},
|
|
116
|
+
}, ve = ({ className: e, ...a }) => {
|
|
117
117
|
const { value: r, label: s } = a;
|
|
118
118
|
return /* @__PURE__ */ t.createElement(re, {
|
|
119
119
|
className: e,
|
|
@@ -121,12 +121,12 @@ const Me = {
|
|
|
121
121
|
textValue: s
|
|
122
122
|
}, s);
|
|
123
123
|
};
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
A.Option =
|
|
124
|
+
O.Label = Ae;
|
|
125
|
+
O.Trigger = Te;
|
|
126
|
+
O.Options = A;
|
|
127
|
+
A.Option = ve;
|
|
128
128
|
const L = ({ children: e, className: a }) => {
|
|
129
|
-
const { disabled: r, readOnly: s, showDateLabels: l } =
|
|
129
|
+
const { disabled: r, readOnly: s, showDateLabels: l } = y(), { labelId: c } = g(o.DAY), { partValue: m, partError: i, onPartChange: d } = C(o.DAY), u = p(e, L.Label), E = p(e, L.Input);
|
|
130
130
|
return /* @__PURE__ */ t.createElement("div", {
|
|
131
131
|
className: a,
|
|
132
132
|
"data-date-field": !0
|
|
@@ -138,12 +138,12 @@ const L = ({ children: e, className: a }) => {
|
|
|
138
138
|
isReadOnly: s,
|
|
139
139
|
isInvalid: i
|
|
140
140
|
}, E));
|
|
141
|
-
},
|
|
141
|
+
}, Pe = ({ className: e }) => /* @__PURE__ */ t.createElement(U, {
|
|
142
142
|
datePart: o.DAY,
|
|
143
143
|
className: e
|
|
144
|
-
}),
|
|
145
|
-
const { id: a, hidePlaceholder: r, autoComplete: s } =
|
|
146
|
-
return
|
|
144
|
+
}), Se = ({ className: e }) => {
|
|
145
|
+
const { id: a, hidePlaceholder: r, autoComplete: s } = y(), { inputId: l } = g(o.DAY), { isFirstPart: c } = C(o.DAY), { t: m } = T(), i = H(null), d = r ? void 0 : m("field.date.placeholder.day");
|
|
146
|
+
return V(() => {
|
|
147
147
|
var u;
|
|
148
148
|
c && ((u = i.current) == null || u.focus({
|
|
149
149
|
preventScroll: !0
|
|
@@ -153,16 +153,16 @@ const L = ({ children: e, className: a }) => {
|
|
|
153
153
|
id: l,
|
|
154
154
|
className: e,
|
|
155
155
|
placeholder: d,
|
|
156
|
-
autoComplete:
|
|
156
|
+
autoComplete: x(s, o.DAY),
|
|
157
157
|
maxLength: 2,
|
|
158
158
|
inputMode: "numeric",
|
|
159
159
|
"data-hook": o.DAY
|
|
160
160
|
});
|
|
161
161
|
};
|
|
162
|
-
L.Label =
|
|
163
|
-
L.Input =
|
|
162
|
+
L.Label = Pe;
|
|
163
|
+
L.Input = Se;
|
|
164
164
|
const F = ({ children: e, className: a }) => {
|
|
165
|
-
const { disabled: r, readOnly: s, showDateLabels: l } =
|
|
165
|
+
const { disabled: r, readOnly: s, showDateLabels: l } = y(), { labelId: c } = g(o.YEAR), { partValue: m, partError: i, onPartChange: d } = C(o.YEAR), u = p(e, F.Label), E = p(e, F.Input);
|
|
166
166
|
return /* @__PURE__ */ t.createElement("div", {
|
|
167
167
|
className: a,
|
|
168
168
|
"data-date-field": !0
|
|
@@ -174,12 +174,12 @@ const F = ({ children: e, className: a }) => {
|
|
|
174
174
|
isReadOnly: s,
|
|
175
175
|
isInvalid: i
|
|
176
176
|
}, E));
|
|
177
|
-
},
|
|
177
|
+
}, Ye = ({ className: e }) => /* @__PURE__ */ t.createElement(U, {
|
|
178
178
|
datePart: o.YEAR,
|
|
179
179
|
className: e
|
|
180
180
|
}), He = ({ className: e }) => {
|
|
181
|
-
const { id: a, hidePlaceholder: r, autoComplete: s } =
|
|
182
|
-
return
|
|
181
|
+
const { id: a, hidePlaceholder: r, autoComplete: s } = y(), { inputId: l } = g(o.YEAR), { isFirstPart: c } = C(o.YEAR), { t: m } = T(), i = H(null), d = r ? void 0 : m("field.date.placeholder.year");
|
|
182
|
+
return V(() => {
|
|
183
183
|
var u;
|
|
184
184
|
c && ((u = i.current) == null || u.focus({
|
|
185
185
|
preventScroll: !0
|
|
@@ -189,21 +189,21 @@ const F = ({ children: e, className: a }) => {
|
|
|
189
189
|
id: l,
|
|
190
190
|
className: e,
|
|
191
191
|
placeholder: d,
|
|
192
|
-
autoComplete:
|
|
192
|
+
autoComplete: x(s, o.YEAR),
|
|
193
193
|
maxLength: 4,
|
|
194
194
|
inputMode: "numeric",
|
|
195
195
|
"data-hook": o.YEAR
|
|
196
196
|
});
|
|
197
197
|
};
|
|
198
|
-
F.Label =
|
|
198
|
+
F.Label = Ye;
|
|
199
199
|
F.Input = He;
|
|
200
|
-
n.Label =
|
|
201
|
-
n.Month =
|
|
200
|
+
n.Label = De;
|
|
201
|
+
n.Month = O;
|
|
202
202
|
n.Day = L;
|
|
203
203
|
n.Year = F;
|
|
204
204
|
n.Description = fe;
|
|
205
205
|
n.Error = be;
|
|
206
|
-
function
|
|
206
|
+
function g(e) {
|
|
207
207
|
const { inputId: a } = W();
|
|
208
208
|
return N(() => {
|
|
209
209
|
const r = e.toLowerCase();
|
|
@@ -217,12 +217,12 @@ function O(e) {
|
|
|
217
217
|
]);
|
|
218
218
|
}
|
|
219
219
|
function C(e) {
|
|
220
|
-
const { value: a, onChange: r, hasError: s = !1 } =
|
|
220
|
+
const { value: a, onChange: r, hasError: s = !1 } = y(), { regionalFormat: l } = w(), c = N(() => le(a ?? ""), [
|
|
221
221
|
a
|
|
222
222
|
]), m = N(() => ce(s, a ?? ""), [
|
|
223
223
|
a,
|
|
224
224
|
s
|
|
225
|
-
]), i = c[e] || "", d =
|
|
225
|
+
]), i = c[e] || "", d = Y((E) => {
|
|
226
226
|
const b = ie(E, e, c);
|
|
227
227
|
r(b);
|
|
228
228
|
}, [
|
|
@@ -240,62 +240,62 @@ function C(e) {
|
|
|
240
240
|
isFirstPart: u
|
|
241
241
|
};
|
|
242
242
|
}
|
|
243
|
-
function
|
|
244
|
-
const { inputId: r, labelId: s } =
|
|
243
|
+
function U({ datePart: e, className: a }) {
|
|
244
|
+
const { inputId: r, labelId: s } = g(e), { t: l } = T(), c = `field.date.label.${e.toLowerCase()}`, m = l(c);
|
|
245
245
|
return /* @__PURE__ */ t.createElement("label", {
|
|
246
246
|
id: s,
|
|
247
247
|
htmlFor: r,
|
|
248
248
|
className: a
|
|
249
249
|
}, m);
|
|
250
250
|
}
|
|
251
|
-
const
|
|
252
|
-
fields:
|
|
253
|
-
month:
|
|
254
|
-
day:
|
|
255
|
-
year:
|
|
256
|
-
dayInput:
|
|
257
|
-
yearInput:
|
|
251
|
+
const we = "_fields_1mv4t_1", Ve = "_month_1mv4t_10", Be = "_day_1mv4t_11", xe = "_year_1mv4t_12", Ue = "_dayInput_1mv4t_28", ke = "_yearInput_1mv4t_29", qe = "_monthTrigger_1mv4t_33", $e = "_monthOption_1mv4t_53", h = {
|
|
252
|
+
fields: we,
|
|
253
|
+
month: Ve,
|
|
254
|
+
day: Be,
|
|
255
|
+
year: xe,
|
|
256
|
+
dayInput: Ue,
|
|
257
|
+
yearInput: ke,
|
|
258
258
|
monthTrigger: qe,
|
|
259
259
|
monthOption: $e
|
|
260
260
|
}, ze = ({ content: e, locale: a }) => /* @__PURE__ */ t.createElement(ae, {
|
|
261
261
|
content: e,
|
|
262
262
|
locale: a
|
|
263
263
|
}), dt = () => {
|
|
264
|
-
const e = Ce(
|
|
264
|
+
const e = Ce(h.monthTrigger), a = _e(h.monthOption, Re), r = q(h.dayInput), s = q(h.yearInput);
|
|
265
265
|
return /* @__PURE__ */ t.createElement(n, {
|
|
266
|
-
className:
|
|
266
|
+
className: h.fields
|
|
267
267
|
}, /* @__PURE__ */ t.createElement(n.Label, {
|
|
268
|
-
className:
|
|
268
|
+
className: D(M, f.label)
|
|
269
269
|
}, /* @__PURE__ */ t.createElement(n.Label.Required, {
|
|
270
|
-
className:
|
|
270
|
+
className: D(me, f.requiredMark)
|
|
271
271
|
})), /* @__PURE__ */ t.createElement(n.Month, {
|
|
272
|
-
className:
|
|
272
|
+
className: h.month
|
|
273
273
|
}, /* @__PURE__ */ t.createElement(n.Month.Label, {
|
|
274
|
-
className:
|
|
274
|
+
className: D(M, f.label)
|
|
275
275
|
}), /* @__PURE__ */ t.createElement(n.Month.Trigger, {
|
|
276
276
|
className: e
|
|
277
277
|
}, /* @__PURE__ */ t.createElement(Le, {
|
|
278
278
|
className: f.dropdownIcon
|
|
279
279
|
})), /* @__PURE__ */ t.createElement(n.Month.Options, {
|
|
280
|
-
className:
|
|
280
|
+
className: D(de, f.selectPopover, f.dropdownPopover)
|
|
281
281
|
}, /* @__PURE__ */ t.createElement(n.Month.Options.Option, {
|
|
282
282
|
className: a
|
|
283
283
|
}))), /* @__PURE__ */ t.createElement(n.Day, {
|
|
284
|
-
className:
|
|
284
|
+
className: h.day
|
|
285
285
|
}, /* @__PURE__ */ t.createElement(n.Day.Label, {
|
|
286
|
-
className:
|
|
286
|
+
className: D(M, f.label)
|
|
287
287
|
}), /* @__PURE__ */ t.createElement(n.Day.Input, {
|
|
288
288
|
className: r
|
|
289
289
|
})), /* @__PURE__ */ t.createElement(n.Year, {
|
|
290
|
-
className:
|
|
290
|
+
className: h.year
|
|
291
291
|
}, /* @__PURE__ */ t.createElement(n.Year.Label, {
|
|
292
|
-
className:
|
|
292
|
+
className: D(M, f.label)
|
|
293
293
|
}), /* @__PURE__ */ t.createElement(n.Year.Input, {
|
|
294
294
|
className: s
|
|
295
295
|
})), /* @__PURE__ */ t.createElement(n.Error, {
|
|
296
|
-
className:
|
|
296
|
+
className: D(ue, f.error)
|
|
297
297
|
}, /* @__PURE__ */ t.createElement(Fe, null), /* @__PURE__ */ t.createElement(n.Error.Text, null)), /* @__PURE__ */ t.createElement(n.Description, {
|
|
298
|
-
className:
|
|
298
|
+
className: D(pe, f.description)
|
|
299
299
|
}, ze));
|
|
300
300
|
};
|
|
301
301
|
export {
|