@wix/form-elements 1.103.0 → 1.105.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-DaBg4fM3.js +1011 -0
- package/dist/component/{bookings-address-rac-7ODYuuSG.js → bookings-address-rac-CkCIr0yY.js} +1 -1
- package/dist/component/{bookings-email-rac-BCnhC0YX.js → bookings-email-rac--o2G6bDi.js} +1 -1
- package/dist/component/{bookings-first-name-rac-DvpfHse1.js → bookings-first-name-rac-KilnnzGd.js} +1 -1
- package/dist/component/{bookings-header-rac-Dohy9hCz.js → bookings-header-rac-D9PwyQVM.js} +1 -1
- package/dist/component/{bookings-last-name-rac-CVDRbwd7.js → bookings-last-name-rac-qWHHoFsL.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-DavjHZGh.js → bookings-login-bar-rac-CA9lwDip.js} +1 -1
- package/dist/component/{bookings-phone-rac-Cj6Dz0vX.js → bookings-phone-rac-CJwbY3yf.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-DjmnegM6.js → bookings-rich-text-rac-B-7cedEB.js} +1 -1
- package/dist/component/{checkbox-field-rac-DbJQI0lK.js → checkbox-field-rac-D5YjimAI.js} +6 -6
- package/dist/component/{checkbox-group-field-headless-BWCsolHw.js → checkbox-group-field-headless-BJl8C2Lz.js} +3 -3
- package/dist/component/{checkbox-group-field-rac-Cmc2pwQi.js → checkbox-group-field-rac-CLDKYOsh.js} +5 -5
- package/dist/component/{checkbox-group-rac-q3wI6hQH.js → checkbox-group-rac-DfOsQWr7.js} +1 -1
- package/dist/component/{checkbox-indicator-module-classes-DhbNznSB.js → checkbox-indicator-module-classes-BpeSpGsW.js} +1 -1
- package/dist/component/{checkbox-rac-BsutELL1.js → checkbox-rac-DMDIZxxN.js} +1 -1
- package/dist/component/{contacts-address-rac-BUCtejza.js → contacts-address-rac-CrpSPX3x.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-1E453ZgP.js → contacts-birthdate-rac-B3vrz3B5.js} +1 -1
- package/dist/component/{contacts-company-rac-DrK20x29.js → contacts-company-rac-Nd4-07pv.js} +1 -1
- package/dist/component/{contacts-email-rac-CMiWMV_P.js → contacts-email-rac-DlKJXGue.js} +1 -1
- package/dist/component/{contacts-first-name-rac-DPwXc8-1.js → contacts-first-name-rac-CgfaCG0O.js} +1 -1
- package/dist/component/{contacts-last-name-rac-CeuRsbGC.js → contacts-last-name-rac-DmSqTPzC.js} +1 -1
- package/dist/component/{contacts-phone-rac-Cwjc5too.js → contacts-phone-rac-C9X_5axq.js} +1 -1
- package/dist/component/{contacts-position-rac-C8w3NNCn.js → contacts-position-rac-DeJrqxtm.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-CFejp0de.js → contacts-subscribe-rac-Dv-QNZZc.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-xNks1IAv.js → contacts-tax-id-rac-6pMwtJyC.js} +1 -1
- package/dist/component/{date-availability-xTIFwK6x.js → date-availability-DfL_xDci.js} +1 -1
- package/dist/component/{date-input-field-rac-DcoJJUZc.js → date-input-field-rac-DvlY0Ffu.js} +7 -7
- package/dist/component/{date-input-rac-CnZAuOkP.js → date-input-rac-Dr_MtbFO.js} +1 -1
- package/dist/component/{date-picker-field-rac-D__137lA.js → date-picker-field-rac-D42hJF0j.js} +56 -56
- package/dist/component/{date-picker-rac-DQ42fhVP.js → date-picker-rac-CtoqWMPa.js} +1 -1
- package/dist/component/{date-time-input-field-rac-BHBAMq3g.js → date-time-input-field-rac-C1rf0_aD.js} +7 -7
- package/dist/component/{date-time-input-rac-DbIAF6nq.js → date-time-input-rac-gFwBZVcJ.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-Ds2w4V3q.js → dext-checkbox-group-rac-B0dh55yz.js} +2 -2
- package/dist/component/{dext-checkbox-rac-DSidRTEl.js → dext-checkbox-rac-RQ7hpkFn.js} +1 -1
- package/dist/component/{dext-date-picker-rac-Derm4Q3d.js → dext-date-picker-rac-sJEfD5E6.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-BcyPuijC.js → dext-date-time-input-rac-BxPE1oVN.js} +1 -1
- package/dist/component/{dext-dropdown-rac-kDuk--KF.js → dext-dropdown-rac-BimIan_Z.js} +1 -1
- package/dist/component/{dext-email-rac-xys-YMg2.js → dext-email-rac-CjrC85Va.js} +1 -1
- package/dist/component/{dext-number-input-rac-BZpAijhk.js → dext-number-input-rac-CkMRmcJQ.js} +1 -1
- package/dist/component/{dext-phone-rac-CMPboOsF.js → dext-phone-rac-DO3qV3WL.js} +1 -1
- package/dist/component/{dext-radio-group-rac-5h9c9bW2.js → dext-radio-group-rac-CUaqRQSf.js} +2 -2
- package/dist/component/{dext-rating-input-rac-BobDzEXB.js → dext-rating-input-rac-CIRU2af7.js} +1 -1
- package/dist/component/{dext-tags-rac-DoJWzkrn.js → dext-tags-rac-DHqXtqOo.js} +2 -2
- package/dist/component/{dext-text-area-rac-BIRCFM2F.js → dext-text-area-rac-yBONPzSt.js} +1 -1
- package/dist/component/{dext-text-input-rac-Bzx5hcyp.js → dext-text-input-rac-CdhAUC2i.js} +1 -1
- package/dist/component/{dext-url-input-rac-C9hlh97b.js → dext-url-input-rac-B4IQEsp2.js} +1 -1
- package/dist/component/{donation-rac-CpEduCy1.js → donation-rac-D-rWK7OY.js} +96 -96
- package/dist/component/{dropdown-field-headless-Dcbu807N.js → dropdown-field-headless-CeDAK-PU.js} +4 -4
- package/dist/component/{dropdown-field-rac-mJwCTpQA.js → dropdown-field-rac-BzqUmKJ1.js} +3 -3
- package/dist/component/{dropdown-rac-N5I5XU3B.js → dropdown-rac-CHO-8WoH.js} +1 -1
- package/dist/component/{ecom-address-rac-_0TO5pFZ.js → ecom-address-rac-BZVqOncl.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-DNdz6UCu.js → ecom-subscription-checkbox-rac-BpILYYtb.js} +2 -2
- package/dist/component/{email-input-field-rac-VDJC1JLs.js → email-input-field-rac-Cb6ECUnT.js} +5 -5
- package/dist/component/{events-repeater-rac-CzBVzG00.js → events-repeater-rac-BaYgjHjJ.js} +6 -6
- package/dist/component/{events-rsvp-rac--ADJlIQz.js → events-rsvp-rac-CK0hpQKD.js} +3 -3
- package/dist/component/{field-error-headless-_ADCIvnx.js → field-error-headless-CN2-F78X.js} +1 -1
- package/dist/component/{field-label-headless-DiDxuhCI.js → field-label-headless-Ca6NcX2l.js} +1 -1
- package/dist/component/field-rac.module-B4l_0KRU.js +26 -0
- package/dist/component/{file-upload-rac-CiYo9UQA.js → file-upload-rac-C0DqDLp2.js} +4 -4
- package/dist/component/{fixed-payment-rac-DgNVdELB.js → fixed-payment-rac-C5qNAT_7.js} +4 -4
- package/dist/component/{form-DPmF8iaT.js → form-D1xJH87b.js} +69 -69
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-BuJTUp5S.js → header-field-rac-BN-Ib7VY.js} +2 -2
- package/dist/component/{header-rac-BphcUkmo.js → header-rac-CE0NjfoF.js} +1 -1
- package/dist/component/{image-choice-rac-CZSMzLY2.js → image-choice-rac-D6dIXR_x.js} +22 -22
- package/dist/component/{index-B0DLHSXg.js → index-CcsZgBFf.js} +4 -4
- package/dist/component/{index-BEIxTlpO.js → index-DOd4eW8z.js} +2 -2
- package/dist/component/{isObjectLike-DuXP52EV.js → isObjectLike-DfUDKPeo.js} +1 -1
- package/dist/component/{multiline-address-field-rac-CNJyTqJt.js → multiline-address-field-rac-jJ5HMakk.js} +8 -8
- package/dist/component/{multiline-address-rac-DG7xjt6A.js → multiline-address-rac-GQF9HaNq.js} +1 -1
- package/dist/component/{number-input-field-rac-Bj2AK7Oj.js → number-input-field-rac-DRgq3Ll0.js} +5 -5
- package/dist/component/{number-input-rac-JPgr87Xh.js → number-input-rac-C2VoBZeq.js} +1 -1
- package/dist/component/{password-rac-J0ySzA6j.js → password-rac-DP8d_92z.js} +5 -5
- package/dist/component/{payment-input-rac-B1VmJQeD.js → payment-input-rac-BycHF-zC.js} +5 -5
- package/dist/component/{phone-input-field-rac-SWP8Xkh-.js → phone-input-field-rac-C3_-Dc35.js} +7 -7
- package/dist/component/{phone-rac-BU33sXKk.js → phone-rac-DAxScWRl.js} +1 -1
- package/dist/component/{product-list-rac-dk3gFLyb.js → product-list-rac-Bxdu4NFP.js} +6 -6
- package/dist/component/{quiz-radio-group-rac-BFlVZj9U.js → quiz-radio-group-rac-mAn0MuPW.js} +1 -1
- package/dist/component/{radio-button-module-classes-DgiY7sw3.js → radio-button-module-classes-D71u96Y9.js} +28 -28
- package/dist/component/{radio-group-field-rac-qD-GQu2A.js → radio-group-field-rac-eij4o0_R.js} +4 -4
- package/dist/component/{radio-group-rac-CIY9Gj99.js → radio-group-rac-DqdjCYmd.js} +1 -1
- package/dist/component/{rating-input-field-rac-BVWuvhkf.js → rating-input-field-rac-C4Ztlh1u.js} +5 -5
- package/dist/component/{rating-input-rac-C3HFmqHX.js → rating-input-rac-B4lF_LX7.js} +1 -1
- package/dist/component/{rich-content-rac.module-QBgwAjEA.js → rich-content-rac.module-CmW7FwmQ.js} +1 -1
- package/dist/component/{rich-text-field-rac-BohVUJm1.js → rich-text-field-rac-MwKpKbvj.js} +2 -2
- package/dist/component/{rich-text-rac-BST0y6Gq.js → rich-text-rac-DcMBqEFb.js} +1 -1
- package/dist/component/{service-dropdown-rac-DZSY9T2v.js → service-dropdown-rac-CZWVFnR8.js} +5 -5
- package/dist/component/{services-multi-choice-rac-hD8TI7n7.js → services-multi-choice-rac-DvHcWQHS.js} +7 -7
- package/dist/component/{signature-rac-D9G6D7Pa.js → signature-rac-CMTAWkaY.js} +4 -4
- package/dist/component/{submit-button-rac-D4vOTaQ9.js → submit-button-rac-HnfWQ8wg.js} +1 -1
- package/dist/component/{tags-field-rac-CoNoLUAV.js → tags-field-rac-BuqOeG7-.js} +63 -66
- package/dist/component/{tags-rac-BGT8KWvN.js → tags-rac-FbHwPPKs.js} +1 -1
- package/dist/component/{text-area-field-rac-x-LWaPSL.js → text-area-field-rac-Bq224M1o.js} +5 -5
- package/dist/component/{text-area-rac-B0KN3TR1.js → text-area-rac-COcGlAYk.js} +1 -1
- package/dist/component/{text-input-field-rac-DH5j0Tvv.js → text-input-field-rac-CTS4jFhC.js} +3 -3
- package/dist/component/{text-input-headless-Slo-xa7H.js → text-input-headless-QVLKSgJE.js} +3 -3
- package/dist/component/{text-input-rac-_VrGU08X.js → text-input-rac-BCCkVVG9.js} +1 -1
- package/dist/component/{time-input-rac-DS5uFTDp.js → time-input-rac-7n8d5ppJ.js} +5 -5
- package/dist/component/{url-input-field-rac-yCewMKD-.js → url-input-field-rac-ChPfhq6I.js} +5 -5
- package/dist/component/{url-input-rac-D7cuZG08.js → url-input-rac-cFZ8HC3U.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-DbjgH9K1.js → use-dropdown-option-class-name-Cf2B9xAE.js} +2 -2
- package/dist/component/{use-element-state-class-name-C2_dMWlH.js → use-element-state-class-name-DF2VZawA.js} +1 -1
- package/dist/component/{use-is-forced-open-dropdown-VcOCKx-3.js → use-is-forced-open-dropdown-B_knxuKJ.js} +1 -1
- package/dist/component/{use-service-options-base-Cu9nE-aZ.js → use-service-options-base-Clx3S0du.js} +1 -1
- package/dist/component/{use-text-input-class-name-DMokiXwB.js → use-text-input-class-name-MbmOF6tH.js} +3 -3
- package/package.json +5 -5
- package/dist/component/appointment-rac-DW5YPIgy.js +0 -1012
- package/dist/component/field-rac.module-DobpyqOd.js +0 -26
package/dist/component/{bookings-login-bar-rac-DavjHZGh.js → bookings-login-bar-rac-CA9lwDip.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import o from "react";
|
|
2
2
|
import b from "classnames";
|
|
3
|
-
import { ak as d, au as B, ac as f, ag as p } from "./form-
|
|
3
|
+
import { ak as d, au as B, ac as f, ag as p } from "./form-D1xJH87b.js";
|
|
4
4
|
import { Button as L } from "react-aria-components";
|
|
5
5
|
import { a as i, f as g } from "./find-child-C60k4CxG.js";
|
|
6
6
|
import { y as _ } from "./form-element-classes-BtKlobUX.js";
|
|
@@ -2,17 +2,17 @@ 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 { T as ei, ak as Zr, r as Qr, R as fn, au as ri, ac as ti, a0 as ai, ah as ni, am as ii, L as si } from "./form-
|
|
5
|
+
import { T as ei, ak as Zr, r as Qr, R as fn, au as ri, ac as ti, a0 as ai, ah as ni, am as ii, L as si } from "./form-D1xJH87b.js";
|
|
6
6
|
import { f as W, a as oi } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as ui, E as ci } from "./field-error-headless-
|
|
7
|
+
import { D as ui, E as ci } from "./field-error-headless-CN2-F78X.js";
|
|
8
8
|
import { Node_Type as fi } from "@wix/ricos/schema";
|
|
9
|
-
import { c as re, r as $, e as R, a as J, d as li, b as _i } from "./isObjectLike-
|
|
9
|
+
import { c as re, r as $, e as R, a as J, d as li, b as _i } from "./isObjectLike-DfUDKPeo.js";
|
|
10
10
|
import { S as vi } from "./selection-indicator-XQ8MYHUQ.js";
|
|
11
11
|
import { E as hi } from "./error-icon-hZxQ6DEy.js";
|
|
12
|
-
import { C as pi } from "./checkbox-indicator-module-classes-
|
|
13
|
-
import { s as oe } from "./field-rac.module-
|
|
12
|
+
import { C as pi } from "./checkbox-indicator-module-classes-BpeSpGsW.js";
|
|
13
|
+
import { s as oe } from "./field-rac.module-B4l_0KRU.js";
|
|
14
14
|
import { f as di, g as yi, b as bi, S as gi, r as qi, j as Ci } from "./form-element-classes-BtKlobUX.js";
|
|
15
|
-
import { u as Ai } from "./use-element-state-class-name-
|
|
15
|
+
import { u as Ai } from "./use-element-state-class-name-DF2VZawA.js";
|
|
16
16
|
var ue, dt;
|
|
17
17
|
function mi() {
|
|
18
18
|
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 { ak as R, ah as U, au as X, am as Y } from "./form-
|
|
4
|
+
import { ak as R, ah as U, au as X, am as Y } from "./form-D1xJH87b.js";
|
|
5
5
|
import { f as I, a as x } 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-CN2-F78X.js";
|
|
7
|
+
import { L as te } from "./field-label-headless-Ca6NcX2l.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-Cmc2pwQi.js → checkbox-group-field-rac-CLDKYOsh.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-BJl8C2Lz.js";
|
|
5
5
|
import { E as n } from "./error-icon-hZxQ6DEy.js";
|
|
6
|
-
import { C as c } from "./checkbox-indicator-module-classes-
|
|
7
|
-
import { s } from "./field-rac.module-
|
|
6
|
+
import { C as c } from "./checkbox-indicator-module-classes-BpeSpGsW.js";
|
|
7
|
+
import { s } from "./field-rac.module-B4l_0KRU.js";
|
|
8
8
|
import { C as i, S as E, c as p, e as C, r as O, j as _, d as I } from "./form-element-classes-BtKlobUX.js";
|
|
9
9
|
import { o as l } from "./options-rac.module-CTDdATiz.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-DF2VZawA.js";
|
|
11
|
+
import { u as R } from "./use-text-input-class-name-MbmOF6tH.js";
|
|
12
12
|
const u = ({ content: r, locale: o }) => /* @__PURE__ */ e.createElement(m, {
|
|
13
13
|
content: r,
|
|
14
14
|
locale: o
|
package/dist/component/{contacts-subscribe-rac-CFejp0de.js → contacts-subscribe-rac-Dv-QNZZc.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import C from "react";
|
|
2
|
-
import { C as e } from "./checkbox-field-rac-
|
|
2
|
+
import { C as e } from "./checkbox-field-rac-D5YjimAI.js";
|
|
3
3
|
import { Y as r, Z as t, X as _ } from "./form-element-classes-BtKlobUX.js";
|
|
4
4
|
const S = () => /* @__PURE__ */ C.createElement(e, {
|
|
5
5
|
classes: {
|
package/dist/component/{date-input-field-rac-DcoJJUZc.js → date-input-field-rac-DvlY0Ffu.js}
RENAMED
|
@@ -3,21 +3,21 @@ import b from "classnames";
|
|
|
3
3
|
import t, { useMemo as g, useState as j, useCallback as v, useRef as k } from "react";
|
|
4
4
|
import { UNSAFE_PortalProvider as te } from "react-aria";
|
|
5
5
|
import { ListBoxItem as ae, ListBox as ne, Select as re, TextField as U, SelectValue as se, Input as $ } from "react-aria-components";
|
|
6
|
-
import { ak as D, ah as q, ac as w, K as z, a2 as G, s as m, au as P, y as oe, O as le, a9 as ce, am as B } from "./form-
|
|
6
|
+
import { ak as D, ah as q, ac as w, K as z, a2 as G, s as m, au as P, y as oe, O as le, a9 as ce, am as B } from "./form-D1xJH87b.js";
|
|
7
7
|
import { f as u, a as H } from "./find-child-C60k4CxG.js";
|
|
8
8
|
import { g as ie } from "./helpers-HmkkXrh2.js";
|
|
9
|
-
import { D as me, E as de } from "./field-error-headless-
|
|
10
|
-
import { L as ue } from "./field-label-headless-
|
|
9
|
+
import { D as me, E as de } from "./field-error-headless-CN2-F78X.js";
|
|
10
|
+
import { L as ue } from "./field-label-headless-Ca6NcX2l.js";
|
|
11
11
|
import { F as pe } from "./fieldset-headless-CD3fds9J.js";
|
|
12
12
|
import { N as Ee, S as fe } from "./non-modal-popover-DtIMXHbe.js";
|
|
13
|
-
import { u as be } from "./use-is-forced-open-dropdown-
|
|
13
|
+
import { u as be } from "./use-is-forced-open-dropdown-B_knxuKJ.js";
|
|
14
14
|
import { C as he } from "./chevron-down-icon-CcpVm6B-.js";
|
|
15
15
|
import { E as Ie } from "./error-icon-hZxQ6DEy.js";
|
|
16
16
|
import { H as De } from "./custom-focus-class-_483Pkwp.js";
|
|
17
|
-
import { s as E } from "./field-rac.module-
|
|
17
|
+
import { s as E } from "./field-rac.module-B4l_0KRU.js";
|
|
18
18
|
import { C as S, S as Oe, n as ye, E as ge, r as Ne, j as _e } from "./form-element-classes-BtKlobUX.js";
|
|
19
|
-
import { u as Le } from "./use-dropdown-option-class-name-
|
|
20
|
-
import { u as x } from "./use-text-input-class-name-
|
|
19
|
+
import { u as Le } from "./use-dropdown-option-class-name-Cf2B9xAE.js";
|
|
20
|
+
import { u as x } from "./use-text-input-class-name-MbmOF6tH.js";
|
|
21
21
|
const n = ({ children: e, className: a }) => {
|
|
22
22
|
const { id: r, required: o, onBlur: s, onFocus: l, FieldLayout: c } = D(), { inputId: d, labelId: i, ariaDescribedBy: f } = q(), { regionalFormat: p } = w(), h = g(() => z(p).filter(G).map((Y) => Y.toUpperCase()), [
|
|
23
23
|
p
|
package/dist/component/{date-picker-field-rac-D__137lA.js → date-picker-field-rac-D42hJF0j.js}
RENAMED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { RicosViewer as X } from "@wix/ricos/viewer";
|
|
2
2
|
import D from "classnames";
|
|
3
|
-
import e, { useState as
|
|
3
|
+
import e, { useState as O, useCallback as k, useContext as ee, useRef as A, useMemo as I } from "react";
|
|
4
4
|
import { parseDate as te } from "@internationalized/date";
|
|
5
5
|
import { UNSAFE_PortalProvider as re } from "react-aria";
|
|
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 ue, CalendarGrid as de, Dialog as ge, CalendarCell as Ee, Button as
|
|
7
|
-
import { D as f, ak as T, ah as
|
|
8
|
-
import { g as De, c as
|
|
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 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, ak as T, ah as U, ac as L, am as pe } from "./form-D1xJH87b.js";
|
|
8
|
+
import { g as De, c as P } from "./calendar.module-DnhTT4QT.js";
|
|
9
9
|
import { f as E, a as h } from "./find-child-C60k4CxG.js";
|
|
10
|
-
import { D as fe, E as Ce } from "./field-error-headless-
|
|
11
|
-
import { L as ye } from "./field-label-headless-
|
|
12
|
-
import { D as Se, N as
|
|
13
|
-
import { u as he } from "./use-is-forced-open-dropdown-
|
|
14
|
-
import { i as Te } from "./date-availability-
|
|
10
|
+
import { D as fe, E as Ce } from "./field-error-headless-CN2-F78X.js";
|
|
11
|
+
import { L as ye } from "./field-label-headless-Ca6NcX2l.js";
|
|
12
|
+
import { D as Se, N as b, S as V } from "./non-modal-popover-DtIMXHbe.js";
|
|
13
|
+
import { u as he } from "./use-is-forced-open-dropdown-B_knxuKJ.js";
|
|
14
|
+
import { i as Te } from "./date-availability-DfL_xDci.js";
|
|
15
15
|
import { C as F } from "./chevron-down-icon-CcpVm6B-.js";
|
|
16
16
|
import { E as ve } from "./error-icon-hZxQ6DEy.js";
|
|
17
17
|
import { H as _e } from "./custom-focus-class-_483Pkwp.js";
|
|
18
|
-
import { s as p } from "./field-rac.module-
|
|
19
|
-
import { C as Ne, S as Ie, n as
|
|
18
|
+
import { s as p } from "./field-rac.module-B4l_0KRU.js";
|
|
19
|
+
import { C as Ne, S as Ie, n as Fe, h as Le, r as be, j as Oe } from "./form-element-classes-BtKlobUX.js";
|
|
20
20
|
const Ae = [
|
|
21
21
|
f.SUNDAY,
|
|
22
22
|
f.MONDAY,
|
|
@@ -28,7 +28,7 @@ const Ae = [
|
|
|
28
28
|
], Pe = {
|
|
29
29
|
availableDays: Ae
|
|
30
30
|
}, a = ({ children: t }) => {
|
|
31
|
-
const { id: r, value: l, onChange: n, disabled: i, required: c, onBlur: d, onFocus: o, FieldLayout: m, hasError: u, readOnly: C } = T(), { labelId: y } =
|
|
31
|
+
const { id: r, value: l, onChange: n, disabled: i, required: c, onBlur: d, onFocus: o, FieldLayout: m, hasError: u, readOnly: C } = T(), { labelId: y } = U(), { regionalFormat: v } = L(), [s, _] = O(null), [W, K] = O(!1), N = he(r), $ = k((z) => {
|
|
32
32
|
const J = Ke(z);
|
|
33
33
|
n(J);
|
|
34
34
|
}, [
|
|
@@ -40,12 +40,12 @@ const Ae = [
|
|
|
40
40
|
renderInput: () => /* @__PURE__ */ e.createElement(ae, {
|
|
41
41
|
locale: v
|
|
42
42
|
}, /* @__PURE__ */ e.createElement("div", {
|
|
43
|
-
ref:
|
|
43
|
+
ref: _,
|
|
44
44
|
style: {
|
|
45
45
|
display: "contents"
|
|
46
46
|
}
|
|
47
47
|
}), /* @__PURE__ */ e.createElement(re, {
|
|
48
|
-
getContainer: () =>
|
|
48
|
+
getContainer: () => s
|
|
49
49
|
}, /* @__PURE__ */ e.createElement(ne, {
|
|
50
50
|
"aria-labelledby": y,
|
|
51
51
|
value: Z,
|
|
@@ -56,15 +56,15 @@ const Ae = [
|
|
|
56
56
|
isRequired: c,
|
|
57
57
|
onBlur: d,
|
|
58
58
|
onFocus: o,
|
|
59
|
-
isOpen:
|
|
60
|
-
onOpenChange:
|
|
59
|
+
isOpen: N || W,
|
|
60
|
+
onOpenChange: N ? void 0 : K
|
|
61
61
|
}, q, h(G, {
|
|
62
|
-
isForcedOpen:
|
|
62
|
+
isForcedOpen: N
|
|
63
63
|
})))),
|
|
64
64
|
renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, Q, j)
|
|
65
65
|
});
|
|
66
66
|
}, Re = ({ children: t, className: r }) => {
|
|
67
|
-
const { inputId: l, ariaDescribedBy: n } =
|
|
67
|
+
const { inputId: l, ariaDescribedBy: n } = U(), { hasError: i, disabled: c, readOnly: d } = T(), o = ee(oe), m = k((u) => {
|
|
68
68
|
if (!o || o.isOpen || c || d)
|
|
69
69
|
return;
|
|
70
70
|
const C = u.target;
|
|
@@ -85,12 +85,12 @@ const Ae = [
|
|
|
85
85
|
onPointerDownCapture: m
|
|
86
86
|
}, t);
|
|
87
87
|
}, ke = ({ className: t }) => {
|
|
88
|
-
const { id: r, placeholder: l } = T(), { regionalFormat: n } = L(), i =
|
|
88
|
+
const { id: r, placeholder: l } = T(), { regionalFormat: n } = L(), i = A(null), c = A(!1);
|
|
89
89
|
pe(() => {
|
|
90
90
|
var o;
|
|
91
91
|
(o = i.current) == null || o.focus();
|
|
92
92
|
}, r);
|
|
93
|
-
const d =
|
|
93
|
+
const d = I(() => $e(n), [
|
|
94
94
|
n
|
|
95
95
|
]);
|
|
96
96
|
return /* @__PURE__ */ e.createElement(se, {
|
|
@@ -115,24 +115,24 @@ const Ae = [
|
|
|
115
115
|
}, Me = ({ children: t, className: r }) => /* @__PURE__ */ e.createElement(Se, {
|
|
116
116
|
className: r
|
|
117
117
|
}, t), g = ({ children: t, className: r, ...l }) => {
|
|
118
|
-
const { isForcedOpen: n } = l, { regionalFormat: i
|
|
118
|
+
const { isForcedOpen: n } = l, { regionalFormat: i } = L(), { availability: c } = T(), d = I(() => De(i), [
|
|
119
119
|
i
|
|
120
|
-
]),
|
|
121
|
-
const
|
|
122
|
-
return !Te(
|
|
120
|
+
]), o = I(() => (s) => {
|
|
121
|
+
const _ = new Date(s.year, s.month - 1, s.day);
|
|
122
|
+
return !Te(_, c || Pe);
|
|
123
123
|
}, [
|
|
124
|
-
|
|
125
|
-
]),
|
|
126
|
-
return /* @__PURE__ */ e.createElement(
|
|
124
|
+
c
|
|
125
|
+
]), m = E(t, g.Day) ?? /* @__PURE__ */ e.createElement(g.Day, null), u = E(t, g.PreviousTrigger), C = E(t, g.NextTrigger), y = E(t, g.MonthTrigger), v = E(t, g.YearTrigger);
|
|
126
|
+
return /* @__PURE__ */ e.createElement(b, {
|
|
127
127
|
className: r,
|
|
128
128
|
containerPadding: 0
|
|
129
|
-
}, /* @__PURE__ */ e.createElement(
|
|
129
|
+
}, /* @__PURE__ */ e.createElement(xe, {
|
|
130
130
|
isForcedOpen: n
|
|
131
131
|
}, /* @__PURE__ */ e.createElement(ie, {
|
|
132
132
|
autoFocus: n ? !1 : void 0,
|
|
133
|
-
firstDayOfWeek: He(
|
|
134
|
-
isDateUnavailable:
|
|
135
|
-
}, /* @__PURE__ */ e.createElement("header", null,
|
|
133
|
+
firstDayOfWeek: He(d),
|
|
134
|
+
isDateUnavailable: o
|
|
135
|
+
}, /* @__PURE__ */ e.createElement("header", null, u, /* @__PURE__ */ e.createElement(me, null, (s) => h(y, {
|
|
136
136
|
ariaLabel: s["aria-label"],
|
|
137
137
|
selectedKey: s.value,
|
|
138
138
|
onSelectionChange: s.onChange,
|
|
@@ -140,29 +140,29 @@ const Ae = [
|
|
|
140
140
|
popoverClassName: r
|
|
141
141
|
})), /* @__PURE__ */ e.createElement(ue, {
|
|
142
142
|
visibleYears: 100
|
|
143
|
-
}, (s) => h(
|
|
143
|
+
}, (s) => h(v, {
|
|
144
144
|
ariaLabel: s["aria-label"],
|
|
145
145
|
selectedKey: s.value,
|
|
146
146
|
onSelectionChange: s.onChange,
|
|
147
147
|
items: s.items,
|
|
148
148
|
popoverClassName: r
|
|
149
|
-
})),
|
|
150
|
-
weekdayStyle:
|
|
151
|
-
}, (s) => h(
|
|
149
|
+
})), C), /* @__PURE__ */ e.createElement(de, {
|
|
150
|
+
weekdayStyle: "short"
|
|
151
|
+
}, (s) => h(m, {
|
|
152
152
|
date: s
|
|
153
153
|
})))));
|
|
154
|
-
},
|
|
154
|
+
}, xe = ({ isForcedOpen: t, children: r }) => t ? /* @__PURE__ */ e.createElement("div", {
|
|
155
155
|
role: "dialog"
|
|
156
|
-
}, r) : /* @__PURE__ */ e.createElement(ge, null, r),
|
|
156
|
+
}, r) : /* @__PURE__ */ e.createElement(ge, null, r), we = ({ children: t, className: r, ...l }) => {
|
|
157
157
|
const { date: n } = l;
|
|
158
158
|
return /* @__PURE__ */ e.createElement(Ee, {
|
|
159
159
|
className: r,
|
|
160
160
|
date: n
|
|
161
161
|
}, t);
|
|
162
|
-
}, Ye = ({ children: t, className: r }) => /* @__PURE__ */ e.createElement(
|
|
162
|
+
}, Ye = ({ children: t, className: r }) => /* @__PURE__ */ e.createElement(M, {
|
|
163
163
|
slot: "previous",
|
|
164
164
|
className: r
|
|
165
|
-
}, t), Be = ({ children: t, className: r }) => /* @__PURE__ */ e.createElement(
|
|
165
|
+
}, t), Be = ({ children: t, className: r }) => /* @__PURE__ */ e.createElement(M, {
|
|
166
166
|
slot: "next",
|
|
167
167
|
className: r
|
|
168
168
|
}, t), Ue = ({ children: t, className: r, ...l }) => {
|
|
@@ -171,14 +171,14 @@ const Ae = [
|
|
|
171
171
|
"aria-label": n,
|
|
172
172
|
selectedKey: i,
|
|
173
173
|
onSelectionChange: c
|
|
174
|
-
}, /* @__PURE__ */ e.createElement(
|
|
174
|
+
}, /* @__PURE__ */ e.createElement(V, {
|
|
175
175
|
className: r
|
|
176
|
-
}, /* @__PURE__ */ e.createElement(
|
|
176
|
+
}, /* @__PURE__ */ e.createElement(w, null), t), /* @__PURE__ */ e.createElement(b, {
|
|
177
177
|
className: o,
|
|
178
178
|
containerPadding: 0
|
|
179
|
-
}, /* @__PURE__ */ e.createElement(
|
|
179
|
+
}, /* @__PURE__ */ e.createElement(Y, {
|
|
180
180
|
items: d
|
|
181
|
-
}, (m) => /* @__PURE__ */ e.createElement(
|
|
181
|
+
}, (m) => /* @__PURE__ */ e.createElement(B, {
|
|
182
182
|
id: m.id
|
|
183
183
|
}, m.formatted))));
|
|
184
184
|
}, Ve = ({ children: t, className: r, ...l }) => {
|
|
@@ -187,18 +187,18 @@ const Ae = [
|
|
|
187
187
|
"aria-label": n,
|
|
188
188
|
selectedKey: i,
|
|
189
189
|
onSelectionChange: c
|
|
190
|
-
}, /* @__PURE__ */ e.createElement(
|
|
190
|
+
}, /* @__PURE__ */ e.createElement(V, {
|
|
191
191
|
className: r
|
|
192
|
-
}, /* @__PURE__ */ e.createElement(
|
|
192
|
+
}, /* @__PURE__ */ e.createElement(w, null), t), /* @__PURE__ */ e.createElement(b, {
|
|
193
193
|
className: o,
|
|
194
194
|
containerPadding: 0
|
|
195
|
-
}, /* @__PURE__ */ e.createElement(
|
|
195
|
+
}, /* @__PURE__ */ e.createElement(Y, {
|
|
196
196
|
items: d
|
|
197
|
-
}, (m) => /* @__PURE__ */ e.createElement(
|
|
197
|
+
}, (m) => /* @__PURE__ */ e.createElement(B, {
|
|
198
198
|
id: m.id
|
|
199
199
|
}, m.formatted))));
|
|
200
200
|
};
|
|
201
|
-
g.Day =
|
|
201
|
+
g.Day = we;
|
|
202
202
|
g.PreviousTrigger = Ye;
|
|
203
203
|
g.NextTrigger = Be;
|
|
204
204
|
g.MonthTrigger = Ue;
|
|
@@ -273,7 +273,7 @@ const qe = (t) => /* @__PURE__ */ e.createElement("svg", {
|
|
|
273
273
|
}), Xe = {
|
|
274
274
|
left: 90,
|
|
275
275
|
right: -90
|
|
276
|
-
},
|
|
276
|
+
}, R = ({ direction: t }) => /* @__PURE__ */ e.createElement(F, {
|
|
277
277
|
style: {
|
|
278
278
|
transform: `rotate(${Xe[t]}deg)`
|
|
279
279
|
}
|
|
@@ -282,27 +282,27 @@ const qe = (t) => /* @__PURE__ */ e.createElement("svg", {
|
|
|
282
282
|
}, /* @__PURE__ */ e.createElement(a.Label.Required, {
|
|
283
283
|
className: D(Ie, p.requiredMark)
|
|
284
284
|
})), /* @__PURE__ */ e.createElement(a.Control, {
|
|
285
|
-
className: D(
|
|
285
|
+
className: D(Fe, p.input, S.control)
|
|
286
286
|
}, /* @__PURE__ */ e.createElement(a.Trigger, {
|
|
287
287
|
className: S.trigger
|
|
288
288
|
}, /* @__PURE__ */ e.createElement(qe, null)), /* @__PURE__ */ e.createElement(a.Input, {
|
|
289
289
|
className: S.segments
|
|
290
290
|
})), /* @__PURE__ */ e.createElement(a.Calendar, {
|
|
291
|
-
className: D(
|
|
292
|
-
}, /* @__PURE__ */ e.createElement(a.Calendar.PreviousTrigger, null, /* @__PURE__ */ e.createElement(
|
|
291
|
+
className: D(Le, p.selectPopover, S.calendarPopover)
|
|
292
|
+
}, /* @__PURE__ */ e.createElement(a.Calendar.PreviousTrigger, null, /* @__PURE__ */ e.createElement(R, {
|
|
293
293
|
direction: "left"
|
|
294
294
|
})), /* @__PURE__ */ e.createElement(a.Calendar.MonthTrigger, null, /* @__PURE__ */ e.createElement(F, {
|
|
295
295
|
className: p.dropdownIcon
|
|
296
296
|
})), /* @__PURE__ */ e.createElement(a.Calendar.YearTrigger, null, /* @__PURE__ */ e.createElement(F, {
|
|
297
297
|
className: p.dropdownIcon
|
|
298
|
-
})), /* @__PURE__ */ e.createElement(a.Calendar.NextTrigger, null, /* @__PURE__ */ e.createElement(
|
|
298
|
+
})), /* @__PURE__ */ e.createElement(a.Calendar.NextTrigger, null, /* @__PURE__ */ e.createElement(R, {
|
|
299
299
|
direction: "right"
|
|
300
300
|
})), /* @__PURE__ */ e.createElement(a.Calendar.Day, {
|
|
301
|
-
className: D(_e,
|
|
301
|
+
className: D(_e, P.day, S.calendarDay)
|
|
302
302
|
}, ({ formattedDate: t }) => /* @__PURE__ */ e.createElement("span", {
|
|
303
|
-
className:
|
|
303
|
+
className: P.dayNumber
|
|
304
304
|
}, t))), /* @__PURE__ */ e.createElement(a.Error, {
|
|
305
|
-
className: D(
|
|
305
|
+
className: D(be, p.error)
|
|
306
306
|
}, /* @__PURE__ */ e.createElement(ve, null), /* @__PURE__ */ e.createElement(a.Error.Text, null)), /* @__PURE__ */ e.createElement(a.Description, {
|
|
307
307
|
className: D(Oe, p.description)
|
|
308
308
|
}, Je));
|
|
@@ -4,21 +4,21 @@ import t, { useMemo as T, useState as q, useCallback as w, useRef as z, 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, ListBox as me, Select as de, TextField as Q, TimeField as ue, SelectValue as pe, Input as W, DateInput as Ee, DateSegment as B, TimeFieldStateContext as he } from "react-aria-components";
|
|
7
|
-
import { ak as b, ah as J, ac as G, K as X, a2 as Z, s as d, au as L, a6 as j, Q as fe, y as be, a9 as ge, z as K, am as U } from "./form-
|
|
7
|
+
import { ak as b, ah as J, ac as G, K as X, a2 as Z, s as d, au as L, a6 as j, Q as fe, y as be, a9 as ge, z as K, am as U } from "./form-D1xJH87b.js";
|
|
8
8
|
import { f as u, a as P } from "./find-child-C60k4CxG.js";
|
|
9
9
|
import { g as Ie } from "./helpers-HmkkXrh2.js";
|
|
10
|
-
import { D as De, E as Ne } from "./field-error-headless-
|
|
11
|
-
import { L as _e } from "./field-label-headless-
|
|
10
|
+
import { D as De, E as Ne } from "./field-error-headless-CN2-F78X.js";
|
|
11
|
+
import { L as _e } from "./field-label-headless-Ca6NcX2l.js";
|
|
12
12
|
import { F as ye } from "./fieldset-headless-CD3fds9J.js";
|
|
13
13
|
import { N as Oe, S as Te } from "./non-modal-popover-DtIMXHbe.js";
|
|
14
|
-
import { u as Le } from "./use-is-forced-open-dropdown-
|
|
14
|
+
import { u as Le } from "./use-is-forced-open-dropdown-B_knxuKJ.js";
|
|
15
15
|
import { C as Fe } from "./chevron-down-icon-CcpVm6B-.js";
|
|
16
16
|
import { E as Ce } from "./error-icon-hZxQ6DEy.js";
|
|
17
17
|
import { H } from "./custom-focus-class-_483Pkwp.js";
|
|
18
|
-
import { s as f } from "./field-rac.module-
|
|
18
|
+
import { s as f } from "./field-rac.module-B4l_0KRU.js";
|
|
19
19
|
import { C as v, S as Pe, n as Me, E as Se, r as ve, j as Re } from "./form-element-classes-BtKlobUX.js";
|
|
20
|
-
import { u as Ae } from "./use-dropdown-option-class-name-
|
|
21
|
-
import { u as k } from "./use-text-input-class-name-
|
|
20
|
+
import { u as Ae } from "./use-dropdown-option-class-name-Cf2B9xAE.js";
|
|
21
|
+
import { u as k } from "./use-text-input-class-name-MbmOF6tH.js";
|
|
22
22
|
const l = ({ children: e, className: a }) => {
|
|
23
23
|
const { id: n, required: o, onBlur: s, onFocus: r, FieldLayout: i } = b(), { inputId: m, labelId: c, ariaDescribedBy: g } = J(), { regionalFormat: p } = G(), _ = T(() => X(p).filter(Z).map((S) => S.toUpperCase()), [
|
|
24
24
|
p
|
package/dist/component/{dext-checkbox-group-rac-Ds2w4V3q.js → dext-checkbox-group-rac-B0dh55yz.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import o from "react";
|
|
2
|
-
import { ak as e, h as t } from "./form-
|
|
3
|
-
import { C as p } from "./checkbox-group-field-rac-
|
|
2
|
+
import { ak as e, h as t } from "./form-D1xJH87b.js";
|
|
3
|
+
import { C as p } from "./checkbox-group-field-rac-CLDKYOsh.js";
|
|
4
4
|
import { D as s } from "./default-limits-D7qVv_Hv.js";
|
|
5
5
|
const C = () => {
|
|
6
6
|
const r = {
|