@wix/form-elements 1.128.0 → 1.129.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-S9z3s23G.js → appointment-rac-BFrtR9Kx.js} +4 -4
- package/dist/component/{bookings-address-rac-B7wL2TjQ.js → bookings-address-rac-BiOaHkHb.js} +1 -1
- package/dist/component/{bookings-email-rac-T2lFRGpg.js → bookings-email-rac-AWVBomja.js} +1 -1
- package/dist/component/{bookings-first-name-rac-BBrENRBf.js → bookings-first-name-rac-BVxrEBSC.js} +1 -1
- package/dist/component/{bookings-header-rac-CWGMiMQz.js → bookings-header-rac-DZWoWz45.js} +1 -1
- package/dist/component/{bookings-last-name-rac-BQWvH_gm.js → bookings-last-name-rac-wsOIAERt.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-tFs0Vioz.js → bookings-login-bar-rac-BEFZtTeh.js} +1 -1
- package/dist/component/{bookings-phone-rac-BV_BTfAh.js → bookings-phone-rac-DClujcXK.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-8cD6QJBZ.js → bookings-rich-text-rac-ghEjDW-p.js} +1 -1
- package/dist/component/{checkbox-field-rac-YmG26i31.js → checkbox-field-rac-DvsNu9Rv.js} +4 -4
- package/dist/component/{checkbox-group-field-headless-CE8sEjZj.js → checkbox-group-field-headless-C9-35Ull.js} +3 -3
- package/dist/component/{checkbox-group-field-rac-CSuJRyk1.js → checkbox-group-field-rac-Cj09BgU-.js} +4 -4
- package/dist/component/{checkbox-group-rac-VDezm9js.js → checkbox-group-rac-Buxfb0mq.js} +1 -1
- package/dist/component/{checkbox-rac-DoC1ZqAq.js → checkbox-rac-DiHUcWo3.js} +1 -1
- package/dist/component/{contacts-address-rac-10AZNzhI.js → contacts-address-rac-P0OBiw6-.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-C7YDiyg2.js → contacts-birthdate-rac-IDz3KjEo.js} +1 -1
- package/dist/component/{contacts-company-rac-xQEtJ_-m.js → contacts-company-rac-CC_USKNp.js} +1 -1
- package/dist/component/{contacts-email-rac-Bryw_aCU.js → contacts-email-rac-BcRvtene.js} +1 -1
- package/dist/component/{contacts-first-name-rac-BXmuuhfG.js → contacts-first-name-rac-DsybqPgd.js} +1 -1
- package/dist/component/{contacts-last-name-rac-CVWVZO8I.js → contacts-last-name-rac-BOKeJmHo.js} +1 -1
- package/dist/component/{contacts-phone-rac-C-KSwisV.js → contacts-phone-rac-Dc_3ZdY_.js} +1 -1
- package/dist/component/{contacts-position-rac-od-5Gie5.js → contacts-position-rac-Bn5kybDQ.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-CCh9JcQx.js → contacts-subscribe-rac-BouQEOeS.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-DOM7TPQz.js → contacts-tax-id-rac-DJFrxRyu.js} +1 -1
- package/dist/component/{date-availability-G5IwqtRi.js → date-availability-CWfQIoX1.js} +1 -1
- package/dist/component/{date-input-field-rac-BpBqS7LG.js → date-input-field-rac-CP15ihpI.js} +86 -86
- package/dist/component/{date-input-rac-CQyqRqZK.js → date-input-rac-Bf0H1oiA.js} +1 -1
- package/dist/component/{date-picker-field-rac-BsR_0eAW.js → date-picker-field-rac-SOddu2Zu.js} +92 -91
- package/dist/component/{date-picker-rac-Bl2k363u.js → date-picker-rac-BdRbAhSB.js} +1 -1
- package/dist/component/date-time-input-field-rac-Bj_uDj6E.js +427 -0
- package/dist/component/{date-time-input-rac-CInfYWxN.js → date-time-input-rac-Mv_mEil2.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-E36LjEfn.js → dext-checkbox-group-rac-8kR2EZfL.js} +2 -2
- package/dist/component/{dext-checkbox-rac-DkMAv7aY.js → dext-checkbox-rac-B5CWQuVt.js} +1 -1
- package/dist/component/{dext-date-picker-rac-BNkJPlYo.js → dext-date-picker-rac-D_hbdOUB.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-BH3Q0pwI.js → dext-date-time-input-rac-DJa6HIBI.js} +1 -1
- package/dist/component/{dext-dropdown-rac-DkF_DD08.js → dext-dropdown-rac-rUST_4lA.js} +1 -1
- package/dist/component/{dext-email-rac-0x_DN0_O.js → dext-email-rac-BN1-DKDv.js} +1 -1
- package/dist/component/{dext-number-input-rac-UiIENkK3.js → dext-number-input-rac-CjoV2Zr-.js} +1 -1
- package/dist/component/{dext-phone-rac-BZFK4Uq7.js → dext-phone-rac-BZK-MfUB.js} +1 -1
- package/dist/component/{dext-radio-group-rac-CBAdO7kt.js → dext-radio-group-rac-CdSOS1sE.js} +2 -2
- package/dist/component/{dext-rating-input-rac-fqR1sriq.js → dext-rating-input-rac-DAZjknQn.js} +1 -1
- package/dist/component/{dext-tags-rac-mDuiUs9L.js → dext-tags-rac-ButsCV5O.js} +2 -2
- package/dist/component/{dext-text-area-rac-C-8jKWpK.js → dext-text-area-rac-TKwYp5Cp.js} +1 -1
- package/dist/component/{dext-text-input-rac-CCBAM9YO.js → dext-text-input-rac-Clcifgwu.js} +1 -1
- package/dist/component/{dext-url-input-rac-C4_8Yk0p.js → dext-url-input-rac-1oQFTxHV.js} +1 -1
- package/dist/component/{donation-rac-BwDHypVJ.js → donation-rac-Bh_D5aEJ.js} +5 -5
- package/dist/component/dropdown-field-headless-C-rtyAEo.js +91 -0
- package/dist/component/{dropdown-field-rac-DduQJ9rO.js → dropdown-field-rac-Bo3lqJDR.js} +4 -4
- package/dist/component/{dropdown-rac-BhhECLoH.js → dropdown-rac-C29h60zI.js} +1 -1
- package/dist/component/{ecom-address-rac-BJ1nnEVL.js → ecom-address-rac-gs7OAQTj.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-4m1XMTDY.js → ecom-subscription-checkbox-rac-CI9zbJqB.js} +2 -2
- package/dist/component/{email-input-field-rac-bPEcgidt.js → email-input-field-rac-D75vjW_1.js} +3 -3
- package/dist/component/{events-repeater-rac-CujTGEHx.js → events-repeater-rac-UgCJlo2O.js} +4 -4
- package/dist/component/{events-rsvp-rac-BPqr_aY9.js → events-rsvp-rac-D5YhJy0C.js} +3 -3
- package/dist/component/{field-error-headless-Bu_4Huhb.js → field-error-headless-44vAUpwr.js} +1 -1
- package/dist/component/{field-label-headless-DkDmQPFG.js → field-label-headless-Cfo9v3VS.js} +1 -1
- package/dist/component/{file-upload-rac-DmOQrGe8.js → file-upload-rac-B-rYIzhu.js} +4 -4
- package/dist/component/{fixed-payment-rac-CDsddKrV.js → fixed-payment-rac-CkbmX7hl.js} +3 -3
- package/dist/component/{form-BpJ4Lqbe.js → form-tScYihAT.js} +69 -69
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-Cr1FVQdq.js → header-field-rac-BtKN5X7s.js} +2 -2
- package/dist/component/{header-rac-CvAZsqDL.js → header-rac-pmryP48d.js} +1 -1
- package/dist/component/{image-choice-rac-D_EKrD73.js → image-choice-rac-ByBjTccP.js} +4 -4
- package/dist/component/{index-DxsHfkik.js → index-DXsujvrm.js} +4 -4
- package/dist/component/{index-Tnke1N8m.js → index-Dyso3MNS.js} +2 -2
- package/dist/component/{isObjectLike-CMWsWjX8.js → isObjectLike-CUj2YjST.js} +1 -1
- package/dist/component/{multiline-address-field-rac-BMeMP7J6.js → multiline-address-field-rac-CkifK7lO.js} +7 -7
- package/dist/component/{multiline-address-rac-CFprfFXm.js → multiline-address-rac-DfnDSoTY.js} +1 -1
- package/dist/component/non-modal-popover-D-u13tmp.js +64 -0
- package/dist/component/{number-input-field-rac-CaHySxYH.js → number-input-field-rac-BG8cRLXY.js} +4 -4
- package/dist/component/{number-input-rac-BezfoU8h.js → number-input-rac-Byuz2Nub.js} +1 -1
- package/dist/component/{password-rac-_wwZFd67.js → password-rac-BOus-ku5.js} +4 -4
- package/dist/component/{payment-input-rac-CWrSvBDp.js → payment-input-rac-D-CZ6cKL.js} +4 -4
- package/dist/component/{phone-input-field-rac-R3LYdPIs.js → phone-input-field-rac-DCfc-MrP.js} +7 -7
- package/dist/component/{phone-rac-D6uILVRw.js → phone-rac-1J-t9-Og.js} +1 -1
- package/dist/component/{product-list-rac-D3WTfC9k.js → product-list-rac-CJ1YZvV9.js} +4 -4
- package/dist/component/{quiz-radio-group-rac-B6T7eedk.js → quiz-radio-group-rac-C_JnWUd3.js} +1 -1
- package/dist/component/{radio-button-module-classes-D8Jm-Q6u.js → radio-button-module-classes-DWh_AiLg.js} +3 -3
- package/dist/component/{radio-group-field-rac-R5onZzJd.js → radio-group-field-rac-Cp48ayde.js} +4 -4
- package/dist/component/{radio-group-rac-DUPHR4tK.js → radio-group-rac-B7jR2Rb-.js} +1 -1
- package/dist/component/{rating-input-field-rac-C9GpwuRO.js → rating-input-field-rac-CHEWLp0k.js} +4 -4
- package/dist/component/{rating-input-rac-Iv_2PVqP.js → rating-input-rac-BX4osXZU.js} +1 -1
- package/dist/component/{rich-content-rac.module-Det3BKrI.js → rich-content-rac.module-Ce08oqQ9.js} +1 -1
- package/dist/component/{rich-text-field-rac-DnBtp2d_.js → rich-text-field-rac-Bi1SDfiU.js} +2 -2
- package/dist/component/{rich-text-rac-CXzxap1G.js → rich-text-rac-DdT8jmAf.js} +1 -1
- package/dist/component/{service-dropdown-rac-CVyd2HYC.js → service-dropdown-rac-DPeHyyz_.js} +5 -5
- package/dist/component/{services-multi-choice-rac-BY-W0xIt.js → services-multi-choice-rac-CKdjXJR8.js} +5 -5
- package/dist/component/{signature-rac-BojdPJhg.js → signature-rac-ffVbFXfs.js} +4 -4
- package/dist/component/{submit-button-rac-Q7KKQbiL.js → submit-button-rac-C55AG9QQ.js} +2 -2
- package/dist/component/{tags-field-rac-CbmR6gi4.js → tags-field-rac-BO2-TOy4.js} +5 -5
- package/dist/component/{tags-rac-hJo0tMVR.js → tags-rac-BkCC7NCe.js} +1 -1
- package/dist/component/{text-area-field-rac-DHQqkqtu.js → text-area-field-rac-BwYibo91.js} +4 -4
- package/dist/component/{text-area-rac-BTXxfWyK.js → text-area-rac-DZdY4txw.js} +1 -1
- package/dist/component/{text-input-field-rac-BVTBYjMM.js → text-input-field-rac-WiCBhW6i.js} +3 -3
- package/dist/component/{text-input-headless-Dk_0y9U-.js → text-input-headless-B3KeulEf.js} +3 -3
- package/dist/component/{text-input-rac-DIwGn0WI.js → text-input-rac-BIyCqBJv.js} +1 -1
- package/dist/component/{time-input-rac-ClyPOKOH.js → time-input-rac-CC4UwoED.js} +65 -64
- package/dist/component/{url-input-field-rac-BhPzHWTI.js → url-input-field-rac-OppUVl3A.js} +4 -4
- package/dist/component/{url-input-rac-COD7T5wo.js → url-input-rac-B5_eh6hN.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-CTDQ4YIC.js → use-dropdown-option-class-name-Bgp-eVle.js} +2 -2
- package/dist/component/{use-dropdown-trigger-class-name-DapDPNX0.js → use-dropdown-trigger-class-name-BjjdE7MT.js} +2 -2
- package/dist/component/{use-element-state-class-name-BU86oHkX.js → use-element-state-class-name-BXqvGrEm.js} +1 -1
- package/dist/component/{use-hoverable-input-class-name-DWkmQfPd.js → use-hoverable-input-class-name-CFgJ095f.js} +2 -2
- package/dist/component/{use-service-options-base-jkecu8jY.js → use-service-options-base-Cspzf1ks.js} +1 -1
- package/dist/component/use-text-input-class-name-DUHXnnCn.js +6 -0
- package/package.json +2 -2
- package/dist/component/date-time-input-field-rac-C5TC2nsm.js +0 -426
- package/dist/component/dropdown-field-headless-CspX2zV_.js +0 -91
- package/dist/component/non-modal-popover-DtIMXHbe.js +0 -63
- package/dist/component/use-text-input-class-name-CNTXVb7N.js +0 -6
|
@@ -6,12 +6,12 @@ import { E as it } from "./error-icon-hZxQ6DEy.js";
|
|
|
6
6
|
import { g as lt, c as Ce } from "./calendar.module-DnhTT4QT.js";
|
|
7
7
|
import { H as ue } from "./custom-focus-class-_483Pkwp.js";
|
|
8
8
|
import { s as de } from "./field-rac.module-BIBNQEOK.js";
|
|
9
|
-
import { b9 as De, b8 as ct, bd as Te, br as mt, bq as ut, bh as ce, be as Ee, bj as dt, bg as ft, F as Dt, I as Et, U as St, g as pt, G as We, o as _t, V as yt, v as Lt, p as At, a6 as Nt } from "./form-
|
|
10
|
-
import { u as bt } from "./use-element-state-class-name-
|
|
9
|
+
import { b9 as De, b8 as ct, bd as Te, br as mt, bq as ut, bh as ce, be as Ee, bj as dt, bg as ft, F as Dt, I as Et, U as St, g as pt, G as We, o as _t, V as yt, v as Lt, p as At, a6 as Nt } from "./form-tScYihAT.js";
|
|
10
|
+
import { u as bt } from "./use-element-state-class-name-BXqvGrEm.js";
|
|
11
11
|
import { ListBox as It, Button as ke, ListBoxItem as Ot, RadioGroup as gt, RadioField as Tt, RadioButton as kt } from "react-aria-components";
|
|
12
12
|
import { f as T, a as le } from "./find-child-C60k4CxG.js";
|
|
13
|
-
import { D as vt, E as Rt } from "./field-error-headless-
|
|
14
|
-
import { L as wt } from "./field-label-headless-
|
|
13
|
+
import { D as vt, E as Rt } from "./field-error-headless-44vAUpwr.js";
|
|
14
|
+
import { L as wt } from "./field-label-headless-Cfo9v3VS.js";
|
|
15
15
|
import { F as Ft } 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-tFs0Vioz.js → bookings-login-bar-rac-BEFZtTeh.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import o from "react";
|
|
2
2
|
import d from "classnames";
|
|
3
|
-
import { bh as E, br as b, b9 as f, bd as p, z as L } from "./form-
|
|
3
|
+
import { bh as E, br as b, b9 as f, bd as p, z as L } from "./form-tScYihAT.js";
|
|
4
4
|
import { Button as _ } from "react-aria-components";
|
|
5
5
|
import { a as i, 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 Zn, CheckboxButton as Qn } from "react-aria-components";
|
|
5
|
-
import { aR as ei, bh as Qr, az as Zr, ay as fn, br as ri, b9 as ti, aZ as ai, be as ni, bj as ii, h as si, U as oi, m as ui, au as ci, v as fi, p as li, l as _i } from "./form-
|
|
5
|
+
import { aR as ei, bh as Qr, az as Zr, ay as fn, br as ri, b9 as ti, aZ as ai, be as ni, bj as ii, h as si, U as oi, m as ui, au as ci, v as fi, p as li, l as _i } from "./form-tScYihAT.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-44vAUpwr.js";
|
|
8
8
|
import { Node_Type as di } from "@wix/ricos/schema";
|
|
9
|
-
import { c as re, r as $, e as R, a as J, d as yi, b as bi } from "./isObjectLike-
|
|
9
|
+
import { c as re, r as $, e as R, a as J, d as yi, b as bi } from "./isObjectLike-CUj2YjST.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-Bqo0QILF.js";
|
|
13
13
|
import { s as oe } from "./field-rac.module-BIBNQEOK.js";
|
|
14
|
-
import { u as Ai } from "./use-element-state-class-name-
|
|
14
|
+
import { u as Ai } from "./use-element-state-class-name-BXqvGrEm.js";
|
|
15
15
|
var ue, dt;
|
|
16
16
|
function mi() {
|
|
17
17
|
if (dt) return ue;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import o, { useMemo as x, useCallback as $, useRef as w, useState as W, useEffect as j } from "react";
|
|
2
2
|
import { CheckboxGroup as A, CheckboxField as M, CheckboxButton as z, TextField as J, Input as K } from "react-aria-components";
|
|
3
3
|
import { debounce as Q } from "ts-debounce";
|
|
4
|
-
import { bh as R, be as U, br as X, bj as Y } from "./form-
|
|
4
|
+
import { bh as R, be as U, br as X, bj as Y } from "./form-tScYihAT.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-44vAUpwr.js";
|
|
7
|
+
import { L as te } from "./field-label-headless-Cfo9v3VS.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((r) => !t.includes(r)), N = (e, t) => e.length > 0 && le(e, t), se = (e, t) => {
|
package/dist/component/{checkbox-group-field-rac-CSuJRyk1.js → checkbox-group-field-rac-Cj09BgU-.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-C9-35Ull.js";
|
|
5
5
|
import { E as n } from "./error-icon-hZxQ6DEy.js";
|
|
6
6
|
import { C as c } from "./checkbox-indicator-module-classes-Bqo0QILF.js";
|
|
7
7
|
import { s } from "./field-rac.module-BIBNQEOK.js";
|
|
8
|
-
import { I as i, U as E, i as p, k as C, v as O, p as _, j as I } from "./form-
|
|
8
|
+
import { I as i, U as E, i as p, k as C, v as O, p as _, j as I } from "./form-tScYihAT.js";
|
|
9
9
|
import { o as l } from "./options-rac.module-_THNq6Qq.js";
|
|
10
|
-
import { u as L } from "./use-element-state-class-name-
|
|
11
|
-
import { u as R } from "./use-text-input-class-name-
|
|
10
|
+
import { u as L } from "./use-element-state-class-name-BXqvGrEm.js";
|
|
11
|
+
import { u as R } from "./use-text-input-class-name-DUHXnnCn.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-BpBqS7LG.js → date-input-field-rac-CP15ihpI.js}
RENAMED
|
@@ -3,27 +3,27 @@ import h from "classnames";
|
|
|
3
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 { bh as
|
|
6
|
+
import { bh as D, be as q, b9 as V, aO as K, a$ as j, aB as m, br as S, aI as se, aP as oe, b6 as le, bj as z, I as P, U as ce, K as ie, v as me, p as de } from "./form-tScYihAT.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-
|
|
10
|
-
import { L as fe } from "./field-label-headless-
|
|
9
|
+
import { D as pe, E as Ee } from "./field-error-headless-44vAUpwr.js";
|
|
10
|
+
import { L as fe } from "./field-label-headless-Cfo9v3VS.js";
|
|
11
11
|
import { F as be } from "./fieldset-headless-CD3fds9J.js";
|
|
12
|
-
import { N as he,
|
|
13
|
-
import { a as ge, u as
|
|
14
|
-
import { V as
|
|
15
|
-
import { C as
|
|
16
|
-
import { E as
|
|
17
|
-
import { H as
|
|
12
|
+
import { N as he, E as Ie, S as De } from "./non-modal-popover-D-u13tmp.js";
|
|
13
|
+
import { a as ge, u as Oe } from "./use-dropdown-trigger-class-name-BjjdE7MT.js";
|
|
14
|
+
import { V as ye, u as Ne } from "./use-dropdown-option-class-name-Bgp-eVle.js";
|
|
15
|
+
import { C as Le } from "./chevron-down-icon-CcpVm6B-.js";
|
|
16
|
+
import { E as _e } from "./error-icon-hZxQ6DEy.js";
|
|
17
|
+
import { H as Ce } from "./custom-focus-class-_483Pkwp.js";
|
|
18
18
|
import { s as E } from "./field-rac.module-BIBNQEOK.js";
|
|
19
|
-
import { u as U } from "./use-text-input-class-name-
|
|
19
|
+
import { u as U } from "./use-text-input-class-name-DUHXnnCn.js";
|
|
20
20
|
const n = ({ children: e, className: a }) => {
|
|
21
|
-
const { id: r, required: s, onBlur: o, onFocus: l, FieldLayout: c } =
|
|
21
|
+
const { id: r, required: s, onBlur: o, onFocus: l, FieldLayout: c } = D(), { inputId: d, 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), T = u(e, n.Description), _ = u(e, n.Error),
|
|
24
|
-
[
|
|
25
|
-
[
|
|
26
|
-
[
|
|
23
|
+
]), L = u(e, n.Label), T = u(e, n.Description), _ = u(e, n.Error), C = {
|
|
24
|
+
[m.MONTH]: u(e, n.Month),
|
|
25
|
+
[m.DAY]: u(e, n.Day),
|
|
26
|
+
[m.YEAR]: u(e, n.Year)
|
|
27
27
|
};
|
|
28
28
|
return /* @__PURE__ */ t.createElement(c, {
|
|
29
29
|
fieldId: r,
|
|
@@ -31,18 +31,18 @@ const n = ({ children: e, className: a }) => {
|
|
|
31
31
|
as: "div"
|
|
32
32
|
}),
|
|
33
33
|
renderInput: () => /* @__PURE__ */ t.createElement(be, {
|
|
34
|
-
id:
|
|
34
|
+
id: d,
|
|
35
35
|
ariaLabelledBy: i,
|
|
36
36
|
ariaDescribedBy: f,
|
|
37
37
|
required: s,
|
|
38
38
|
onBlur: o,
|
|
39
39
|
onFocus: l,
|
|
40
40
|
className: a
|
|
41
|
-
},
|
|
41
|
+
}, C[b[0]], C[b[1]], C[b[2]]),
|
|
42
42
|
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, _, T)
|
|
43
43
|
});
|
|
44
|
-
},
|
|
45
|
-
const { id: r, disabled: s, readOnly: o, showDateLabels: l, hidePlaceholder: c } =
|
|
44
|
+
}, g = ({ children: e, className: a }) => {
|
|
45
|
+
const { id: r, disabled: s, readOnly: o, showDateLabels: l, hidePlaceholder: c } = D(), { labelId: d } = O(m.MONTH), { partValue: i, partError: f, onPartChange: p } = N(m.MONTH), { t: b } = S(), [L, T] = x(!1), _ = ge(r), [C, Y] = x(null), Q = c ? Ie : b("field.date.placeholder.month"), G = v((R) => {
|
|
46
46
|
o || p(typeof R == "string" ? R : "");
|
|
47
47
|
}, [
|
|
48
48
|
p,
|
|
@@ -51,7 +51,7 @@ const n = ({ children: e, className: a }) => {
|
|
|
51
51
|
T(R && !o);
|
|
52
52
|
}, [
|
|
53
53
|
o
|
|
54
|
-
]), W = u(e,
|
|
54
|
+
]), W = u(e, g.Label), X = u(e, g.Trigger), Z = u(e, g.Options);
|
|
55
55
|
return /* @__PURE__ */ t.createElement("div", {
|
|
56
56
|
className: a,
|
|
57
57
|
"data-date-field": !0
|
|
@@ -61,9 +61,9 @@ const n = ({ children: e, className: a }) => {
|
|
|
61
61
|
display: "contents"
|
|
62
62
|
}
|
|
63
63
|
}), /* @__PURE__ */ t.createElement(te, {
|
|
64
|
-
getContainer: () =>
|
|
64
|
+
getContainer: () => C
|
|
65
65
|
}, /* @__PURE__ */ t.createElement(ne, {
|
|
66
|
-
"aria-labelledby": l ?
|
|
66
|
+
"aria-labelledby": l ? d : void 0,
|
|
67
67
|
value: i || null,
|
|
68
68
|
onChange: G,
|
|
69
69
|
isDisabled: s,
|
|
@@ -75,38 +75,38 @@ const n = ({ children: e, className: a }) => {
|
|
|
75
75
|
isForcedOpen: _
|
|
76
76
|
}))));
|
|
77
77
|
}, Fe = ({ className: e }) => /* @__PURE__ */ t.createElement(H, {
|
|
78
|
-
datePart:
|
|
78
|
+
datePart: m.MONTH,
|
|
79
79
|
className: e
|
|
80
|
-
}),
|
|
81
|
-
const { id: r, readOnly: s } =
|
|
80
|
+
}), Me = ({ children: e, className: a }) => {
|
|
81
|
+
const { id: r, readOnly: s } = D(), { inputId: o } = O(m.MONTH), { partError: l, isFirstPart: c } = N(m.MONTH), d = w(null);
|
|
82
82
|
return z(() => {
|
|
83
83
|
var i;
|
|
84
|
-
c && ((i =
|
|
85
|
-
}, r), /* @__PURE__ */ t.createElement(
|
|
86
|
-
ref:
|
|
84
|
+
c && ((i = d.current) == null || i.focus());
|
|
85
|
+
}, r), /* @__PURE__ */ t.createElement(De, {
|
|
86
|
+
ref: d,
|
|
87
87
|
id: o,
|
|
88
88
|
className: a,
|
|
89
|
-
"data-hook":
|
|
89
|
+
"data-hook": m.MONTH,
|
|
90
90
|
"data-invalid": l || void 0,
|
|
91
91
|
"data-readonly": s || void 0
|
|
92
92
|
}, /* @__PURE__ */ t.createElement(re, null), e);
|
|
93
|
-
},
|
|
93
|
+
}, A = ({ children: e, className: a, ...r }) => {
|
|
94
94
|
const { isForcedOpen: s } = r, { language: o } = V(), l = y(() => ue(o), [
|
|
95
95
|
o
|
|
96
|
-
]), c = u(e,
|
|
96
|
+
]), c = u(e, A.Option) ?? /* @__PURE__ */ t.createElement(A.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(
|
|
101
|
+
}, /* @__PURE__ */ t.createElement(ye, {
|
|
102
102
|
isForcedOpen: s,
|
|
103
103
|
autoFocus: s ? !1 : void 0
|
|
104
|
-
}, l.map((
|
|
104
|
+
}, l.map((d, i) => B(c, {
|
|
105
105
|
key: String(i + 1),
|
|
106
106
|
value: String(i + 1),
|
|
107
|
-
label:
|
|
107
|
+
label: d
|
|
108
108
|
}))));
|
|
109
|
-
},
|
|
109
|
+
}, Re = ({ className: e, ...a }) => {
|
|
110
110
|
const { value: r, label: s } = a;
|
|
111
111
|
return /* @__PURE__ */ t.createElement(ae, {
|
|
112
112
|
className: e,
|
|
@@ -114,12 +114,12 @@ const n = ({ children: e, className: a }) => {
|
|
|
114
114
|
textValue: s
|
|
115
115
|
}, s);
|
|
116
116
|
};
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
const
|
|
122
|
-
const { disabled: r, readOnly: s, showDateLabels: o } =
|
|
117
|
+
g.Label = Fe;
|
|
118
|
+
g.Trigger = Me;
|
|
119
|
+
g.Options = A;
|
|
120
|
+
A.Option = Re;
|
|
121
|
+
const F = ({ children: e, className: a }) => {
|
|
122
|
+
const { disabled: r, readOnly: s, showDateLabels: o } = D(), { labelId: l } = O(m.DAY), { partValue: c, partError: d, onPartChange: i } = N(m.DAY), f = u(e, F.Label), p = u(e, F.Input);
|
|
123
123
|
return /* @__PURE__ */ t.createElement("div", {
|
|
124
124
|
className: a,
|
|
125
125
|
"data-date-field": !0
|
|
@@ -129,13 +129,13 @@ const C = ({ children: e, className: a }) => {
|
|
|
129
129
|
onChange: i,
|
|
130
130
|
isDisabled: r,
|
|
131
131
|
isReadOnly: s,
|
|
132
|
-
isInvalid:
|
|
132
|
+
isInvalid: d
|
|
133
133
|
}, p));
|
|
134
|
-
},
|
|
135
|
-
datePart:
|
|
134
|
+
}, Pe = ({ className: e }) => /* @__PURE__ */ t.createElement(H, {
|
|
135
|
+
datePart: m.DAY,
|
|
136
136
|
className: e
|
|
137
137
|
}), Ae = ({ className: e }) => {
|
|
138
|
-
const { id: a, hidePlaceholder: r } =
|
|
138
|
+
const { id: a, hidePlaceholder: r } = D(), { inputId: s } = O(m.DAY), { isFirstPart: o } = N(m.DAY), { t: l } = S(), c = w(null), d = 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());
|
|
@@ -143,16 +143,16 @@ const C = ({ children: e, className: a }) => {
|
|
|
143
143
|
ref: c,
|
|
144
144
|
id: s,
|
|
145
145
|
className: e,
|
|
146
|
-
placeholder:
|
|
146
|
+
placeholder: d,
|
|
147
147
|
maxLength: 2,
|
|
148
148
|
inputMode: "numeric",
|
|
149
|
-
"data-hook":
|
|
149
|
+
"data-hook": m.DAY
|
|
150
150
|
});
|
|
151
151
|
};
|
|
152
|
-
|
|
153
|
-
|
|
152
|
+
F.Label = Pe;
|
|
153
|
+
F.Input = Ae;
|
|
154
154
|
const M = ({ children: e, className: a }) => {
|
|
155
|
-
const { disabled: r, readOnly: s, showDateLabels: o } =
|
|
155
|
+
const { disabled: r, readOnly: s, showDateLabels: o } = D(), { labelId: l } = O(m.YEAR), { partValue: c, partError: d, onPartChange: i } = N(m.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
|
|
@@ -162,13 +162,13 @@ const M = ({ children: e, className: a }) => {
|
|
|
162
162
|
onChange: i,
|
|
163
163
|
isDisabled: r,
|
|
164
164
|
isReadOnly: s,
|
|
165
|
-
isInvalid:
|
|
165
|
+
isInvalid: d
|
|
166
166
|
}, p));
|
|
167
|
-
},
|
|
168
|
-
datePart:
|
|
167
|
+
}, Se = ({ className: e }) => /* @__PURE__ */ t.createElement(H, {
|
|
168
|
+
datePart: m.YEAR,
|
|
169
169
|
className: e
|
|
170
|
-
}),
|
|
171
|
-
const { id: a, hidePlaceholder: r } =
|
|
170
|
+
}), Te = ({ className: e }) => {
|
|
171
|
+
const { id: a, hidePlaceholder: r } = D(), { inputId: s } = O(m.YEAR), { isFirstPart: o } = N(m.YEAR), { t: l } = S(), c = w(null), d = 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());
|
|
@@ -176,17 +176,17 @@ const M = ({ children: e, className: a }) => {
|
|
|
176
176
|
ref: c,
|
|
177
177
|
id: s,
|
|
178
178
|
className: e,
|
|
179
|
-
placeholder:
|
|
179
|
+
placeholder: d,
|
|
180
180
|
maxLength: 4,
|
|
181
181
|
inputMode: "numeric",
|
|
182
|
-
"data-hook":
|
|
182
|
+
"data-hook": m.YEAR
|
|
183
183
|
});
|
|
184
184
|
};
|
|
185
|
-
M.Label =
|
|
186
|
-
M.Input =
|
|
185
|
+
M.Label = Se;
|
|
186
|
+
M.Input = Te;
|
|
187
187
|
n.Label = fe;
|
|
188
|
-
n.Month =
|
|
189
|
-
n.Day =
|
|
188
|
+
n.Month = g;
|
|
189
|
+
n.Day = F;
|
|
190
190
|
n.Year = M;
|
|
191
191
|
n.Description = pe;
|
|
192
192
|
n.Error = Ee;
|
|
@@ -204,12 +204,12 @@ function O(e) {
|
|
|
204
204
|
]);
|
|
205
205
|
}
|
|
206
206
|
function N(e) {
|
|
207
|
-
const { value: a, onChange: r, hasError: s = !1 } =
|
|
207
|
+
const { value: a, onChange: r, hasError: s = !1 } = D(), { regionalFormat: o } = V(), l = y(() => se(a ?? ""), [
|
|
208
208
|
a
|
|
209
209
|
]), c = y(() => oe(s, a ?? ""), [
|
|
210
210
|
a,
|
|
211
211
|
s
|
|
212
|
-
]),
|
|
212
|
+
]), d = l[e] || "", i = v((p) => {
|
|
213
213
|
const b = le(p, e, l);
|
|
214
214
|
r(b);
|
|
215
215
|
}, [
|
|
@@ -221,7 +221,7 @@ function N(e) {
|
|
|
221
221
|
e
|
|
222
222
|
]);
|
|
223
223
|
return {
|
|
224
|
-
partValue:
|
|
224
|
+
partValue: d,
|
|
225
225
|
partError: c[e],
|
|
226
226
|
onPartChange: i,
|
|
227
227
|
isFirstPart: f
|
|
@@ -235,33 +235,33 @@ function H({ datePart: e, className: a }) {
|
|
|
235
235
|
className: a
|
|
236
236
|
}, c);
|
|
237
237
|
}
|
|
238
|
-
const
|
|
239
|
-
fields:
|
|
240
|
-
month:
|
|
241
|
-
day:
|
|
242
|
-
year:
|
|
243
|
-
dayInput:
|
|
244
|
-
yearInput:
|
|
245
|
-
monthTrigger:
|
|
246
|
-
monthOption:
|
|
247
|
-
},
|
|
238
|
+
const Ye = "_fields_16lz4_1", ve = "_month_16lz4_10", we = "_day_16lz4_11", Ve = "_year_16lz4_12", ze = "_dayInput_16lz4_28", Be = "_yearInput_16lz4_29", He = "_monthTrigger_16lz4_33", xe = "_monthOption_16lz4_53", I = {
|
|
239
|
+
fields: Ye,
|
|
240
|
+
month: ve,
|
|
241
|
+
day: we,
|
|
242
|
+
year: Ve,
|
|
243
|
+
dayInput: ze,
|
|
244
|
+
yearInput: Be,
|
|
245
|
+
monthTrigger: He,
|
|
246
|
+
monthOption: xe
|
|
247
|
+
}, Ue = ({ content: e, locale: a }) => /* @__PURE__ */ t.createElement(ee, {
|
|
248
248
|
content: e,
|
|
249
249
|
locale: a
|
|
250
|
-
}),
|
|
251
|
-
const e =
|
|
250
|
+
}), ct = () => {
|
|
251
|
+
const e = Oe(I.monthTrigger), a = Ne(I.monthOption, Ce), 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, {
|
|
255
|
-
className: h(
|
|
255
|
+
className: h(P, E.label)
|
|
256
256
|
}, /* @__PURE__ */ t.createElement(n.Label.Required, {
|
|
257
257
|
className: h(ce, E.requiredMark)
|
|
258
258
|
})), /* @__PURE__ */ t.createElement(n.Month, {
|
|
259
259
|
className: I.month
|
|
260
260
|
}, /* @__PURE__ */ t.createElement(n.Month.Label, {
|
|
261
|
-
className: h(
|
|
261
|
+
className: h(P, E.label)
|
|
262
262
|
}), /* @__PURE__ */ t.createElement(n.Month.Trigger, {
|
|
263
263
|
className: e
|
|
264
|
-
}, /* @__PURE__ */ t.createElement(
|
|
264
|
+
}, /* @__PURE__ */ t.createElement(Le, {
|
|
265
265
|
className: E.dropdownIcon
|
|
266
266
|
})), /* @__PURE__ */ t.createElement(n.Month.Options, {
|
|
267
267
|
className: h(ie, E.selectPopover, E.dropdownPopover)
|
|
@@ -270,21 +270,21 @@ const Te = "_fields_16lz4_1", Ye = "_month_16lz4_10", ve = "_day_16lz4_11", we =
|
|
|
270
270
|
}))), /* @__PURE__ */ t.createElement(n.Day, {
|
|
271
271
|
className: I.day
|
|
272
272
|
}, /* @__PURE__ */ t.createElement(n.Day.Label, {
|
|
273
|
-
className: h(
|
|
273
|
+
className: h(P, E.label)
|
|
274
274
|
}), /* @__PURE__ */ t.createElement(n.Day.Input, {
|
|
275
275
|
className: r
|
|
276
276
|
})), /* @__PURE__ */ t.createElement(n.Year, {
|
|
277
277
|
className: I.year
|
|
278
278
|
}, /* @__PURE__ */ t.createElement(n.Year.Label, {
|
|
279
|
-
className: h(
|
|
279
|
+
className: h(P, E.label)
|
|
280
280
|
}), /* @__PURE__ */ t.createElement(n.Year.Input, {
|
|
281
281
|
className: s
|
|
282
282
|
})), /* @__PURE__ */ t.createElement(n.Error, {
|
|
283
|
-
className: h(
|
|
284
|
-
}, /* @__PURE__ */ t.createElement(
|
|
285
|
-
className: h(
|
|
286
|
-
},
|
|
283
|
+
className: h(me, E.error)
|
|
284
|
+
}, /* @__PURE__ */ t.createElement(_e, null), /* @__PURE__ */ t.createElement(n.Error.Text, null)), /* @__PURE__ */ t.createElement(n.Description, {
|
|
285
|
+
className: h(de, E.description)
|
|
286
|
+
}, Ue));
|
|
287
287
|
};
|
|
288
288
|
export {
|
|
289
|
-
|
|
289
|
+
ct as D
|
|
290
290
|
};
|