@wix/form-elements 1.216.0 → 1.218.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-obvkIxlW.js → appointment-rac-BHOy_R7-.js} +4 -4
- package/dist/component/{bookings-address-rac-CZa9a87G.js → bookings-address-rac-BCrQv66p.js} +1 -1
- package/dist/component/{bookings-email-rac-m6v3w8mr.js → bookings-email-rac-DmRfdxfb.js} +1 -1
- package/dist/component/{bookings-first-name-rac-Mofwr9rJ.js → bookings-first-name-rac-BXO3f2gd.js} +1 -1
- package/dist/component/{bookings-header-rac-Do1DvJ7m.js → bookings-header-rac-CO6AOevd.js} +1 -1
- package/dist/component/{bookings-last-name-rac-BlRF6uxD.js → bookings-last-name-rac-BJBEASFi.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-dEw_cBua.js → bookings-login-bar-rac-BIAIfq4E.js} +5 -5
- package/dist/component/{bookings-phone-rac-DSHi8EoI.js → bookings-phone-rac-Ccj4N7sU.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-D1pEioKF.js → bookings-rich-text-rac-B3HZ904h.js} +1 -1
- package/dist/component/{checkbox-field-rac-DB6OkQVn.js → checkbox-field-rac-CMLQboNZ.js} +43 -43
- package/dist/component/{checkbox-group-field-headless-DaZpfrAT.js → checkbox-group-field-headless-BoPu_anP.js} +41 -41
- package/dist/component/{checkbox-group-field-rac-DQyoeeOu.js → checkbox-group-field-rac-DDkB4mAS.js} +4 -4
- package/dist/component/{checkbox-group-rac-K1CohuW5.js → checkbox-group-rac-CYRjp2pd.js} +1 -1
- package/dist/component/{checkbox-rac-CGPLFefU.js → checkbox-rac-CZtOcpN3.js} +1 -1
- package/dist/component/{contacts-address-rac-D_whIRtO.js → contacts-address-rac-CTcU_s2X.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-yvBgsleM.js → contacts-birthdate-rac-CfoYd88-.js} +1 -1
- package/dist/component/{contacts-company-rac-dv-M3X8Q.js → contacts-company-rac-BFa1_U3K.js} +1 -1
- package/dist/component/{contacts-email-rac-CKFkxHeH.js → contacts-email-rac-DnAo-YRv.js} +1 -1
- package/dist/component/{contacts-first-name-rac-DH_mqqVL.js → contacts-first-name-rac-CXaZzVt1.js} +1 -1
- package/dist/component/{contacts-last-name-rac-D1hViu7t.js → contacts-last-name-rac-DfpXadTk.js} +1 -1
- package/dist/component/{contacts-phone-rac-D5lEUsgX.js → contacts-phone-rac-CCwC37Ud.js} +1 -1
- package/dist/component/{contacts-position-rac-C5WN-obt.js → contacts-position-rac-CvMNYTKL.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-C0TeOnX-.js → contacts-subscribe-rac-vL2jR6hR.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-K4f8cUph.js → contacts-tax-id-rac-CrFhrlkk.js} +1 -1
- package/dist/component/{date-availability-ta65eupL.js → date-availability-5zvsa_GI.js} +1 -1
- package/dist/component/{date-input-field-rac-Bqkxxe1x.js → date-input-field-rac-BQuCwFBz.js} +43 -43
- package/dist/component/{date-input-rac-DOrOad7M.js → date-input-rac-DKzwySbG.js} +1 -1
- package/dist/component/{date-picker-field-rac-dOXkkSun.js → date-picker-field-rac-D-B3bNeU.js} +35 -35
- package/dist/component/{date-picker-rac-D8KBZ1cw.js → date-picker-rac-DjYsBhgo.js} +1 -1
- package/dist/component/{date-time-input-field-rac-BCHUvKca.js → date-time-input-field-rac-BECpkgB2.js} +30 -30
- package/dist/component/{date-time-input-rac-BDFKogee.js → date-time-input-rac-FbqGdzfB.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-D5KPRINX.js → dext-checkbox-group-rac-BtSRkEFa.js} +2 -2
- package/dist/component/{dext-checkbox-rac-x-lXF3ag.js → dext-checkbox-rac-BnC_NNyy.js} +1 -1
- package/dist/component/{dext-date-picker-rac-B5K5u_Ps.js → dext-date-picker-rac-okrwxNz9.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-iVMwamqD.js → dext-date-time-input-rac-DHKRYBUe.js} +1 -1
- package/dist/component/{dext-dropdown-rac-B44HQTxy.js → dext-dropdown-rac-1T_Ufw_J.js} +1 -1
- package/dist/component/{dext-email-rac-B7QAR6VC.js → dext-email-rac-BY3bKE0q.js} +1 -1
- package/dist/component/{dext-number-input-rac-CNa31Dkr.js → dext-number-input-rac-CFnKXD1l.js} +1 -1
- package/dist/component/{dext-phone-rac-28tGCd-t.js → dext-phone-rac-LT9InJXw.js} +1 -1
- package/dist/component/{dext-radio-group-rac-Bl2Ge5R5.js → dext-radio-group-rac-BUebk1mz.js} +2 -2
- package/dist/component/{dext-rating-input-rac-BkH9oIi5.js → dext-rating-input-rac-Drk4nKuW.js} +1 -1
- package/dist/component/{dext-tags-rac-B5FVVp1v.js → dext-tags-rac-BcW2-hht.js} +2 -2
- package/dist/component/{dext-text-area-rac-DKm2CHff.js → dext-text-area-rac-ew2HEDVz.js} +1 -1
- package/dist/component/{dext-text-input-rac-BC55g3Hi.js → dext-text-input-rac-BhhGEp-y.js} +1 -1
- package/dist/component/{dext-url-input-rac-BhoiLcDo.js → dext-url-input-rac-DKPl-POV.js} +1 -1
- package/dist/component/{donation-rac-BKjG_IJW.js → donation-rac-B9w7zHLs.js} +50 -50
- package/dist/component/{dropdown-field-rac-B7Xh6cx8.js → dropdown-field-rac-CyIgQ8Wg.js} +3 -3
- package/dist/component/{dropdown-rac-D8P7PqXg.js → dropdown-rac-D4zhCab8.js} +1 -1
- package/dist/component/{ecom-address-rac-pQw85I2u.js → ecom-address-rac-Cgc5vi9N.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-CtHEpz27.js → ecom-subscription-checkbox-rac-Ci19HUzq.js} +2 -2
- package/dist/component/{email-input-field-rac-DJKj9_MB.js → email-input-field-rac-DX-z3AgN.js} +29 -29
- package/dist/component/{events-repeater-rac-ByGRYJRW.js → events-repeater-rac-XGxIXTW0.js} +29 -29
- package/dist/component/{events-rsvp-rac-CxCauRvS.js → events-rsvp-rac-CMEcer8W.js} +3 -3
- package/dist/component/{field-error-headless-Eh1lMElk.js → field-error-headless-fX6PeZaI.js} +1 -1
- package/dist/component/{field-label-headless-BqMxU6y-.js → field-label-headless-CoLjciGG.js} +5 -5
- package/dist/component/{file-upload-rac-C-3Xb3kq.js → file-upload-rac-N6_i0ky0.js} +88 -88
- package/dist/component/{fixed-payment-rac-XxysAIq7.js → fixed-payment-rac-DB6BtjkX.js} +7 -7
- package/dist/component/{form-DQjFn9dy.js → form-cgY_BDTU.js} +1444 -1426
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-C9tk53e6.js → header-field-rac-CwNoeHks.js} +2 -2
- package/dist/component/{header-rac-CrgF_o1e.js → header-rac-DefKb4Vd.js} +1 -1
- package/dist/component/{image-choice-rac-N7NLy50u.js → image-choice-rac-CZFYVSzP.js} +25 -25
- package/dist/component/{index-CUqQt_K0.js → index-D1ybDmS5.js} +2 -2
- package/dist/component/{index-D539Cefk.js → index-DUVXPUGc.js} +513 -462
- package/dist/component/{isObjectLike-BXMsjR41.js → isObjectLike-93vxyYs1.js} +1 -1
- package/dist/component/multiline-address-field-rac-BN_Tnrno.js +1738 -0
- package/dist/component/{multiline-address-rac-C-8KYUEy.js → multiline-address-rac-CoF0BwJI.js} +1 -1
- package/dist/component/{number-input-field-rac-DrpgAvrT.js → number-input-field-rac-BVdfzTwW.js} +21 -21
- package/dist/component/{number-input-rac-hZ1UmeEv.js → number-input-rac-D-A2ybtN.js} +1 -1
- package/dist/component/{password-rac-DU5Zii-x.js → password-rac-CbUBNreW.js} +26 -26
- package/dist/component/{payment-input-rac-BzDtJSoa.js → payment-input-rac-BXdDXgXp.js} +46 -46
- package/dist/component/{phone-input-field-rac-CBviQ-on.js → phone-input-field-rac-CjmpG7p9.js} +57 -57
- package/dist/component/{phone-rac-B4n-wlvj.js → phone-rac-D3g5Pi2p.js} +1 -1
- package/dist/component/{product-list-rac-CYxJDesp.js → product-list-rac-gJvJaUnQ.js} +35 -35
- package/dist/component/{quiz-radio-group-rac-BLGXjhrS.js → quiz-radio-group-rac-YCKwAv5G.js} +1 -1
- package/dist/component/{radio-button-module-classes-D0gXibxL.js → radio-button-module-classes-2nfcqSJp.js} +15 -15
- package/dist/component/{radio-group-field-rac-D3JvbED7.js → radio-group-field-rac-BBYaCpeZ.js} +4 -4
- package/dist/component/{radio-group-rac-CTk1SQPS.js → radio-group-rac-fYuYtO48.js} +1 -1
- package/dist/component/{rating-input-field-rac-hDcxRY-7.js → rating-input-field-rac-sPYk1nWc.js} +20 -20
- package/dist/component/{rating-input-rac-CaEUM0ek.js → rating-input-rac-CiWqxkPO.js} +1 -1
- package/dist/component/{rich-content-rac.module-D11y-VmE.js → rich-content-rac.module-BjcbV5CK.js} +5 -5
- package/dist/component/{rich-text-field-rac-BNB_Ek6y.js → rich-text-field-rac-DY0vRG7M.js} +4 -4
- package/dist/component/{rich-text-rac-Jo_aEgLC.js → rich-text-rac-BngE_MAC.js} +1 -1
- package/dist/component/{service-dropdown-rac-CzSP8CC_.js → service-dropdown-rac-Db53P8Fm.js} +13 -13
- package/dist/component/{services-multi-choice-rac-aS5N5-xK.js → services-multi-choice-rac-Cr791rTd.js} +9 -9
- package/dist/component/{signature-rac-_tiY8h_q.js → signature-rac-BCNYIwad.js} +41 -41
- package/dist/component/{submit-button-rac-DKc6QhMf.js → submit-button-rac-CyyEQGsz.js} +10 -10
- package/dist/component/{tags-field-rac-BCO7fpBv.js → tags-field-rac-k3HHiR5C.js} +24 -24
- package/dist/component/{tags-rac-q3HNn7ue.js → tags-rac-nOXYrsHv.js} +1 -1
- package/dist/component/{text-area-field-rac-BtQ8MQSN.js → text-area-field-rac-CwpxShM0.js} +22 -22
- package/dist/component/{text-area-rac-Dc2q2Oxx.js → text-area-rac-CkKcWyW5.js} +1 -1
- package/dist/component/{text-input-field-rac-DO5PDRBN.js → text-input-field-rac-DvIwNwn3.js} +3 -3
- package/dist/component/{text-input-headless-BGSp91Fx.js → text-input-headless-vfGxjFpa.js} +9 -9
- package/dist/component/{text-input-rac-B2OO3yVY.js → text-input-rac-DoVI2HNp.js} +1 -1
- package/dist/component/{time-input-rac-BICb4Q3S.js → time-input-rac-DPbbdnl3.js} +16 -16
- package/dist/component/{url-input-field-rac-ptvkhiHT.js → url-input-field-rac-CiZi4oVe.js} +20 -20
- package/dist/component/{url-input-rac-DOLmuZEu.js → url-input-rac-C-IvLpA8.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-CJmAINAg.js → use-dropdown-option-class-name-CMgoymWE.js} +2 -2
- package/dist/component/{use-dropdown-trigger-class-name-DA0MtxzO.js → use-dropdown-trigger-class-name-BH0PyTH_.js} +24 -24
- package/dist/component/{use-element-state-class-name-ByxBZ_3F.js → use-element-state-class-name-DiZjY9WE.js} +1 -1
- package/dist/component/{use-hoverable-input-class-name-lKS_yzxr.js → use-hoverable-input-class-name-QpNEvrdn.js} +2 -2
- package/dist/component/{use-is-forced-open-dropdown-ByGtfX25.js → use-is-forced-open-dropdown-CHh9nGJz.js} +4 -4
- package/dist/component/{use-service-options-base-CsY2G8DG.js → use-service-options-base-BGB82e2d.js} +4 -4
- package/dist/component/use-text-input-class-name-_CjB7lhB.js +6 -0
- package/package.json +2 -2
- package/dist/component/multiline-address-field-rac-B3NKIdbr.js +0 -1664
- package/dist/component/use-text-input-class-name-CbJQlesN.js +0 -6
package/dist/component/{date-input-field-rac-Bqkxxe1x.js → date-input-field-rac-BQuCwFBz.js}
RENAMED
|
@@ -2,36 +2,36 @@ import { RicosViewer as ne } from "@wix/ricos/viewer";
|
|
|
2
2
|
import _ from "classnames";
|
|
3
3
|
import t, { useMemo as N, useState as $, useCallback as x, useRef as H } from "react";
|
|
4
4
|
import { UNSAFE_PortalProvider as re } from "react-aria";
|
|
5
|
-
import { ListBoxItem as se, Select as oe, TextField as z, SelectValue as le, Input as
|
|
6
|
-
import { b4 as s,
|
|
7
|
-
import { f as p, a as
|
|
5
|
+
import { ListBoxItem as se, Select as oe, TextField as z, SelectValue as le, Input as K } from "react-aria-components";
|
|
6
|
+
import { b4 as s, bN as D, bK as X, bF as U, bh as Q, bu as W, bY as P, bb as ce, bi as ie, bC as me, bP as V, u as de, X as ue, am as pe, w as Y, x as Ee, M as be, I as fe, v as _e, y as Ie, z as q } from "./form-cgY_BDTU.js";
|
|
7
|
+
import { f as p, a as B } from "./find-child-C60k4CxG.js";
|
|
8
8
|
import { g as De } from "./helpers-HmkkXrh2.js";
|
|
9
|
-
import { D as Oe, E as ge } from "./field-error-headless-
|
|
10
|
-
import { L as he } from "./field-label-headless-
|
|
9
|
+
import { D as Oe, E as ge } from "./field-error-headless-fX6PeZaI.js";
|
|
10
|
+
import { L as he } from "./field-label-headless-CoLjciGG.js";
|
|
11
11
|
import { F as Ne } from "./fieldset-headless-CD3fds9J.js";
|
|
12
12
|
import { N as Le, E as ye, S as Fe } from "./non-modal-popover-D-u13tmp.js";
|
|
13
|
-
import { u as Ce } from "./use-is-forced-open-dropdown-
|
|
14
|
-
import { V as Te, a as Ae } from "./use-dropdown-option-class-name-
|
|
15
|
-
import { C as
|
|
13
|
+
import { u as Ce } from "./use-is-forced-open-dropdown-CHh9nGJz.js";
|
|
14
|
+
import { V as Te, a as Ae } from "./use-dropdown-option-class-name-CMgoymWE.js";
|
|
15
|
+
import { C as Pe } from "./chevron-down-icon-CcpVm6B-.js";
|
|
16
16
|
import { E as Re } from "./error-icon-hZxQ6DEy.js";
|
|
17
|
-
import { H as
|
|
17
|
+
import { H as Me } from "./custom-focus-class-_483Pkwp.js";
|
|
18
18
|
import { s as b } from "./field-rac.module-DcyJyi2B.js";
|
|
19
|
-
import { u as v } from "./use-hoverable-input-class-name-
|
|
19
|
+
import { u as v } from "./use-hoverable-input-class-name-QpNEvrdn.js";
|
|
20
20
|
const Se = {
|
|
21
21
|
[s.MONTH]: "bday-month",
|
|
22
22
|
[s.DAY]: "bday-day",
|
|
23
23
|
[s.YEAR]: "bday-year"
|
|
24
24
|
}, w = (e, a) => e === "bday" ? Se[a] : void 0, n = ({ children: e, className: a }) => {
|
|
25
|
-
const { id: r, required: o, onBlur: l, onFocus: c, FieldLayout: m } = D(), { inputId: i, labelId: d, ariaDescribedBy: u } =
|
|
25
|
+
const { id: r, required: o, onBlur: l, onFocus: c, FieldLayout: m } = D(), { inputId: i, labelId: d, ariaDescribedBy: u } = X(), { regionalFormat: E } = U(), f = N(() => Q(E).filter(W).map((S) => S.toUpperCase()), [
|
|
26
26
|
E
|
|
27
|
-
]), y = p(e, n.Label), R = p(e, n.Description),
|
|
27
|
+
]), y = p(e, n.Label), R = p(e, n.Description), M = p(e, n.Error), O = {
|
|
28
28
|
[s.MONTH]: p(e, n.Month),
|
|
29
29
|
[s.DAY]: p(e, n.Day),
|
|
30
30
|
[s.YEAR]: p(e, n.Year)
|
|
31
31
|
};
|
|
32
32
|
return /* @__PURE__ */ t.createElement(m, {
|
|
33
33
|
fieldId: r,
|
|
34
|
-
renderLabel: () =>
|
|
34
|
+
renderLabel: () => B(y, {
|
|
35
35
|
as: "div"
|
|
36
36
|
}),
|
|
37
37
|
renderInput: () => /* @__PURE__ */ t.createElement(Ne, {
|
|
@@ -43,16 +43,16 @@ const Se = {
|
|
|
43
43
|
onFocus: c,
|
|
44
44
|
className: a
|
|
45
45
|
}, O[f[0]], O[f[1]], O[f[2]]),
|
|
46
|
-
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null,
|
|
46
|
+
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, M, R)
|
|
47
47
|
});
|
|
48
48
|
}, g = ({ children: e, className: a }) => {
|
|
49
|
-
const { id: r, disabled: o, readOnly: l, showDateLabels: c, hidePlaceholder: m, autoComplete: i } = D(), { labelId: d } = h(s.MONTH), { partValue: u, partError: E, onPartChange: f } = L(s.MONTH), { t: y } =
|
|
49
|
+
const { id: r, disabled: o, readOnly: l, showDateLabels: c, hidePlaceholder: m, autoComplete: i } = D(), { labelId: d } = h(s.MONTH), { partValue: u, partError: E, onPartChange: f } = L(s.MONTH), { t: y } = P(), [R, M] = $(!1), O = Ce(r), [S, j] = $(null), G = m ? ye : y("field.date.placeholder.month"), J = x((T) => {
|
|
50
50
|
l || f(typeof T == "string" ? T : "");
|
|
51
51
|
}, [
|
|
52
52
|
f,
|
|
53
53
|
l
|
|
54
54
|
]), Z = x((T) => {
|
|
55
|
-
|
|
55
|
+
M(T && !l);
|
|
56
56
|
}, [
|
|
57
57
|
l
|
|
58
58
|
]), ee = p(e, g.Label), te = p(e, g.Trigger), ae = p(e, g.Options);
|
|
@@ -60,7 +60,7 @@ const Se = {
|
|
|
60
60
|
className: a,
|
|
61
61
|
"data-date-field": !0
|
|
62
62
|
}, c ? ee : null, /* @__PURE__ */ t.createElement("div", {
|
|
63
|
-
ref:
|
|
63
|
+
ref: j,
|
|
64
64
|
style: {
|
|
65
65
|
display: "contents"
|
|
66
66
|
}
|
|
@@ -70,13 +70,13 @@ const Se = {
|
|
|
70
70
|
autoComplete: w(i, s.MONTH),
|
|
71
71
|
"aria-labelledby": c ? d : void 0,
|
|
72
72
|
value: u || null,
|
|
73
|
-
onChange:
|
|
73
|
+
onChange: J,
|
|
74
74
|
isDisabled: o,
|
|
75
75
|
isInvalid: E,
|
|
76
|
-
placeholder:
|
|
76
|
+
placeholder: G,
|
|
77
77
|
isOpen: O || R,
|
|
78
78
|
onOpenChange: O ? void 0 : Z
|
|
79
|
-
}, te,
|
|
79
|
+
}, te, B(ae, {
|
|
80
80
|
isForcedOpen: O
|
|
81
81
|
}))));
|
|
82
82
|
}, Ye = ({ className: e }) => /* @__PURE__ */ t.createElement(k, {
|
|
@@ -84,7 +84,7 @@ const Se = {
|
|
|
84
84
|
className: e
|
|
85
85
|
}), ve = ({ children: e, className: a }) => {
|
|
86
86
|
const { id: r, readOnly: o } = D(), { inputId: l } = h(s.MONTH), { partError: c, isFirstPart: m } = L(s.MONTH), i = H(null);
|
|
87
|
-
return
|
|
87
|
+
return V(() => {
|
|
88
88
|
var d;
|
|
89
89
|
m && ((d = i.current) == null || d.focus({
|
|
90
90
|
preventScroll: !0
|
|
@@ -108,7 +108,7 @@ const Se = {
|
|
|
108
108
|
}, /* @__PURE__ */ t.createElement(Te, {
|
|
109
109
|
isForcedOpen: o,
|
|
110
110
|
autoFocus: o ? !1 : void 0
|
|
111
|
-
}, c.map((i, d) =>
|
|
111
|
+
}, c.map((i, d) => B(m, {
|
|
112
112
|
key: String(d + 1),
|
|
113
113
|
value: String(d + 1),
|
|
114
114
|
label: i
|
|
@@ -142,13 +142,13 @@ const F = ({ children: e, className: a }) => {
|
|
|
142
142
|
datePart: s.DAY,
|
|
143
143
|
className: e
|
|
144
144
|
}), Ue = ({ className: e }) => {
|
|
145
|
-
const { id: a, hidePlaceholder: r, autoComplete: o } = D(), { inputId: l } = h(s.DAY), { isFirstPart: c } = L(s.DAY), { t: m } =
|
|
146
|
-
return
|
|
145
|
+
const { id: a, hidePlaceholder: r, autoComplete: o } = D(), { inputId: l } = h(s.DAY), { isFirstPart: c } = L(s.DAY), { t: m } = P(), i = H(null), d = r ? void 0 : m("field.date.placeholder.day");
|
|
146
|
+
return V(() => {
|
|
147
147
|
var u;
|
|
148
148
|
c && ((u = i.current) == null || u.focus({
|
|
149
149
|
preventScroll: !0
|
|
150
150
|
}));
|
|
151
|
-
}, a), /* @__PURE__ */ t.createElement(
|
|
151
|
+
}, a), /* @__PURE__ */ t.createElement(K, {
|
|
152
152
|
ref: i,
|
|
153
153
|
id: l,
|
|
154
154
|
className: e,
|
|
@@ -174,17 +174,17 @@ const C = ({ children: e, className: a }) => {
|
|
|
174
174
|
isReadOnly: o,
|
|
175
175
|
isInvalid: i
|
|
176
176
|
}, E));
|
|
177
|
-
},
|
|
177
|
+
}, Ve = ({ className: e }) => /* @__PURE__ */ t.createElement(k, {
|
|
178
178
|
datePart: s.YEAR,
|
|
179
179
|
className: e
|
|
180
|
-
}),
|
|
181
|
-
const { id: a, hidePlaceholder: r, autoComplete: o } = D(), { inputId: l } = h(s.YEAR), { isFirstPart: c } = L(s.YEAR), { t: m } =
|
|
182
|
-
return
|
|
180
|
+
}), Be = ({ className: e }) => {
|
|
181
|
+
const { id: a, hidePlaceholder: r, autoComplete: o } = D(), { inputId: l } = h(s.YEAR), { isFirstPart: c } = L(s.YEAR), { t: m } = P(), i = H(null), d = r ? void 0 : m("field.date.placeholder.year");
|
|
182
|
+
return V(() => {
|
|
183
183
|
var u;
|
|
184
184
|
c && ((u = i.current) == null || u.focus({
|
|
185
185
|
preventScroll: !0
|
|
186
186
|
}));
|
|
187
|
-
}, a), /* @__PURE__ */ t.createElement(
|
|
187
|
+
}, a), /* @__PURE__ */ t.createElement(K, {
|
|
188
188
|
ref: i,
|
|
189
189
|
id: l,
|
|
190
190
|
className: e,
|
|
@@ -195,8 +195,8 @@ const C = ({ children: e, className: a }) => {
|
|
|
195
195
|
"data-hook": s.YEAR
|
|
196
196
|
});
|
|
197
197
|
};
|
|
198
|
-
C.Label =
|
|
199
|
-
C.Input =
|
|
198
|
+
C.Label = Ve;
|
|
199
|
+
C.Input = Be;
|
|
200
200
|
n.Label = he;
|
|
201
201
|
n.Month = g;
|
|
202
202
|
n.Day = F;
|
|
@@ -204,7 +204,7 @@ n.Year = C;
|
|
|
204
204
|
n.Description = Oe;
|
|
205
205
|
n.Error = ge;
|
|
206
206
|
function h(e) {
|
|
207
|
-
const { inputId: a } =
|
|
207
|
+
const { inputId: a } = X();
|
|
208
208
|
return N(() => {
|
|
209
209
|
const r = e.toLowerCase();
|
|
210
210
|
return {
|
|
@@ -229,7 +229,7 @@ function L(e) {
|
|
|
229
229
|
r,
|
|
230
230
|
c,
|
|
231
231
|
e
|
|
232
|
-
]), u = N(() =>
|
|
232
|
+
]), u = N(() => Q(l).filter(W).map((y) => y.toUpperCase())[0] === e, [
|
|
233
233
|
l,
|
|
234
234
|
e
|
|
235
235
|
]);
|
|
@@ -241,29 +241,29 @@ function L(e) {
|
|
|
241
241
|
};
|
|
242
242
|
}
|
|
243
243
|
function k({ datePart: e, className: a }) {
|
|
244
|
-
const { inputId: r, labelId: o } = h(e), { t: l } =
|
|
244
|
+
const { inputId: r, labelId: o } = h(e), { t: l } = P(), c = `field.date.label.${e.toLowerCase()}`, m = l(c);
|
|
245
245
|
return /* @__PURE__ */ t.createElement("label", {
|
|
246
246
|
id: o,
|
|
247
247
|
htmlFor: r,
|
|
248
248
|
className: a
|
|
249
249
|
}, m);
|
|
250
250
|
}
|
|
251
|
-
const we = "_fields_b2cgx_1", ke = "_month_b2cgx_10", $e = "_day_b2cgx_11", qe = "_year_b2cgx_12", ze = "_dayInput_b2cgx_28",
|
|
251
|
+
const we = "_fields_b2cgx_1", ke = "_month_b2cgx_10", $e = "_day_b2cgx_11", qe = "_year_b2cgx_12", ze = "_dayInput_b2cgx_28", Ke = "_yearInput_b2cgx_29", Xe = "_monthTrigger_b2cgx_33", Qe = "_monthOption_b2cgx_53", I = {
|
|
252
252
|
fields: we,
|
|
253
253
|
month: ke,
|
|
254
254
|
day: $e,
|
|
255
255
|
year: qe,
|
|
256
256
|
dayInput: ze,
|
|
257
|
-
yearInput:
|
|
258
|
-
monthTrigger:
|
|
259
|
-
monthOption:
|
|
260
|
-
},
|
|
257
|
+
yearInput: Ke,
|
|
258
|
+
monthTrigger: Xe,
|
|
259
|
+
monthOption: Qe
|
|
260
|
+
}, We = ({ content: e, locale: a }) => /* @__PURE__ */ t.createElement(ne, {
|
|
261
261
|
content: e,
|
|
262
262
|
locale: a
|
|
263
263
|
}), bt = () => {
|
|
264
264
|
const e = v(_e, [
|
|
265
265
|
I.monthTrigger
|
|
266
|
-
]), a = Ae(Ie, I.monthOption,
|
|
266
|
+
]), a = Ae(Ie, I.monthOption, Me), r = v(q, [
|
|
267
267
|
I.dayInput
|
|
268
268
|
]), o = v(q, [
|
|
269
269
|
I.yearInput
|
|
@@ -280,7 +280,7 @@ const we = "_fields_b2cgx_1", ke = "_month_b2cgx_10", $e = "_day_b2cgx_11", qe =
|
|
|
280
280
|
className: _(Y, b.label)
|
|
281
281
|
}), /* @__PURE__ */ t.createElement(n.Month.Trigger, {
|
|
282
282
|
className: e
|
|
283
|
-
}, /* @__PURE__ */ t.createElement(
|
|
283
|
+
}, /* @__PURE__ */ t.createElement(Pe, {
|
|
284
284
|
className: b.dropdownIcon
|
|
285
285
|
})), /* @__PURE__ */ t.createElement(n.Month.Options, {
|
|
286
286
|
className: _(Ee, b.selectPopover, b.dropdownPopover)
|
|
@@ -302,7 +302,7 @@ const we = "_fields_b2cgx_1", ke = "_month_b2cgx_10", $e = "_day_b2cgx_11", qe =
|
|
|
302
302
|
className: _(be, b.error)
|
|
303
303
|
}, /* @__PURE__ */ t.createElement(Re, null), /* @__PURE__ */ t.createElement(n.Error.Text, null)), /* @__PURE__ */ t.createElement(n.Description, {
|
|
304
304
|
className: _(fe, b.description)
|
|
305
|
-
},
|
|
305
|
+
}, We));
|
|
306
306
|
};
|
|
307
307
|
export {
|
|
308
308
|
bt as D
|
package/dist/component/{date-picker-field-rac-dOXkkSun.js → date-picker-field-rac-D-B3bNeU.js}
RENAMED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { RicosViewer as
|
|
1
|
+
import { RicosViewer as J } from "@wix/ricos/viewer";
|
|
2
2
|
import p from "classnames";
|
|
3
3
|
import e, { useState as L, useCallback as k, useContext as ee, useRef as P, useMemo as v } from "react";
|
|
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 le, Group as oe, 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 x, SelectValue as Y, ListBox as w, ListBoxItem as B } from "react-aria-components";
|
|
7
|
-
import { D as f,
|
|
8
|
-
import { g as
|
|
7
|
+
import { D as f, bN as N, bK as U, bF as F, bP as pe, X as fe, am as De, H as Ce, M as ye, I as Se, G as _e } from "./form-cgY_BDTU.js";
|
|
8
|
+
import { g as Ne, c as A } from "./calendar.module-BMUyMVja.js";
|
|
9
9
|
import { f as E, a as _ } from "./find-child-C60k4CxG.js";
|
|
10
|
-
import { D as
|
|
11
|
-
import { L as be } from "./field-label-headless-
|
|
12
|
-
import { D as ve, N as
|
|
13
|
-
import { a as Ie } from "./use-is-forced-open-dropdown-
|
|
14
|
-
import { i as
|
|
10
|
+
import { D as he, E as Te } from "./field-error-headless-fX6PeZaI.js";
|
|
11
|
+
import { L as be } from "./field-label-headless-CoLjciGG.js";
|
|
12
|
+
import { D as ve, N as O, S as V } from "./non-modal-popover-D-u13tmp.js";
|
|
13
|
+
import { a as Ie } from "./use-is-forced-open-dropdown-CHh9nGJz.js";
|
|
14
|
+
import { i as Fe } from "./date-availability-5zvsa_GI.js";
|
|
15
15
|
import { C as I } from "./chevron-down-icon-CcpVm6B-.js";
|
|
16
|
-
import { E as
|
|
16
|
+
import { E as Oe } from "./error-icon-hZxQ6DEy.js";
|
|
17
17
|
import { H as Le } from "./custom-focus-class-_483Pkwp.js";
|
|
18
18
|
import { s as D } from "./field-rac.module-DcyJyi2B.js";
|
|
19
|
-
import { u as Pe } from "./use-hoverable-input-class-name-
|
|
19
|
+
import { u as Pe } from "./use-hoverable-input-class-name-QpNEvrdn.js";
|
|
20
20
|
const Ae = [
|
|
21
21
|
f.SUNDAY,
|
|
22
22
|
f.MONDAY,
|
|
@@ -28,17 +28,17 @@ const Ae = [
|
|
|
28
28
|
], Re = {
|
|
29
29
|
availableDays: Ae
|
|
30
30
|
}, a = ({ children: t }) => {
|
|
31
|
-
const { id: r, value: l, onChange: n, disabled: i, required: c, onBlur: u, onFocus: o, FieldLayout: m, hasError: d, readOnly: C } =
|
|
32
|
-
const
|
|
33
|
-
n(
|
|
31
|
+
const { id: r, value: l, onChange: n, disabled: i, required: c, onBlur: u, onFocus: o, FieldLayout: m, hasError: d, readOnly: C } = N(), { labelId: y } = U(), { regionalFormat: h } = F(), [s, T] = L(null), [K, H] = L(!1), b = Ie(r), W = k((Z) => {
|
|
32
|
+
const z = We(Z);
|
|
33
|
+
n(z);
|
|
34
34
|
}, [
|
|
35
35
|
n
|
|
36
|
-
]), $ = E(t, a.Label), q = E(t, a.Control), G = E(t, a.Calendar), j = E(t, a.Description),
|
|
36
|
+
]), $ = E(t, a.Label), q = E(t, a.Control), G = E(t, a.Calendar), j = E(t, a.Description), Q = E(t, a.Error), X = He(l);
|
|
37
37
|
return /* @__PURE__ */ e.createElement(m, {
|
|
38
38
|
fieldId: r,
|
|
39
39
|
renderLabel: () => $,
|
|
40
40
|
renderInput: () => /* @__PURE__ */ e.createElement(ae, {
|
|
41
|
-
locale:
|
|
41
|
+
locale: h
|
|
42
42
|
}, /* @__PURE__ */ e.createElement("div", {
|
|
43
43
|
ref: T,
|
|
44
44
|
style: {
|
|
@@ -48,7 +48,7 @@ const Ae = [
|
|
|
48
48
|
getContainer: () => s
|
|
49
49
|
}, /* @__PURE__ */ e.createElement(ne, {
|
|
50
50
|
"aria-labelledby": y,
|
|
51
|
-
value:
|
|
51
|
+
value: X,
|
|
52
52
|
onChange: W,
|
|
53
53
|
isDisabled: i,
|
|
54
54
|
isInvalid: d,
|
|
@@ -61,10 +61,10 @@ const Ae = [
|
|
|
61
61
|
}, q, _(G, {
|
|
62
62
|
isForcedOpen: b
|
|
63
63
|
})))),
|
|
64
|
-
renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null,
|
|
64
|
+
renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, Q, j)
|
|
65
65
|
});
|
|
66
66
|
}, ke = ({ children: t, className: r }) => {
|
|
67
|
-
const { inputId: l, ariaDescribedBy: n } = U(), { hasError: i, disabled: c, readOnly: u } =
|
|
67
|
+
const { inputId: l, ariaDescribedBy: n } = U(), { hasError: i, disabled: c, readOnly: u } = N(), o = ee(le), m = k((d) => {
|
|
68
68
|
if (!o || o.isOpen || c || u)
|
|
69
69
|
return;
|
|
70
70
|
const C = d.target;
|
|
@@ -85,7 +85,7 @@ const Ae = [
|
|
|
85
85
|
onClick: m
|
|
86
86
|
}, t);
|
|
87
87
|
}, Me = ({ className: t }) => {
|
|
88
|
-
const { id: r, placeholder: l } =
|
|
88
|
+
const { id: r, placeholder: l } = N(), { regionalFormat: n } = F(), i = P(null), c = P(!1);
|
|
89
89
|
pe(() => {
|
|
90
90
|
var o;
|
|
91
91
|
(o = i.current) == null || o.focus({
|
|
@@ -118,15 +118,15 @@ const Ae = [
|
|
|
118
118
|
}, xe = ({ children: t, className: r }) => /* @__PURE__ */ e.createElement(ve, {
|
|
119
119
|
className: r
|
|
120
120
|
}, t), g = ({ children: t, className: r, ...l }) => {
|
|
121
|
-
const { isForcedOpen: n } = l, { regionalFormat: i } =
|
|
121
|
+
const { isForcedOpen: n } = l, { regionalFormat: i } = F(), { availability: c } = N(), u = v(() => Ne(i), [
|
|
122
122
|
i
|
|
123
123
|
]), o = v(() => (s) => {
|
|
124
124
|
const T = new Date(s.year, s.month - 1, s.day);
|
|
125
|
-
return !
|
|
125
|
+
return !Fe(T, c || Re);
|
|
126
126
|
}, [
|
|
127
127
|
c
|
|
128
|
-
]), m = E(t, g.Day) ?? /* @__PURE__ */ e.createElement(g.Day, null), d = E(t, g.PreviousTrigger), C = E(t, g.NextTrigger), y = E(t, g.MonthTrigger),
|
|
129
|
-
return /* @__PURE__ */ e.createElement(
|
|
128
|
+
]), m = E(t, g.Day) ?? /* @__PURE__ */ e.createElement(g.Day, null), d = E(t, g.PreviousTrigger), C = E(t, g.NextTrigger), y = E(t, g.MonthTrigger), h = E(t, g.YearTrigger);
|
|
129
|
+
return /* @__PURE__ */ e.createElement(O, {
|
|
130
130
|
className: r,
|
|
131
131
|
containerPadding: 0
|
|
132
132
|
}, /* @__PURE__ */ e.createElement(Ye, {
|
|
@@ -143,7 +143,7 @@ const Ae = [
|
|
|
143
143
|
popoverClassName: r
|
|
144
144
|
})), /* @__PURE__ */ e.createElement(de, {
|
|
145
145
|
visibleYears: 100
|
|
146
|
-
}, (s) => _(
|
|
146
|
+
}, (s) => _(h, {
|
|
147
147
|
ariaLabel: s["aria-label"],
|
|
148
148
|
selectedKey: s.value,
|
|
149
149
|
onSelectionChange: s.onChange,
|
|
@@ -176,7 +176,7 @@ const Ae = [
|
|
|
176
176
|
onSelectionChange: c
|
|
177
177
|
}, /* @__PURE__ */ e.createElement(V, {
|
|
178
178
|
className: r
|
|
179
|
-
}, /* @__PURE__ */ e.createElement(Y, null), t), /* @__PURE__ */ e.createElement(
|
|
179
|
+
}, /* @__PURE__ */ e.createElement(Y, null), t), /* @__PURE__ */ e.createElement(O, {
|
|
180
180
|
className: o,
|
|
181
181
|
containerPadding: 0
|
|
182
182
|
}, /* @__PURE__ */ e.createElement(w, {
|
|
@@ -192,7 +192,7 @@ const Ae = [
|
|
|
192
192
|
onSelectionChange: c
|
|
193
193
|
}, /* @__PURE__ */ e.createElement(V, {
|
|
194
194
|
className: r
|
|
195
|
-
}, /* @__PURE__ */ e.createElement(Y, null), t), /* @__PURE__ */ e.createElement(
|
|
195
|
+
}, /* @__PURE__ */ e.createElement(Y, null), t), /* @__PURE__ */ e.createElement(O, {
|
|
196
196
|
className: o,
|
|
197
197
|
containerPadding: 0
|
|
198
198
|
}, /* @__PURE__ */ e.createElement(w, {
|
|
@@ -211,7 +211,7 @@ a.Control = ke;
|
|
|
211
211
|
a.Input = Me;
|
|
212
212
|
a.Trigger = xe;
|
|
213
213
|
a.Calendar = g;
|
|
214
|
-
a.Description =
|
|
214
|
+
a.Description = he;
|
|
215
215
|
a.Error = Te;
|
|
216
216
|
function He(t) {
|
|
217
217
|
if (!t)
|
|
@@ -264,14 +264,14 @@ const Ge = (t) => /* @__PURE__ */ e.createElement("svg", {
|
|
|
264
264
|
strokeWidth: "1.5",
|
|
265
265
|
strokeLinecap: "round",
|
|
266
266
|
strokeLinejoin: "round"
|
|
267
|
-
})), je = "_control_1le52_1",
|
|
267
|
+
})), je = "_control_1le52_1", Qe = "_segments_1le52_14", Xe = "_trigger_1le52_72", Ze = "_calendarPopover_1le52_103 _textOnFillOptions_vf5u1_8", ze = "_calendarDay_1le52_246", Je = "_dayNumber_1le52_253", S = {
|
|
268
268
|
control: je,
|
|
269
|
-
segments:
|
|
270
|
-
trigger:
|
|
271
|
-
calendarPopover:
|
|
272
|
-
calendarDay:
|
|
273
|
-
dayNumber:
|
|
274
|
-
}, et = ({ content: t, locale: r }) => /* @__PURE__ */ e.createElement(
|
|
269
|
+
segments: Qe,
|
|
270
|
+
trigger: Xe,
|
|
271
|
+
calendarPopover: Ze,
|
|
272
|
+
calendarDay: ze,
|
|
273
|
+
dayNumber: Je
|
|
274
|
+
}, et = ({ content: t, locale: r }) => /* @__PURE__ */ e.createElement(J, {
|
|
275
275
|
content: t,
|
|
276
276
|
locale: r
|
|
277
277
|
}), tt = {
|
|
@@ -311,7 +311,7 @@ const Ge = (t) => /* @__PURE__ */ e.createElement("svg", {
|
|
|
311
311
|
className: p(A.dayNumber, S.dayNumber)
|
|
312
312
|
}, r))), /* @__PURE__ */ e.createElement(a.Error, {
|
|
313
313
|
className: p(ye, D.error)
|
|
314
|
-
}, /* @__PURE__ */ e.createElement(
|
|
314
|
+
}, /* @__PURE__ */ e.createElement(Oe, null), /* @__PURE__ */ e.createElement(a.Error.Text, null)), /* @__PURE__ */ e.createElement(a.Description, {
|
|
315
315
|
className: p(Se, D.description)
|
|
316
316
|
}, et));
|
|
317
317
|
};
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { RicosViewer as se } from "@wix/ricos/viewer";
|
|
2
2
|
import E from "classnames";
|
|
3
|
-
import t, { useMemo as L, useState as
|
|
3
|
+
import t, { useMemo as L, useState as j, useCallback as U, useRef as z, useContext as le } from "react";
|
|
4
4
|
import { parseTime as ie } from "@internationalized/date";
|
|
5
5
|
import { UNSAFE_PortalProvider as ce } from "react-aria";
|
|
6
|
-
import { ListBoxItem as me, Select as de, TextField as
|
|
7
|
-
import {
|
|
6
|
+
import { ListBoxItem as me, Select as de, TextField as Q, TimeField as ue, SelectValue as pe, Input as W, DateInput as Ee, DateSegment as x, TimeFieldStateContext as fe } from "react-aria-components";
|
|
7
|
+
import { bN as b, bK as J, bF as $, bh as Z, bu as ee, b4 as d, bY as y, by as K, bj as be, bb as he, bC as _e, bd as X, bP as q, u as Ie, X as ge, am as De, w as V, x as Ne, M as Te, I as Oe, v as Le, y as ye, z as k } from "./form-cgY_BDTU.js";
|
|
8
8
|
import { f as u, a as C } from "./find-child-C60k4CxG.js";
|
|
9
9
|
import { g as Fe } from "./helpers-HmkkXrh2.js";
|
|
10
|
-
import { D as Pe, E as Ce } from "./field-error-headless-
|
|
11
|
-
import { L as Me } from "./field-label-headless-
|
|
10
|
+
import { D as Pe, E as Ce } from "./field-error-headless-fX6PeZaI.js";
|
|
11
|
+
import { L as Me } from "./field-label-headless-CoLjciGG.js";
|
|
12
12
|
import { F as Se } from "./fieldset-headless-CD3fds9J.js";
|
|
13
13
|
import { N as Re, E as Ae, S as ve } from "./non-modal-popover-D-u13tmp.js";
|
|
14
|
-
import { u as we } from "./use-is-forced-open-dropdown-
|
|
15
|
-
import { V as Ve, a as Ye } from "./use-dropdown-option-class-name-
|
|
14
|
+
import { u as we } from "./use-is-forced-open-dropdown-CHh9nGJz.js";
|
|
15
|
+
import { V as Ve, a as Ye } from "./use-dropdown-option-class-name-CMgoymWE.js";
|
|
16
16
|
import { C as He } from "./chevron-down-icon-CcpVm6B-.js";
|
|
17
17
|
import { E as Ue } from "./error-icon-hZxQ6DEy.js";
|
|
18
18
|
import { H as Y } from "./custom-focus-class-_483Pkwp.js";
|
|
19
19
|
import { s as _ } from "./field-rac.module-DcyJyi2B.js";
|
|
20
|
-
import { u as H } from "./use-hoverable-input-class-name-
|
|
20
|
+
import { u as H } from "./use-hoverable-input-class-name-QpNEvrdn.js";
|
|
21
21
|
const l = ({ children: e, className: a }) => {
|
|
22
|
-
const { id: n, required: r, onBlur: o, onFocus: s, FieldLayout: i } = b(), { inputId: m, labelId: c, ariaDescribedBy: h } =
|
|
22
|
+
const { id: n, required: r, onBlur: o, onFocus: s, FieldLayout: i } = b(), { inputId: m, labelId: c, ariaDescribedBy: h } = J(), { regionalFormat: p } = $(), N = L(() => Z(p).filter(ee).map((S) => S.toUpperCase()), [
|
|
23
23
|
p
|
|
24
24
|
]), M = u(e, l.Label), v = u(e, l.Description), g = u(e, l.Error), D = {
|
|
25
25
|
[d.MONTH]: u(e, l.Month),
|
|
@@ -43,7 +43,7 @@ const l = ({ children: e, className: a }) => {
|
|
|
43
43
|
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, g, v)
|
|
44
44
|
});
|
|
45
45
|
}, F = ({ children: e, className: a }) => {
|
|
46
|
-
const { id: n, disabled: r, readOnly: o, showDateLabels: s, hidePlaceholder: i } = b(), { labelId: m } = O(d.MONTH), { partValue: c, partError: h, onPartChange: p } = P(d.MONTH), { t: N } = y(), [M, v] =
|
|
46
|
+
const { id: n, disabled: r, readOnly: o, showDateLabels: s, hidePlaceholder: i } = b(), { labelId: m } = O(d.MONTH), { partValue: c, partError: h, onPartChange: p } = P(d.MONTH), { t: N } = y(), [M, v] = j(!1), g = we(n), [D, T] = j(null), S = i ? Ae : N("field.date.placeholder.month"), te = U((w) => {
|
|
47
47
|
o || p(typeof w == "string" ? w : "");
|
|
48
48
|
}, [
|
|
49
49
|
p,
|
|
@@ -126,7 +126,7 @@ const R = ({ children: e, className: a }) => {
|
|
|
126
126
|
return /* @__PURE__ */ t.createElement("div", {
|
|
127
127
|
className: a,
|
|
128
128
|
"data-date-field": !0
|
|
129
|
-
}, o && h, /* @__PURE__ */ t.createElement(
|
|
129
|
+
}, o && h, /* @__PURE__ */ t.createElement(Q, {
|
|
130
130
|
"aria-labelledby": o ? s : void 0,
|
|
131
131
|
value: i,
|
|
132
132
|
onChange: c,
|
|
@@ -144,7 +144,7 @@ const R = ({ children: e, className: a }) => {
|
|
|
144
144
|
o && ((c = i.current) == null || c.focus({
|
|
145
145
|
preventScroll: !0
|
|
146
146
|
}));
|
|
147
|
-
}, a), /* @__PURE__ */ t.createElement(
|
|
147
|
+
}, a), /* @__PURE__ */ t.createElement(W, {
|
|
148
148
|
ref: i,
|
|
149
149
|
id: r,
|
|
150
150
|
className: e,
|
|
@@ -161,7 +161,7 @@ const A = ({ children: e, className: a }) => {
|
|
|
161
161
|
return /* @__PURE__ */ t.createElement("div", {
|
|
162
162
|
className: a,
|
|
163
163
|
"data-date-field": !0
|
|
164
|
-
}, o && h, /* @__PURE__ */ t.createElement(
|
|
164
|
+
}, o && h, /* @__PURE__ */ t.createElement(Q, {
|
|
165
165
|
"aria-labelledby": o ? s : void 0,
|
|
166
166
|
value: i,
|
|
167
167
|
onChange: c,
|
|
@@ -179,7 +179,7 @@ const A = ({ children: e, className: a }) => {
|
|
|
179
179
|
o && ((c = i.current) == null || c.focus({
|
|
180
180
|
preventScroll: !0
|
|
181
181
|
}));
|
|
182
|
-
}, a), /* @__PURE__ */ t.createElement(
|
|
182
|
+
}, a), /* @__PURE__ */ t.createElement(W, {
|
|
183
183
|
ref: i,
|
|
184
184
|
id: r,
|
|
185
185
|
className: e,
|
|
@@ -205,14 +205,14 @@ const I = ({ children: e, className: a }) => {
|
|
|
205
205
|
isInvalid: c,
|
|
206
206
|
hourCycle: o ? 24 : 12
|
|
207
207
|
}, N));
|
|
208
|
-
},
|
|
208
|
+
}, je = ({ className: e }) => {
|
|
209
209
|
const { inputId: a, labelId: n } = O("time"), { t: r } = y(), o = r("field.date.label.time");
|
|
210
210
|
return /* @__PURE__ */ t.createElement("label", {
|
|
211
211
|
id: n,
|
|
212
212
|
htmlFor: a,
|
|
213
213
|
className: e
|
|
214
214
|
}, o);
|
|
215
|
-
},
|
|
215
|
+
}, Ke = ({ children: e, className: a }) => {
|
|
216
216
|
const { hidePlaceholder: n } = b(), r = u(e, I.Hour), o = u(e, I.Minute), s = u(e, I.Period);
|
|
217
217
|
return /* @__PURE__ */ t.createElement(Ee, {
|
|
218
218
|
className: a,
|
|
@@ -240,7 +240,7 @@ const I = ({ children: e, className: a }) => {
|
|
|
240
240
|
return /* @__PURE__ */ t.createElement(t.Fragment, null);
|
|
241
241
|
}
|
|
242
242
|
});
|
|
243
|
-
},
|
|
243
|
+
}, Xe = ({ className: e, ...a }) => {
|
|
244
244
|
const { hidePlaceholder: n } = b(), { segment: r } = a, { t: o } = y(), s = n ? void 0 : o("field.date.placeholder.hour");
|
|
245
245
|
return /* @__PURE__ */ t.createElement(x, {
|
|
246
246
|
segment: r,
|
|
@@ -249,7 +249,7 @@ const I = ({ children: e, className: a }) => {
|
|
|
249
249
|
placeholder: s
|
|
250
250
|
}
|
|
251
251
|
});
|
|
252
|
-
},
|
|
252
|
+
}, Qe = ({ className: e, ...a }) => {
|
|
253
253
|
const { hidePlaceholder: n } = b(), { segment: r } = a, { t: o } = y(), s = n ? void 0 : o("field.date.placeholder.minute");
|
|
254
254
|
return /* @__PURE__ */ t.createElement(x, {
|
|
255
255
|
segment: r,
|
|
@@ -258,7 +258,7 @@ const I = ({ children: e, className: a }) => {
|
|
|
258
258
|
placeholder: s
|
|
259
259
|
}
|
|
260
260
|
});
|
|
261
|
-
},
|
|
261
|
+
}, We = ({ className: e, ...a }) => {
|
|
262
262
|
const { hidePlaceholder: n } = b(), { segment: r } = a, { t: o } = y(), s = le(fe), i = n ? void 0 : o("field.date.placeholder.period"), m = () => s == null ? void 0 : s.increment("dayPeriod");
|
|
263
263
|
return /* @__PURE__ */ t.createElement(x, {
|
|
264
264
|
segment: r,
|
|
@@ -269,11 +269,11 @@ const I = ({ children: e, className: a }) => {
|
|
|
269
269
|
}
|
|
270
270
|
});
|
|
271
271
|
};
|
|
272
|
-
I.Label =
|
|
273
|
-
I.Input =
|
|
274
|
-
I.Hour =
|
|
275
|
-
I.Minute =
|
|
276
|
-
I.Period =
|
|
272
|
+
I.Label = je;
|
|
273
|
+
I.Input = Ke;
|
|
274
|
+
I.Hour = Xe;
|
|
275
|
+
I.Minute = Qe;
|
|
276
|
+
I.Period = We;
|
|
277
277
|
l.Label = Me;
|
|
278
278
|
l.Month = F;
|
|
279
279
|
l.Day = R;
|
|
@@ -282,7 +282,7 @@ l.Time = I;
|
|
|
282
282
|
l.Description = Pe;
|
|
283
283
|
l.Error = Ce;
|
|
284
284
|
function O(e) {
|
|
285
|
-
const { inputId: a } =
|
|
285
|
+
const { inputId: a } = J();
|
|
286
286
|
return L(() => {
|
|
287
287
|
const n = e.toLowerCase();
|
|
288
288
|
return {
|
|
@@ -295,23 +295,23 @@ function O(e) {
|
|
|
295
295
|
]);
|
|
296
296
|
}
|
|
297
297
|
function P(e) {
|
|
298
|
-
const { value: a, onChange: n, hasError: r = !1 } = b(), { regionalFormat: o } = $(), [s, i] = L(() =>
|
|
298
|
+
const { value: a, onChange: n, hasError: r = !1 } = b(), { regionalFormat: o } = $(), [s, i] = L(() => K(a ?? ""), [
|
|
299
299
|
a
|
|
300
300
|
]), m = L(() => be(r, a ?? ""), [
|
|
301
301
|
a,
|
|
302
302
|
r
|
|
303
303
|
]), c = L(() => he(s), [
|
|
304
304
|
s
|
|
305
|
-
]), h = L(() =>
|
|
305
|
+
]), h = L(() => Je(i), [
|
|
306
306
|
i
|
|
307
307
|
]), p = U((g) => {
|
|
308
|
-
const D = Ze(g), T =
|
|
308
|
+
const D = Ze(g), T = X(s, D);
|
|
309
309
|
n(T);
|
|
310
310
|
}, [
|
|
311
311
|
n,
|
|
312
312
|
s
|
|
313
313
|
]), N = U((g) => {
|
|
314
|
-
const [, D] =
|
|
314
|
+
const [, D] = K(a ?? ""), T = _e(g, e, c), S = X(T, D);
|
|
315
315
|
n(S);
|
|
316
316
|
}, [
|
|
317
317
|
n,
|
|
@@ -342,7 +342,7 @@ function G({ datePart: e, className: a }) {
|
|
|
342
342
|
className: a
|
|
343
343
|
}, i);
|
|
344
344
|
}
|
|
345
|
-
function
|
|
345
|
+
function Je(e) {
|
|
346
346
|
if (!e)
|
|
347
347
|
return null;
|
|
348
348
|
try {
|
package/dist/component/{dext-checkbox-group-rac-D5KPRINX.js → dext-checkbox-group-rac-BtSRkEFa.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import o from "react";
|
|
2
|
-
import {
|
|
3
|
-
import { C as p } from "./checkbox-group-field-rac-
|
|
2
|
+
import { bN as e, aN as t } from "./form-cgY_BDTU.js";
|
|
3
|
+
import { C as p } from "./checkbox-group-field-rac-DDkB4mAS.js";
|
|
4
4
|
import { D as s } from "./default-limits-D7qVv_Hv.js";
|
|
5
5
|
const C = () => {
|
|
6
6
|
const r = {
|