@wix/form-elements 1.143.0 → 1.145.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-BAwonF75.js → appointment-rac-De-uH9rz.js} +93 -93
- package/dist/component/{bookings-address-rac-xhj2n7jK.js → bookings-address-rac-DB6QCMQJ.js} +1 -1
- package/dist/component/{bookings-email-rac-BGjeAwgm.js → bookings-email-rac-g6ZdB_BO.js} +1 -1
- package/dist/component/{bookings-first-name-rac-l392yYAU.js → bookings-first-name-rac-DQgL_VHl.js} +1 -1
- package/dist/component/{bookings-header-rac-JwIo7hsJ.js → bookings-header-rac-DAnIm-Oq.js} +1 -1
- package/dist/component/{bookings-last-name-rac-CJp81BPl.js → bookings-last-name-rac-D62jNdDb.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-BiPklGE_.js → bookings-login-bar-rac-5z8HfBhU.js} +1 -1
- package/dist/component/{bookings-phone-rac-mQfDJGkK.js → bookings-phone-rac-D0gu-_wy.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-BOfHn2EU.js → bookings-rich-text-rac-b4J1HcdI.js} +1 -1
- package/dist/component/{checkbox-field-rac-CA6SeM0c.js → checkbox-field-rac-CmRRc9Dz.js} +83 -83
- package/dist/component/{checkbox-group-field-headless-ChLT0zKA.js → checkbox-group-field-headless-CB8yAfMe.js} +61 -61
- package/dist/component/{checkbox-group-field-rac-_Fkre79S.js → checkbox-group-field-rac-C5gRZRTd.js} +4 -4
- package/dist/component/{checkbox-group-rac-esBLJZ6Y.js → checkbox-group-rac-DNDF1Irh.js} +1 -1
- package/dist/component/{checkbox-rac-C3vXtbJh.js → checkbox-rac-B9vztGBU.js} +1 -1
- package/dist/component/{contacts-address-rac-BuBBBt19.js → contacts-address-rac-CKZeSncj.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-BMBJeVOK.js → contacts-birthdate-rac-BbpNNQgF.js} +1 -1
- package/dist/component/{contacts-company-rac-CZl168-E.js → contacts-company-rac-BX2KT201.js} +1 -1
- package/dist/component/{contacts-email-rac-CJgVzCns.js → contacts-email-rac-5Irzx1mA.js} +1 -1
- package/dist/component/{contacts-first-name-rac-9ZNYKQeb.js → contacts-first-name-rac-CxKp8_2u.js} +1 -1
- package/dist/component/{contacts-last-name-rac-KgylQwHW.js → contacts-last-name-rac-BDCbSv5I.js} +1 -1
- package/dist/component/{contacts-phone-rac-DYr30FLP.js → contacts-phone-rac-BM_PV_uH.js} +1 -1
- package/dist/component/{contacts-position-rac-B9BZZ3K9.js → contacts-position-rac-1aqthQSi.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-DOQb2GLm.js → contacts-subscribe-rac-CdqXs4kp.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-cYE1ehXN.js → contacts-tax-id-rac-BKHpcDb6.js} +1 -1
- package/dist/component/{date-availability-BOKvA8w-.js → date-availability-DmFFTX8p.js} +1 -1
- package/dist/component/{date-input-field-rac-BwY53gNr.js → date-input-field-rac-BnlAOn12.js} +45 -45
- package/dist/component/{date-input-rac-Cgg4QJbB.js → date-input-rac-BB6qZ16w.js} +1 -1
- package/dist/component/{date-picker-field-rac-0Ue6uiCM.js → date-picker-field-rac-Ckwu2vD6.js} +11 -11
- package/dist/component/{date-picker-rac-CgICj33f.js → date-picker-rac-DSqzUAaH.js} +1 -1
- package/dist/component/{date-time-input-field-rac-ChRCMk7_.js → date-time-input-field-rac-DO-iRdkW.js} +21 -21
- package/dist/component/{date-time-input-rac-B8tRZrri.js → date-time-input-rac-smVCCxdY.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-B_qjx1QD.js → dext-checkbox-group-rac-B8bx3rT2.js} +4 -4
- package/dist/component/{dext-checkbox-rac-Bw9SyhHA.js → dext-checkbox-rac-x8VLGRbc.js} +1 -1
- package/dist/component/{dext-date-picker-rac-Bzn28zNq.js → dext-date-picker-rac-D2a9NXap.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-7Cuk3PoA.js → dext-date-time-input-rac-Cp5XjpGv.js} +1 -1
- package/dist/component/{dext-dropdown-rac-Md1VI5pc.js → dext-dropdown-rac-nWgEvyxt.js} +1 -1
- package/dist/component/{dext-email-rac-DbHwHGKz.js → dext-email-rac-CkX6ya8p.js} +1 -1
- package/dist/component/{dext-number-input-rac-DIVk3zXL.js → dext-number-input-rac-CKT0MS1x.js} +1 -1
- package/dist/component/{dext-phone-rac-ZIya63UJ.js → dext-phone-rac-DM2E7zW_.js} +1 -1
- package/dist/component/{dext-radio-group-rac-DV1xHkOD.js → dext-radio-group-rac-Czr5yY3K.js} +4 -4
- package/dist/component/{dext-rating-input-rac-YRIYgeT4.js → dext-rating-input-rac-CKWNpFuu.js} +1 -1
- package/dist/component/{dext-tags-rac-DTJ6Pz_x.js → dext-tags-rac-6AskGGTp.js} +4 -4
- package/dist/component/{dext-text-area-rac-V-d9i95A.js → dext-text-area-rac-ClGLD7sD.js} +1 -1
- package/dist/component/{dext-text-input-rac-ccrundX-.js → dext-text-input-rac-Blbk53d4.js} +1 -1
- package/dist/component/{dext-url-input-rac-Bd5SZ2U4.js → dext-url-input-rac-BuitmJU0.js} +1 -1
- package/dist/component/{donation-rac-BFmpW-3b.js → donation-rac-DOifFCD7.js} +52 -52
- package/dist/component/{dropdown-field-headless-C2qgeReH.js → dropdown-field-headless-m2P6s7X5.js} +22 -22
- package/dist/component/{dropdown-field-rac-Bj1YSgpT.js → dropdown-field-rac-5e6wWJBl.js} +4 -4
- package/dist/component/{dropdown-rac-DfdvX5I5.js → dropdown-rac-BGxE9pJB.js} +1 -1
- package/dist/component/{ecom-address-rac-DOWNQhhX.js → ecom-address-rac-kbD9qW5Y.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-2ELdC1ql.js → ecom-subscription-checkbox-rac-CE-Yixnj.js} +5 -5
- package/dist/component/{email-input-field-rac-CY0U6vEM.js → email-input-field-rac-CbwcB33o.js} +46 -46
- package/dist/component/{events-repeater-rac-C2oo_RZt.js → events-repeater-rac-CGhUscBr.js} +4 -4
- package/dist/component/{events-rsvp-rac-BrimIo0r.js → events-rsvp-rac-AQ33zPTe.js} +3 -3
- package/dist/component/{field-error-headless-r0fX50xw.js → field-error-headless-ClPQ03Jc.js} +9 -9
- package/dist/component/field-label-headless-DhN8Lkuq.js +52 -0
- package/dist/component/{file-upload-rac-Beb2BcFK.js → file-upload-rac-yTx1ZRhZ.js} +53 -53
- package/dist/component/{fixed-payment-rac-DGFWYMZG.js → fixed-payment-rac-nlyxa9nB.js} +12 -12
- package/dist/component/{form-DtzwuBIo.js → form-D3iU18lh.js} +2386 -2352
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +2 -2
- package/dist/component/{header-field-rac-CVmGSa0E.js → header-field-rac-DAEzcleV.js} +4 -4
- package/dist/component/{header-rac-C3AEJmYN.js → header-rac-CJZ4qMFg.js} +1 -1
- package/dist/component/{image-choice-rac-Ch-mxLgP.js → image-choice-rac-BFAMHwPh.js} +10 -10
- package/dist/component/{index-CTn6AQ3A.js → index-DQW26cnX.js} +2 -2
- package/dist/component/{index-CmqLlW8X.js → index-W7GOFnq8.js} +43 -43
- package/dist/component/{isObjectLike-iyypwAQL.js → isObjectLike-CE8eaxSI.js} +7 -7
- package/dist/component/{multiline-address-field-rac-DJXcb6NG.js → multiline-address-field-rac-FbJO0HFf.js} +94 -94
- package/dist/component/{multiline-address-rac-DcZgTx1c.js → multiline-address-rac-CI-vt6Pm.js} +1 -1
- package/dist/component/{number-input-field-rac-W3TqQGhC.js → number-input-field-rac-BRVAr7LL.js} +21 -21
- package/dist/component/{number-input-rac-CdXigsba.js → number-input-rac-C8hCiJiu.js} +1 -1
- package/dist/component/{password-rac-Dph6984u.js → password-rac-Baslr6Ga.js} +7 -7
- package/dist/component/{payment-input-rac-D5ARk1lF.js → payment-input-rac-CfJSKxYz.js} +17 -17
- package/dist/component/{phone-input-field-rac-BUfe-B2i.js → phone-input-field-rac-Dqh4CXdC.js} +24 -24
- package/dist/component/{phone-rac-DTiWT1uy.js → phone-rac-DaLuGuxd.js} +1 -1
- package/dist/component/{product-list-rac-1_Q2JYwH.js → product-list-rac-PNMwRBtL.js} +31 -31
- package/dist/component/{quiz-radio-group-rac-iyBhi0wJ.js → quiz-radio-group-rac-DN8vY-oM.js} +1 -1
- package/dist/component/{radio-button-module-classes-DwfobXBe.js → radio-button-module-classes-DlJi9a2f.js} +11 -11
- package/dist/component/{radio-group-field-rac-BkKNVwMi.js → radio-group-field-rac-C0tLXhl5.js} +4 -4
- package/dist/component/{radio-group-rac-CH0nkJ8V.js → radio-group-rac-FAk7PYgP.js} +1 -1
- package/dist/component/{rating-input-field-rac-CUUUlgZi.js → rating-input-field-rac-Cl1kH_uu.js} +12 -12
- package/dist/component/{rating-input-rac-8yEiqBR5.js → rating-input-rac-D9p-0pkI.js} +1 -1
- package/dist/component/{rich-content-rac.module-DeKU0pwh.js → rich-content-rac.module-Dkr46kPC.js} +3 -3
- package/dist/component/{rich-text-field-rac-Cwd-RWTi.js → rich-text-field-rac-DthhTvTp.js} +4 -4
- package/dist/component/{rich-text-rac-C5-jPNYP.js → rich-text-rac-DqZX4NeB.js} +1 -1
- package/dist/component/{service-dropdown-rac-DBGAnsut.js → service-dropdown-rac-BMOGLU2Z.js} +30 -30
- package/dist/component/{services-multi-choice-rac-CqEoGsuw.js → services-multi-choice-rac-DcdUewzJ.js} +5 -5
- package/dist/component/{signature-rac-Cq3y66Cr.js → signature-rac-BRvN6kUW.js} +37 -37
- package/dist/component/submit-button-rac-B70UC8eS.js +228 -0
- package/dist/component/{tags-field-rac-CpJ0O9f_.js → tags-field-rac-NpYyV8X4.js} +16 -16
- package/dist/component/{tags-rac-BPjw67Po.js → tags-rac-BMEbpJ-z.js} +1 -1
- package/dist/component/{text-area-field-rac-BG6MJuIW.js → text-area-field-rac-BLSrNwJ6.js} +9 -9
- package/dist/component/{text-area-rac-BAS4F4VC.js → text-area-rac-Cm7aAfIz.js} +1 -1
- package/dist/component/{text-input-field-rac-BhMktcEd.js → text-input-field-rac-BDqV7s0M.js} +3 -3
- package/dist/component/{text-input-headless-Bpjd70nh.js → text-input-headless-B0jcwDev.js} +7 -7
- package/dist/component/{text-input-rac-Bj21XKGA.js → text-input-rac-Cc_SkCCS.js} +1 -1
- package/dist/component/{time-input-rac-DBpRHdnX.js → time-input-rac-DDCiAFe2.js} +33 -33
- package/dist/component/{url-input-field-rac-B_EMXVWh.js → url-input-field-rac-jen6pbz7.js} +24 -24
- package/dist/component/{url-input-rac-D0Ck-9KV.js → url-input-rac-BWh6udtS.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-CkpHwC6t.js → use-dropdown-option-class-name-OD8brKoy.js} +2 -2
- package/dist/component/{use-dropdown-trigger-class-name-DmDwpAVn.js → use-dropdown-trigger-class-name-BrkmG0ad.js} +4 -4
- package/dist/component/{use-element-state-class-name-BrgdwHYP.js → use-element-state-class-name-B1r_nXW1.js} +3 -3
- package/dist/component/{use-hoverable-input-class-name-qVo45l-t.js → use-hoverable-input-class-name-B-FhrcyQ.js} +6 -6
- package/dist/component/{use-service-options-base-Dlqs4p0Z.js → use-service-options-base-CTA_43F3.js} +1 -1
- package/dist/component/use-text-input-class-name-BXuk3TK7.js +6 -0
- package/dist/form.d.ts +36 -0
- package/package.json +2 -2
- package/dist/component/field-label-headless-D-kCfg8j.js +0 -52
- package/dist/component/submit-button-rac-CKM7yUL4.js +0 -172
- package/dist/component/use-text-input-class-name-CP2VJOso.js +0 -6
package/dist/component/{checkbox-group-field-rac-_Fkre79S.js → checkbox-group-field-rac-C5gRZRTd.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-CB8yAfMe.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-D3iU18lh.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-B1r_nXW1.js";
|
|
11
|
+
import { u as L } from "./use-text-input-class-name-BXuk3TK7.js";
|
|
12
12
|
const u = ({ content: o, locale: r }) => /* @__PURE__ */ e.createElement(m, {
|
|
13
13
|
content: o,
|
|
14
14
|
locale: r
|
package/dist/component/{date-input-field-rac-BwY53gNr.js → date-input-field-rac-BnlAOn12.js}
RENAMED
|
@@ -3,22 +3,22 @@ import h from "classnames";
|
|
|
3
3
|
import t, { useMemo as O, useState as k, useCallback as v, useRef as w } from "react";
|
|
4
4
|
import { UNSAFE_PortalProvider as te } from "react-aria";
|
|
5
5
|
import { ListBoxItem as ae, Select as ne, TextField as $, SelectValue as re, Input as q } from "react-aria-components";
|
|
6
|
-
import {
|
|
7
|
-
import { f as u, a as
|
|
6
|
+
import { bn as D, bk as z, bf as V, aU as G, b5 as K, aH as m, bx as S, aO as se, aV as oe, bc as le, bp as H, R as P, $ as ce, x as ie, G as me, u as de } from "./form-D3iU18lh.js";
|
|
7
|
+
import { f as u, a as x } from "./find-child-C60k4CxG.js";
|
|
8
8
|
import { g as ue } from "./helpers-HmkkXrh2.js";
|
|
9
|
-
import { D as pe, E as Ee } from "./field-error-headless-
|
|
10
|
-
import { L as fe } from "./field-label-headless-
|
|
9
|
+
import { D as pe, E as Ee } from "./field-error-headless-ClPQ03Jc.js";
|
|
10
|
+
import { L as fe } from "./field-label-headless-DhN8Lkuq.js";
|
|
11
11
|
import { F as be } from "./fieldset-headless-CD3fds9J.js";
|
|
12
|
-
import { N as he, E as
|
|
13
|
-
import { a as
|
|
14
|
-
import { V as Oe, u as Ne } from "./use-dropdown-option-class-name-
|
|
12
|
+
import { N as he, E as ye, S as De } from "./non-modal-popover-D-u13tmp.js";
|
|
13
|
+
import { a as Ie, u as ge } from "./use-dropdown-trigger-class-name-BrkmG0ad.js";
|
|
14
|
+
import { V as Oe, u as Ne } from "./use-dropdown-option-class-name-OD8brKoy.js";
|
|
15
15
|
import { C as Le } from "./chevron-down-icon-CcpVm6B-.js";
|
|
16
16
|
import { E as _e } from "./error-icon-hZxQ6DEy.js";
|
|
17
17
|
import { H as Ce } from "./custom-focus-class-_483Pkwp.js";
|
|
18
18
|
import { s as E } from "./field-rac.module-DfEb7pBp.js";
|
|
19
|
-
import { u as U } from "./use-text-input-class-name-
|
|
19
|
+
import { u as U } from "./use-text-input-class-name-BXuk3TK7.js";
|
|
20
20
|
const n = ({ children: e, className: a }) => {
|
|
21
|
-
const { id: r, required: s, onBlur: o, onFocus: l, FieldLayout: c } =
|
|
21
|
+
const { id: r, required: s, onBlur: o, onFocus: l, FieldLayout: c } = D(), { inputId: d, labelId: i, ariaDescribedBy: f } = z(), { regionalFormat: p } = V(), b = O(() => G(p).filter(K).map((Y) => Y.toUpperCase()), [
|
|
22
22
|
p
|
|
23
23
|
]), L = u(e, n.Label), T = u(e, n.Description), _ = u(e, n.Error), C = {
|
|
24
24
|
[m.MONTH]: u(e, n.Month),
|
|
@@ -27,7 +27,7 @@ const n = ({ children: e, className: a }) => {
|
|
|
27
27
|
};
|
|
28
28
|
return /* @__PURE__ */ t.createElement(c, {
|
|
29
29
|
fieldId: r,
|
|
30
|
-
renderLabel: () =>
|
|
30
|
+
renderLabel: () => x(L, {
|
|
31
31
|
as: "div"
|
|
32
32
|
}),
|
|
33
33
|
renderInput: () => /* @__PURE__ */ t.createElement(be, {
|
|
@@ -41,17 +41,17 @@ const n = ({ children: e, className: a }) => {
|
|
|
41
41
|
}, C[b[0]], C[b[1]], C[b[2]]),
|
|
42
42
|
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, _, T)
|
|
43
43
|
});
|
|
44
|
-
},
|
|
45
|
-
const { id: r, disabled: s, readOnly: o, showDateLabels: l, hidePlaceholder: c } =
|
|
44
|
+
}, I = ({ children: e, className: a }) => {
|
|
45
|
+
const { id: r, disabled: s, readOnly: o, showDateLabels: l, hidePlaceholder: c } = D(), { labelId: d } = g(m.MONTH), { partValue: i, partError: f, onPartChange: p } = N(m.MONTH), { t: b } = S(), [L, T] = k(!1), _ = Ie(r), [C, Y] = k(null), Q = c ? ye : b("field.date.placeholder.month"), W = v((M) => {
|
|
46
46
|
o || p(typeof M == "string" ? M : "");
|
|
47
47
|
}, [
|
|
48
48
|
p,
|
|
49
49
|
o
|
|
50
|
-
]),
|
|
50
|
+
]), j = v((M) => {
|
|
51
51
|
T(M && !o);
|
|
52
52
|
}, [
|
|
53
53
|
o
|
|
54
|
-
]), J = u(e,
|
|
54
|
+
]), J = u(e, I.Label), X = u(e, I.Trigger), Z = u(e, I.Options);
|
|
55
55
|
return /* @__PURE__ */ t.createElement("div", {
|
|
56
56
|
className: a,
|
|
57
57
|
"data-date-field": !0
|
|
@@ -65,24 +65,24 @@ const n = ({ children: e, className: a }) => {
|
|
|
65
65
|
}, /* @__PURE__ */ t.createElement(ne, {
|
|
66
66
|
"aria-labelledby": l ? d : void 0,
|
|
67
67
|
value: i || null,
|
|
68
|
-
onChange:
|
|
68
|
+
onChange: W,
|
|
69
69
|
isDisabled: s,
|
|
70
70
|
isInvalid: f,
|
|
71
|
-
placeholder:
|
|
71
|
+
placeholder: Q,
|
|
72
72
|
isOpen: _ || L,
|
|
73
|
-
onOpenChange: _ ? void 0 :
|
|
74
|
-
}, X,
|
|
73
|
+
onOpenChange: _ ? void 0 : j
|
|
74
|
+
}, X, x(Z, {
|
|
75
75
|
isForcedOpen: _
|
|
76
76
|
}))));
|
|
77
|
-
}, Fe = ({ className: e }) => /* @__PURE__ */ t.createElement(
|
|
77
|
+
}, Fe = ({ className: e }) => /* @__PURE__ */ t.createElement(B, {
|
|
78
78
|
datePart: m.MONTH,
|
|
79
79
|
className: e
|
|
80
80
|
}), Re = ({ children: e, className: a }) => {
|
|
81
|
-
const { id: r, readOnly: s } =
|
|
81
|
+
const { id: r, readOnly: s } = D(), { inputId: o } = g(m.MONTH), { partError: l, isFirstPart: c } = N(m.MONTH), d = w(null);
|
|
82
82
|
return H(() => {
|
|
83
83
|
var i;
|
|
84
84
|
c && ((i = d.current) == null || i.focus());
|
|
85
|
-
}, r), /* @__PURE__ */ t.createElement(
|
|
85
|
+
}, r), /* @__PURE__ */ t.createElement(De, {
|
|
86
86
|
ref: d,
|
|
87
87
|
id: o,
|
|
88
88
|
className: a,
|
|
@@ -101,7 +101,7 @@ const n = ({ children: e, className: a }) => {
|
|
|
101
101
|
}, /* @__PURE__ */ t.createElement(Oe, {
|
|
102
102
|
isForcedOpen: s,
|
|
103
103
|
autoFocus: s ? !1 : void 0
|
|
104
|
-
}, l.map((d, i) =>
|
|
104
|
+
}, l.map((d, i) => x(c, {
|
|
105
105
|
key: String(i + 1),
|
|
106
106
|
value: String(i + 1),
|
|
107
107
|
label: d
|
|
@@ -114,12 +114,12 @@ const n = ({ children: e, className: a }) => {
|
|
|
114
114
|
textValue: s
|
|
115
115
|
}, s);
|
|
116
116
|
};
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
117
|
+
I.Label = Fe;
|
|
118
|
+
I.Trigger = Re;
|
|
119
|
+
I.Options = A;
|
|
120
120
|
A.Option = Me;
|
|
121
121
|
const F = ({ children: e, className: a }) => {
|
|
122
|
-
const { disabled: r, readOnly: s, showDateLabels: o } =
|
|
122
|
+
const { disabled: r, readOnly: s, showDateLabels: o } = D(), { labelId: l } = g(m.DAY), { partValue: c, partError: d, onPartChange: i } = N(m.DAY), f = u(e, F.Label), p = u(e, F.Input);
|
|
123
123
|
return /* @__PURE__ */ t.createElement("div", {
|
|
124
124
|
className: a,
|
|
125
125
|
"data-date-field": !0
|
|
@@ -131,11 +131,11 @@ const F = ({ children: e, className: a }) => {
|
|
|
131
131
|
isReadOnly: s,
|
|
132
132
|
isInvalid: d
|
|
133
133
|
}, p));
|
|
134
|
-
}, Pe = ({ className: e }) => /* @__PURE__ */ t.createElement(
|
|
134
|
+
}, Pe = ({ className: e }) => /* @__PURE__ */ t.createElement(B, {
|
|
135
135
|
datePart: m.DAY,
|
|
136
136
|
className: e
|
|
137
137
|
}), Ae = ({ className: e }) => {
|
|
138
|
-
const { id: a, hidePlaceholder: r } =
|
|
138
|
+
const { id: a, hidePlaceholder: r } = D(), { inputId: s } = g(m.DAY), { isFirstPart: o } = N(m.DAY), { t: l } = S(), c = w(null), d = r ? void 0 : l("field.date.placeholder.day");
|
|
139
139
|
return H(() => {
|
|
140
140
|
var i;
|
|
141
141
|
o && ((i = c.current) == null || i.focus());
|
|
@@ -152,7 +152,7 @@ const F = ({ children: e, className: a }) => {
|
|
|
152
152
|
F.Label = Pe;
|
|
153
153
|
F.Input = Ae;
|
|
154
154
|
const R = ({ children: e, className: a }) => {
|
|
155
|
-
const { disabled: r, readOnly: s, showDateLabels: o } =
|
|
155
|
+
const { disabled: r, readOnly: s, showDateLabels: o } = D(), { labelId: l } = g(m.YEAR), { partValue: c, partError: d, onPartChange: i } = N(m.YEAR), f = u(e, R.Label), p = u(e, R.Input);
|
|
156
156
|
return /* @__PURE__ */ t.createElement("div", {
|
|
157
157
|
className: a,
|
|
158
158
|
"data-date-field": !0
|
|
@@ -164,11 +164,11 @@ const R = ({ children: e, className: a }) => {
|
|
|
164
164
|
isReadOnly: s,
|
|
165
165
|
isInvalid: d
|
|
166
166
|
}, p));
|
|
167
|
-
}, Se = ({ className: e }) => /* @__PURE__ */ t.createElement(
|
|
167
|
+
}, Se = ({ className: e }) => /* @__PURE__ */ t.createElement(B, {
|
|
168
168
|
datePart: m.YEAR,
|
|
169
169
|
className: e
|
|
170
170
|
}), Te = ({ className: e }) => {
|
|
171
|
-
const { id: a, hidePlaceholder: r } =
|
|
171
|
+
const { id: a, hidePlaceholder: r } = D(), { inputId: s } = g(m.YEAR), { isFirstPart: o } = N(m.YEAR), { t: l } = S(), c = w(null), d = r ? void 0 : l("field.date.placeholder.year");
|
|
172
172
|
return H(() => {
|
|
173
173
|
var i;
|
|
174
174
|
o && ((i = c.current) == null || i.focus());
|
|
@@ -185,12 +185,12 @@ const R = ({ children: e, className: a }) => {
|
|
|
185
185
|
R.Label = Se;
|
|
186
186
|
R.Input = Te;
|
|
187
187
|
n.Label = fe;
|
|
188
|
-
n.Month =
|
|
188
|
+
n.Month = I;
|
|
189
189
|
n.Day = F;
|
|
190
190
|
n.Year = R;
|
|
191
191
|
n.Description = pe;
|
|
192
192
|
n.Error = Ee;
|
|
193
|
-
function
|
|
193
|
+
function g(e) {
|
|
194
194
|
const { inputId: a } = z();
|
|
195
195
|
return O(() => {
|
|
196
196
|
const r = e.toLowerCase();
|
|
@@ -204,7 +204,7 @@ function I(e) {
|
|
|
204
204
|
]);
|
|
205
205
|
}
|
|
206
206
|
function N(e) {
|
|
207
|
-
const { value: a, onChange: r, hasError: s = !1 } =
|
|
207
|
+
const { value: a, onChange: r, hasError: s = !1 } = D(), { regionalFormat: o } = V(), l = O(() => se(a ?? ""), [
|
|
208
208
|
a
|
|
209
209
|
]), c = O(() => oe(s, a ?? ""), [
|
|
210
210
|
a,
|
|
@@ -216,7 +216,7 @@ function N(e) {
|
|
|
216
216
|
r,
|
|
217
217
|
l,
|
|
218
218
|
e
|
|
219
|
-
]), f = O(() =>
|
|
219
|
+
]), f = O(() => G(o).filter(K).map((L) => L.toUpperCase())[0] === e, [
|
|
220
220
|
o,
|
|
221
221
|
e
|
|
222
222
|
]);
|
|
@@ -227,36 +227,36 @@ function N(e) {
|
|
|
227
227
|
isFirstPart: f
|
|
228
228
|
};
|
|
229
229
|
}
|
|
230
|
-
function
|
|
231
|
-
const { inputId: r, labelId: s } =
|
|
230
|
+
function B({ datePart: e, className: a }) {
|
|
231
|
+
const { inputId: r, labelId: s } = g(e), { t: o } = S(), l = `field.date.label.${e.toLowerCase()}`, c = o(l);
|
|
232
232
|
return /* @__PURE__ */ t.createElement("label", {
|
|
233
233
|
id: s,
|
|
234
234
|
htmlFor: r,
|
|
235
235
|
className: a
|
|
236
236
|
}, c);
|
|
237
237
|
}
|
|
238
|
-
const Ye = "_fields_fw9my_1", ve = "_month_fw9my_10", we = "_day_fw9my_11", Ve = "_year_fw9my_12", He = "_dayInput_fw9my_28",
|
|
238
|
+
const Ye = "_fields_fw9my_1", ve = "_month_fw9my_10", we = "_day_fw9my_11", Ve = "_year_fw9my_12", He = "_dayInput_fw9my_28", xe = "_yearInput_fw9my_29", Be = "_monthTrigger_fw9my_33", ke = "_monthOption_fw9my_53", y = {
|
|
239
239
|
fields: Ye,
|
|
240
240
|
month: ve,
|
|
241
241
|
day: we,
|
|
242
242
|
year: Ve,
|
|
243
243
|
dayInput: He,
|
|
244
|
-
yearInput:
|
|
245
|
-
monthTrigger:
|
|
244
|
+
yearInput: xe,
|
|
245
|
+
monthTrigger: Be,
|
|
246
246
|
monthOption: ke
|
|
247
247
|
}, Ue = ({ content: e, locale: a }) => /* @__PURE__ */ t.createElement(ee, {
|
|
248
248
|
content: e,
|
|
249
249
|
locale: a
|
|
250
250
|
}), ct = () => {
|
|
251
|
-
const e =
|
|
251
|
+
const e = ge(y.monthTrigger), a = Ne(y.monthOption, Ce), r = U(y.dayInput), s = U(y.yearInput);
|
|
252
252
|
return /* @__PURE__ */ t.createElement(n, {
|
|
253
|
-
className:
|
|
253
|
+
className: y.fields
|
|
254
254
|
}, /* @__PURE__ */ t.createElement(n.Label, {
|
|
255
255
|
className: h(P, E.label)
|
|
256
256
|
}, /* @__PURE__ */ t.createElement(n.Label.Required, {
|
|
257
257
|
className: h(ce, E.requiredMark)
|
|
258
258
|
})), /* @__PURE__ */ t.createElement(n.Month, {
|
|
259
|
-
className:
|
|
259
|
+
className: y.month
|
|
260
260
|
}, /* @__PURE__ */ t.createElement(n.Month.Label, {
|
|
261
261
|
className: h(P, E.label)
|
|
262
262
|
}), /* @__PURE__ */ t.createElement(n.Month.Trigger, {
|
|
@@ -268,13 +268,13 @@ const Ye = "_fields_fw9my_1", ve = "_month_fw9my_10", we = "_day_fw9my_11", Ve =
|
|
|
268
268
|
}, /* @__PURE__ */ t.createElement(n.Month.Options.Option, {
|
|
269
269
|
className: a
|
|
270
270
|
}))), /* @__PURE__ */ t.createElement(n.Day, {
|
|
271
|
-
className:
|
|
271
|
+
className: y.day
|
|
272
272
|
}, /* @__PURE__ */ t.createElement(n.Day.Label, {
|
|
273
273
|
className: h(P, E.label)
|
|
274
274
|
}), /* @__PURE__ */ t.createElement(n.Day.Input, {
|
|
275
275
|
className: r
|
|
276
276
|
})), /* @__PURE__ */ t.createElement(n.Year, {
|
|
277
|
-
className:
|
|
277
|
+
className: y.year
|
|
278
278
|
}, /* @__PURE__ */ t.createElement(n.Year.Label, {
|
|
279
279
|
className: h(P, E.label)
|
|
280
280
|
}), /* @__PURE__ */ t.createElement(n.Year.Input, {
|
package/dist/component/{date-picker-field-rac-0Ue6uiCM.js → date-picker-field-rac-Ckwu2vD6.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,
|
|
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-D3iU18lh.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-ClPQ03Jc.js";
|
|
11
|
+
import { L as Ne } from "./field-label-headless-DhN8Lkuq.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-BrkmG0ad.js";
|
|
14
|
+
import { i as Fe } from "./date-availability-DmFFTX8p.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";
|
|
@@ -32,7 +32,7 @@ const Oe = [
|
|
|
32
32
|
n(J);
|
|
33
33
|
}, [
|
|
34
34
|
n
|
|
35
|
-
]), H = E(t, a.Label), q = E(t, a.Control),
|
|
35
|
+
]), H = E(t, a.Label), q = E(t, a.Control), G = E(t, a.Calendar), j = E(t, a.Description), Q = E(t, a.Error), Z = Ke(o);
|
|
36
36
|
return /* @__PURE__ */ e.createElement(m, {
|
|
37
37
|
fieldId: r,
|
|
38
38
|
renderLabel: () => H,
|
|
@@ -57,10 +57,10 @@ const Oe = [
|
|
|
57
57
|
onFocus: l,
|
|
58
58
|
isOpen: v || K,
|
|
59
59
|
onOpenChange: v ? void 0 : W
|
|
60
|
-
}, q, h(
|
|
60
|
+
}, q, h(G, {
|
|
61
61
|
isForcedOpen: v
|
|
62
62
|
})))),
|
|
63
|
-
renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, Q,
|
|
63
|
+
renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, Q, j)
|
|
64
64
|
});
|
|
65
65
|
}, Re = ({ children: t, className: r }) => {
|
|
66
66
|
const { inputId: o, ariaDescribedBy: n } = U(), { hasError: i, disabled: c, readOnly: u } = T(), l = ee(oe), m = k((d) => {
|
|
@@ -261,9 +261,9 @@ const qe = (t) => /* @__PURE__ */ e.createElement("svg", {
|
|
|
261
261
|
strokeWidth: "1.5",
|
|
262
262
|
strokeLinecap: "round",
|
|
263
263
|
strokeLinejoin: "round"
|
|
264
|
-
})),
|
|
265
|
-
control:
|
|
266
|
-
segments:
|
|
264
|
+
})), Ge = "_control_18cbf_1", je = "_segments_18cbf_14", Qe = "_trigger_18cbf_72", Ze = "_calendarPopover_18cbf_103", ze = "_calendarDay_18cbf_252", S = {
|
|
265
|
+
control: Ge,
|
|
266
|
+
segments: je,
|
|
267
267
|
trigger: Qe,
|
|
268
268
|
calendarPopover: Ze,
|
|
269
269
|
calendarDay: ze
|
|
@@ -3,21 +3,21 @@ import h from "classnames";
|
|
|
3
3
|
import t, { useMemo as T, useState as q, useCallback as H, useRef as U, useContext as oe } from "react";
|
|
4
4
|
import { parseTime as le } from "@internationalized/date";
|
|
5
5
|
import { UNSAFE_PortalProvider as ie } from "react-aria";
|
|
6
|
-
import { ListBoxItem as ce, Select as me, TextField as
|
|
7
|
-
import {
|
|
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-D3iU18lh.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-ClPQ03Jc.js";
|
|
11
|
+
import { L as Te } from "./field-label-headless-DhN8Lkuq.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-BrkmG0ad.js";
|
|
15
|
+
import { V as Re, u as Ae } from "./use-dropdown-option-class-name-OD8brKoy.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-BXuk3TK7.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
|
|
@@ -124,7 +124,7 @@ const A = ({ children: e, className: a }) => {
|
|
|
124
124
|
return /* @__PURE__ */ t.createElement("div", {
|
|
125
125
|
className: a,
|
|
126
126
|
"data-date-field": !0
|
|
127
|
-
}, s && b, /* @__PURE__ */ t.createElement(
|
|
127
|
+
}, s && b, /* @__PURE__ */ t.createElement(j, {
|
|
128
128
|
"aria-labelledby": s ? o : void 0,
|
|
129
129
|
value: i,
|
|
130
130
|
onChange: c,
|
|
@@ -140,7 +140,7 @@ const A = ({ children: e, className: a }) => {
|
|
|
140
140
|
return z(() => {
|
|
141
141
|
var c;
|
|
142
142
|
s && ((c = i.current) == null || c.focus());
|
|
143
|
-
}, a), /* @__PURE__ */ t.createElement(
|
|
143
|
+
}, a), /* @__PURE__ */ t.createElement(K, {
|
|
144
144
|
ref: i,
|
|
145
145
|
id: r,
|
|
146
146
|
className: e,
|
|
@@ -157,7 +157,7 @@ const V = ({ children: e, className: a }) => {
|
|
|
157
157
|
return /* @__PURE__ */ t.createElement("div", {
|
|
158
158
|
className: a,
|
|
159
159
|
"data-date-field": !0
|
|
160
|
-
}, s && b, /* @__PURE__ */ t.createElement(
|
|
160
|
+
}, s && b, /* @__PURE__ */ t.createElement(j, {
|
|
161
161
|
"aria-labelledby": s ? o : void 0,
|
|
162
162
|
value: i,
|
|
163
163
|
onChange: c,
|
|
@@ -173,7 +173,7 @@ const V = ({ children: e, className: a }) => {
|
|
|
173
173
|
return z(() => {
|
|
174
174
|
var c;
|
|
175
175
|
s && ((c = i.current) == null || c.focus());
|
|
176
|
-
}, a), /* @__PURE__ */ t.createElement(
|
|
176
|
+
}, a), /* @__PURE__ */ t.createElement(K, {
|
|
177
177
|
ref: i,
|
|
178
178
|
id: r,
|
|
179
179
|
className: e,
|
|
@@ -252,7 +252,7 @@ const I = ({ children: e, className: a }) => {
|
|
|
252
252
|
placeholder: o
|
|
253
253
|
}
|
|
254
254
|
});
|
|
255
|
-
},
|
|
255
|
+
}, Qe = ({ className: e, ...a }) => {
|
|
256
256
|
const { hidePlaceholder: n } = f(), { segment: r } = a, { t: s } = L(), o = oe(Ee), i = n ? void 0 : s("field.date.placeholder.period"), m = () => o == null ? void 0 : o.increment("dayPeriod");
|
|
257
257
|
return /* @__PURE__ */ t.createElement(x, {
|
|
258
258
|
segment: r,
|
|
@@ -267,7 +267,7 @@ I.Label = $e;
|
|
|
267
267
|
I.Input = ze;
|
|
268
268
|
I.Hour = Ge;
|
|
269
269
|
I.Minute = qe;
|
|
270
|
-
I.Period =
|
|
270
|
+
I.Period = Qe;
|
|
271
271
|
l.Label = Te;
|
|
272
272
|
l.Month = C;
|
|
273
273
|
l.Day = A;
|
|
@@ -289,23 +289,23 @@ function O(e) {
|
|
|
289
289
|
]);
|
|
290
290
|
}
|
|
291
291
|
function F(e) {
|
|
292
|
-
const { value: a, onChange: n, hasError: r = !1 } = f(), { regionalFormat: s } = $(), [o, i] = T(() =>
|
|
292
|
+
const { value: a, onChange: n, hasError: r = !1 } = f(), { regionalFormat: s } = $(), [o, i] = T(() => Q(a ?? ""), [
|
|
293
293
|
a
|
|
294
294
|
]), m = T(() => fe(r, a ?? ""), [
|
|
295
295
|
a,
|
|
296
296
|
r
|
|
297
297
|
]), c = T(() => he(o), [
|
|
298
298
|
o
|
|
299
|
-
]), b = T(() =>
|
|
299
|
+
]), b = T(() => We(i), [
|
|
300
300
|
i
|
|
301
301
|
]), p = H((D) => {
|
|
302
|
-
const N =
|
|
302
|
+
const N = je(D), y = W(o, N);
|
|
303
303
|
n(y);
|
|
304
304
|
}, [
|
|
305
305
|
n,
|
|
306
306
|
o
|
|
307
307
|
]), _ = H((D) => {
|
|
308
|
-
const [, N] =
|
|
308
|
+
const [, N] = Q(a ?? ""), y = be(D, e, c), S = W(y, N);
|
|
309
309
|
n(S);
|
|
310
310
|
}, [
|
|
311
311
|
n,
|
|
@@ -336,7 +336,7 @@ function G({ datePart: e, className: a }) {
|
|
|
336
336
|
className: a
|
|
337
337
|
}, i);
|
|
338
338
|
}
|
|
339
|
-
function
|
|
339
|
+
function We(e) {
|
|
340
340
|
if (!e)
|
|
341
341
|
return null;
|
|
342
342
|
try {
|
|
@@ -345,7 +345,7 @@ function Ke(e) {
|
|
|
345
345
|
return null;
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
|
-
function
|
|
348
|
+
function je(e) {
|
|
349
349
|
if (!e)
|
|
350
350
|
return null;
|
|
351
351
|
const a = String(e.hour).padStart(2, "0"), n = String(e.minute).padStart(2, "0"), r = String(e.second).padStart(2, "0");
|
|
@@ -355,8 +355,8 @@ function Qe(e) {
|
|
|
355
355
|
r
|
|
356
356
|
].join(":");
|
|
357
357
|
}
|
|
358
|
-
const
|
|
359
|
-
fields:
|
|
358
|
+
const Ke = "_fields_1meki_1", Je = "_month_1meki_10", Xe = "_day_1meki_11", Ze = "_year_1meki_12", et = "_timeGroup_1meki_13", tt = "_dayInput_1meki_34", at = "_yearInput_1meki_35", nt = "_monthTrigger_1meki_39", rt = "_monthOption_1meki_59", st = "_time_1meki_13", ot = "_hour_1meki_78", lt = "_minute_1meki_79", it = "_period_1meki_80", E = {
|
|
359
|
+
fields: Ke,
|
|
360
360
|
month: Je,
|
|
361
361
|
day: Xe,
|
|
362
362
|
year: Ze,
|
package/dist/component/{dext-checkbox-group-rac-B_qjx1QD.js → dext-checkbox-group-rac-B8bx3rT2.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import o from "react";
|
|
2
|
-
import {
|
|
3
|
-
import { C as p } from "./checkbox-group-field-rac-
|
|
2
|
+
import { bn as e, ap as t } from "./form-D3iU18lh.js";
|
|
3
|
+
import { C as p } from "./checkbox-group-field-rac-C5gRZRTd.js";
|
|
4
4
|
import { D as s } from "./default-limits-D7qVv_Hv.js";
|
|
5
|
-
const
|
|
5
|
+
const C = () => {
|
|
6
6
|
const r = {
|
|
7
7
|
...e(),
|
|
8
8
|
otherInputCharacterLimit: s
|
|
@@ -14,5 +14,5 @@ const n = () => {
|
|
|
14
14
|
}, /* @__PURE__ */ o.createElement(p, null));
|
|
15
15
|
};
|
|
16
16
|
export {
|
|
17
|
-
|
|
17
|
+
C as DextCheckboxGroupRAC
|
|
18
18
|
};
|