@wix/form-elements 1.145.0 → 1.146.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-De-uH9rz.js → appointment-rac-scUix9QX.js} +4 -4
- package/dist/component/{bookings-address-rac-DB6QCMQJ.js → bookings-address-rac-CKemkJOO.js} +1 -1
- package/dist/component/{bookings-email-rac-g6ZdB_BO.js → bookings-email-rac-CDqdhPAB.js} +1 -1
- package/dist/component/{bookings-first-name-rac-DQgL_VHl.js → bookings-first-name-rac-DEy_7Hjb.js} +1 -1
- package/dist/component/{bookings-header-rac-DAnIm-Oq.js → bookings-header-rac-Bl4xy9lB.js} +1 -1
- package/dist/component/{bookings-last-name-rac-D62jNdDb.js → bookings-last-name-rac-CsL9xQ1W.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-5z8HfBhU.js → bookings-login-bar-rac-DkHYQ4No.js} +1 -1
- package/dist/component/{bookings-phone-rac-D0gu-_wy.js → bookings-phone-rac-BoBiFwbV.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-b4J1HcdI.js → bookings-rich-text-rac-DZZnPKWA.js} +1 -1
- package/dist/component/{checkbox-field-rac-CmRRc9Dz.js → checkbox-field-rac-UgLmJxB-.js} +4 -4
- package/dist/component/{checkbox-group-field-headless-CB8yAfMe.js → checkbox-group-field-headless-C809nB0Q.js} +3 -3
- package/dist/component/{checkbox-group-field-rac-C5gRZRTd.js → checkbox-group-field-rac-u4i4wG21.js} +4 -4
- package/dist/component/{checkbox-group-rac-DNDF1Irh.js → checkbox-group-rac-DBAQhSo3.js} +1 -1
- package/dist/component/{checkbox-rac-B9vztGBU.js → checkbox-rac-FDQVsI5-.js} +1 -1
- package/dist/component/{contacts-address-rac-CKZeSncj.js → contacts-address-rac-DnArylPa.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-BbpNNQgF.js → contacts-birthdate-rac-C19jhGEO.js} +1 -1
- package/dist/component/{contacts-company-rac-BX2KT201.js → contacts-company-rac-Dxs0hs_i.js} +1 -1
- package/dist/component/{contacts-email-rac-5Irzx1mA.js → contacts-email-rac-D-H43L8r.js} +1 -1
- package/dist/component/{contacts-first-name-rac-CxKp8_2u.js → contacts-first-name-rac-DwV5NESk.js} +1 -1
- package/dist/component/{contacts-last-name-rac-BDCbSv5I.js → contacts-last-name-rac-C5v2xurf.js} +1 -1
- package/dist/component/{contacts-phone-rac-BM_PV_uH.js → contacts-phone-rac-D9a5x-xl.js} +1 -1
- package/dist/component/{contacts-position-rac-1aqthQSi.js → contacts-position-rac-DfsgOv-k.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-CdqXs4kp.js → contacts-subscribe-rac-B-Hho0Kb.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-BKHpcDb6.js → contacts-tax-id-rac-q6TQkB4b.js} +1 -1
- package/dist/component/{date-availability-DmFFTX8p.js → date-availability-CMDvf5VU.js} +1 -1
- package/dist/component/date-input-field-rac-C1WLUct3.js +297 -0
- package/dist/component/{date-input-rac-BB6qZ16w.js → date-input-rac-cNQ-nr4D.js} +1 -1
- package/dist/component/{date-picker-field-rac-Ckwu2vD6.js → date-picker-field-rac-mx11z-MO.js} +5 -5
- package/dist/component/{date-picker-rac-DSqzUAaH.js → date-picker-rac-DeTz17zC.js} +1 -1
- package/dist/component/{date-time-input-field-rac-DO-iRdkW.js → date-time-input-field-rac-feQ2E1eU.js} +6 -6
- package/dist/component/{date-time-input-rac-smVCCxdY.js → date-time-input-rac-G0s0xP4v.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-B8bx3rT2.js → dext-checkbox-group-rac-BcTN1nJb.js} +2 -2
- package/dist/component/{dext-checkbox-rac-x8VLGRbc.js → dext-checkbox-rac-DX0TOrCO.js} +1 -1
- package/dist/component/{dext-date-picker-rac-D2a9NXap.js → dext-date-picker-rac-CpDp11oa.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-Cp5XjpGv.js → dext-date-time-input-rac-BRvO8izU.js} +1 -1
- package/dist/component/{dext-dropdown-rac-nWgEvyxt.js → dext-dropdown-rac-DGZ4Yi_X.js} +1 -1
- package/dist/component/{dext-email-rac-CkX6ya8p.js → dext-email-rac-B9YCFHB4.js} +1 -1
- package/dist/component/{dext-number-input-rac-CKT0MS1x.js → dext-number-input-rac-D890dBZf.js} +1 -1
- package/dist/component/{dext-phone-rac-DM2E7zW_.js → dext-phone-rac-BAQftbXo.js} +1 -1
- package/dist/component/{dext-radio-group-rac-Czr5yY3K.js → dext-radio-group-rac-CtEjnu_X.js} +2 -2
- package/dist/component/{dext-rating-input-rac-CKWNpFuu.js → dext-rating-input-rac-BqQKVaHo.js} +1 -1
- package/dist/component/{dext-tags-rac-6AskGGTp.js → dext-tags-rac-zxxKcNUe.js} +2 -2
- package/dist/component/{dext-text-area-rac-ClGLD7sD.js → dext-text-area-rac-Ctp9SwPg.js} +1 -1
- package/dist/component/{dext-text-input-rac-Blbk53d4.js → dext-text-input-rac-c_QMlyjr.js} +1 -1
- package/dist/component/{dext-url-input-rac-BuitmJU0.js → dext-url-input-rac-96pv15aC.js} +1 -1
- package/dist/component/{donation-rac-DOifFCD7.js → donation-rac-GEWKSLJY.js} +5 -5
- package/dist/component/{dropdown-field-headless-m2P6s7X5.js → dropdown-field-headless-C3OxMhLE.js} +5 -5
- package/dist/component/{dropdown-field-rac-5e6wWJBl.js → dropdown-field-rac-CCXfBmSc.js} +4 -4
- package/dist/component/{dropdown-rac-BGxE9pJB.js → dropdown-rac-CR7hswXE.js} +1 -1
- package/dist/component/{ecom-address-rac-kbD9qW5Y.js → ecom-address-rac-khMuxEFD.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-CE-Yixnj.js → ecom-subscription-checkbox-rac-CAi_AHpb.js} +2 -2
- package/dist/component/{email-input-field-rac-CbwcB33o.js → email-input-field-rac-B83mY2lg.js} +5 -3
- package/dist/component/{events-repeater-rac-CGhUscBr.js → events-repeater-rac-ClEwXgmb.js} +4 -4
- package/dist/component/{events-rsvp-rac-AQ33zPTe.js → events-rsvp-rac-BJ5q2SVR.js} +3 -3
- package/dist/component/{field-error-headless-ClPQ03Jc.js → field-error-headless-CsYQCsiT.js} +1 -1
- package/dist/component/{field-label-headless-DhN8Lkuq.js → field-label-headless-Yg_1PMSg.js} +1 -1
- package/dist/component/{file-upload-rac-yTx1ZRhZ.js → file-upload-rac-DJsuI_lR.js} +4 -4
- package/dist/component/{fixed-payment-rac-nlyxa9nB.js → fixed-payment-rac-BMFe9wxU.js} +3 -3
- package/dist/component/{form-D3iU18lh.js → form-Bed4Kfz8.js} +4135 -4163
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-DAEzcleV.js → header-field-rac-DPQTrOSZ.js} +2 -2
- package/dist/component/{header-rac-CJZ4qMFg.js → header-rac-CzXsuLmE.js} +1 -1
- package/dist/component/{image-choice-rac-BFAMHwPh.js → image-choice-rac-R_4pbOSr.js} +4 -4
- package/dist/component/{index-W7GOFnq8.js → index-DZxHlvzt.js} +4 -4
- package/dist/component/{index-DQW26cnX.js → index-qSZCe_WC.js} +2 -2
- package/dist/component/{isObjectLike-CE8eaxSI.js → isObjectLike-B-a5uaU-.js} +1 -1
- package/dist/component/{multiline-address-field-rac-FbJO0HFf.js → multiline-address-field-rac-rv4IZZy_.js} +15 -7
- package/dist/component/{multiline-address-rac-CI-vt6Pm.js → multiline-address-rac-DZ7cYtgn.js} +1 -1
- package/dist/component/{number-input-field-rac-BRVAr7LL.js → number-input-field-rac-CL9iXKIf.js} +4 -4
- package/dist/component/{number-input-rac-C8hCiJiu.js → number-input-rac-BeGn6qJR.js} +1 -1
- package/dist/component/{password-rac-Baslr6Ga.js → password-rac-DfvhdsKG.js} +51 -50
- package/dist/component/{payment-input-rac-CfJSKxYz.js → payment-input-rac-BmMfi5rf.js} +18 -17
- package/dist/component/{phone-input-field-rac-Dqh4CXdC.js → phone-input-field-rac-DW0a1pXs.js} +7 -6
- package/dist/component/{phone-rac-DaLuGuxd.js → phone-rac-quZjJ08H.js} +1 -1
- package/dist/component/{product-list-rac-PNMwRBtL.js → product-list-rac-Ci0KB7sN.js} +4 -4
- package/dist/component/{quiz-radio-group-rac-DN8vY-oM.js → quiz-radio-group-rac--UUtGx2t.js} +1 -1
- package/dist/component/{radio-button-module-classes-DlJi9a2f.js → radio-button-module-classes-CqdBGknT.js} +3 -3
- package/dist/component/{radio-group-field-rac-C0tLXhl5.js → radio-group-field-rac-w8fHpFKJ.js} +4 -4
- package/dist/component/{radio-group-rac-FAk7PYgP.js → radio-group-rac-jO8aghii.js} +1 -1
- package/dist/component/{rating-input-field-rac-Cl1kH_uu.js → rating-input-field-rac-BRc2PtqE.js} +4 -4
- package/dist/component/{rating-input-rac-D9p-0pkI.js → rating-input-rac-D9zs06xR.js} +1 -1
- package/dist/component/{rich-content-rac.module-Dkr46kPC.js → rich-content-rac.module-Cv3ZmD00.js} +1 -1
- package/dist/component/{rich-text-field-rac-DthhTvTp.js → rich-text-field-rac-BmWuIfA8.js} +2 -2
- package/dist/component/{rich-text-rac-DqZX4NeB.js → rich-text-rac-BnqnrvB1.js} +1 -1
- package/dist/component/{service-dropdown-rac-BMOGLU2Z.js → service-dropdown-rac-Cl81KfJU.js} +5 -5
- package/dist/component/{services-multi-choice-rac-DcdUewzJ.js → services-multi-choice-rac-sQ1NF9hY.js} +5 -5
- package/dist/component/{signature-rac-BRvN6kUW.js → signature-rac-Huairu7V.js} +4 -4
- package/dist/component/{submit-button-rac-B70UC8eS.js → submit-button-rac-Dpg7N0TG.js} +2 -2
- package/dist/component/{tags-field-rac-NpYyV8X4.js → tags-field-rac-BQ8TEqXH.js} +5 -5
- package/dist/component/{tags-rac-BMEbpJ-z.js → tags-rac-CFOmyCCc.js} +1 -1
- package/dist/component/{text-area-field-rac-BLSrNwJ6.js → text-area-field-rac-DNiMa7d3.js} +4 -4
- package/dist/component/{text-area-rac-Cm7aAfIz.js → text-area-rac-kLFe-KbZ.js} +1 -1
- package/dist/component/{text-input-field-rac-BDqV7s0M.js → text-input-field-rac-CqENSUUX.js} +3 -3
- package/dist/component/text-input-headless-BdPkEeK2.js +45 -0
- package/dist/component/{text-input-rac-Cc_SkCCS.js → text-input-rac-uYQEfOtE.js} +1 -1
- package/dist/component/{time-input-rac-DDCiAFe2.js → time-input-rac-BYoojlJ9.js} +4 -4
- package/dist/component/{url-input-field-rac-jen6pbz7.js → url-input-field-rac-BioH7kuz.js} +20 -19
- package/dist/component/{url-input-rac-BWh6udtS.js → url-input-rac-D2VSSyqW.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-OD8brKoy.js → use-dropdown-option-class-name-BEmvU-Gg.js} +2 -2
- package/dist/component/{use-dropdown-trigger-class-name-BrkmG0ad.js → use-dropdown-trigger-class-name-qj9skLWZ.js} +2 -2
- package/dist/component/{use-element-state-class-name-B1r_nXW1.js → use-element-state-class-name-oiKCauK-.js} +1 -1
- package/dist/component/{use-hoverable-input-class-name-B-FhrcyQ.js → use-hoverable-input-class-name-BW3nCyhG.js} +2 -2
- package/dist/component/{use-service-options-base-CTA_43F3.js → use-service-options-base-DXG60hA5.js} +1 -1
- package/dist/component/use-text-input-class-name-BhQFcXYH.js +6 -0
- package/package.json +2 -2
- package/dist/component/date-input-field-rac-BnlAOn12.js +0 -290
- package/dist/component/text-input-headless-B0jcwDev.js +0 -44
- package/dist/component/use-text-input-class-name-BXuk3TK7.js +0 -6
|
@@ -6,12 +6,12 @@ import { E as lt } from "./error-icon-hZxQ6DEy.js";
|
|
|
6
6
|
import { g as ct, c as Ce } from "./calendar.module-CKCBG_Pg.js";
|
|
7
7
|
import { H as me } from "./custom-focus-class-_483Pkwp.js";
|
|
8
8
|
import { s as ue } from "./field-rac.module-DfEb7pBp.js";
|
|
9
|
-
import { bf as De, be as mt, bj as Te, bx as ut, bw as dt, bn as re, bk as ie, bp as ft, bm as Dt, F as Et, h as St, R as _t, $ as pt, g as Nt, j as We, i as At, m as yt, k as bt, G as It, u as Lt, l as Ot } from "./form-
|
|
10
|
-
import { u as gt } from "./use-element-state-class-name-
|
|
9
|
+
import { bf as De, be as mt, bj as Te, bx as ut, bw as dt, bn as re, bk as ie, bp as ft, bm as Dt, F as Et, h as St, R as _t, $ as pt, g as Nt, j as We, i as At, m as yt, k as bt, G as It, u as Lt, l as Ot } from "./form-Bed4Kfz8.js";
|
|
10
|
+
import { u as gt } from "./use-element-state-class-name-oiKCauK-.js";
|
|
11
11
|
import { ListBox as Tt, Button as ke, ListBoxItem as kt, RadioGroup as vt, RadioField as Rt, RadioButton as wt } from "react-aria-components";
|
|
12
12
|
import { f as T, a as Ee } from "./find-child-C60k4CxG.js";
|
|
13
|
-
import { D as Mt, E as Ft } from "./field-error-headless-
|
|
14
|
-
import { L as ht } from "./field-label-headless-
|
|
13
|
+
import { D as Mt, E as Ft } from "./field-error-headless-CsYQCsiT.js";
|
|
14
|
+
import { L as ht } from "./field-label-headless-Yg_1PMSg.js";
|
|
15
15
|
import { F as Ct } from "./fieldset-headless-CD3fds9J.js";
|
|
16
16
|
import "date-fns";
|
|
17
17
|
import { V as Ge } from "./headless-styles-CmcyA_pi.js";
|
package/dist/component/{bookings-login-bar-rac-5z8HfBhU.js → bookings-login-bar-rac-DkHYQ4No.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import o from "react";
|
|
2
2
|
import E from "classnames";
|
|
3
|
-
import { bn as d, bx as b, bf as f, bj as x, P as p } from "./form-
|
|
3
|
+
import { bn as d, bx as b, bf as f, bj as x, P as p } from "./form-Bed4Kfz8.js";
|
|
4
4
|
import { Button as L } from "react-aria-components";
|
|
5
5
|
import { a as m, f as g } from "./find-child-C60k4CxG.js";
|
|
6
6
|
const l = ({ children: n }) => {
|
|
@@ -2,16 +2,16 @@ import { RicosViewer as Xn } from "@wix/ricos/viewer";
|
|
|
2
2
|
import U from "classnames";
|
|
3
3
|
import b, { useMemo as $n, useRef as Jn, useCallback as Yn } from "react";
|
|
4
4
|
import { CheckboxField as Qn, CheckboxButton as Zn } from "react-aria-components";
|
|
5
|
-
import { aX as ei, bn as Zr, aF as Qr, aE as fn, bx as ri, bf as ti, b3 as ai, bk as ni, bp as ii, n as si, $ as oi, s as ui, aA as ci, G as fi, u as li, r as _i } from "./form-
|
|
5
|
+
import { aX as ei, bn as Zr, aF as Qr, aE as fn, bx as ri, bf as ti, b3 as ai, bk as ni, bp as ii, n as si, $ as oi, s as ui, aA as ci, G as fi, u as li, r as _i } from "./form-Bed4Kfz8.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-CsYQCsiT.js";
|
|
8
8
|
import { Node_Type as di } from "@wix/ricos/schema";
|
|
9
|
-
import { c as re, r as $, e as S, a as J, d as yi, b as bi } from "./isObjectLike-
|
|
9
|
+
import { c as re, r as $, e as S, a as J, d as yi, b as bi } from "./isObjectLike-B-a5uaU-.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-6173wvuW.js";
|
|
13
13
|
import { s as oe } from "./field-rac.module-DfEb7pBp.js";
|
|
14
|
-
import { u as Ai } from "./use-element-state-class-name-
|
|
14
|
+
import { u as Ai } from "./use-element-state-class-name-oiKCauK-.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 k, useCallback as $, useRef as w, useState as W, useEffect as A } from "react";
|
|
2
2
|
import { CheckboxGroup as M, CheckboxField as j, CheckboxButton as z, TextField as J, Input as K } from "react-aria-components";
|
|
3
3
|
import { debounce as Q } from "ts-debounce";
|
|
4
|
-
import { bn as R, bk as U, bx as X, bp as Y } from "./form-
|
|
4
|
+
import { bn as R, bk as U, bx as X, bp as Y } from "./form-Bed4Kfz8.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-CsYQCsiT.js";
|
|
7
|
+
import { L as te } from "./field-label-headless-Yg_1PMSg.js";
|
|
8
8
|
import { F as ne } from "./fieldset-headless-CD3fds9J.js";
|
|
9
9
|
import { S as ae } 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-C5gRZRTd.js → checkbox-group-field-rac-u4i4wG21.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-C809nB0Q.js";
|
|
5
5
|
import { E as n } from "./error-icon-hZxQ6DEy.js";
|
|
6
6
|
import { C as c } from "./checkbox-indicator-module-classes-6173wvuW.js";
|
|
7
7
|
import { s } from "./field-rac.module-DfEb7pBp.js";
|
|
8
|
-
import { R as i, $ as E, o as p, q as C, G as O, u as _, p as R } from "./form-
|
|
8
|
+
import { R as i, $ as E, o as p, q as C, G as O, u as _, p as R } from "./form-Bed4Kfz8.js";
|
|
9
9
|
import { o as l } from "./options-rac.module-_THNq6Qq.js";
|
|
10
|
-
import { u as I } from "./use-element-state-class-name-
|
|
11
|
-
import { u as L } from "./use-text-input-class-name-
|
|
10
|
+
import { u as I } from "./use-element-state-class-name-oiKCauK-.js";
|
|
11
|
+
import { u as L } from "./use-text-input-class-name-BhQFcXYH.js";
|
|
12
12
|
const u = ({ content: o, locale: r }) => /* @__PURE__ */ e.createElement(m, {
|
|
13
13
|
content: o,
|
|
14
14
|
locale: r
|
|
@@ -0,0 +1,297 @@
|
|
|
1
|
+
import { RicosViewer as ae } from "@wix/ricos/viewer";
|
|
2
|
+
import y from "classnames";
|
|
3
|
+
import t, { useMemo as N, useState as k, useCallback as v, useRef as w } from "react";
|
|
4
|
+
import { UNSAFE_PortalProvider as ne } from "react-aria";
|
|
5
|
+
import { ListBoxItem as re, Select as oe, TextField as q, SelectValue as se, Input as z } from "react-aria-components";
|
|
6
|
+
import { bn as h, bk as G, bf as H, aU as K, b5 as Q, aH as o, bx as T, aO as le, aV as ce, bc as ie, bp as V, R as M, $ as me, x as de, G as ue, u as pe } from "./form-Bed4Kfz8.js";
|
|
7
|
+
import { f as p, a as B } from "./find-child-C60k4CxG.js";
|
|
8
|
+
import { g as Ee } from "./helpers-HmkkXrh2.js";
|
|
9
|
+
import { D as fe, E as be } from "./field-error-headless-CsYQCsiT.js";
|
|
10
|
+
import { L as ye } from "./field-label-headless-Yg_1PMSg.js";
|
|
11
|
+
import { F as De } from "./fieldset-headless-CD3fds9J.js";
|
|
12
|
+
import { N as he, E as Oe, S as Ie } from "./non-modal-popover-D-u13tmp.js";
|
|
13
|
+
import { a as ge, u as Ne } from "./use-dropdown-trigger-class-name-qj9skLWZ.js";
|
|
14
|
+
import { V as Ce, u as _e } from "./use-dropdown-option-class-name-BEmvU-Gg.js";
|
|
15
|
+
import { C as Le } from "./chevron-down-icon-CcpVm6B-.js";
|
|
16
|
+
import { E as Fe } from "./error-icon-hZxQ6DEy.js";
|
|
17
|
+
import { H as Re } from "./custom-focus-class-_483Pkwp.js";
|
|
18
|
+
import { s as f } from "./field-rac.module-DfEb7pBp.js";
|
|
19
|
+
import { u as $ } from "./use-text-input-class-name-BhQFcXYH.js";
|
|
20
|
+
const Me = {
|
|
21
|
+
[o.MONTH]: "bday-month",
|
|
22
|
+
[o.DAY]: "bday-day",
|
|
23
|
+
[o.YEAR]: "bday-year"
|
|
24
|
+
}, x = (e, a) => e === "bday" ? Me[a] : void 0, n = ({ children: e, className: a }) => {
|
|
25
|
+
const { id: r, required: s, onBlur: l, onFocus: c, FieldLayout: m } = h(), { inputId: i, labelId: d, ariaDescribedBy: u } = G(), { regionalFormat: E } = H(), b = N(() => K(E).filter(Q).map((S) => S.toUpperCase()), [
|
|
26
|
+
E
|
|
27
|
+
]), _ = p(e, n.Label), P = p(e, n.Description), Y = p(e, n.Error), O = {
|
|
28
|
+
[o.MONTH]: p(e, n.Month),
|
|
29
|
+
[o.DAY]: p(e, n.Day),
|
|
30
|
+
[o.YEAR]: p(e, n.Year)
|
|
31
|
+
};
|
|
32
|
+
return /* @__PURE__ */ t.createElement(m, {
|
|
33
|
+
fieldId: r,
|
|
34
|
+
renderLabel: () => B(_, {
|
|
35
|
+
as: "div"
|
|
36
|
+
}),
|
|
37
|
+
renderInput: () => /* @__PURE__ */ t.createElement(De, {
|
|
38
|
+
id: i,
|
|
39
|
+
ariaLabelledBy: d,
|
|
40
|
+
ariaDescribedBy: u,
|
|
41
|
+
required: s,
|
|
42
|
+
onBlur: l,
|
|
43
|
+
onFocus: c,
|
|
44
|
+
className: a
|
|
45
|
+
}, O[b[0]], O[b[1]], O[b[2]]),
|
|
46
|
+
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, Y, P)
|
|
47
|
+
});
|
|
48
|
+
}, I = ({ children: e, className: a }) => {
|
|
49
|
+
const { id: r, disabled: s, readOnly: l, showDateLabels: c, hidePlaceholder: m, autoComplete: i } = h(), { labelId: d } = g(o.MONTH), { partValue: u, partError: E, onPartChange: b } = C(o.MONTH), { t: _ } = T(), [P, Y] = k(!1), O = ge(r), [S, W] = k(null), j = m ? Oe : _("field.date.placeholder.month"), J = v((R) => {
|
|
50
|
+
l || b(typeof R == "string" ? R : "");
|
|
51
|
+
}, [
|
|
52
|
+
b,
|
|
53
|
+
l
|
|
54
|
+
]), X = v((R) => {
|
|
55
|
+
Y(R && !l);
|
|
56
|
+
}, [
|
|
57
|
+
l
|
|
58
|
+
]), Z = p(e, I.Label), ee = p(e, I.Trigger), te = p(e, I.Options);
|
|
59
|
+
return /* @__PURE__ */ t.createElement("div", {
|
|
60
|
+
className: a,
|
|
61
|
+
"data-date-field": !0
|
|
62
|
+
}, c ? Z : null, /* @__PURE__ */ t.createElement("div", {
|
|
63
|
+
ref: W,
|
|
64
|
+
style: {
|
|
65
|
+
display: "contents"
|
|
66
|
+
}
|
|
67
|
+
}), /* @__PURE__ */ t.createElement(ne, {
|
|
68
|
+
getContainer: () => S
|
|
69
|
+
}, /* @__PURE__ */ t.createElement(oe, {
|
|
70
|
+
autoComplete: x(i, o.MONTH),
|
|
71
|
+
"aria-labelledby": c ? d : void 0,
|
|
72
|
+
value: u || null,
|
|
73
|
+
onChange: J,
|
|
74
|
+
isDisabled: s,
|
|
75
|
+
isInvalid: E,
|
|
76
|
+
placeholder: j,
|
|
77
|
+
isOpen: O || P,
|
|
78
|
+
onOpenChange: O ? void 0 : X
|
|
79
|
+
}, ee, B(te, {
|
|
80
|
+
isForcedOpen: O
|
|
81
|
+
}))));
|
|
82
|
+
}, Ae = ({ className: e }) => /* @__PURE__ */ t.createElement(U, {
|
|
83
|
+
datePart: o.MONTH,
|
|
84
|
+
className: e
|
|
85
|
+
}), Te = ({ children: e, className: a }) => {
|
|
86
|
+
const { id: r, readOnly: s } = h(), { inputId: l } = g(o.MONTH), { partError: c, isFirstPart: m } = C(o.MONTH), i = w(null);
|
|
87
|
+
return V(() => {
|
|
88
|
+
var d;
|
|
89
|
+
m && ((d = i.current) == null || d.focus());
|
|
90
|
+
}, r), /* @__PURE__ */ t.createElement(Ie, {
|
|
91
|
+
ref: i,
|
|
92
|
+
id: l,
|
|
93
|
+
className: a,
|
|
94
|
+
"data-hook": o.MONTH,
|
|
95
|
+
"data-invalid": c || void 0,
|
|
96
|
+
"data-readonly": s || void 0
|
|
97
|
+
}, /* @__PURE__ */ t.createElement(se, null), e);
|
|
98
|
+
}, A = ({ children: e, className: a, ...r }) => {
|
|
99
|
+
const { isForcedOpen: s } = r, { language: l } = H(), c = N(() => Ee(l), [
|
|
100
|
+
l
|
|
101
|
+
]), m = p(e, A.Option) ?? /* @__PURE__ */ t.createElement(A.Option, null);
|
|
102
|
+
return /* @__PURE__ */ t.createElement(he, {
|
|
103
|
+
className: a,
|
|
104
|
+
containerPadding: 0,
|
|
105
|
+
offset: 0
|
|
106
|
+
}, /* @__PURE__ */ t.createElement(Ce, {
|
|
107
|
+
isForcedOpen: s,
|
|
108
|
+
autoFocus: s ? !1 : void 0
|
|
109
|
+
}, c.map((i, d) => B(m, {
|
|
110
|
+
key: String(d + 1),
|
|
111
|
+
value: String(d + 1),
|
|
112
|
+
label: i
|
|
113
|
+
}))));
|
|
114
|
+
}, Pe = ({ className: e, ...a }) => {
|
|
115
|
+
const { value: r, label: s } = a;
|
|
116
|
+
return /* @__PURE__ */ t.createElement(re, {
|
|
117
|
+
className: e,
|
|
118
|
+
id: r,
|
|
119
|
+
textValue: s
|
|
120
|
+
}, s);
|
|
121
|
+
};
|
|
122
|
+
I.Label = Ae;
|
|
123
|
+
I.Trigger = Te;
|
|
124
|
+
I.Options = A;
|
|
125
|
+
A.Option = Pe;
|
|
126
|
+
const L = ({ children: e, className: a }) => {
|
|
127
|
+
const { disabled: r, readOnly: s, showDateLabels: l } = h(), { labelId: c } = g(o.DAY), { partValue: m, partError: i, onPartChange: d } = C(o.DAY), u = p(e, L.Label), E = p(e, L.Input);
|
|
128
|
+
return /* @__PURE__ */ t.createElement("div", {
|
|
129
|
+
className: a,
|
|
130
|
+
"data-date-field": !0
|
|
131
|
+
}, l && u, /* @__PURE__ */ t.createElement(q, {
|
|
132
|
+
"aria-labelledby": l ? c : void 0,
|
|
133
|
+
value: m,
|
|
134
|
+
onChange: d,
|
|
135
|
+
isDisabled: r,
|
|
136
|
+
isReadOnly: s,
|
|
137
|
+
isInvalid: i
|
|
138
|
+
}, E));
|
|
139
|
+
}, Ye = ({ className: e }) => /* @__PURE__ */ t.createElement(U, {
|
|
140
|
+
datePart: o.DAY,
|
|
141
|
+
className: e
|
|
142
|
+
}), Se = ({ className: e }) => {
|
|
143
|
+
const { id: a, hidePlaceholder: r, autoComplete: s } = h(), { inputId: l } = g(o.DAY), { isFirstPart: c } = C(o.DAY), { t: m } = T(), i = w(null), d = r ? void 0 : m("field.date.placeholder.day");
|
|
144
|
+
return V(() => {
|
|
145
|
+
var u;
|
|
146
|
+
c && ((u = i.current) == null || u.focus());
|
|
147
|
+
}, a), /* @__PURE__ */ t.createElement(z, {
|
|
148
|
+
ref: i,
|
|
149
|
+
id: l,
|
|
150
|
+
className: e,
|
|
151
|
+
placeholder: d,
|
|
152
|
+
autoComplete: x(s, o.DAY),
|
|
153
|
+
maxLength: 2,
|
|
154
|
+
inputMode: "numeric",
|
|
155
|
+
"data-hook": o.DAY
|
|
156
|
+
});
|
|
157
|
+
};
|
|
158
|
+
L.Label = Ye;
|
|
159
|
+
L.Input = Se;
|
|
160
|
+
const F = ({ children: e, className: a }) => {
|
|
161
|
+
const { disabled: r, readOnly: s, showDateLabels: l } = h(), { labelId: c } = g(o.YEAR), { partValue: m, partError: i, onPartChange: d } = C(o.YEAR), u = p(e, F.Label), E = p(e, F.Input);
|
|
162
|
+
return /* @__PURE__ */ t.createElement("div", {
|
|
163
|
+
className: a,
|
|
164
|
+
"data-date-field": !0
|
|
165
|
+
}, l && u, /* @__PURE__ */ t.createElement(q, {
|
|
166
|
+
"aria-labelledby": l ? c : void 0,
|
|
167
|
+
value: m,
|
|
168
|
+
onChange: d,
|
|
169
|
+
isDisabled: r,
|
|
170
|
+
isReadOnly: s,
|
|
171
|
+
isInvalid: i
|
|
172
|
+
}, E));
|
|
173
|
+
}, ve = ({ className: e }) => /* @__PURE__ */ t.createElement(U, {
|
|
174
|
+
datePart: o.YEAR,
|
|
175
|
+
className: e
|
|
176
|
+
}), we = ({ className: e }) => {
|
|
177
|
+
const { id: a, hidePlaceholder: r, autoComplete: s } = h(), { inputId: l } = g(o.YEAR), { isFirstPart: c } = C(o.YEAR), { t: m } = T(), i = w(null), d = r ? void 0 : m("field.date.placeholder.year");
|
|
178
|
+
return V(() => {
|
|
179
|
+
var u;
|
|
180
|
+
c && ((u = i.current) == null || u.focus());
|
|
181
|
+
}, a), /* @__PURE__ */ t.createElement(z, {
|
|
182
|
+
ref: i,
|
|
183
|
+
id: l,
|
|
184
|
+
className: e,
|
|
185
|
+
placeholder: d,
|
|
186
|
+
autoComplete: x(s, o.YEAR),
|
|
187
|
+
maxLength: 4,
|
|
188
|
+
inputMode: "numeric",
|
|
189
|
+
"data-hook": o.YEAR
|
|
190
|
+
});
|
|
191
|
+
};
|
|
192
|
+
F.Label = ve;
|
|
193
|
+
F.Input = we;
|
|
194
|
+
n.Label = ye;
|
|
195
|
+
n.Month = I;
|
|
196
|
+
n.Day = L;
|
|
197
|
+
n.Year = F;
|
|
198
|
+
n.Description = fe;
|
|
199
|
+
n.Error = be;
|
|
200
|
+
function g(e) {
|
|
201
|
+
const { inputId: a } = G();
|
|
202
|
+
return N(() => {
|
|
203
|
+
const r = e.toLowerCase();
|
|
204
|
+
return {
|
|
205
|
+
inputId: `${a}-${r}-input`,
|
|
206
|
+
labelId: `${a}-${r}-label`
|
|
207
|
+
};
|
|
208
|
+
}, [
|
|
209
|
+
a,
|
|
210
|
+
e
|
|
211
|
+
]);
|
|
212
|
+
}
|
|
213
|
+
function C(e) {
|
|
214
|
+
const { value: a, onChange: r, hasError: s = !1 } = h(), { regionalFormat: l } = H(), c = N(() => le(a ?? ""), [
|
|
215
|
+
a
|
|
216
|
+
]), m = N(() => ce(s, a ?? ""), [
|
|
217
|
+
a,
|
|
218
|
+
s
|
|
219
|
+
]), i = c[e] || "", d = v((E) => {
|
|
220
|
+
const b = ie(E, e, c);
|
|
221
|
+
r(b);
|
|
222
|
+
}, [
|
|
223
|
+
r,
|
|
224
|
+
c,
|
|
225
|
+
e
|
|
226
|
+
]), u = N(() => K(l).filter(Q).map((_) => _.toUpperCase())[0] === e, [
|
|
227
|
+
l,
|
|
228
|
+
e
|
|
229
|
+
]);
|
|
230
|
+
return {
|
|
231
|
+
partValue: i,
|
|
232
|
+
partError: m[e],
|
|
233
|
+
onPartChange: d,
|
|
234
|
+
isFirstPart: u
|
|
235
|
+
};
|
|
236
|
+
}
|
|
237
|
+
function U({ datePart: e, className: a }) {
|
|
238
|
+
const { inputId: r, labelId: s } = g(e), { t: l } = T(), c = `field.date.label.${e.toLowerCase()}`, m = l(c);
|
|
239
|
+
return /* @__PURE__ */ t.createElement("label", {
|
|
240
|
+
id: s,
|
|
241
|
+
htmlFor: r,
|
|
242
|
+
className: a
|
|
243
|
+
}, m);
|
|
244
|
+
}
|
|
245
|
+
const He = "_fields_fw9my_1", Ve = "_month_fw9my_10", Be = "_day_fw9my_11", xe = "_year_fw9my_12", Ue = "_dayInput_fw9my_28", ke = "_yearInput_fw9my_29", $e = "_monthTrigger_fw9my_33", qe = "_monthOption_fw9my_53", D = {
|
|
246
|
+
fields: He,
|
|
247
|
+
month: Ve,
|
|
248
|
+
day: Be,
|
|
249
|
+
year: xe,
|
|
250
|
+
dayInput: Ue,
|
|
251
|
+
yearInput: ke,
|
|
252
|
+
monthTrigger: $e,
|
|
253
|
+
monthOption: qe
|
|
254
|
+
}, ze = ({ content: e, locale: a }) => /* @__PURE__ */ t.createElement(ae, {
|
|
255
|
+
content: e,
|
|
256
|
+
locale: a
|
|
257
|
+
}), dt = () => {
|
|
258
|
+
const e = Ne(D.monthTrigger), a = _e(D.monthOption, Re), r = $(D.dayInput), s = $(D.yearInput);
|
|
259
|
+
return /* @__PURE__ */ t.createElement(n, {
|
|
260
|
+
className: D.fields
|
|
261
|
+
}, /* @__PURE__ */ t.createElement(n.Label, {
|
|
262
|
+
className: y(M, f.label)
|
|
263
|
+
}, /* @__PURE__ */ t.createElement(n.Label.Required, {
|
|
264
|
+
className: y(me, f.requiredMark)
|
|
265
|
+
})), /* @__PURE__ */ t.createElement(n.Month, {
|
|
266
|
+
className: D.month
|
|
267
|
+
}, /* @__PURE__ */ t.createElement(n.Month.Label, {
|
|
268
|
+
className: y(M, f.label)
|
|
269
|
+
}), /* @__PURE__ */ t.createElement(n.Month.Trigger, {
|
|
270
|
+
className: e
|
|
271
|
+
}, /* @__PURE__ */ t.createElement(Le, {
|
|
272
|
+
className: f.dropdownIcon
|
|
273
|
+
})), /* @__PURE__ */ t.createElement(n.Month.Options, {
|
|
274
|
+
className: y(de, f.selectPopover, f.dropdownPopover)
|
|
275
|
+
}, /* @__PURE__ */ t.createElement(n.Month.Options.Option, {
|
|
276
|
+
className: a
|
|
277
|
+
}))), /* @__PURE__ */ t.createElement(n.Day, {
|
|
278
|
+
className: D.day
|
|
279
|
+
}, /* @__PURE__ */ t.createElement(n.Day.Label, {
|
|
280
|
+
className: y(M, f.label)
|
|
281
|
+
}), /* @__PURE__ */ t.createElement(n.Day.Input, {
|
|
282
|
+
className: r
|
|
283
|
+
})), /* @__PURE__ */ t.createElement(n.Year, {
|
|
284
|
+
className: D.year
|
|
285
|
+
}, /* @__PURE__ */ t.createElement(n.Year.Label, {
|
|
286
|
+
className: y(M, f.label)
|
|
287
|
+
}), /* @__PURE__ */ t.createElement(n.Year.Input, {
|
|
288
|
+
className: s
|
|
289
|
+
})), /* @__PURE__ */ t.createElement(n.Error, {
|
|
290
|
+
className: y(ue, f.error)
|
|
291
|
+
}, /* @__PURE__ */ t.createElement(Fe, null), /* @__PURE__ */ t.createElement(n.Error.Text, null)), /* @__PURE__ */ t.createElement(n.Description, {
|
|
292
|
+
className: y(pe, f.description)
|
|
293
|
+
}, ze));
|
|
294
|
+
};
|
|
295
|
+
export {
|
|
296
|
+
dt as D
|
|
297
|
+
};
|
package/dist/component/{date-picker-field-rac-Ckwu2vD6.js → date-picker-field-rac-mx11z-MO.js}
RENAMED
|
@@ -4,14 +4,14 @@ import e, { useState as A, useCallback as k, useContext as ee, useRef as O, useM
|
|
|
4
4
|
import { parseDate as te } from "@internationalized/date";
|
|
5
5
|
import { UNSAFE_PortalProvider as re } from "react-aria";
|
|
6
6
|
import { I18nProvider as ae, DatePicker as ne, DatePickerStateContext as oe, Group as le, DateInput as se, DateSegment as ce, Calendar as ie, CalendarMonthPicker as me, CalendarYearPicker as de, CalendarGrid as ue, Dialog as ge, CalendarCell as Ee, Button as M, Select as w, SelectValue as x, ListBox as Y, ListBoxItem as B } from "react-aria-components";
|
|
7
|
-
import { D as p, bn as T, bk as U, bf as F, bp as pe, R as fe, $ as De, t as Ce, G as ye, u as Se } from "./form-
|
|
7
|
+
import { D as p, bn as T, bk as U, bf as F, bp as pe, R as fe, $ as De, t as Ce, G as ye, u as Se } from "./form-Bed4Kfz8.js";
|
|
8
8
|
import { g as he, c as P } from "./calendar.module-CKCBG_Pg.js";
|
|
9
9
|
import { f as E, a as h } from "./find-child-C60k4CxG.js";
|
|
10
|
-
import { D as Te, E as be } from "./field-error-headless-
|
|
11
|
-
import { L as Ne } from "./field-label-headless-
|
|
10
|
+
import { D as Te, E as be } from "./field-error-headless-CsYQCsiT.js";
|
|
11
|
+
import { L as Ne } from "./field-label-headless-Yg_1PMSg.js";
|
|
12
12
|
import { D as ve, N as L, S as V } from "./non-modal-popover-D-u13tmp.js";
|
|
13
|
-
import { a as _e, u as Ie } from "./use-dropdown-trigger-class-name-
|
|
14
|
-
import { i as Fe } from "./date-availability-
|
|
13
|
+
import { a as _e, u as Ie } from "./use-dropdown-trigger-class-name-qj9skLWZ.js";
|
|
14
|
+
import { i as Fe } from "./date-availability-CMDvf5VU.js";
|
|
15
15
|
import { C as I } from "./chevron-down-icon-CcpVm6B-.js";
|
|
16
16
|
import { E as Le } from "./error-icon-hZxQ6DEy.js";
|
|
17
17
|
import { H as Ae } from "./custom-focus-class-_483Pkwp.js";
|
|
@@ -4,20 +4,20 @@ import t, { useMemo as T, useState as q, useCallback as H, useRef as U, useConte
|
|
|
4
4
|
import { parseTime as le } from "@internationalized/date";
|
|
5
5
|
import { UNSAFE_PortalProvider as ie } from "react-aria";
|
|
6
6
|
import { ListBoxItem as ce, Select as me, TextField as j, TimeField as de, SelectValue as ue, Input as K, DateInput as pe, DateSegment as x, TimeFieldStateContext as Ee } from "react-aria-components";
|
|
7
|
-
import { bn as f, bk as J, bf as $, aU as X, b5 as Z, aH as d, bx as L, b9 as Q, aW as fe, aO as he, bc as be, aQ as W, bp as z, R, $ as ge, x as Ie, G as De, u as Ne } from "./form-
|
|
7
|
+
import { bn as f, bk as J, bf as $, aU as X, b5 as Z, aH as d, bx as L, b9 as Q, aW as fe, aO as he, bc as be, aQ as W, bp as z, R, $ as ge, x as Ie, G as De, u as Ne } from "./form-Bed4Kfz8.js";
|
|
8
8
|
import { f as u, a as P } from "./find-child-C60k4CxG.js";
|
|
9
9
|
import { g as _e } from "./helpers-HmkkXrh2.js";
|
|
10
|
-
import { D as ye, E as Oe } from "./field-error-headless-
|
|
11
|
-
import { L as Te } from "./field-label-headless-
|
|
10
|
+
import { D as ye, E as Oe } from "./field-error-headless-CsYQCsiT.js";
|
|
11
|
+
import { L as Te } from "./field-label-headless-Yg_1PMSg.js";
|
|
12
12
|
import { F as Le } from "./fieldset-headless-CD3fds9J.js";
|
|
13
13
|
import { N as Ce, E as Fe, S as Pe } from "./non-modal-popover-D-u13tmp.js";
|
|
14
|
-
import { a as Me, u as Se } from "./use-dropdown-trigger-class-name-
|
|
15
|
-
import { V as Re, u as Ae } from "./use-dropdown-option-class-name-
|
|
14
|
+
import { a as Me, u as Se } from "./use-dropdown-trigger-class-name-qj9skLWZ.js";
|
|
15
|
+
import { V as Re, u as Ae } from "./use-dropdown-option-class-name-BEmvU-Gg.js";
|
|
16
16
|
import { C as Ve } from "./chevron-down-icon-CcpVm6B-.js";
|
|
17
17
|
import { E as Ye } from "./error-icon-hZxQ6DEy.js";
|
|
18
18
|
import { H as k } from "./custom-focus-class-_483Pkwp.js";
|
|
19
19
|
import { s as g } from "./field-rac.module-DfEb7pBp.js";
|
|
20
|
-
import { u as B } from "./use-text-input-class-name-
|
|
20
|
+
import { u as B } from "./use-text-input-class-name-BhQFcXYH.js";
|
|
21
21
|
const l = ({ children: e, className: a }) => {
|
|
22
22
|
const { id: n, required: r, onBlur: s, onFocus: o, FieldLayout: i } = f(), { inputId: m, labelId: c, ariaDescribedBy: b } = J(), { regionalFormat: p } = $(), _ = T(() => X(p).filter(Z).map((S) => S.toUpperCase()), [
|
|
23
23
|
p
|
package/dist/component/{dext-checkbox-group-rac-B8bx3rT2.js → dext-checkbox-group-rac-BcTN1nJb.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import o from "react";
|
|
2
|
-
import { bn as e, ap as t } from "./form-
|
|
3
|
-
import { C as p } from "./checkbox-group-field-rac-
|
|
2
|
+
import { bn as e, ap as t } from "./form-Bed4Kfz8.js";
|
|
3
|
+
import { C as p } from "./checkbox-group-field-rac-u4i4wG21.js";
|
|
4
4
|
import { D as s } from "./default-limits-D7qVv_Hv.js";
|
|
5
5
|
const C = () => {
|
|
6
6
|
const r = {
|