@wix/form-elements 1.113.0 → 1.115.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-BZ9sCf_L.js → appointment-rac-CN3z7X0K.js} +204 -204
- package/dist/component/{bookings-address-rac-DDisJZwl.js → bookings-address-rac-C3_L2-L5.js} +1 -1
- package/dist/component/{bookings-email-rac-ovewChXn.js → bookings-email-rac-jf6DBtqR.js} +1 -1
- package/dist/component/{bookings-first-name-rac-CyudJnHy.js → bookings-first-name-rac-Dv5X7Xdt.js} +1 -1
- package/dist/component/{bookings-header-rac-BSN_BoC0.js → bookings-header-rac-B7pVOaU9.js} +1 -1
- package/dist/component/{bookings-last-name-rac-SdX5IANy.js → bookings-last-name-rac-DUwYiliZ.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-COQ2BOsY.js → bookings-login-bar-rac-NJDeVd7j.js} +1 -1
- package/dist/component/{bookings-phone-rac-DlUfTzEz.js → bookings-phone-rac-Bkr85nD5.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-Dx0uxbQc.js → bookings-rich-text-rac-Wa8I8MHJ.js} +1 -1
- package/dist/component/{checkbox-field-rac-DueJINhA.js → checkbox-field-rac-DbKz4tNx.js} +4 -4
- package/dist/component/{checkbox-group-field-headless-wj9ITlbE.js → checkbox-group-field-headless-CfXdn4Ff.js} +3 -3
- package/dist/component/{checkbox-group-field-rac-CrD849TZ.js → checkbox-group-field-rac-D6I8L5vF.js} +8 -10
- package/dist/component/{checkbox-group-rac-Wdz1ShJh.js → checkbox-group-rac-C3qVOH_9.js} +1 -1
- package/dist/component/{checkbox-rac-BC7A8y2w.js → checkbox-rac-CKsZjKGO.js} +1 -1
- package/dist/component/{contacts-address-rac-DoWo8zyH.js → contacts-address-rac-iX8JJdvR.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-CEXkyOuk.js → contacts-birthdate-rac-B7U3XVSs.js} +1 -1
- package/dist/component/{contacts-company-rac-CYaVpLCk.js → contacts-company-rac-gTys-wAp.js} +1 -1
- package/dist/component/{contacts-email-rac-teBI-Rpu.js → contacts-email-rac-Bo0GTj47.js} +1 -1
- package/dist/component/{contacts-first-name-rac-BOPuOgk1.js → contacts-first-name-rac-D2723xQx.js} +1 -1
- package/dist/component/{contacts-last-name-rac-DdRhuv9q.js → contacts-last-name-rac-BrTL8dWN.js} +1 -1
- package/dist/component/{contacts-phone-rac-BMiop0kR.js → contacts-phone-rac-CPrOsDjh.js} +1 -1
- package/dist/component/{contacts-position-rac-C8iM62rN.js → contacts-position-rac-CXK8WpP3.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-CkToH-f2.js → contacts-subscribe-rac-BJXzn1dy.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-JM0KJre8.js → contacts-tax-id-rac-Dkx_VwKM.js} +1 -1
- package/dist/component/{date-availability-DJyvNJ6w.js → date-availability-CvLIxT4E.js} +1 -1
- package/dist/component/{date-input-field-rac-CStB2jP7.js → date-input-field-rac-CHLxtBFZ.js} +42 -42
- package/dist/component/{date-input-rac-DUSJH8am.js → date-input-rac-CKK-Gx0P.js} +1 -1
- package/dist/component/{date-picker-field-rac-6xffgnXB.js → date-picker-field-rac-DQEWIIOn.js} +5 -5
- package/dist/component/{date-picker-rac-Dpe0w0G6.js → date-picker-rac-DCXIiPH7.js} +1 -1
- package/dist/component/{date-time-input-field-rac-CX39V3G1.js → date-time-input-field-rac-Cdko026n.js} +32 -32
- package/dist/component/{date-time-input-rac-DBVMIbom.js → date-time-input-rac-CHYJiwQN.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-CAxyCWQY.js → dext-checkbox-group-rac-CSbzWhrQ.js} +2 -2
- package/dist/component/{dext-checkbox-rac-CRBzElbv.js → dext-checkbox-rac-DynyHr0h.js} +1 -1
- package/dist/component/{dext-date-picker-rac-DNzXwBkg.js → dext-date-picker-rac-DR87-bl9.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-D2W3buJP.js → dext-date-time-input-rac-BUDSzPar.js} +1 -1
- package/dist/component/{dext-dropdown-rac-CTTreT77.js → dext-dropdown-rac-CXn0jJKa.js} +1 -1
- package/dist/component/{dext-email-rac-BwI4-hML.js → dext-email-rac-DSO2U9wf.js} +1 -1
- package/dist/component/{dext-number-input-rac-DT5pQiC3.js → dext-number-input-rac-B5NmGYdT.js} +1 -1
- package/dist/component/{dext-phone-rac-MA6wyUxM.js → dext-phone-rac-DAIqe6sm.js} +1 -1
- package/dist/component/{dext-radio-group-rac-3PYEgYHn.js → dext-radio-group-rac-C28aYLZj.js} +2 -2
- package/dist/component/{dext-rating-input-rac-I3e9k3Tp.js → dext-rating-input-rac-BOuSmqPF.js} +1 -1
- package/dist/component/{dext-tags-rac-Bf4tEUAW.js → dext-tags-rac-yLwjhfPp.js} +2 -2
- package/dist/component/{dext-text-area-rac-5oOAM6zJ.js → dext-text-area-rac-8tlma9gL.js} +1 -1
- package/dist/component/{dext-text-input-rac-8nHhvQfO.js → dext-text-input-rac-D_okxmlQ.js} +1 -1
- package/dist/component/{dext-url-input-rac-DSAfDqx1.js → dext-url-input-rac-BA9iqu2_.js} +1 -1
- package/dist/component/{donation-rac-DJiD7Fel.js → donation-rac-CeGI5IS5.js} +70 -70
- package/dist/component/{dropdown-field-headless-B_W8kD-t.js → dropdown-field-headless-De1WEEXn.js} +4 -4
- package/dist/component/{dropdown-field-rac-IDVaMgoc.js → dropdown-field-rac-CqX5mLGE.js} +3 -3
- package/dist/component/{dropdown-rac-I2ZO66jF.js → dropdown-rac-7iaHY50r.js} +1 -1
- package/dist/component/{ecom-address-rac-B1knDuog.js → ecom-address-rac-PAnE6xQW.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-BQPJb2kl.js → ecom-subscription-checkbox-rac-0uCN5_Dz.js} +2 -2
- package/dist/component/{email-input-field-rac-DsjMnxGw.js → email-input-field-rac-CdQLnxHp.js} +3 -3
- package/dist/component/{events-repeater-rac-CT7scvgS.js → events-repeater-rac-BQQveKCR.js} +4 -4
- package/dist/component/events-rsvp-rac-DSsAsXGm.js +48 -0
- package/dist/component/{field-error-headless-DRkkbv__.js → field-error-headless-E5JcyvTx.js} +1 -1
- package/dist/component/{field-label-headless-m633nF93.js → field-label-headless-iSxxobxd.js} +1 -1
- package/dist/component/{file-upload-rac-DaExm5ny.js → file-upload-rac-BOyE5XpC.js} +4 -4
- package/dist/component/{fixed-payment-rac-BglZ8zc0.js → fixed-payment-rac-Bz0J89wO.js} +3 -3
- package/dist/component/{form-CY-iFZdC.js → form-CJ_Fa4im.js} +1201 -1196
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-B6Mzqr3b.js → header-field-rac-B3LiQV-q.js} +2 -2
- package/dist/component/{header-rac-CB2NDeCJ.js → header-rac-wqjuLzYn.js} +1 -1
- package/dist/component/{image-choice-rac-gtYrnTGg.js → image-choice-rac-CGukvBje.js} +54 -57
- package/dist/component/{index-wR-OU2AH.js → index-Bd0x52fb.js} +4 -4
- package/dist/component/{index-Ozpoh9do.js → index-CNgJ9B-N.js} +2 -2
- package/dist/component/{isObjectLike-DsBVSQ_O.js → isObjectLike-CSA_-cuj.js} +1 -1
- package/dist/component/{multiline-address-field-rac-Z4hKy_B_.js → multiline-address-field-rac-BHXDan0o.js} +7 -7
- package/dist/component/{multiline-address-rac-DWV0BZHX.js → multiline-address-rac-B1L72JOQ.js} +1 -1
- package/dist/component/{number-input-field-rac-DKpSb1S_.js → number-input-field-rac-BgfwQQSP.js} +4 -4
- package/dist/component/{number-input-rac-Di7Q8CH9.js → number-input-rac-DMIjiN5s.js} +1 -1
- package/dist/component/options-rac.module-_THNq6Qq.js +7 -0
- package/dist/component/{password-rac-B9RT0izw.js → password-rac-BhgMZqAu.js} +4 -4
- package/dist/component/{payment-input-rac-DdGNnPcd.js → payment-input-rac-D1VqfYhh.js} +4 -4
- package/dist/component/{phone-input-field-rac-B-5gHBXY.js → phone-input-field-rac-DeDVNdf0.js} +6 -6
- package/dist/component/{phone-rac-CmZwJyH7.js → phone-rac-DXS3Mogp.js} +1 -1
- package/dist/component/{product-list-rac-BInJ4cw_.js → product-list-rac-ByQz3AOS.js} +5 -5
- package/dist/component/{quiz-radio-group-rac-B1EIBOt5.js → quiz-radio-group-rac-B1MDx7gg.js} +1 -1
- package/dist/component/radio-button-module-classes-mIRaJBuM.js +131 -0
- package/dist/component/{radio-group-field-rac-DAwCG8w2.js → radio-group-field-rac-DOVrrH9g.js} +15 -16
- package/dist/component/{radio-group-rac-CExbY0aw.js → radio-group-rac-Brc8ZKVX.js} +1 -1
- package/dist/component/{rating-input-field-rac-DTeubyLu.js → rating-input-field-rac-MfJkvu8m.js} +4 -4
- package/dist/component/{rating-input-rac-P7Fdwrm3.js → rating-input-rac-CqcZ73CF.js} +1 -1
- package/dist/component/{rich-content-rac.module-DgQubdPj.js → rich-content-rac.module-En_EemWS.js} +1 -1
- package/dist/component/{rich-text-field-rac-8dkTMWKw.js → rich-text-field-rac-BcxoOePq.js} +2 -2
- package/dist/component/{rich-text-rac-C6u_hF5R.js → rich-text-rac-B_2paTxf.js} +1 -1
- package/dist/component/{service-dropdown-rac-CTSCew5q.js → service-dropdown-rac-BklQyiab.js} +4 -4
- package/dist/component/{services-multi-choice-rac-BUFJHq-l.js → services-multi-choice-rac-ChBS2WU3.js} +27 -29
- package/dist/component/{signature-rac-yO924Qfv.js → signature-rac-Cf9YLYPi.js} +3 -3
- package/dist/component/{submit-button-rac-BurhcqZP.js → submit-button-rac-CZTeK1uB.js} +1 -1
- package/dist/component/{tags-field-rac-qbNQcwnE.js → tags-field-rac-9v2644JD.js} +54 -54
- package/dist/component/{tags-rac-DVHcpxNG.js → tags-rac-CeUucfxg.js} +1 -1
- package/dist/component/{text-area-field-rac-BKhGX0CL.js → text-area-field-rac-BdCpgmgG.js} +4 -4
- package/dist/component/{text-area-rac-CHHEDeUX.js → text-area-rac-6fZvUFD8.js} +1 -1
- package/dist/component/{text-input-field-rac-BGitxCuC.js → text-input-field-rac-C7G_xyfv.js} +3 -3
- package/dist/component/{text-input-headless-BBn1G2s9.js → text-input-headless-BiNwU3sG.js} +3 -3
- package/dist/component/{text-input-rac-CHX-U7Kp.js → text-input-rac-DOaoH5TA.js} +1 -1
- package/dist/component/{time-input-rac-Bp6B2gO3.js → time-input-rac-MqQpSz7I.js} +4 -4
- package/dist/component/{url-input-field-rac-CPibLAWz.js → url-input-field-rac-DukAWJtU.js} +4 -4
- package/dist/component/{url-input-rac-Bj4PV2YJ.js → url-input-rac-BRFCsqH0.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-CE1u4RLT.js → use-dropdown-option-class-name-Bm5e7RIh.js} +2 -2
- package/dist/component/{use-element-state-class-name-Dn_LpP1k.js → use-element-state-class-name-jIzS-0f1.js} +1 -1
- package/dist/component/{use-is-forced-open-dropdown-B2mdY7ku.js → use-is-forced-open-dropdown-CjqjVZmI.js} +1 -1
- package/dist/component/{use-service-options-base-DBvqU30V.js → use-service-options-base-1CckNmPE.js} +1 -1
- package/dist/component/{use-text-input-class-name-BUW0svzK.js → use-text-input-class-name-Bce8xMys.js} +2 -2
- package/dist/form.d.ts +1 -1
- package/package.json +2 -2
- package/dist/component/events-rsvp-rac-Dcrc1yxR.js +0 -49
- package/dist/component/options-rac.module-CTDdATiz.js +0 -8
- package/dist/component/radio-button-module-classes-CjDU2x_m.js +0 -133
package/dist/component/{bookings-login-bar-rac-COQ2BOsY.js → bookings-login-bar-rac-NJDeVd7j.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-CJ_Fa4im.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-CJ_Fa4im.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-E5JcyvTx.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-CSA_-cuj.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-jIzS-0f1.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-CJ_Fa4im.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-E5JcyvTx.js";
|
|
7
|
+
import { L as te } from "./field-label-headless-iSxxobxd.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-CrD849TZ.js → checkbox-group-field-rac-D6I8L5vF.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-CfXdn4Ff.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
|
|
9
|
-
import { o as l } from "./options-rac.module-
|
|
10
|
-
import { u as L } from "./use-element-state-class-name-
|
|
11
|
-
import { u as R } from "./use-text-input-class-name-
|
|
8
|
+
import { I as i, U as E, i as p, k as C, v as O, p as _, j as I } from "./form-CJ_Fa4im.js";
|
|
9
|
+
import { o as l } from "./options-rac.module-_THNq6Qq.js";
|
|
10
|
+
import { u as L } from "./use-element-state-class-name-jIzS-0f1.js";
|
|
11
|
+
import { u as R } from "./use-text-input-class-name-Bce8xMys.js";
|
|
12
12
|
const u = ({ content: o, locale: r }) => /* @__PURE__ */ e.createElement(m, {
|
|
13
13
|
content: o,
|
|
14
14
|
locale: r
|
|
@@ -17,14 +17,12 @@ const u = ({ content: o, locale: r }) => /* @__PURE__ */ e.createElement(m, {
|
|
|
17
17
|
globalClasses: I,
|
|
18
18
|
moduleClasses: c
|
|
19
19
|
}), r = R();
|
|
20
|
-
return /* @__PURE__ */ e.createElement(t, {
|
|
21
|
-
className: l.group
|
|
22
|
-
}, /* @__PURE__ */ e.createElement(t.Label, {
|
|
20
|
+
return /* @__PURE__ */ e.createElement(t, null, /* @__PURE__ */ e.createElement(t.Label, {
|
|
23
21
|
className: a(i, s.label)
|
|
24
22
|
}, /* @__PURE__ */ e.createElement(t.Label.Required, {
|
|
25
|
-
className: a(
|
|
23
|
+
className: a(E, s.requiredMark)
|
|
26
24
|
})), /* @__PURE__ */ e.createElement(t.Options, {
|
|
27
|
-
className: a(
|
|
25
|
+
className: a(p, l.options)
|
|
28
26
|
}, /* @__PURE__ */ e.createElement(t.Options.Option, null, /* @__PURE__ */ e.createElement(t.Options.Option.Checkbox, {
|
|
29
27
|
className: s.checkbox
|
|
30
28
|
}, /* @__PURE__ */ e.createElement(t.Options.Option.Checkbox.Input, {
|
package/dist/component/{date-input-field-rac-CStB2jP7.js → date-input-field-rac-CHLxtBFZ.js}
RENAMED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { RicosViewer as ee } from "@wix/ricos/viewer";
|
|
2
|
-
import
|
|
3
|
-
import t, { useMemo as y, useState as
|
|
2
|
+
import b from "classnames";
|
|
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, ListBox as ne, Select as re, TextField as
|
|
6
|
-
import { b9 as D, b6 as q, b1 as
|
|
5
|
+
import { ListBoxItem as ae, ListBox as ne, Select as re, TextField as k, SelectValue as se, Input as $ } from "react-aria-components";
|
|
6
|
+
import { b9 as D, b6 as q, b1 as z, aG as G, aT as K, au as d, bj as P, aB as oe, aH as le, a_ as ce, bb as B, I as S, U as ie, t as de, K as me, v as ue, p as pe } from "./form-CJ_Fa4im.js";
|
|
7
7
|
import { f as u, a as H } from "./find-child-C60k4CxG.js";
|
|
8
8
|
import { g as Ee } from "./helpers-HmkkXrh2.js";
|
|
9
|
-
import { D as
|
|
10
|
-
import { L as he } from "./field-label-headless-
|
|
9
|
+
import { D as fe, E as be } from "./field-error-headless-E5JcyvTx.js";
|
|
10
|
+
import { L as he } from "./field-label-headless-iSxxobxd.js";
|
|
11
11
|
import { F as Ie } from "./fieldset-headless-CD3fds9J.js";
|
|
12
12
|
import { N as De, S as Oe } from "./non-modal-popover-DtIMXHbe.js";
|
|
13
|
-
import { u as ge } from "./use-is-forced-open-dropdown-
|
|
13
|
+
import { u as ge } from "./use-is-forced-open-dropdown-CjqjVZmI.js";
|
|
14
14
|
import { C as ye } from "./chevron-down-icon-CcpVm6B-.js";
|
|
15
15
|
import { E as Ne } from "./error-icon-hZxQ6DEy.js";
|
|
16
16
|
import { H as _e } from "./custom-focus-class-_483Pkwp.js";
|
|
17
17
|
import { s as E } from "./field-rac.module-B4l_0KRU.js";
|
|
18
|
-
import { u as Le } from "./use-dropdown-option-class-name-
|
|
19
|
-
import { u as
|
|
18
|
+
import { u as Le } from "./use-dropdown-option-class-name-Bm5e7RIh.js";
|
|
19
|
+
import { u as U } from "./use-text-input-class-name-Bce8xMys.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:
|
|
21
|
+
const { id: r, required: o, onBlur: s, onFocus: l, FieldLayout: c } = D(), { inputId: m, labelId: i, ariaDescribedBy: f } = q(), { regionalFormat: p } = z(), 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),
|
|
@@ -33,7 +33,7 @@ const n = ({ children: e, className: a }) => {
|
|
|
33
33
|
renderInput: () => /* @__PURE__ */ t.createElement(Ie, {
|
|
34
34
|
id: m,
|
|
35
35
|
ariaLabelledBy: i,
|
|
36
|
-
ariaDescribedBy:
|
|
36
|
+
ariaDescribedBy: f,
|
|
37
37
|
required: o,
|
|
38
38
|
onBlur: s,
|
|
39
39
|
onFocus: l,
|
|
@@ -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:
|
|
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 = ge(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,
|
|
@@ -67,8 +67,8 @@ const n = ({ children: e, className: a }) => {
|
|
|
67
67
|
value: i || null,
|
|
68
68
|
onChange: Q,
|
|
69
69
|
isDisabled: o,
|
|
70
|
-
isInvalid:
|
|
71
|
-
placeholder:
|
|
70
|
+
isInvalid: f,
|
|
71
|
+
placeholder: j,
|
|
72
72
|
isOpen: L || _,
|
|
73
73
|
onOpenChange: L ? void 0 : W
|
|
74
74
|
}, X, H(Z, {
|
|
@@ -78,7 +78,7 @@ const n = ({ children: e, className: a }) => {
|
|
|
78
78
|
datePart: d.MONTH,
|
|
79
79
|
className: e
|
|
80
80
|
}), Ce = ({ children: e, className: a }) => {
|
|
81
|
-
const { id: r, readOnly: o } = D(), { inputId: s } = g(d.MONTH), { partError: l, isFirstPart: c } = N(d.MONTH), m =
|
|
81
|
+
const { id: r, readOnly: o } = D(), { inputId: s } = g(d.MONTH), { partError: l, isFirstPart: c } = N(d.MONTH), m = w(null);
|
|
82
82
|
return B(() => {
|
|
83
83
|
var i;
|
|
84
84
|
c && ((i = m.current) == null || i.focus());
|
|
@@ -91,7 +91,7 @@ const n = ({ children: e, className: a }) => {
|
|
|
91
91
|
"data-readonly": o || void 0
|
|
92
92
|
}, /* @__PURE__ */ t.createElement(se, null), e);
|
|
93
93
|
}, A = ({ children: e, className: a, ...r }) => {
|
|
94
|
-
const { isForcedOpen: o } = r, { language: s } =
|
|
94
|
+
const { isForcedOpen: o } = r, { language: s } = z(), l = y(() => Ee(s), [
|
|
95
95
|
s
|
|
96
96
|
]), c = u(e, A.Option) ?? /* @__PURE__ */ t.createElement(A.Option, null);
|
|
97
97
|
return /* @__PURE__ */ t.createElement(De, {
|
|
@@ -118,11 +118,11 @@ O.Trigger = Ce;
|
|
|
118
118
|
O.Options = A;
|
|
119
119
|
A.Option = Re;
|
|
120
120
|
const C = ({ children: e, className: a }) => {
|
|
121
|
-
const { disabled: r, readOnly: o, showDateLabels: s } = D(), { labelId: l } = g(d.DAY), { partValue: c, partError: m, onPartChange: i } = N(d.DAY),
|
|
121
|
+
const { disabled: r, readOnly: o, showDateLabels: s } = D(), { labelId: l } = g(d.DAY), { partValue: c, partError: m, onPartChange: i } = N(d.DAY), f = u(e, C.Label), p = u(e, C.Input);
|
|
122
122
|
return /* @__PURE__ */ t.createElement("div", {
|
|
123
123
|
className: a,
|
|
124
124
|
"data-date-field": !0
|
|
125
|
-
}, s &&
|
|
125
|
+
}, s && f, /* @__PURE__ */ t.createElement(k, {
|
|
126
126
|
"aria-labelledby": s ? l : void 0,
|
|
127
127
|
value: c,
|
|
128
128
|
onChange: i,
|
|
@@ -134,7 +134,7 @@ const C = ({ children: e, className: a }) => {
|
|
|
134
134
|
datePart: d.DAY,
|
|
135
135
|
className: e
|
|
136
136
|
}), Se = ({ className: e }) => {
|
|
137
|
-
const { id: a, hidePlaceholder: r } = D(), { inputId: o } = g(d.DAY), { isFirstPart: s } = N(d.DAY), { t: l } = P(), c =
|
|
137
|
+
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
138
|
return B(() => {
|
|
139
139
|
var i;
|
|
140
140
|
s && ((i = c.current) == null || i.focus());
|
|
@@ -151,11 +151,11 @@ const C = ({ children: e, className: a }) => {
|
|
|
151
151
|
C.Label = Me;
|
|
152
152
|
C.Input = Se;
|
|
153
153
|
const R = ({ children: e, className: a }) => {
|
|
154
|
-
const { disabled: r, readOnly: o, showDateLabels: s } = D(), { labelId: l } = g(d.YEAR), { partValue: c, partError: m, onPartChange: i } = N(d.YEAR),
|
|
154
|
+
const { disabled: r, readOnly: o, showDateLabels: s } = D(), { labelId: l } = g(d.YEAR), { partValue: c, partError: m, onPartChange: i } = N(d.YEAR), f = u(e, R.Label), p = u(e, R.Input);
|
|
155
155
|
return /* @__PURE__ */ t.createElement("div", {
|
|
156
156
|
className: a,
|
|
157
157
|
"data-date-field": !0
|
|
158
|
-
}, s &&
|
|
158
|
+
}, s && f, /* @__PURE__ */ t.createElement(k, {
|
|
159
159
|
"aria-labelledby": s ? l : void 0,
|
|
160
160
|
value: c,
|
|
161
161
|
onChange: i,
|
|
@@ -167,7 +167,7 @@ const R = ({ children: e, className: a }) => {
|
|
|
167
167
|
datePart: d.YEAR,
|
|
168
168
|
className: e
|
|
169
169
|
}), Pe = ({ className: e }) => {
|
|
170
|
-
const { id: a, hidePlaceholder: r } = D(), { inputId: o } = g(d.YEAR), { isFirstPart: s } = N(d.YEAR), { t: l } = P(), c =
|
|
170
|
+
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
171
|
return B(() => {
|
|
172
172
|
var i;
|
|
173
173
|
s && ((i = c.current) == null || i.focus());
|
|
@@ -187,8 +187,8 @@ n.Label = he;
|
|
|
187
187
|
n.Month = O;
|
|
188
188
|
n.Day = C;
|
|
189
189
|
n.Year = R;
|
|
190
|
-
n.Description =
|
|
191
|
-
n.Error =
|
|
190
|
+
n.Description = fe;
|
|
191
|
+
n.Error = be;
|
|
192
192
|
function g(e) {
|
|
193
193
|
const { inputId: a } = q();
|
|
194
194
|
return y(() => {
|
|
@@ -203,7 +203,7 @@ function g(e) {
|
|
|
203
203
|
]);
|
|
204
204
|
}
|
|
205
205
|
function N(e) {
|
|
206
|
-
const { value: a, onChange: r, hasError: o = !1 } = D(), { regionalFormat: s } =
|
|
206
|
+
const { value: a, onChange: r, hasError: o = !1 } = D(), { regionalFormat: s } = z(), l = y(() => oe(a ?? ""), [
|
|
207
207
|
a
|
|
208
208
|
]), c = y(() => le(o, a ?? ""), [
|
|
209
209
|
a,
|
|
@@ -215,7 +215,7 @@ function N(e) {
|
|
|
215
215
|
r,
|
|
216
216
|
l,
|
|
217
217
|
e
|
|
218
|
-
]),
|
|
218
|
+
]), f = y(() => G(s).filter(K).map((_) => _.toUpperCase())[0] === e, [
|
|
219
219
|
s,
|
|
220
220
|
e
|
|
221
221
|
]);
|
|
@@ -223,7 +223,7 @@ function N(e) {
|
|
|
223
223
|
partValue: m,
|
|
224
224
|
partError: c[e],
|
|
225
225
|
onPartChange: i,
|
|
226
|
-
isFirstPart:
|
|
226
|
+
isFirstPart: f
|
|
227
227
|
};
|
|
228
228
|
}
|
|
229
229
|
function V({ datePart: e, className: a }) {
|
|
@@ -234,55 +234,55 @@ function V({ datePart: e, className: a }) {
|
|
|
234
234
|
className: a
|
|
235
235
|
}, c);
|
|
236
236
|
}
|
|
237
|
-
const Te = "
|
|
237
|
+
const Te = "_fields_16lz4_1", Ye = "_month_16lz4_10", ve = "_day_16lz4_11", we = "_year_16lz4_12", ze = "_dayInput_16lz4_28", Be = "_yearInput_16lz4_29", He = "_monthTrigger_16lz4_33", Ve = "_monthOption_16lz4_53", I = {
|
|
238
238
|
fields: Te,
|
|
239
239
|
month: Ye,
|
|
240
240
|
day: ve,
|
|
241
|
-
year:
|
|
242
|
-
dayInput:
|
|
241
|
+
year: we,
|
|
242
|
+
dayInput: ze,
|
|
243
243
|
yearInput: Be,
|
|
244
244
|
monthTrigger: He,
|
|
245
245
|
monthOption: Ve
|
|
246
|
-
},
|
|
246
|
+
}, xe = ({ content: e, locale: a }) => /* @__PURE__ */ t.createElement(ee, {
|
|
247
247
|
content: e,
|
|
248
248
|
locale: a
|
|
249
249
|
}), lt = () => {
|
|
250
|
-
const e = Le(I.monthOption, _e), a =
|
|
250
|
+
const e = Le(I.monthOption, _e), a = U(I.dayInput), r = U(I.yearInput);
|
|
251
251
|
return /* @__PURE__ */ t.createElement(n, {
|
|
252
252
|
className: I.fields
|
|
253
253
|
}, /* @__PURE__ */ t.createElement(n.Label, {
|
|
254
|
-
className:
|
|
254
|
+
className: b(S, E.label)
|
|
255
255
|
}, /* @__PURE__ */ t.createElement(n.Label.Required, {
|
|
256
|
-
className:
|
|
256
|
+
className: b(ie, E.requiredMark)
|
|
257
257
|
})), /* @__PURE__ */ t.createElement(n.Month, {
|
|
258
258
|
className: I.month
|
|
259
259
|
}, /* @__PURE__ */ t.createElement(n.Month.Label, {
|
|
260
|
-
className:
|
|
260
|
+
className: b(S, E.label)
|
|
261
261
|
}), /* @__PURE__ */ t.createElement(n.Month.Trigger, {
|
|
262
|
-
className:
|
|
262
|
+
className: b(de, E.input, I.monthTrigger)
|
|
263
263
|
}, /* @__PURE__ */ t.createElement(ye, {
|
|
264
264
|
className: E.dropdownIcon
|
|
265
265
|
})), /* @__PURE__ */ t.createElement(n.Month.Options, {
|
|
266
|
-
className:
|
|
266
|
+
className: b(me, E.selectPopover, E.dropdownPopover)
|
|
267
267
|
}, /* @__PURE__ */ t.createElement(n.Month.Options.Option, {
|
|
268
268
|
className: e
|
|
269
269
|
}))), /* @__PURE__ */ t.createElement(n.Day, {
|
|
270
270
|
className: I.day
|
|
271
271
|
}, /* @__PURE__ */ t.createElement(n.Day.Label, {
|
|
272
|
-
className:
|
|
272
|
+
className: b(S, E.label)
|
|
273
273
|
}), /* @__PURE__ */ t.createElement(n.Day.Input, {
|
|
274
274
|
className: a
|
|
275
275
|
})), /* @__PURE__ */ t.createElement(n.Year, {
|
|
276
276
|
className: I.year
|
|
277
277
|
}, /* @__PURE__ */ t.createElement(n.Year.Label, {
|
|
278
|
-
className:
|
|
278
|
+
className: b(S, E.label)
|
|
279
279
|
}), /* @__PURE__ */ t.createElement(n.Year.Input, {
|
|
280
280
|
className: r
|
|
281
281
|
})), /* @__PURE__ */ t.createElement(n.Error, {
|
|
282
|
-
className:
|
|
282
|
+
className: b(ue, E.error)
|
|
283
283
|
}, /* @__PURE__ */ t.createElement(Ne, null), /* @__PURE__ */ t.createElement(n.Error.Text, null)), /* @__PURE__ */ t.createElement(n.Description, {
|
|
284
|
-
className:
|
|
285
|
-
},
|
|
284
|
+
className: b(pe, E.description)
|
|
285
|
+
}, xe));
|
|
286
286
|
};
|
|
287
287
|
export {
|
|
288
288
|
lt as D
|
package/dist/component/{date-picker-field-rac-6xffgnXB.js → date-picker-field-rac-DQEWIIOn.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-CJ_Fa4im.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-E5JcyvTx.js";
|
|
11
|
+
import { L as Ne } from "./field-label-headless-iSxxobxd.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-CjqjVZmI.js";
|
|
14
|
+
import { i as Fe } from "./date-availability-CvLIxT4E.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";
|