@wix/form-elements 1.232.0 → 1.234.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-DZrjp-74.js → appointment-rac-DaJz8fBt.js} +4 -4
- package/dist/component/{bookings-address-rac-CLuYL50N.js → bookings-address-rac-lkvT2jFg.js} +1 -1
- package/dist/component/{bookings-email-rac-CioaP-uu.js → bookings-email-rac-B6yDIr7X.js} +1 -1
- package/dist/component/{bookings-first-name-rac-CJy9O5nk.js → bookings-first-name-rac-BdwaASKa.js} +1 -1
- package/dist/component/{bookings-header-rac-BUV96R6-.js → bookings-header-rac-K_4D2edM.js} +1 -1
- package/dist/component/{bookings-last-name-rac-B8W2yQP5.js → bookings-last-name-rac-z1DsE6Te.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-BWmdi_6g.js → bookings-login-bar-rac-DuDc27Sg.js} +1 -1
- package/dist/component/{bookings-phone-rac-BhP92OSM.js → bookings-phone-rac-D3I57XfO.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-BK88FHYw.js → bookings-rich-text-rac-Dva_0eJC.js} +1 -1
- package/dist/component/{checkbox-field-rac-D-QGRnpL.js → checkbox-field-rac-CcVXm9fo.js} +4 -4
- package/dist/component/{checkbox-group-field-headless-y0T5hMvW.js → checkbox-group-field-headless-DIwGr5_m.js} +3 -3
- package/dist/component/{checkbox-group-field-rac-7CjF2Qcr.js → checkbox-group-field-rac-Di8eepGG.js} +4 -4
- package/dist/component/{checkbox-group-rac-BjOZpz4S.js → checkbox-group-rac-uA3X1M2J.js} +1 -1
- package/dist/component/{checkbox-rac-CTLufn00.js → checkbox-rac-BSYp2Yim.js} +1 -1
- package/dist/component/{contacts-address-rac-Ttn60Rdh.js → contacts-address-rac-BmITc1pA.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-vf0_Ur2J.js → contacts-birthdate-rac-BbiTr6cp.js} +1 -1
- package/dist/component/{contacts-company-rac-BL-zhq1g.js → contacts-company-rac-DUQ7fNTn.js} +1 -1
- package/dist/component/{contacts-email-rac-Czj5OZmy.js → contacts-email-rac-CVqqMJbq.js} +1 -1
- package/dist/component/{contacts-first-name-rac-DnvMBFhA.js → contacts-first-name-rac-uv3ldXXw.js} +1 -1
- package/dist/component/{contacts-last-name-rac-Cz9xFJ0k.js → contacts-last-name-rac-CimDHNgO.js} +1 -1
- package/dist/component/{contacts-phone-rac-CAMbTdYE.js → contacts-phone-rac-BShfAZ5U.js} +1 -1
- package/dist/component/{contacts-position-rac-DR6sJJhD.js → contacts-position-rac-BENXoFz5.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-D_00yDNl.js → contacts-subscribe-rac-CBBgFf9U.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-CWXAK15J.js → contacts-tax-id-rac-B4fcviNx.js} +1 -1
- package/dist/component/{date-availability-Cjf4BqKi.js → date-availability-BrxRBFHK.js} +1 -1
- package/dist/component/date-input-field-rac-BFDOSod0.js +382 -0
- package/dist/component/{date-input-rac-Sk0Tg4Zo.js → date-input-rac-Cd6SHUjO.js} +1 -1
- package/dist/component/{date-picker-field-rac-eFVX4JLG.js → date-picker-field-rac-BN2EjYXP.js} +8 -8
- package/dist/component/{date-picker-rac-D4nrjite.js → date-picker-rac-BQWpqtZJ.js} +1 -1
- package/dist/component/date-time-input-field-rac-BO_3H4NG.js +526 -0
- package/dist/component/{date-time-input-rac-DvYrTH9y.js → date-time-input-rac-wgKGtEcj.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-DPEsxP61.js → dext-checkbox-group-rac-DM20MEtm.js} +2 -2
- package/dist/component/{dext-checkbox-rac-BUxVzaRV.js → dext-checkbox-rac-DvzEyVhG.js} +1 -1
- package/dist/component/{dext-date-picker-rac-CB4RronN.js → dext-date-picker-rac-cof0w9i_.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-73yz5e8w.js → dext-date-time-input-rac-BiJqwZ-5.js} +1 -1
- package/dist/component/{dext-dropdown-rac-0c1y5a_k.js → dext-dropdown-rac-DEq1gj7M.js} +1 -1
- package/dist/component/{dext-email-rac-C95wbHgf.js → dext-email-rac-BDg2wBuO.js} +1 -1
- package/dist/component/{dext-number-input-rac-C-Fifrgq.js → dext-number-input-rac-BBouksMP.js} +1 -1
- package/dist/component/{dext-phone-rac-BzsS4xZk.js → dext-phone-rac-DZASm4Ft.js} +1 -1
- package/dist/component/{dext-radio-group-rac-pDzG3eaw.js → dext-radio-group-rac-DqAZs7cq.js} +2 -2
- package/dist/component/{dext-rating-input-rac-1GpuV7f3.js → dext-rating-input-rac-BUB6w2g3.js} +1 -1
- package/dist/component/{dext-tags-rac-CIZe5dpF.js → dext-tags-rac-BH6azQiT.js} +2 -2
- package/dist/component/{dext-text-area-rac-V79GaZes.js → dext-text-area-rac-Bm1Oi7pi.js} +1 -1
- package/dist/component/{dext-text-input-rac-CtCszeOf.js → dext-text-input-rac-DBSxcYp8.js} +1 -1
- package/dist/component/{dext-url-input-rac-CKNF2NyL.js → dext-url-input-rac-gJ_-qrzY.js} +1 -1
- package/dist/component/{dismiss-icon-CADB0BrL.js → dismiss-icon-sdQDwRev.js} +1 -1
- package/dist/component/{donation-rac-CjYUGBuv.js → donation-rac-CJHcIOnk.js} +5 -5
- package/dist/component/{dropdown-field-rac-DPrKYVoM.js → dropdown-field-rac-D94vF6Um.js} +3 -3
- package/dist/component/{dropdown-rac-6tUtJGWL.js → dropdown-rac-EN7KMhtd.js} +1 -1
- package/dist/component/{ecom-address-rac-B5aSPKU9.js → ecom-address-rac-CYk1wXq3.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-DD57dpQB.js → ecom-subscription-checkbox-rac--cLVBIUD.js} +2 -2
- package/dist/component/{email-input-field-rac-CYMgaeCk.js → email-input-field-rac-DWTQUl88.js} +3 -3
- package/dist/component/{events-repeater-rac-GG2dDNYv.js → events-repeater-rac-B-CAZJsO.js} +4 -4
- package/dist/component/{events-rsvp-rac-CbBMnSjD.js → events-rsvp-rac-CkLzjZe0.js} +3 -3
- package/dist/component/{field-error-headless-XwawW2mu.js → field-error-headless-Hpn7Cjyz.js} +1 -1
- package/dist/component/{field-label-headless-BmbcSnBj.js → field-label-headless-CZaQ-q22.js} +1 -1
- package/dist/component/{file-upload-rac-DcUpw9aC.js → file-upload-rac-DelhbRzX.js} +153 -150
- package/dist/component/{fixed-payment-rac-Diows5VQ.js → fixed-payment-rac-CGee8oWb.js} +3 -3
- package/dist/component/{form-Bv6Lr3i-.js → form-CKPfFL3D.js} +3203 -3192
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-CSW_OWV2.js → header-field-rac-B6vzJnaW.js} +2 -2
- package/dist/component/{header-rac-DB_vcxpc.js → header-rac-Bc4WxzR1.js} +1 -1
- package/dist/component/hidden-part-label-Dc5eP4S0.js +18 -0
- package/dist/component/{image-choice-rac-BiAx1CZ1.js → image-choice-rac-BuArZj5n.js} +4 -4
- package/dist/component/{index-CC34Osx4.js → index-CmopQE1P.js} +2 -2
- package/dist/component/{index-BoEoX89O.js → index-yqi4FTyq.js} +4 -4
- package/dist/component/{isObjectLike-C77DZseS.js → isObjectLike-DO4jXs__.js} +1 -1
- package/dist/component/{multiline-address-field-rac-DNU9MavI.js → multiline-address-field-rac-CijPzBxU.js} +8 -8
- package/dist/component/{multiline-address-rac-Cji-_rN9.js → multiline-address-rac-CchEjTwl.js} +1 -1
- package/dist/component/{number-input-field-rac-JmzPosJF.js → number-input-field-rac-CdJstTE-.js} +4 -4
- package/dist/component/{number-input-rac-Bx08gVaU.js → number-input-rac-B0V7Xy0I.js} +1 -1
- package/dist/component/{password-rac-DKihWJ6e.js → password-rac-BipcyWPk.js} +4 -4
- package/dist/component/{payment-input-rac-0j0iDq-Y.js → payment-input-rac-ClhUNxdL.js} +4 -4
- package/dist/component/{phone-input-field-rac-BaTShdqB.js → phone-input-field-rac-CPNMdr70.js} +7 -7
- package/dist/component/{phone-rac-C3OH5Qma.js → phone-rac-DL5pW-cK.js} +1 -1
- package/dist/component/{product-list-rac-BDfNoNGx.js → product-list-rac-Ii0qlyiq.js} +4 -4
- package/dist/component/{quiz-radio-group-rac-DmhWBeCf.js → quiz-radio-group-rac-DtO0om99.js} +1 -1
- package/dist/component/radio-button-module-classes-CY-zH0im.js +152 -0
- package/dist/component/{radio-group-field-rac-C3ue9nHf.js → radio-group-field-rac-ViY8g4gL.js} +4 -4
- package/dist/component/{radio-group-rac-DO1neSVS.js → radio-group-rac-CjCoPD-w.js} +1 -1
- package/dist/component/rating-input-field-rac-BMFXLqfg.js +145 -0
- package/dist/component/{rating-input-rac-CD5dyy82.js → rating-input-rac-CWGGV3Fx.js} +1 -1
- package/dist/component/{rich-content-rac.module-CGyIf3s3.js → rich-content-rac.module-CTlkS2_O.js} +1 -1
- package/dist/component/{rich-text-field-rac-BXUXBkD2.js → rich-text-field-rac-2SQn_URM.js} +2 -2
- package/dist/component/{rich-text-rac-DQUHNdrW.js → rich-text-rac-L3m09cVp.js} +1 -1
- package/dist/component/{service-dropdown-rac-B9YDYCyv.js → service-dropdown-rac-uKz9PkBj.js} +4 -4
- package/dist/component/{services-multi-choice-rac-Con9gWLU.js → services-multi-choice-rac-sOJlp6_l.js} +5 -5
- package/dist/component/{signature-rac-DUWJh1fn.js → signature-rac-B1O7Ivtg.js} +4 -4
- package/dist/component/{submit-button-rac-B1OeMvNT.js → submit-button-rac-iYdJFSXy.js} +60 -60
- package/dist/component/{tags-field-rac-M7Y4SJAZ.js → tags-field-rac-CFSrsxw9.js} +5 -5
- package/dist/component/{tags-rac-CfbRTtMS.js → tags-rac-KW_c8m3p.js} +1 -1
- package/dist/component/{text-area-field-rac-DZojMD97.js → text-area-field-rac-BJEAvqCy.js} +4 -4
- package/dist/component/{text-area-rac-DaCKWCFc.js → text-area-rac-Bk9j2e4k.js} +1 -1
- package/dist/component/{text-input-field-rac-Hrb_iU01.js → text-input-field-rac-KlrY_3qp.js} +3 -3
- package/dist/component/{text-input-headless-CFidU1Rp.js → text-input-headless-B6gzsedE.js} +3 -3
- package/dist/component/{text-input-rac-Clx6h1XE.js → text-input-rac-CSO1g0rD.js} +1 -1
- package/dist/component/{time-input-rac-qE8sAHDN.js → time-input-rac-jaYI3_XV.js} +6 -6
- package/dist/component/{url-input-field-rac-DGDgJibI.js → url-input-field-rac-1t5d4VjM.js} +4 -4
- package/dist/component/{url-input-rac-Bdk3jG3N.js → url-input-rac-BTQOpun9.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-DwTLeZHg.js → use-dropdown-option-class-name-DEBN31l5.js} +2 -2
- package/dist/component/{use-dropdown-trigger-class-name-CXQiwe-i.js → use-dropdown-trigger-class-name-BpcEWMWj.js} +7 -7
- package/dist/component/{use-element-state-class-name-B5U4x2KM.js → use-element-state-class-name-B0muHOx4.js} +1 -1
- package/dist/component/{use-hoverable-input-class-name-CYpdsBId.js → use-hoverable-input-class-name-CL0sOlNu.js} +2 -2
- package/dist/component/{use-is-forced-open-dropdown-Fjv2ky_D.js → use-is-forced-open-dropdown-BhQKJWNc.js} +1 -1
- package/dist/component/{use-native-mobile-input-4gSEXRvo.js → use-native-mobile-input-W9CS9U3u.js} +1 -1
- package/dist/component/{use-service-options-base-BGDvgdNm.js → use-service-options-base-DUgTjbHR.js} +1 -1
- package/dist/component/use-text-input-class-name-Mm_0ULVk.js +6 -0
- package/dist/form.d.ts +87 -6
- package/package.json +21 -21
- package/dist/component/date-input-field-rac-B2Q96FD-.js +0 -365
- package/dist/component/date-time-input-field-rac-BjhDUL-b.js +0 -507
- package/dist/component/helpers-HmkkXrh2.js +0 -12
- package/dist/component/radio-button-module-classes-ByFvbIqt.js +0 -137
- package/dist/component/rating-input-field-rac-D3t6G9Jk.js +0 -139
- package/dist/component/use-text-input-class-name-CA77201r.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-BMUyMVja.js";
|
|
7
7
|
import { H as me } from "./custom-focus-class-_483Pkwp.js";
|
|
8
8
|
import { s as ue } from "./field-rac.module-D0QzJXUv.js";
|
|
9
|
-
import { bF as Ee, bE as mt, bJ as ge, bH as ut, bY as dt, bX as Dt, bN as ie, bK as le, bP as ft, bM as Et, F as St, h as _t, X as Nt, am as pt, g as At, j as We, i as yt, n as It, k as Ot, l as Lt, M as Tt, I as bt, m as gt } from "./form-
|
|
10
|
-
import { u as kt } from "./use-element-state-class-name-
|
|
9
|
+
import { bF as Ee, bE as mt, bJ as ge, bH as ut, bY as dt, bX as Dt, bN as ie, bK as le, bP as ft, bM as Et, F as St, h as _t, X as Nt, am as pt, g as At, j as We, i as yt, n as It, k as Ot, l as Lt, M as Tt, I as bt, m as gt } from "./form-CKPfFL3D.js";
|
|
10
|
+
import { u as kt } from "./use-element-state-class-name-B0muHOx4.js";
|
|
11
11
|
import { ListBox as vt, Button as ke, ListBoxItem as Rt, RadioGroup as Mt, RadioField as Ft, RadioButton as wt } from "react-aria-components";
|
|
12
12
|
import { f as k, a as Se } from "./find-child-C60k4CxG.js";
|
|
13
|
-
import { D as ht, E as Ct } from "./field-error-headless-
|
|
14
|
-
import { L as Wt } from "./field-label-headless-
|
|
13
|
+
import { D as ht, E as Ct } from "./field-error-headless-Hpn7Cjyz.js";
|
|
14
|
+
import { L as Wt } from "./field-label-headless-CZaQ-q22.js";
|
|
15
15
|
import { F as Bt } 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-BWmdi_6g.js → bookings-login-bar-rac-DuDc27Sg.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import o from "react";
|
|
2
2
|
import E from "classnames";
|
|
3
|
-
import { bN as d, bY as b, bF as f, bJ as x, W as p } from "./form-
|
|
3
|
+
import { bN as d, bY as b, bF as f, bJ as x, W as p } from "./form-CKPfFL3D.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 $n } from "@wix/ricos/viewer";
|
|
|
2
2
|
import B from "classnames";
|
|
3
3
|
import g, { useMemo as Jn, useRef as Yn, useCallback as Qn } from "react";
|
|
4
4
|
import { CheckboxField as Zn, CheckboxButton as ei } from "react-aria-components";
|
|
5
|
-
import { bk as ri, bN as et, b2 as Zr, b1 as ln, bY as ti, bF as ai, bs as ni, bK as ii, bP as si, bW as oi, o as ui, am as ci, t as fi, aY as li, M as _i, I as vi, s as hi } from "./form-
|
|
5
|
+
import { bk as ri, bN as et, b2 as Zr, b1 as ln, bY as ti, bF as ai, bs as ni, bK as ii, bP as si, bW as oi, o as ui, am as ci, t as fi, aY as li, M as _i, I as vi, s as hi } from "./form-CKPfFL3D.js";
|
|
6
6
|
import { f as W, a as yt } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as pi, E as di } from "./field-error-headless-
|
|
7
|
+
import { D as pi, E as di } from "./field-error-headless-Hpn7Cjyz.js";
|
|
8
8
|
import { Node_Type as yi } from "@wix/ricos/schema";
|
|
9
|
-
import { c as re, r as $, e as E, a as J, d as bi, b as gi } from "./isObjectLike-
|
|
9
|
+
import { c as re, r as $, e as E, a as J, d as bi, b as gi } from "./isObjectLike-DO4jXs__.js";
|
|
10
10
|
import { S as qi } from "./selection-indicator-XQ8MYHUQ.js";
|
|
11
11
|
import { E as Ci } from "./error-icon-hZxQ6DEy.js";
|
|
12
12
|
import { C as Ai } from "./checkbox-indicator-module-classes-Cozvs_kk.js";
|
|
13
13
|
import { s as oe } from "./field-rac.module-D0QzJXUv.js";
|
|
14
|
-
import { u as mi } from "./use-element-state-class-name-
|
|
14
|
+
import { u as mi } from "./use-element-state-class-name-B0muHOx4.js";
|
|
15
15
|
var ue, bt;
|
|
16
16
|
function Ii() {
|
|
17
17
|
if (bt) return ue;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import o, { useRef as q, useMemo as F, useCallback as $, useState as w, useEffect as K } from "react";
|
|
2
2
|
import { CheckboxGroup as A, CheckboxField as M, CheckboxButton as Y, TextField as j, Input as z } from "react-aria-components";
|
|
3
3
|
import { debounce as J } from "ts-debounce";
|
|
4
|
-
import { bN as R, bK as Q, bW as U, bY as X, bP as Z } from "./form-
|
|
4
|
+
import { bN as R, bK as Q, bW as U, bY as X, bP as Z } from "./form-CKPfFL3D.js";
|
|
5
5
|
import { f as I, a as k } from "./find-child-C60k4CxG.js";
|
|
6
|
-
import { D as ee, E as te } from "./field-error-headless-
|
|
7
|
-
import { L as ae } from "./field-label-headless-
|
|
6
|
+
import { D as ee, E as te } from "./field-error-headless-Hpn7Cjyz.js";
|
|
7
|
+
import { L as ae } from "./field-label-headless-CZaQ-q22.js";
|
|
8
8
|
import { F as ne } from "./fieldset-headless-CD3fds9J.js";
|
|
9
9
|
import { S as le } from "./selection-indicator-XQ8MYHUQ.js";
|
|
10
10
|
const N = "Other", se = (e, t) => e.some((r) => !t.includes(r)), B = (e, t) => e.length > 0 && se(e, t), re = (e, t) => {
|
package/dist/component/{checkbox-group-field-rac-7CjF2Qcr.js → checkbox-group-field-rac-Di8eepGG.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-DIwGr5_m.js";
|
|
5
5
|
import { E as n } from "./error-icon-hZxQ6DEy.js";
|
|
6
6
|
import { C as c } from "./checkbox-indicator-module-classes-Cozvs_kk.js";
|
|
7
7
|
import { s } from "./field-rac.module-D0QzJXUv.js";
|
|
8
|
-
import { X as i, am as E, p, r as C, M as O, I as _, q as I } from "./form-
|
|
8
|
+
import { X as i, am as E, p, r as C, M as O, I as _, q as I } from "./form-CKPfFL3D.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-B0muHOx4.js";
|
|
11
|
+
import { u as R } from "./use-text-input-class-name-Mm_0ULVk.js";
|
|
12
12
|
const u = ({ content: r, locale: o }) => /* @__PURE__ */ e.createElement(m, {
|
|
13
13
|
content: r,
|
|
14
14
|
locale: o
|
|
@@ -0,0 +1,382 @@
|
|
|
1
|
+
import { RicosViewer as le } from "@wix/ricos/viewer";
|
|
2
|
+
import y from "classnames";
|
|
3
|
+
import t, { useMemo as T, useRef as Y, Children as ce, isValidElement as ie, useState as ae, useCallback as j } from "react";
|
|
4
|
+
import { b4 as c, bN as C, bK as G, bF as J, bh as ne, bu as re, bP as k, bY as h, bb as de, bi as me, bC as ue, u as pe, X as Ee, am as be, w as X, x as De, M as fe, I as Ie, v as Ne, y as ye, z as Q } from "./form-CKPfFL3D.js";
|
|
5
|
+
import { mergeProps as Ce, UNSAFE_PortalProvider as _e } from "react-aria";
|
|
6
|
+
import { ListBoxItem as ge, Select as Oe, TextField as se, SelectValue as Le, Input as oe } from "react-aria-components";
|
|
7
|
+
import { f as p, a as $ } from "./find-child-C60k4CxG.js";
|
|
8
|
+
import { g as he, H as Z } from "./hidden-part-label-Dc5eP4S0.js";
|
|
9
|
+
import { D as Fe, E as ve } from "./field-error-headless-Hpn7Cjyz.js";
|
|
10
|
+
import { L as Ae } from "./field-label-headless-CZaQ-q22.js";
|
|
11
|
+
import { F as Te } from "./fieldset-headless-CD3fds9J.js";
|
|
12
|
+
import { u as Pe, a as Re, N as Me, D as Se } from "./dismiss-icon-sdQDwRev.js";
|
|
13
|
+
import { u as Ye, N as Be } from "./use-native-mobile-input-W9CS9U3u.js";
|
|
14
|
+
import { N as He, E as xe, S as Ve } from "./non-modal-popover-D-u13tmp.js";
|
|
15
|
+
import { t as Ue, C as we } from "./calendar-icon-DOeHn3jt.js";
|
|
16
|
+
import { u as ke } from "./use-is-forced-open-dropdown-BhQKJWNc.js";
|
|
17
|
+
import { u as $e } from "./use-native-state-class-name-B0m2ghbS.js";
|
|
18
|
+
import { V as qe, a as ze } from "./use-dropdown-option-class-name-DEBN31l5.js";
|
|
19
|
+
import { C as Ke } from "./chevron-down-icon-CcpVm6B-.js";
|
|
20
|
+
import { E as We } from "./error-icon-hZxQ6DEy.js";
|
|
21
|
+
import { H as Xe } from "./custom-focus-class-_483Pkwp.js";
|
|
22
|
+
import { s as E } from "./field-rac.module-D0QzJXUv.js";
|
|
23
|
+
import { u as V } from "./use-hoverable-input-class-name-CL0sOlNu.js";
|
|
24
|
+
const Qe = {
|
|
25
|
+
[c.MONTH]: "bday-month",
|
|
26
|
+
[c.DAY]: "bday-day",
|
|
27
|
+
[c.YEAR]: "bday-year"
|
|
28
|
+
}, ee = (e, a) => e === "bday" ? Qe[a] : void 0, n = ({ children: e, className: a }) => {
|
|
29
|
+
const { id: o, required: s, onBlur: r, onFocus: l, FieldLayout: d } = C(), { inputId: i, labelId: m, ariaDescribedBy: u } = G(), { regionalFormat: b } = J(), D = Ye(), f = T(() => ne(b).filter(re).map((S) => S.toUpperCase()), [
|
|
30
|
+
b
|
|
31
|
+
]), I = p(e, n.Label), v = p(e, n.Description), O = p(e, n.Error), A = p(e, n.NativeDate), N = {
|
|
32
|
+
[c.MONTH]: p(e, n.Month),
|
|
33
|
+
[c.DAY]: p(e, n.Day),
|
|
34
|
+
[c.YEAR]: p(e, n.Year)
|
|
35
|
+
}, R = D ? I : $(I, {
|
|
36
|
+
as: "div"
|
|
37
|
+
}), M = D ? A : /* @__PURE__ */ t.createElement(Te, {
|
|
38
|
+
id: i,
|
|
39
|
+
ariaLabelledBy: m,
|
|
40
|
+
ariaDescribedBy: u,
|
|
41
|
+
required: s,
|
|
42
|
+
onBlur: r,
|
|
43
|
+
onFocus: l,
|
|
44
|
+
className: a
|
|
45
|
+
}, N[f[0]], N[f[1]], N[f[2]]);
|
|
46
|
+
return /* @__PURE__ */ t.createElement(d, {
|
|
47
|
+
fieldId: o,
|
|
48
|
+
renderLabel: () => R,
|
|
49
|
+
renderInput: () => M,
|
|
50
|
+
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, O, v)
|
|
51
|
+
});
|
|
52
|
+
}, L = ({ children: e, className: a }) => {
|
|
53
|
+
const { id: o, disabled: s, readOnly: r, showDateLabels: l, hidePlaceholder: d, autoComplete: i } = C(), { labelId: m, partAriaLabelledBy: u, ariaDescribedBy: b } = F(c.MONTH), { partValue: D, partError: f, onPartChange: I } = P(c.MONTH), { t: v } = h(), [O, A] = ae(!1), N = ke(o), [R, M] = ae(null), S = d ? xe : v("field.date.placeholder.month"), q = j((x) => {
|
|
54
|
+
r || I(typeof x == "string" ? x : "");
|
|
55
|
+
}, [
|
|
56
|
+
I,
|
|
57
|
+
r
|
|
58
|
+
]), z = j((x) => {
|
|
59
|
+
A(x && !r);
|
|
60
|
+
}, [
|
|
61
|
+
r
|
|
62
|
+
]), K = p(e, L.Label), W = p(e, L.Trigger), _ = p(e, L.Options);
|
|
63
|
+
return /* @__PURE__ */ t.createElement("div", {
|
|
64
|
+
className: a,
|
|
65
|
+
"data-date-field": !0
|
|
66
|
+
}, l ? K : /* @__PURE__ */ t.createElement(Z, {
|
|
67
|
+
id: m
|
|
68
|
+
}, v("field.date.label.month")), /* @__PURE__ */ t.createElement("div", {
|
|
69
|
+
ref: M,
|
|
70
|
+
style: {
|
|
71
|
+
display: "contents"
|
|
72
|
+
}
|
|
73
|
+
}), /* @__PURE__ */ t.createElement(_e, {
|
|
74
|
+
getContainer: () => R
|
|
75
|
+
}, /* @__PURE__ */ t.createElement(Oe, {
|
|
76
|
+
autoComplete: ee(i, c.MONTH),
|
|
77
|
+
"aria-labelledby": u,
|
|
78
|
+
"aria-describedby": b,
|
|
79
|
+
value: D || null,
|
|
80
|
+
onChange: q,
|
|
81
|
+
isDisabled: s,
|
|
82
|
+
isInvalid: f,
|
|
83
|
+
placeholder: S,
|
|
84
|
+
isOpen: N || O,
|
|
85
|
+
onOpenChange: N ? void 0 : z
|
|
86
|
+
}, W, $(_, {
|
|
87
|
+
isForcedOpen: N
|
|
88
|
+
}))));
|
|
89
|
+
}, je = ({ className: e }) => /* @__PURE__ */ t.createElement(te, {
|
|
90
|
+
datePart: c.MONTH,
|
|
91
|
+
className: e
|
|
92
|
+
}), Ge = ({ children: e, className: a }) => {
|
|
93
|
+
const { id: o, readOnly: s } = C(), { inputId: r } = F(c.MONTH), { partError: l, isFirstPart: d } = P(c.MONTH), i = Y(null);
|
|
94
|
+
return k(() => {
|
|
95
|
+
var m;
|
|
96
|
+
d && ((m = i.current) == null || m.focus({
|
|
97
|
+
preventScroll: !0
|
|
98
|
+
}));
|
|
99
|
+
}, o), /* @__PURE__ */ t.createElement(Ve, {
|
|
100
|
+
ref: i,
|
|
101
|
+
id: r,
|
|
102
|
+
className: a,
|
|
103
|
+
"data-hook": c.MONTH,
|
|
104
|
+
"data-invalid": l || void 0,
|
|
105
|
+
"data-readonly": s || void 0
|
|
106
|
+
}, /* @__PURE__ */ t.createElement(Le, null), e);
|
|
107
|
+
}, U = ({ children: e, className: a, ...o }) => {
|
|
108
|
+
const { isForcedOpen: s } = o, { language: r } = J(), l = T(() => he(r), [
|
|
109
|
+
r
|
|
110
|
+
]), d = p(e, U.Option) ?? /* @__PURE__ */ t.createElement(U.Option, null);
|
|
111
|
+
return /* @__PURE__ */ t.createElement(He, {
|
|
112
|
+
className: a,
|
|
113
|
+
containerPadding: 0,
|
|
114
|
+
offset: 0
|
|
115
|
+
}, /* @__PURE__ */ t.createElement(qe, {
|
|
116
|
+
isForcedOpen: s,
|
|
117
|
+
autoFocus: s ? !1 : void 0
|
|
118
|
+
}, l.map((i, m) => $(d, {
|
|
119
|
+
key: String(m + 1),
|
|
120
|
+
value: String(m + 1),
|
|
121
|
+
label: i
|
|
122
|
+
}))));
|
|
123
|
+
}, Je = ({ className: e, ...a }) => {
|
|
124
|
+
const { value: o, label: s } = a;
|
|
125
|
+
return /* @__PURE__ */ t.createElement(ge, {
|
|
126
|
+
className: e,
|
|
127
|
+
id: o,
|
|
128
|
+
textValue: s
|
|
129
|
+
}, s);
|
|
130
|
+
};
|
|
131
|
+
L.Label = je;
|
|
132
|
+
L.Trigger = Ge;
|
|
133
|
+
L.Options = U;
|
|
134
|
+
U.Option = Je;
|
|
135
|
+
const B = ({ children: e, className: a }) => {
|
|
136
|
+
const { disabled: o, readOnly: s, showDateLabels: r } = C(), { labelId: l, partAriaLabelledBy: d, ariaDescribedBy: i } = F(c.DAY), { partValue: m, partError: u, onPartChange: b } = P(c.DAY), { t: D } = h(), f = p(e, B.Label), I = p(e, B.Input);
|
|
137
|
+
return /* @__PURE__ */ t.createElement("div", {
|
|
138
|
+
className: a,
|
|
139
|
+
"data-date-field": !0
|
|
140
|
+
}, r ? f : /* @__PURE__ */ t.createElement(Z, {
|
|
141
|
+
id: l
|
|
142
|
+
}, D("field.date.label.day")), /* @__PURE__ */ t.createElement(se, {
|
|
143
|
+
"aria-labelledby": d,
|
|
144
|
+
"aria-describedby": i,
|
|
145
|
+
value: m,
|
|
146
|
+
onChange: b,
|
|
147
|
+
isDisabled: o,
|
|
148
|
+
isReadOnly: s,
|
|
149
|
+
isInvalid: u
|
|
150
|
+
}, I));
|
|
151
|
+
}, Ze = ({ className: e }) => /* @__PURE__ */ t.createElement(te, {
|
|
152
|
+
datePart: c.DAY,
|
|
153
|
+
className: e
|
|
154
|
+
}), et = ({ className: e }) => {
|
|
155
|
+
const { id: a, hidePlaceholder: o, autoComplete: s } = C(), { inputId: r } = F(c.DAY), { isFirstPart: l } = P(c.DAY), { t: d } = h(), i = Y(null), m = o ? void 0 : d("field.date.placeholder.day");
|
|
156
|
+
return k(() => {
|
|
157
|
+
var u;
|
|
158
|
+
l && ((u = i.current) == null || u.focus({
|
|
159
|
+
preventScroll: !0
|
|
160
|
+
}));
|
|
161
|
+
}, a), /* @__PURE__ */ t.createElement(oe, {
|
|
162
|
+
ref: i,
|
|
163
|
+
id: r,
|
|
164
|
+
className: e,
|
|
165
|
+
placeholder: m,
|
|
166
|
+
autoComplete: ee(s, c.DAY),
|
|
167
|
+
maxLength: 2,
|
|
168
|
+
inputMode: "numeric",
|
|
169
|
+
"data-hook": c.DAY
|
|
170
|
+
});
|
|
171
|
+
};
|
|
172
|
+
B.Label = Ze;
|
|
173
|
+
B.Input = et;
|
|
174
|
+
const H = ({ children: e, className: a }) => {
|
|
175
|
+
const { disabled: o, readOnly: s, showDateLabels: r } = C(), { labelId: l, partAriaLabelledBy: d, ariaDescribedBy: i } = F(c.YEAR), { partValue: m, partError: u, onPartChange: b } = P(c.YEAR), { t: D } = h(), f = p(e, H.Label), I = p(e, H.Input);
|
|
176
|
+
return /* @__PURE__ */ t.createElement("div", {
|
|
177
|
+
className: a,
|
|
178
|
+
"data-date-field": !0
|
|
179
|
+
}, r ? f : /* @__PURE__ */ t.createElement(Z, {
|
|
180
|
+
id: l
|
|
181
|
+
}, D("field.date.label.year")), /* @__PURE__ */ t.createElement(se, {
|
|
182
|
+
"aria-labelledby": d,
|
|
183
|
+
"aria-describedby": i,
|
|
184
|
+
value: m,
|
|
185
|
+
onChange: b,
|
|
186
|
+
isDisabled: o,
|
|
187
|
+
isReadOnly: s,
|
|
188
|
+
isInvalid: u
|
|
189
|
+
}, I));
|
|
190
|
+
}, tt = ({ className: e }) => /* @__PURE__ */ t.createElement(te, {
|
|
191
|
+
datePart: c.YEAR,
|
|
192
|
+
className: e
|
|
193
|
+
}), at = ({ className: e }) => {
|
|
194
|
+
const { id: a, hidePlaceholder: o, autoComplete: s } = C(), { inputId: r } = F(c.YEAR), { isFirstPart: l } = P(c.YEAR), { t: d } = h(), i = Y(null), m = o ? void 0 : d("field.date.placeholder.year");
|
|
195
|
+
return k(() => {
|
|
196
|
+
var u;
|
|
197
|
+
l && ((u = i.current) == null || u.focus({
|
|
198
|
+
preventScroll: !0
|
|
199
|
+
}));
|
|
200
|
+
}, a), /* @__PURE__ */ t.createElement(oe, {
|
|
201
|
+
ref: i,
|
|
202
|
+
id: r,
|
|
203
|
+
className: e,
|
|
204
|
+
placeholder: m,
|
|
205
|
+
autoComplete: ee(s, c.YEAR),
|
|
206
|
+
maxLength: 4,
|
|
207
|
+
inputMode: "numeric",
|
|
208
|
+
"data-hook": c.YEAR
|
|
209
|
+
});
|
|
210
|
+
};
|
|
211
|
+
H.Label = tt;
|
|
212
|
+
H.Input = at;
|
|
213
|
+
const w = ({ className: e, children: a }) => {
|
|
214
|
+
const { id: o, value: s, onChange: r, required: l, disabled: d, readOnly: i, hasError: m, autoComplete: u, onBlur: b, onFocus: D } = C(), { inputId: f, labelId: I, ariaDescribedBy: v } = G(), O = Y(null), A = Y(null);
|
|
215
|
+
k(() => {
|
|
216
|
+
var _;
|
|
217
|
+
(_ = O.current) == null || _.focus({
|
|
218
|
+
preventScroll: !0
|
|
219
|
+
});
|
|
220
|
+
}, o);
|
|
221
|
+
const N = Ue(s), { announcement: R, announceCleared: M } = Pe(!!N), S = !!N && !l && !d && !i, q = p(a, w.Clear), z = ce.map(a, (_) => /* @__PURE__ */ ie(_) && _.type === w.Clear ? null : _), { className: K, stateProps: W } = $e(e);
|
|
222
|
+
return /* @__PURE__ */ t.createElement(Be, {
|
|
223
|
+
ref: A,
|
|
224
|
+
groupLabelId: I,
|
|
225
|
+
announcement: R
|
|
226
|
+
}, /* @__PURE__ */ t.createElement(Re, {
|
|
227
|
+
ref: O,
|
|
228
|
+
type: "date",
|
|
229
|
+
id: f,
|
|
230
|
+
className: K,
|
|
231
|
+
...Ce(W, {
|
|
232
|
+
onFocus: D,
|
|
233
|
+
onBlur: b
|
|
234
|
+
}),
|
|
235
|
+
"aria-labelledby": I,
|
|
236
|
+
"aria-describedby": v,
|
|
237
|
+
"aria-invalid": m || void 0,
|
|
238
|
+
autoComplete: u,
|
|
239
|
+
value: N,
|
|
240
|
+
onChange: r,
|
|
241
|
+
disabled: d,
|
|
242
|
+
readOnly: i,
|
|
243
|
+
required: l
|
|
244
|
+
}), z, S ? $(q, {
|
|
245
|
+
input: O,
|
|
246
|
+
control: A,
|
|
247
|
+
labelId: I,
|
|
248
|
+
onClear: () => {
|
|
249
|
+
r(""), M();
|
|
250
|
+
}
|
|
251
|
+
}) : null);
|
|
252
|
+
};
|
|
253
|
+
w.Clear = Me;
|
|
254
|
+
n.Label = Ae;
|
|
255
|
+
n.NativeDate = w;
|
|
256
|
+
n.Month = L;
|
|
257
|
+
n.Day = B;
|
|
258
|
+
n.Year = H;
|
|
259
|
+
n.Description = Fe;
|
|
260
|
+
n.Error = ve;
|
|
261
|
+
function F(e) {
|
|
262
|
+
const { inputId: a, labelId: o, ariaDescribedBy: s } = G();
|
|
263
|
+
return T(() => {
|
|
264
|
+
const r = e.toLowerCase(), l = `${a}-${r}-label`;
|
|
265
|
+
return {
|
|
266
|
+
inputId: `${a}-${r}-input`,
|
|
267
|
+
labelId: l,
|
|
268
|
+
// Each part reads as "<field label> <part>" ("Birthday Month"), so it
|
|
269
|
+
// keeps a name when the part labels or placeholders are hidden.
|
|
270
|
+
partAriaLabelledBy: `${o} ${l}`,
|
|
271
|
+
// The field's error and description, so focusing the first part after a
|
|
272
|
+
// failed submit announces what is wrong.
|
|
273
|
+
ariaDescribedBy: s
|
|
274
|
+
};
|
|
275
|
+
}, [
|
|
276
|
+
a,
|
|
277
|
+
o,
|
|
278
|
+
s,
|
|
279
|
+
e
|
|
280
|
+
]);
|
|
281
|
+
}
|
|
282
|
+
function P(e) {
|
|
283
|
+
const { value: a, onChange: o, hasError: s = !1 } = C(), { regionalFormat: r } = J(), l = T(() => de(a ?? ""), [
|
|
284
|
+
a
|
|
285
|
+
]), d = T(() => me(s, a ?? ""), [
|
|
286
|
+
a,
|
|
287
|
+
s
|
|
288
|
+
]), i = l[e] || "", m = j((b) => {
|
|
289
|
+
const D = ue(b, e, l);
|
|
290
|
+
o(D);
|
|
291
|
+
}, [
|
|
292
|
+
o,
|
|
293
|
+
l,
|
|
294
|
+
e
|
|
295
|
+
]), u = T(() => ne(r).filter(re).map((f) => f.toUpperCase())[0] === e, [
|
|
296
|
+
r,
|
|
297
|
+
e
|
|
298
|
+
]);
|
|
299
|
+
return {
|
|
300
|
+
partValue: i,
|
|
301
|
+
partError: d[e],
|
|
302
|
+
onPartChange: m,
|
|
303
|
+
isFirstPart: u
|
|
304
|
+
};
|
|
305
|
+
}
|
|
306
|
+
function te({ datePart: e, className: a }) {
|
|
307
|
+
const { inputId: o, labelId: s } = F(e), { t: r } = h(), l = `field.date.label.${e.toLowerCase()}`, d = r(l);
|
|
308
|
+
return /* @__PURE__ */ t.createElement("label", {
|
|
309
|
+
id: s,
|
|
310
|
+
htmlFor: o,
|
|
311
|
+
className: a
|
|
312
|
+
}, d);
|
|
313
|
+
}
|
|
314
|
+
const nt = "_fields_b2cgx_1", rt = "_month_b2cgx_10", st = "_day_b2cgx_11", ot = "_year_b2cgx_12", lt = "_dayInput_b2cgx_28", ct = "_yearInput_b2cgx_29", it = "_monthTrigger_b2cgx_33", dt = "_monthOption_b2cgx_53", g = {
|
|
315
|
+
fields: nt,
|
|
316
|
+
month: rt,
|
|
317
|
+
day: st,
|
|
318
|
+
year: ot,
|
|
319
|
+
dayInput: lt,
|
|
320
|
+
yearInput: ct,
|
|
321
|
+
monthTrigger: it,
|
|
322
|
+
monthOption: dt
|
|
323
|
+
}, mt = ({ content: e, locale: a }) => /* @__PURE__ */ t.createElement(le, {
|
|
324
|
+
content: e,
|
|
325
|
+
locale: a
|
|
326
|
+
}), Yt = () => {
|
|
327
|
+
const { t: e } = h(), a = V(Ne, [
|
|
328
|
+
g.monthTrigger
|
|
329
|
+
]), o = ze(ye, g.monthOption, Xe), s = V(Q, [
|
|
330
|
+
g.dayInput
|
|
331
|
+
]), r = V(Q, [
|
|
332
|
+
g.yearInput
|
|
333
|
+
]), l = V(Q, [
|
|
334
|
+
E.nativeInput,
|
|
335
|
+
E.nativeWithLeadingIcon
|
|
336
|
+
]);
|
|
337
|
+
return /* @__PURE__ */ t.createElement(n, {
|
|
338
|
+
className: y(pe, g.fields)
|
|
339
|
+
}, /* @__PURE__ */ t.createElement(n.Label, {
|
|
340
|
+
className: y(Ee, E.label)
|
|
341
|
+
}, /* @__PURE__ */ t.createElement(n.Label.Required, {
|
|
342
|
+
className: y(be, E.requiredMark)
|
|
343
|
+
})), /* @__PURE__ */ t.createElement(n.Month, {
|
|
344
|
+
className: g.month
|
|
345
|
+
}, /* @__PURE__ */ t.createElement(n.Month.Label, {
|
|
346
|
+
className: y(X, E.label)
|
|
347
|
+
}), /* @__PURE__ */ t.createElement(n.Month.Trigger, {
|
|
348
|
+
className: a
|
|
349
|
+
}, /* @__PURE__ */ t.createElement(Ke, {
|
|
350
|
+
className: E.dropdownIcon
|
|
351
|
+
})), /* @__PURE__ */ t.createElement(n.Month.Options, {
|
|
352
|
+
className: y(De, E.selectPopover, E.dropdownPopover)
|
|
353
|
+
}, /* @__PURE__ */ t.createElement(n.Month.Options.Option, {
|
|
354
|
+
className: o
|
|
355
|
+
}))), /* @__PURE__ */ t.createElement(n.Day, {
|
|
356
|
+
className: g.day
|
|
357
|
+
}, /* @__PURE__ */ t.createElement(n.Day.Label, {
|
|
358
|
+
className: y(X, E.label)
|
|
359
|
+
}), /* @__PURE__ */ t.createElement(n.Day.Input, {
|
|
360
|
+
className: s
|
|
361
|
+
})), /* @__PURE__ */ t.createElement(n.Year, {
|
|
362
|
+
className: g.year
|
|
363
|
+
}, /* @__PURE__ */ t.createElement(n.Year.Label, {
|
|
364
|
+
className: y(X, E.label)
|
|
365
|
+
}), /* @__PURE__ */ t.createElement(n.Year.Input, {
|
|
366
|
+
className: r
|
|
367
|
+
})), /* @__PURE__ */ t.createElement(n.NativeDate, {
|
|
368
|
+
className: l
|
|
369
|
+
}, /* @__PURE__ */ t.createElement(we, {
|
|
370
|
+
className: y(E.nativeDecoration, E.nativeLeadingIcon)
|
|
371
|
+
}), /* @__PURE__ */ t.createElement(n.NativeDate.Clear, {
|
|
372
|
+
className: E.nativeClearButton,
|
|
373
|
+
"aria-label": e("date-picker.a11y.clear-button")
|
|
374
|
+
}, /* @__PURE__ */ t.createElement(Se, null))), /* @__PURE__ */ t.createElement(n.Error, {
|
|
375
|
+
className: y(fe, E.error)
|
|
376
|
+
}, /* @__PURE__ */ t.createElement(We, null), /* @__PURE__ */ t.createElement(n.Error.Text, null)), /* @__PURE__ */ t.createElement(n.Description, {
|
|
377
|
+
className: y(Ie, E.description)
|
|
378
|
+
}, mt));
|
|
379
|
+
};
|
|
380
|
+
export {
|
|
381
|
+
Yt as D
|
|
382
|
+
};
|