@wix/form-elements 1.117.0 → 1.119.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-DOX_XA8U.js → appointment-rac-BmwzUTfZ.js} +4 -4
- package/dist/component/{bookings-address-rac-D6F3YmWd.js → bookings-address-rac-CDpBaBGi.js} +1 -1
- package/dist/component/{bookings-email-rac-D3fVHUXL.js → bookings-email-rac-8AonBAEP.js} +1 -1
- package/dist/component/{bookings-first-name-rac-BSsIcog-.js → bookings-first-name-rac-BAF3OLyL.js} +1 -1
- package/dist/component/{bookings-header-rac-Cv0Z9j_F.js → bookings-header-rac-DIXxOHe1.js} +1 -1
- package/dist/component/{bookings-last-name-rac-Cj2lIAjK.js → bookings-last-name-rac-Cm-58BWq.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-DBvDJu_E.js → bookings-login-bar-rac-DvaiFVqg.js} +1 -1
- package/dist/component/{bookings-phone-rac-D-9o627J.js → bookings-phone-rac-znrjfRwm.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-Cf-IPS0I.js → bookings-rich-text-rac-DFPeWcrH.js} +1 -1
- package/dist/component/{checkbox-field-rac-6Udo3s6p.js → checkbox-field-rac-COvxqyF7.js} +4 -4
- package/dist/component/{checkbox-group-field-headless-CDK-eDUl.js → checkbox-group-field-headless-DT1HX61N.js} +3 -3
- package/dist/component/{checkbox-group-field-rac-tCFCFYGV.js → checkbox-group-field-rac-Db1w6Vzm.js} +4 -4
- package/dist/component/{checkbox-group-rac-DPh0zkBi.js → checkbox-group-rac-BCgFQJ4P.js} +1 -1
- package/dist/component/{checkbox-rac-BkWlb25s.js → checkbox-rac-C1dKq2AT.js} +1 -1
- package/dist/component/{contacts-address-rac-Kbkylw5w.js → contacts-address-rac-BoZ2LExb.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-D69wSEFU.js → contacts-birthdate-rac-CX-oJkwP.js} +1 -1
- package/dist/component/{contacts-company-rac-B3YJjFvh.js → contacts-company-rac-ByY9oaOX.js} +1 -1
- package/dist/component/{contacts-email-rac-C5Duwxh1.js → contacts-email-rac-DBnTEm82.js} +1 -1
- package/dist/component/{contacts-first-name-rac-CoLLOnGW.js → contacts-first-name-rac-Jn-ubMoS.js} +1 -1
- package/dist/component/{contacts-last-name-rac-0Z7X9SUh.js → contacts-last-name-rac-Wea7_JU-.js} +1 -1
- package/dist/component/{contacts-phone-rac-BQKx39UA.js → contacts-phone-rac-POYGTwBr.js} +1 -1
- package/dist/component/{contacts-position-rac-DAPmVCNi.js → contacts-position-rac-DjDHNTfL.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-ON47-g2O.js → contacts-subscribe-rac-C7vOLrLV.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-Db7VL880.js → contacts-tax-id-rac-C-CVis0b.js} +1 -1
- package/dist/component/{date-availability-Cyych3R5.js → date-availability-B3unFx4z.js} +1 -1
- package/dist/component/{date-input-field-rac-DsfxwpA-.js → date-input-field-rac-BW0c1-Kl.js} +53 -52
- package/dist/component/{date-input-rac-Dpx6hbK8.js → date-input-rac-BW_WuabB.js} +1 -1
- package/dist/component/{date-picker-field-rac-l8CuNLev.js → date-picker-field-rac-DgBfvDRc.js} +5 -5
- package/dist/component/{date-picker-rac-CoyfVxOX.js → date-picker-rac-B2v-E9tZ.js} +1 -1
- package/dist/component/{date-time-input-field-rac-BAhjfIcJ.js → date-time-input-field-rac-DNxauQLv.js} +108 -107
- package/dist/component/{date-time-input-rac-BGFakUbz.js → date-time-input-rac-DZMQuMlD.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-B876yIKn.js → dext-checkbox-group-rac-B0u3i1v1.js} +2 -2
- package/dist/component/{dext-checkbox-rac-Ci14Mfa1.js → dext-checkbox-rac-BngAFLbm.js} +1 -1
- package/dist/component/{dext-date-picker-rac-CUsowZYX.js → dext-date-picker-rac-CyPtZQQp.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-DG14fGJr.js → dext-date-time-input-rac-DBm_ZVMr.js} +1 -1
- package/dist/component/{dext-dropdown-rac-BaJegaba.js → dext-dropdown-rac-DBDOigJS.js} +1 -1
- package/dist/component/{dext-email-rac-C49ceNke.js → dext-email-rac-Cj-eerfr.js} +1 -1
- package/dist/component/{dext-number-input-rac-CxIJpFXl.js → dext-number-input-rac-WdUIM6bV.js} +1 -1
- package/dist/component/{dext-phone-rac-DneuzL2U.js → dext-phone-rac-CH-UDDKr.js} +1 -1
- package/dist/component/{dext-radio-group-rac-yRrF0Zu7.js → dext-radio-group-rac-umexCSNY.js} +2 -2
- package/dist/component/{dext-rating-input-rac-Bp1SEpJ-.js → dext-rating-input-rac-ukMPDLxU.js} +1 -1
- package/dist/component/{dext-tags-rac-CnXMe-Kt.js → dext-tags-rac-BE8aqyRm.js} +2 -2
- package/dist/component/{dext-text-area-rac-DLiYTHQf.js → dext-text-area-rac-GtNDPetb.js} +1 -1
- package/dist/component/{dext-text-input-rac-DUkhZFqN.js → dext-text-input-rac-DQhaKaoe.js} +1 -1
- package/dist/component/{dext-url-input-rac-BcTNeWpI.js → dext-url-input-rac-DogsntOO.js} +1 -1
- package/dist/component/{donation-rac-BfhuRU5h.js → donation-rac-C1Se3wmU.js} +5 -5
- package/dist/component/dropdown-field-headless-5vi45azS.js +91 -0
- package/dist/component/{dropdown-field-rac-DYCQacRr.js → dropdown-field-rac-B0PeCuG6.js} +3 -3
- package/dist/component/{dropdown-rac-DXeZuaZ7.js → dropdown-rac--ZgcFbpH.js} +1 -1
- package/dist/component/{ecom-address-rac-BGLRC130.js → ecom-address-rac-C1p-fN1j.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-C7qp-tpL.js → ecom-subscription-checkbox-rac-uplYmDWZ.js} +2 -2
- package/dist/component/{email-input-field-rac-BqXze1u_.js → email-input-field-rac-C6nqydVv.js} +3 -3
- package/dist/component/{events-repeater-rac-Bvet0Fqq.js → events-repeater-rac-CqKFo75H.js} +4 -4
- package/dist/component/{events-rsvp-rac-B661R2PY.js → events-rsvp-rac-BBQwW-Jk.js} +3 -3
- package/dist/component/{field-error-headless-Tx25j-Iy.js → field-error-headless-COObBNJG.js} +1 -1
- package/dist/component/{field-label-headless-D3fAmFRO.js → field-label-headless-DhXceghb.js} +1 -1
- package/dist/component/{file-upload-rac-DCBEIiOZ.js → file-upload-rac-B5CnpgIo.js} +4 -4
- package/dist/component/{fixed-payment-rac-BqCVDK1W.js → fixed-payment-rac-B8yKRpQV.js} +3 -3
- package/dist/component/{form-CJlXWndz.js → form-CimhBiBc.js} +69 -69
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-C1SCqCGi.js → header-field-rac-BHgFF-LG.js} +2 -2
- package/dist/component/{header-rac-31u5nkR9.js → header-rac-DJttTbow.js} +1 -1
- package/dist/component/{image-choice-rac-BAmDUdu_.js → image-choice-rac-C-qj1WBS.js} +4 -4
- package/dist/component/{index-B7Ed5GmZ.js → index-9nfSsqJo.js} +4 -4
- package/dist/component/{index-BWTxklLR.js → index-Qe91Dgi2.js} +2 -2
- package/dist/component/{isObjectLike-CL_ZXuU5.js → isObjectLike-VICRth8V.js} +1 -1
- package/dist/component/{multiline-address-field-rac-DgmmawQq.js → multiline-address-field-rac-DMg6V-0L.js} +353 -350
- package/dist/component/{multiline-address-rac-T5pfy6VT.js → multiline-address-rac-DpvB5bX9.js} +1 -1
- package/dist/component/{number-input-field-rac-C4vBmxka.js → number-input-field-rac-DQERdWaA.js} +4 -4
- package/dist/component/{number-input-rac-FXy8C6OS.js → number-input-rac-DY9uyE-k.js} +1 -1
- package/dist/component/{password-rac-BLVM1iY1.js → password-rac-cSWH1LPy.js} +4 -4
- package/dist/component/{payment-input-rac-BCjR13AI.js → payment-input-rac-BiUNnsQx.js} +4 -4
- package/dist/component/{phone-input-field-rac-Dcn7NY2J.js → phone-input-field-rac-CtPGbnw_.js} +27 -26
- package/dist/component/{phone-rac-CZysHw73.js → phone-rac-CFeNcp2U.js} +1 -1
- package/dist/component/{product-list-rac-CQ5dtVQ7.js → product-list-rac-DzhnEmL_.js} +4 -4
- package/dist/component/{quiz-radio-group-rac-DYt0ayX-.js → quiz-radio-group-rac-BpsPgebu.js} +1 -1
- package/dist/component/{radio-button-module-classes-z_fzw3Xa.js → radio-button-module-classes-NBKHsJH7.js} +3 -3
- package/dist/component/{radio-group-field-rac-DRatTDFh.js → radio-group-field-rac-C2oTt1mT.js} +4 -4
- package/dist/component/{radio-group-rac-BBtqYnNc.js → radio-group-rac-oINHZ5yY.js} +1 -1
- package/dist/component/{rating-input-field-rac-CmhwF5vm.js → rating-input-field-rac-fnv2RdUA.js} +4 -4
- package/dist/component/{rating-input-rac-COXzdcQ2.js → rating-input-rac-BFofFzSX.js} +1 -1
- package/dist/component/{rich-content-rac.module--2mwLD8u.js → rich-content-rac.module-BplXvCt6.js} +1 -1
- package/dist/component/{rich-text-field-rac-XxbjaZ7E.js → rich-text-field-rac-Csi4_gCV.js} +2 -2
- package/dist/component/{rich-text-rac-DRLWz1SC.js → rich-text-rac-Btu1y3LR.js} +1 -1
- package/dist/component/{service-dropdown-rac-DDrq6eWp.js → service-dropdown-rac-CzZW7Bp1.js} +4 -4
- package/dist/component/{services-multi-choice-rac-Dbc_AWQt.js → services-multi-choice-rac-B2rAg7VN.js} +5 -5
- package/dist/component/{signature-rac-BL_38fV-.js → signature-rac-tznFgZ4j.js} +3 -3
- package/dist/component/{submit-button-rac-7jEdBomF.js → submit-button-rac-DnHWbtTC.js} +1 -1
- package/dist/component/{tags-field-rac-D0IkpR9t.js → tags-field-rac-DFm9o85s.js} +5 -5
- package/dist/component/{tags-rac-B-2Uj1av.js → tags-rac-CJFccYp5.js} +1 -1
- package/dist/component/{text-area-field-rac-viHeHjEN.js → text-area-field-rac-C4UEZOjz.js} +4 -4
- package/dist/component/{text-area-rac-BAERMJFz.js → text-area-rac-Dhsq1l8f.js} +1 -1
- package/dist/component/{text-input-field-rac-C5DpFoUx.js → text-input-field-rac-DiW0Sqj_.js} +3 -3
- package/dist/component/{text-input-headless-VO6IlfBC.js → text-input-headless-u1_aFnZ1.js} +3 -3
- package/dist/component/{text-input-rac-B2W3Z2v6.js → text-input-rac-COy-c4N_.js} +1 -1
- package/dist/component/{time-input-rac-CPbkv18u.js → time-input-rac-DipZQTZN.js} +4 -4
- package/dist/component/{url-input-field-rac-BeJpz4ul.js → url-input-field-rac-DhBCGvKd.js} +4 -4
- package/dist/component/{url-input-rac-BD6Opv2A.js → url-input-rac-kw4gCDbc.js} +1 -1
- package/dist/component/use-dropdown-option-class-name-Bes6rpX4.js +115 -0
- package/dist/component/{use-element-state-class-name-BNSdoQqN.js → use-element-state-class-name-_GWfwpEf.js} +1 -1
- package/dist/component/{use-is-forced-open-dropdown-BiTXTz0Y.js → use-is-forced-open-dropdown-RE1Ml2A3.js} +1 -1
- package/dist/component/{use-service-options-base-C2JFwqLm.js → use-service-options-base-4yrjmSWU.js} +1 -1
- package/dist/component/{use-text-input-class-name-y4KCMeRh.js → use-text-input-class-name-uMLXv54u.js} +2 -2
- package/package.json +2 -2
- package/dist/component/dropdown-field-headless-D_Yo2BrI.js +0 -89
- package/dist/component/use-dropdown-option-class-name-DHYzKeNV.js +0 -21
|
@@ -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-B4l_0KRU.js";
|
|
9
|
-
import { b1 as De, b0 as ct, b5 as Te, bj as mt, bi as ut, b9 as ce, b6 as Ee, bb as dt, b8 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, $ as Nt } from "./form-
|
|
10
|
-
import { u as bt } from "./use-element-state-class-name-
|
|
9
|
+
import { b1 as De, b0 as ct, b5 as Te, bj as mt, bi as ut, b9 as ce, b6 as Ee, bb as dt, b8 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, $ as Nt } from "./form-CimhBiBc.js";
|
|
10
|
+
import { u as bt } from "./use-element-state-class-name-_GWfwpEf.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-COObBNJG.js";
|
|
14
|
+
import { L as wt } from "./field-label-headless-DhXceghb.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-DBvDJu_E.js → bookings-login-bar-rac-DvaiFVqg.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import o from "react";
|
|
2
2
|
import E from "classnames";
|
|
3
|
-
import { b9 as d, bj as b, b1 as f, b5 as p, z as L } from "./form-
|
|
3
|
+
import { b9 as d, bj as b, b1 as f, b5 as p, z as L } from "./form-CimhBiBc.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 Qn, CheckboxButton as Zn } from "react-aria-components";
|
|
5
|
-
import { aJ as ei, b9 as Zr, as as Qr, ar as fn, bj as ri, b1 as ti, aR as ai, b6 as ni, bb as ii, h as si, U as oi, m as ui, an as ci, v as fi, p as li, l as _i } from "./form-
|
|
5
|
+
import { aJ as ei, b9 as Zr, as as Qr, ar as fn, bj as ri, b1 as ti, aR as ai, b6 as ni, bb as ii, h as si, U as oi, m as ui, an as ci, v as fi, p as li, l as _i } from "./form-CimhBiBc.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-COObBNJG.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-VICRth8V.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-BpeSpGsW.js";
|
|
13
13
|
import { s as oe } from "./field-rac.module-B4l_0KRU.js";
|
|
14
|
-
import { u as Ai } from "./use-element-state-class-name-
|
|
14
|
+
import { u as Ai } from "./use-element-state-class-name-_GWfwpEf.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 { b9 as R, b6 as U, bj as X, bb as Y } from "./form-
|
|
4
|
+
import { b9 as R, b6 as U, bj as X, bb as Y } from "./form-CimhBiBc.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-COObBNJG.js";
|
|
7
|
+
import { L as te } from "./field-label-headless-DhXceghb.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-tCFCFYGV.js → checkbox-group-field-rac-Db1w6Vzm.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-DT1HX61N.js";
|
|
5
5
|
import { E as n } from "./error-icon-hZxQ6DEy.js";
|
|
6
6
|
import { C as c } from "./checkbox-indicator-module-classes-BpeSpGsW.js";
|
|
7
7
|
import { s } from "./field-rac.module-B4l_0KRU.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-CimhBiBc.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-_GWfwpEf.js";
|
|
11
|
+
import { u as R } from "./use-text-input-class-name-uMLXv54u.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-DsfxwpA-.js → date-input-field-rac-BW0c1-Kl.js}
RENAMED
|
@@ -2,23 +2,23 @@ import { RicosViewer as ee } from "@wix/ricos/viewer";
|
|
|
2
2
|
import b 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
|
-
import { ListBoxItem as ae,
|
|
6
|
-
import { b9 as D, b6 as q, b1 as
|
|
7
|
-
import { f as u, a as
|
|
8
|
-
import { g as
|
|
9
|
-
import { D as
|
|
10
|
-
import { L as
|
|
11
|
-
import { F as
|
|
12
|
-
import { N as
|
|
13
|
-
import { u as
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
5
|
+
import { ListBoxItem as ae, Select as ne, TextField as k, SelectValue as re, Input as $ } from "react-aria-components";
|
|
6
|
+
import { b9 as D, b6 as q, b1 as V, aG as G, aT as K, au as d, bj as P, aB as se, aH as oe, a_ as le, bb as z, I as S, U as ce, t as ie, K as de, v as me, p as ue } from "./form-CimhBiBc.js";
|
|
7
|
+
import { f as u, a as B } from "./find-child-C60k4CxG.js";
|
|
8
|
+
import { g as pe } from "./helpers-HmkkXrh2.js";
|
|
9
|
+
import { D as Ee, E as fe } from "./field-error-headless-COObBNJG.js";
|
|
10
|
+
import { L as be } from "./field-label-headless-DhXceghb.js";
|
|
11
|
+
import { F as he } from "./fieldset-headless-CD3fds9J.js";
|
|
12
|
+
import { N as Ie, S as De } from "./non-modal-popover-DtIMXHbe.js";
|
|
13
|
+
import { u as Oe } from "./use-is-forced-open-dropdown-RE1Ml2A3.js";
|
|
14
|
+
import { V as ge, u as ye } from "./use-dropdown-option-class-name-Bes6rpX4.js";
|
|
15
|
+
import { C as Ne } from "./chevron-down-icon-CcpVm6B-.js";
|
|
16
|
+
import { E as _e } from "./error-icon-hZxQ6DEy.js";
|
|
17
|
+
import { H as Le } from "./custom-focus-class-_483Pkwp.js";
|
|
17
18
|
import { s as E } from "./field-rac.module-B4l_0KRU.js";
|
|
18
|
-
import { u as
|
|
19
|
-
import { u as U } from "./use-text-input-class-name-y4KCMeRh.js";
|
|
19
|
+
import { u as U } from "./use-text-input-class-name-uMLXv54u.js";
|
|
20
20
|
const n = ({ children: e, className: a }) => {
|
|
21
|
-
const { id: r, required: o, onBlur: s, onFocus: l, FieldLayout: c } = D(), { inputId: m, labelId: i, ariaDescribedBy: f } = q(), { regionalFormat: p } =
|
|
21
|
+
const { id: r, required: o, onBlur: s, onFocus: l, FieldLayout: c } = D(), { inputId: m, labelId: i, ariaDescribedBy: f } = q(), { regionalFormat: p } = V(), h = y(() => G(p).filter(K).map((Y) => Y.toUpperCase()), [
|
|
22
22
|
p
|
|
23
23
|
]), _ = u(e, n.Label), T = u(e, n.Description), L = u(e, n.Error), F = {
|
|
24
24
|
[d.MONTH]: u(e, n.Month),
|
|
@@ -27,10 +27,10 @@ const n = ({ children: e, className: a }) => {
|
|
|
27
27
|
};
|
|
28
28
|
return /* @__PURE__ */ t.createElement(c, {
|
|
29
29
|
fieldId: r,
|
|
30
|
-
renderLabel: () =>
|
|
30
|
+
renderLabel: () => B(_, {
|
|
31
31
|
as: "div"
|
|
32
32
|
}),
|
|
33
|
-
renderInput: () => /* @__PURE__ */ t.createElement(
|
|
33
|
+
renderInput: () => /* @__PURE__ */ t.createElement(he, {
|
|
34
34
|
id: m,
|
|
35
35
|
ariaLabelledBy: i,
|
|
36
36
|
ariaDescribedBy: f,
|
|
@@ -42,7 +42,7 @@ const n = ({ children: e, className: a }) => {
|
|
|
42
42
|
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, L, T)
|
|
43
43
|
});
|
|
44
44
|
}, O = ({ children: e, className: a }) => {
|
|
45
|
-
const { id: r, disabled: o, readOnly: s, showDateLabels: l, hidePlaceholder: c } = D(), { labelId: m } = g(d.MONTH), { partValue: i, partError: f, onPartChange: p } = N(d.MONTH), { t: h } = P(), [_, T] = x(!1), L =
|
|
45
|
+
const { id: r, disabled: o, readOnly: s, showDateLabels: l, hidePlaceholder: c } = D(), { labelId: m } = g(d.MONTH), { partValue: i, partError: f, onPartChange: p } = N(d.MONTH), { t: h } = P(), [_, T] = x(!1), L = Oe(r), [F, Y] = x(null), j = c ? void 0 : h("field.date.placeholder.month"), Q = v((M) => {
|
|
46
46
|
s || p(typeof M == "string" ? M : "");
|
|
47
47
|
}, [
|
|
48
48
|
p,
|
|
@@ -62,7 +62,7 @@ const n = ({ children: e, className: a }) => {
|
|
|
62
62
|
}
|
|
63
63
|
}), /* @__PURE__ */ t.createElement(te, {
|
|
64
64
|
getContainer: () => F
|
|
65
|
-
}, /* @__PURE__ */ t.createElement(
|
|
65
|
+
}, /* @__PURE__ */ t.createElement(ne, {
|
|
66
66
|
"aria-labelledby": l ? m : void 0,
|
|
67
67
|
value: i || null,
|
|
68
68
|
onChange: Q,
|
|
@@ -71,36 +71,37 @@ const n = ({ children: e, className: a }) => {
|
|
|
71
71
|
placeholder: j,
|
|
72
72
|
isOpen: L || _,
|
|
73
73
|
onOpenChange: L ? void 0 : W
|
|
74
|
-
}, X,
|
|
74
|
+
}, X, B(Z, {
|
|
75
75
|
isForcedOpen: L
|
|
76
76
|
}))));
|
|
77
|
-
}, Fe = ({ className: e }) => /* @__PURE__ */ t.createElement(
|
|
77
|
+
}, Fe = ({ className: e }) => /* @__PURE__ */ t.createElement(H, {
|
|
78
78
|
datePart: d.MONTH,
|
|
79
79
|
className: e
|
|
80
80
|
}), Ce = ({ children: e, className: a }) => {
|
|
81
81
|
const { id: r, readOnly: o } = D(), { inputId: s } = g(d.MONTH), { partError: l, isFirstPart: c } = N(d.MONTH), m = w(null);
|
|
82
|
-
return
|
|
82
|
+
return z(() => {
|
|
83
83
|
var i;
|
|
84
84
|
c && ((i = m.current) == null || i.focus());
|
|
85
|
-
}, r), /* @__PURE__ */ t.createElement(
|
|
85
|
+
}, r), /* @__PURE__ */ t.createElement(De, {
|
|
86
86
|
ref: m,
|
|
87
87
|
id: s,
|
|
88
88
|
className: a,
|
|
89
89
|
"data-hook": d.MONTH,
|
|
90
90
|
"data-invalid": l || void 0,
|
|
91
91
|
"data-readonly": o || void 0
|
|
92
|
-
}, /* @__PURE__ */ t.createElement(
|
|
92
|
+
}, /* @__PURE__ */ t.createElement(re, null), e);
|
|
93
93
|
}, A = ({ children: e, className: a, ...r }) => {
|
|
94
|
-
const { isForcedOpen: o } = r, { language: s } =
|
|
94
|
+
const { isForcedOpen: o } = r, { language: s } = V(), l = y(() => pe(s), [
|
|
95
95
|
s
|
|
96
96
|
]), c = u(e, A.Option) ?? /* @__PURE__ */ t.createElement(A.Option, null);
|
|
97
|
-
return /* @__PURE__ */ t.createElement(
|
|
97
|
+
return /* @__PURE__ */ t.createElement(Ie, {
|
|
98
98
|
className: a,
|
|
99
99
|
containerPadding: 0,
|
|
100
100
|
offset: 0
|
|
101
|
-
}, /* @__PURE__ */ t.createElement(
|
|
101
|
+
}, /* @__PURE__ */ t.createElement(ge, {
|
|
102
|
+
isForcedOpen: o,
|
|
102
103
|
autoFocus: o ? !1 : void 0
|
|
103
|
-
}, l.map((m, i) =>
|
|
104
|
+
}, l.map((m, i) => B(c, {
|
|
104
105
|
key: String(i + 1),
|
|
105
106
|
value: String(i + 1),
|
|
106
107
|
label: m
|
|
@@ -130,12 +131,12 @@ const C = ({ children: e, className: a }) => {
|
|
|
130
131
|
isReadOnly: o,
|
|
131
132
|
isInvalid: m
|
|
132
133
|
}, p));
|
|
133
|
-
}, Me = ({ className: e }) => /* @__PURE__ */ t.createElement(
|
|
134
|
+
}, Me = ({ className: e }) => /* @__PURE__ */ t.createElement(H, {
|
|
134
135
|
datePart: d.DAY,
|
|
135
136
|
className: e
|
|
136
137
|
}), Se = ({ className: e }) => {
|
|
137
138
|
const { id: a, hidePlaceholder: r } = D(), { inputId: o } = g(d.DAY), { isFirstPart: s } = N(d.DAY), { t: l } = P(), c = w(null), m = r ? void 0 : l("field.date.placeholder.day");
|
|
138
|
-
return
|
|
139
|
+
return z(() => {
|
|
139
140
|
var i;
|
|
140
141
|
s && ((i = c.current) == null || i.focus());
|
|
141
142
|
}, a), /* @__PURE__ */ t.createElement($, {
|
|
@@ -163,12 +164,12 @@ const R = ({ children: e, className: a }) => {
|
|
|
163
164
|
isReadOnly: o,
|
|
164
165
|
isInvalid: m
|
|
165
166
|
}, p));
|
|
166
|
-
}, Ae = ({ className: e }) => /* @__PURE__ */ t.createElement(
|
|
167
|
+
}, Ae = ({ className: e }) => /* @__PURE__ */ t.createElement(H, {
|
|
167
168
|
datePart: d.YEAR,
|
|
168
169
|
className: e
|
|
169
170
|
}), Pe = ({ className: e }) => {
|
|
170
171
|
const { id: a, hidePlaceholder: r } = D(), { inputId: o } = g(d.YEAR), { isFirstPart: s } = N(d.YEAR), { t: l } = P(), c = w(null), m = r ? void 0 : l("field.date.placeholder.year");
|
|
171
|
-
return
|
|
172
|
+
return z(() => {
|
|
172
173
|
var i;
|
|
173
174
|
s && ((i = c.current) == null || i.focus());
|
|
174
175
|
}, a), /* @__PURE__ */ t.createElement($, {
|
|
@@ -183,12 +184,12 @@ const R = ({ children: e, className: a }) => {
|
|
|
183
184
|
};
|
|
184
185
|
R.Label = Ae;
|
|
185
186
|
R.Input = Pe;
|
|
186
|
-
n.Label =
|
|
187
|
+
n.Label = be;
|
|
187
188
|
n.Month = O;
|
|
188
189
|
n.Day = C;
|
|
189
190
|
n.Year = R;
|
|
190
|
-
n.Description =
|
|
191
|
-
n.Error =
|
|
191
|
+
n.Description = Ee;
|
|
192
|
+
n.Error = fe;
|
|
192
193
|
function g(e) {
|
|
193
194
|
const { inputId: a } = q();
|
|
194
195
|
return y(() => {
|
|
@@ -203,13 +204,13 @@ function g(e) {
|
|
|
203
204
|
]);
|
|
204
205
|
}
|
|
205
206
|
function N(e) {
|
|
206
|
-
const { value: a, onChange: r, hasError: o = !1 } = D(), { regionalFormat: s } =
|
|
207
|
+
const { value: a, onChange: r, hasError: o = !1 } = D(), { regionalFormat: s } = V(), l = y(() => se(a ?? ""), [
|
|
207
208
|
a
|
|
208
|
-
]), c = y(() =>
|
|
209
|
+
]), c = y(() => oe(o, a ?? ""), [
|
|
209
210
|
a,
|
|
210
211
|
o
|
|
211
212
|
]), m = l[e] || "", i = v((p) => {
|
|
212
|
-
const h =
|
|
213
|
+
const h = le(p, e, l);
|
|
213
214
|
r(h);
|
|
214
215
|
}, [
|
|
215
216
|
r,
|
|
@@ -226,7 +227,7 @@ function N(e) {
|
|
|
226
227
|
isFirstPart: f
|
|
227
228
|
};
|
|
228
229
|
}
|
|
229
|
-
function
|
|
230
|
+
function H({ datePart: e, className: a }) {
|
|
230
231
|
const { inputId: r, labelId: o } = g(e), { t: s } = P(), l = `field.date.label.${e.toLowerCase()}`, c = s(l);
|
|
231
232
|
return /* @__PURE__ */ t.createElement("label", {
|
|
232
233
|
id: o,
|
|
@@ -234,36 +235,36 @@ function V({ datePart: e, className: a }) {
|
|
|
234
235
|
className: a
|
|
235
236
|
}, c);
|
|
236
237
|
}
|
|
237
|
-
const Te = "_fields_16lz4_1", Ye = "_month_16lz4_10", ve = "_day_16lz4_11", we = "_year_16lz4_12",
|
|
238
|
+
const Te = "_fields_16lz4_1", Ye = "_month_16lz4_10", ve = "_day_16lz4_11", we = "_year_16lz4_12", Ve = "_dayInput_16lz4_28", ze = "_yearInput_16lz4_29", Be = "_monthTrigger_16lz4_33", He = "_monthOption_16lz4_53", I = {
|
|
238
239
|
fields: Te,
|
|
239
240
|
month: Ye,
|
|
240
241
|
day: ve,
|
|
241
242
|
year: we,
|
|
242
|
-
dayInput:
|
|
243
|
-
yearInput:
|
|
244
|
-
monthTrigger:
|
|
245
|
-
monthOption:
|
|
243
|
+
dayInput: Ve,
|
|
244
|
+
yearInput: ze,
|
|
245
|
+
monthTrigger: Be,
|
|
246
|
+
monthOption: He
|
|
246
247
|
}, xe = ({ content: e, locale: a }) => /* @__PURE__ */ t.createElement(ee, {
|
|
247
248
|
content: e,
|
|
248
249
|
locale: a
|
|
249
250
|
}), lt = () => {
|
|
250
|
-
const e =
|
|
251
|
+
const e = ye(I.monthOption, Le), a = U(I.dayInput), r = U(I.yearInput);
|
|
251
252
|
return /* @__PURE__ */ t.createElement(n, {
|
|
252
253
|
className: I.fields
|
|
253
254
|
}, /* @__PURE__ */ t.createElement(n.Label, {
|
|
254
255
|
className: b(S, E.label)
|
|
255
256
|
}, /* @__PURE__ */ t.createElement(n.Label.Required, {
|
|
256
|
-
className: b(
|
|
257
|
+
className: b(ce, E.requiredMark)
|
|
257
258
|
})), /* @__PURE__ */ t.createElement(n.Month, {
|
|
258
259
|
className: I.month
|
|
259
260
|
}, /* @__PURE__ */ t.createElement(n.Month.Label, {
|
|
260
261
|
className: b(S, E.label)
|
|
261
262
|
}), /* @__PURE__ */ t.createElement(n.Month.Trigger, {
|
|
262
|
-
className: b(
|
|
263
|
-
}, /* @__PURE__ */ t.createElement(
|
|
263
|
+
className: b(ie, E.input, I.monthTrigger)
|
|
264
|
+
}, /* @__PURE__ */ t.createElement(Ne, {
|
|
264
265
|
className: E.dropdownIcon
|
|
265
266
|
})), /* @__PURE__ */ t.createElement(n.Month.Options, {
|
|
266
|
-
className: b(
|
|
267
|
+
className: b(de, E.selectPopover, E.dropdownPopover)
|
|
267
268
|
}, /* @__PURE__ */ t.createElement(n.Month.Options.Option, {
|
|
268
269
|
className: e
|
|
269
270
|
}))), /* @__PURE__ */ t.createElement(n.Day, {
|
|
@@ -279,9 +280,9 @@ const Te = "_fields_16lz4_1", Ye = "_month_16lz4_10", ve = "_day_16lz4_11", we =
|
|
|
279
280
|
}), /* @__PURE__ */ t.createElement(n.Year.Input, {
|
|
280
281
|
className: r
|
|
281
282
|
})), /* @__PURE__ */ t.createElement(n.Error, {
|
|
282
|
-
className: b(
|
|
283
|
-
}, /* @__PURE__ */ t.createElement(
|
|
284
|
-
className: b(
|
|
283
|
+
className: b(me, E.error)
|
|
284
|
+
}, /* @__PURE__ */ t.createElement(_e, null), /* @__PURE__ */ t.createElement(n.Error.Text, null)), /* @__PURE__ */ t.createElement(n.Description, {
|
|
285
|
+
className: b(ue, E.description)
|
|
285
286
|
}, xe));
|
|
286
287
|
};
|
|
287
288
|
export {
|
package/dist/component/{date-picker-field-rac-l8CuNLev.js → date-picker-field-rac-DgBfvDRc.js}
RENAMED
|
@@ -4,14 +4,14 @@ import e, { useState as O, useCallback as k, useContext as ee, useRef as A, useM
|
|
|
4
4
|
import { parseDate as te } from "@internationalized/date";
|
|
5
5
|
import { UNSAFE_PortalProvider as re } from "react-aria";
|
|
6
6
|
import { I18nProvider as ne, DatePicker as ae, DatePickerStateContext as oe, Group as le, DateInput as se, DateSegment as ce, Calendar as ie, CalendarMonthPicker as me, CalendarYearPicker as ue, CalendarGrid as de, Dialog as ge, CalendarCell as Ee, Button as M, Select as x, SelectValue as w, ListBox as Y, ListBoxItem as B } from "react-aria-components";
|
|
7
|
-
import { D as f, b9 as T, b6 as U, b1 as F, bb as pe, I as De, U as fe, t as Ce, n as ye, v as Se, p as ve } from "./form-
|
|
7
|
+
import { D as f, b9 as T, b6 as U, b1 as F, bb as pe, I as De, U as fe, t as Ce, n as ye, v as Se, p as ve } from "./form-CimhBiBc.js";
|
|
8
8
|
import { g as Te, c as P } from "./calendar.module-DnhTT4QT.js";
|
|
9
9
|
import { f as E, a as v } from "./find-child-C60k4CxG.js";
|
|
10
|
-
import { D as he, E as _e } from "./field-error-headless-
|
|
11
|
-
import { L as Ne } from "./field-label-headless-
|
|
10
|
+
import { D as he, E as _e } from "./field-error-headless-COObBNJG.js";
|
|
11
|
+
import { L as Ne } from "./field-label-headless-DhXceghb.js";
|
|
12
12
|
import { D as be, N as L, S as V } from "./non-modal-popover-DtIMXHbe.js";
|
|
13
|
-
import { u as Ie } from "./use-is-forced-open-dropdown-
|
|
14
|
-
import { i as Fe } from "./date-availability-
|
|
13
|
+
import { u as Ie } from "./use-is-forced-open-dropdown-RE1Ml2A3.js";
|
|
14
|
+
import { i as Fe } from "./date-availability-B3unFx4z.js";
|
|
15
15
|
import { C as I } from "./chevron-down-icon-CcpVm6B-.js";
|
|
16
16
|
import { E as Le } from "./error-icon-hZxQ6DEy.js";
|
|
17
17
|
import { H as Oe } from "./custom-focus-class-_483Pkwp.js";
|