@wix/form-elements 1.172.0 → 1.173.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-DZ0SFXmL.js → appointment-rac-DIV9zgmZ.js} +80 -80
- package/dist/component/{bookings-address-rac-BW9grc77.js → bookings-address-rac-C5cT4gkX.js} +1 -1
- package/dist/component/{bookings-email-rac-D8gMaAfB.js → bookings-email-rac-CQEhRS7N.js} +1 -1
- package/dist/component/{bookings-first-name-rac-CAjcs7b6.js → bookings-first-name-rac-BwdasJXd.js} +1 -1
- package/dist/component/{bookings-header-rac-BhKZ1kku.js → bookings-header-rac-CWzKq3yr.js} +1 -1
- package/dist/component/{bookings-last-name-rac-DpsMDuU0.js → bookings-last-name-rac-CoVWqEy5.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-BVdWmKS8.js → bookings-login-bar-rac-DwoI-iRQ.js} +4 -4
- package/dist/component/{bookings-phone-rac-DsqNi2mI.js → bookings-phone-rac-WAZU-1kD.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-elM4Ne3f.js → bookings-rich-text-rac-I5Uo-q87.js} +1 -1
- package/dist/component/{checkbox-field-rac-BU4E73fD.js → checkbox-field-rac-CKbKBNcQ.js} +43 -43
- package/dist/component/{checkbox-group-field-headless-6yJdIbP2.js → checkbox-group-field-headless-7PMj-zW6.js} +47 -47
- package/dist/component/{checkbox-group-field-rac-CojbCWSF.js → checkbox-group-field-rac-BZ-YgEYR.js} +4 -4
- package/dist/component/{checkbox-group-rac-3qUVUc-C.js → checkbox-group-rac-CED8h4qI.js} +1 -1
- package/dist/component/{checkbox-rac-DwbTapd_.js → checkbox-rac-CbpEXMBz.js} +1 -1
- package/dist/component/{contacts-address-rac-BL7XDZuP.js → contacts-address-rac-F3Ui7iJu.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-DeJYIHAg.js → contacts-birthdate-rac-CcxRV3RQ.js} +1 -1
- package/dist/component/{contacts-company-rac-BeImf5uc.js → contacts-company-rac-mDY20HzW.js} +1 -1
- package/dist/component/{contacts-email-rac-CtacwrZ0.js → contacts-email-rac-CoBPNuCj.js} +1 -1
- package/dist/component/{contacts-first-name-rac-CAdOqOOA.js → contacts-first-name-rac-DzbpBmNm.js} +1 -1
- package/dist/component/{contacts-last-name-rac-Db9mHzCW.js → contacts-last-name-rac-DEmV-MNE.js} +1 -1
- package/dist/component/{contacts-phone-rac-W0OLEbzL.js → contacts-phone-rac-BlEpatWP.js} +1 -1
- package/dist/component/{contacts-position-rac-CV4Ibt4Z.js → contacts-position-rac-DlZahRQc.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-CQ3Q1pjZ.js → contacts-subscribe-rac-LXCEPvXl.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-Dux-pk6r.js → contacts-tax-id-rac-DS0SDAtC.js} +1 -1
- package/dist/component/{date-availability-RkX-Qw7G.js → date-availability-DTFyrU8J.js} +1 -1
- package/dist/component/{date-input-field-rac-CYCT6qoa.js → date-input-field-rac-D7Pv-hqW.js} +62 -62
- package/dist/component/{date-input-rac-BkYZ7q_o.js → date-input-rac-BEsh54Gz.js} +1 -1
- package/dist/component/{date-picker-field-rac-eMidYtsl.js → date-picker-field-rac-DJirD93a.js} +15 -15
- package/dist/component/{date-picker-rac-D23rxZcF.js → date-picker-rac-B1fUqj_w.js} +1 -1
- package/dist/component/{date-time-input-field-rac-BjIj4dXQ.js → date-time-input-field-rac-CPFaQUXF.js} +38 -38
- package/dist/component/{date-time-input-rac-BSGAdk9L.js → date-time-input-rac-CAozBO0e.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-Xmb5IKrb.js → dext-checkbox-group-rac-B0yqJoj8.js} +2 -2
- package/dist/component/{dext-checkbox-rac-2eA7y0ld.js → dext-checkbox-rac-yZaUdHz1.js} +1 -1
- package/dist/component/{dext-date-picker-rac-CmLxVGGT.js → dext-date-picker-rac-AJ7XIW-h.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-Cd9nwSjb.js → dext-date-time-input-rac-CPs79sUY.js} +1 -1
- package/dist/component/{dext-dropdown-rac-BKdQ0nGS.js → dext-dropdown-rac-W2QzqPG4.js} +1 -1
- package/dist/component/{dext-email-rac-07zDPxyf.js → dext-email-rac-CCW1Dk1m.js} +1 -1
- package/dist/component/{dext-number-input-rac-DRvGuppY.js → dext-number-input-rac-BAInaxoF.js} +1 -1
- package/dist/component/{dext-phone-rac-CKtTVjFg.js → dext-phone-rac-CYYgZiFW.js} +1 -1
- package/dist/component/{dext-radio-group-rac-BsBmMufq.js → dext-radio-group-rac-Dqvmxoai.js} +2 -2
- package/dist/component/{dext-rating-input-rac-CcFSTAIh.js → dext-rating-input-rac-CWl7X0zW.js} +1 -1
- package/dist/component/{dext-tags-rac-CCTDlCvX.js → dext-tags-rac-BpAfPh55.js} +2 -2
- package/dist/component/{dext-text-area-rac-Cif8po9h.js → dext-text-area-rac-CLTg8XXH.js} +1 -1
- package/dist/component/{dext-text-input-rac-2118X4iF.js → dext-text-input-rac-BV-F-ZsP.js} +1 -1
- package/dist/component/{dext-url-input-rac-DDImGkQe.js → dext-url-input-rac-B9wHRaZr.js} +1 -1
- package/dist/component/{donation-rac-Dnylss1d.js → donation-rac-Be4swKWD.js} +50 -50
- package/dist/component/{dropdown-field-rac-DDI4ZgZH.js → dropdown-field-rac-BFEB_WuX.js} +3 -3
- package/dist/component/{dropdown-rac-DX0Z3R_8.js → dropdown-rac-Dz7QtFVB.js} +1 -1
- package/dist/component/{ecom-address-rac-D9MeEQsk.js → ecom-address-rac-Bu6msDgo.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-DKJ9j5dj.js → ecom-subscription-checkbox-rac-BRovQqrM.js} +2 -2
- package/dist/component/{email-input-field-rac-DaKrmlwe.js → email-input-field-rac-EERVxm6G.js} +42 -42
- package/dist/component/{events-repeater-rac-DWrOLT0Y.js → events-repeater-rac-xs0pooBs.js} +49 -49
- package/dist/component/{events-rsvp-rac-YBTR1tR0.js → events-rsvp-rac-CMi-8EqK.js} +3 -3
- package/dist/component/{field-error-headless-jksFrezt.js → field-error-headless-DbFXeaud.js} +8 -8
- package/dist/component/{field-label-headless-BBvJAVxI.js → field-label-headless-CWOYHPsb.js} +11 -11
- package/dist/component/{file-upload-rac-CgdmfUZG.js → file-upload-rac-vbMTIdDc.js} +61 -61
- package/dist/component/{fixed-payment-rac-v6rKwzFs.js → fixed-payment-rac-BRk7ams_.js} +7 -7
- package/dist/component/{form-BsiK682r.js → form-BjeODFzx.js} +238 -237
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-BuXybl7K.js → header-field-rac-CQexwZn7.js} +2 -2
- package/dist/component/{header-rac-CDyaLosW.js → header-rac-CYbPDl4_.js} +1 -1
- package/dist/component/{image-choice-rac-BRlMroBw.js → image-choice-rac-DDvlaK6K.js} +15 -15
- package/dist/component/{index-BanOeCAF.js → index-B6wFpWpe.js} +4 -4
- package/dist/component/{index-y9URYGEE.js → index-Bs9ypEe2.js} +6 -6
- package/dist/component/{isObjectLike-BG9nJ-rx.js → isObjectLike-Xcw2hQQ6.js} +1 -1
- package/dist/component/{multiline-address-field-rac-DRAkxI1l.js → multiline-address-field-rac-CYJR-MUz.js} +209 -209
- package/dist/component/{multiline-address-rac-JjTzWsEb.js → multiline-address-rac-DO1j_w6S.js} +1 -1
- package/dist/component/{number-input-field-rac-QrouG7Hv.js → number-input-field-rac-C-qvd8v9.js} +18 -18
- package/dist/component/{number-input-rac-DGmE7cLv.js → number-input-rac-CQSaifZE.js} +1 -1
- package/dist/component/{password-rac-DeyY228m.js → password-rac-CqnbZtR_.js} +28 -28
- package/dist/component/{payment-input-rac-DmIennLi.js → payment-input-rac-CbOcztkp.js} +28 -28
- package/dist/component/{phone-input-field-rac-F7e74TGA.js → phone-input-field-rac-BQ187I2C.js} +55 -55
- package/dist/component/{phone-rac-CQfB2CQD.js → phone-rac-CbA2xqF3.js} +1 -1
- package/dist/component/{product-list-rac--GGG8vvO.js → product-list-rac-MxB9tRiE.js} +103 -103
- package/dist/component/{quiz-radio-group-rac-DF2C2vNq.js → quiz-radio-group-rac-IViaDVRW.js} +1 -1
- package/dist/component/{radio-button-module-classes-DmpNo6F2.js → radio-button-module-classes-jtnooKMO.js} +33 -33
- package/dist/component/{radio-group-field-rac-BGcPYfKO.js → radio-group-field-rac-g3SQGJPp.js} +4 -4
- package/dist/component/{radio-group-rac-CqysUMCE.js → radio-group-rac-D8wmzlbu.js} +1 -1
- package/dist/component/{rating-input-field-rac-D-ei917Y.js → rating-input-field-rac-BqPXKKdi.js} +15 -15
- package/dist/component/{rating-input-rac-a9zJ74fw.js → rating-input-rac-CeZIpOmm.js} +1 -1
- package/dist/component/{rich-content-rac.module-CvyLVlXL.js → rich-content-rac.module-BLgdpRh_.js} +5 -5
- package/dist/component/{rich-text-field-rac-vf19nvyw.js → rich-text-field-rac-BpSVobCQ.js} +6 -6
- package/dist/component/{rich-text-rac-Cx_wpoxC.js → rich-text-rac-DqpaqbFH.js} +1 -1
- package/dist/component/{service-dropdown-rac-DITzKQxd.js → service-dropdown-rac-DKgtga1t.js} +30 -30
- package/dist/component/{services-multi-choice-rac-BtisN0Aq.js → services-multi-choice-rac-CAyB0b4q.js} +9 -9
- package/dist/component/{signature-rac-DUeIoS5O.js → signature-rac-DC20YN4f.js} +97 -97
- package/dist/component/{submit-button-rac-C8h6zeTw.js → submit-button-rac-ClWtqIkR.js} +30 -30
- package/dist/component/{tags-field-rac-CjFuiB0n.js → tags-field-rac-DHM9k8uf.js} +18 -18
- package/dist/component/{tags-rac-BO7rwyLl.js → tags-rac-Clg50jwY.js} +1 -1
- package/dist/component/{text-area-field-rac-CgUx3nQ0.js → text-area-field-rac-B2qJZ6wR.js} +16 -16
- package/dist/component/{text-area-rac-WgXYXIaf.js → text-area-rac-BwsVk7u7.js} +1 -1
- package/dist/component/{text-input-field-rac-DaxWFha-.js → text-input-field-rac-BQbo-3Ly.js} +6 -6
- package/dist/component/{text-input-headless-hjuRJTZN.js → text-input-headless-WICGIHcN.js} +3 -3
- package/dist/component/{text-input-rac-BzumrJBj.js → text-input-rac-D7BRYDZr.js} +1 -1
- package/dist/component/{time-input-rac-2FEkpQ7M.js → time-input-rac-Dnp-0_Js.js} +22 -22
- package/dist/component/{url-input-field-rac-BZ9f8D8I.js → url-input-field-rac-MC13zKST.js} +19 -19
- package/dist/component/{url-input-rac-D-AVlxkD.js → url-input-rac-DfAtTmKv.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-DwAAtzgX.js → use-dropdown-option-class-name-CVUEosg4.js} +2 -2
- package/dist/component/{use-dropdown-trigger-class-name-D-6n9YVG.js → use-dropdown-trigger-class-name-BHLG7EB-.js} +25 -25
- package/dist/component/{use-element-state-class-name-C5auxwhj.js → use-element-state-class-name-BVJylHPn.js} +3 -3
- package/dist/component/{use-hoverable-input-class-name-Nd2jqfz4.js → use-hoverable-input-class-name-DO9ctJ81.js} +2 -2
- package/dist/component/{use-is-forced-open-dropdown-CKaHhCqp.js → use-is-forced-open-dropdown-Czuo32Nq.js} +8 -8
- package/dist/component/{use-service-options-base-CvluFheT.js → use-service-options-base-DUuGIm38.js} +1 -1
- package/dist/component/use-text-input-class-name-LEnNGX0a.js +6 -0
- package/package.json +2 -2
- package/dist/component/use-text-input-class-name-DGTlYJxC.js +0 -6
package/dist/component/{date-input-field-rac-CYCT6qoa.js → date-input-field-rac-D7Pv-hqW.js}
RENAMED
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import { RicosViewer as ne } from "@wix/ricos/viewer";
|
|
2
|
-
import
|
|
3
|
-
import t, { useMemo as N, useState as
|
|
2
|
+
import I from "classnames";
|
|
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
|
|
6
|
-
import {
|
|
5
|
+
import { ListBoxItem as se, Select as oe, TextField as z, SelectValue as le, Input as X } from "react-aria-components";
|
|
6
|
+
import { bL as D, bI as K, bD as U, bg as Q, bt as W, b3 as s, bV as R, ba as ce, bh as ie, bA as me, bN 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 Ie, y as _e, z as q } from "./form-BjeODFzx.js";
|
|
7
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-DbFXeaud.js";
|
|
10
|
+
import { L as he } from "./field-label-headless-CWOYHPsb.js";
|
|
11
11
|
import { F as Ne } from "./fieldset-headless-CD3fds9J.js";
|
|
12
|
-
import { N as Le, E as ye, S as
|
|
13
|
-
import { u as
|
|
14
|
-
import { V as Te, a as Ae } from "./use-dropdown-option-class-name-
|
|
15
|
-
import { C as
|
|
16
|
-
import { E as
|
|
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-Czuo32Nq.js";
|
|
14
|
+
import { V as Te, a as Ae } from "./use-dropdown-option-class-name-CVUEosg4.js";
|
|
15
|
+
import { C as Re } from "./chevron-down-icon-CcpVm6B-.js";
|
|
16
|
+
import { E as Me } from "./error-icon-hZxQ6DEy.js";
|
|
17
17
|
import { H as Pe } from "./custom-focus-class-_483Pkwp.js";
|
|
18
18
|
import { s as b } from "./field-rac.module-ts2t4WUO.js";
|
|
19
|
-
import { u as v } from "./use-hoverable-input-class-name-
|
|
19
|
+
import { u as v } from "./use-hoverable-input-class-name-DO9ctJ81.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 } = K(), { regionalFormat: E } = U(), f = N(() => Q(E).filter(W).map((S) => S.toUpperCase()), [
|
|
26
26
|
E
|
|
27
|
-
]), y = p(e, n.Label),
|
|
27
|
+
]), y = p(e, n.Label), M = p(e, n.Description), P = 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)
|
|
@@ -43,10 +43,10 @@ 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, P,
|
|
46
|
+
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, P, M)
|
|
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 } = R(), [M, P] = $(!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,
|
|
@@ -74,7 +74,7 @@ const Se = {
|
|
|
74
74
|
isDisabled: o,
|
|
75
75
|
isInvalid: E,
|
|
76
76
|
placeholder: G,
|
|
77
|
-
isOpen: O ||
|
|
77
|
+
isOpen: O || M,
|
|
78
78
|
onOpenChange: O ? void 0 : Z
|
|
79
79
|
}, te, B(ae, {
|
|
80
80
|
isForcedOpen: O
|
|
@@ -89,7 +89,7 @@ const Se = {
|
|
|
89
89
|
m && ((d = i.current) == null || d.focus({
|
|
90
90
|
preventScroll: !0
|
|
91
91
|
}));
|
|
92
|
-
}, r), /* @__PURE__ */ t.createElement(
|
|
92
|
+
}, r), /* @__PURE__ */ t.createElement(Fe, {
|
|
93
93
|
ref: i,
|
|
94
94
|
id: l,
|
|
95
95
|
className: a,
|
|
@@ -125,12 +125,12 @@ g.Label = Ye;
|
|
|
125
125
|
g.Trigger = ve;
|
|
126
126
|
g.Options = A;
|
|
127
127
|
A.Option = xe;
|
|
128
|
-
const
|
|
129
|
-
const { disabled: r, readOnly: o, showDateLabels: l } = D(), { labelId: c } = h(s.DAY), { partValue: m, partError: i, onPartChange: d } = L(s.DAY), u = p(e,
|
|
128
|
+
const F = ({ children: e, className: a }) => {
|
|
129
|
+
const { disabled: r, readOnly: o, showDateLabels: l } = D(), { labelId: c } = h(s.DAY), { partValue: m, partError: i, onPartChange: d } = L(s.DAY), u = p(e, F.Label), E = p(e, F.Input);
|
|
130
130
|
return /* @__PURE__ */ t.createElement("div", {
|
|
131
131
|
className: a,
|
|
132
132
|
"data-date-field": !0
|
|
133
|
-
}, l && u, /* @__PURE__ */ t.createElement(
|
|
133
|
+
}, l && u, /* @__PURE__ */ t.createElement(z, {
|
|
134
134
|
"aria-labelledby": l ? c : void 0,
|
|
135
135
|
value: m,
|
|
136
136
|
onChange: d,
|
|
@@ -142,13 +142,13 @@ const C = ({ 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 } =
|
|
145
|
+
const { id: a, hidePlaceholder: r, autoComplete: o } = D(), { inputId: l } = h(s.DAY), { isFirstPart: c } = L(s.DAY), { t: m } = R(), i = H(null), d = r ? void 0 : m("field.date.placeholder.day");
|
|
146
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(X, {
|
|
152
152
|
ref: i,
|
|
153
153
|
id: l,
|
|
154
154
|
className: e,
|
|
@@ -159,14 +159,14 @@ const C = ({ children: e, className: a }) => {
|
|
|
159
159
|
"data-hook": s.DAY
|
|
160
160
|
});
|
|
161
161
|
};
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
const
|
|
165
|
-
const { disabled: r, readOnly: o, showDateLabels: l } = D(), { labelId: c } = h(s.YEAR), { partValue: m, partError: i, onPartChange: d } = L(s.YEAR), u = p(e,
|
|
162
|
+
F.Label = He;
|
|
163
|
+
F.Input = Ue;
|
|
164
|
+
const C = ({ children: e, className: a }) => {
|
|
165
|
+
const { disabled: r, readOnly: o, showDateLabels: l } = D(), { labelId: c } = h(s.YEAR), { partValue: m, partError: i, onPartChange: d } = L(s.YEAR), u = p(e, C.Label), E = p(e, C.Input);
|
|
166
166
|
return /* @__PURE__ */ t.createElement("div", {
|
|
167
167
|
className: a,
|
|
168
168
|
"data-date-field": !0
|
|
169
|
-
}, l && u, /* @__PURE__ */ t.createElement(
|
|
169
|
+
}, l && u, /* @__PURE__ */ t.createElement(z, {
|
|
170
170
|
"aria-labelledby": l ? c : void 0,
|
|
171
171
|
value: m,
|
|
172
172
|
onChange: d,
|
|
@@ -178,13 +178,13 @@ const F = ({ children: e, className: a }) => {
|
|
|
178
178
|
datePart: s.YEAR,
|
|
179
179
|
className: e
|
|
180
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 } =
|
|
181
|
+
const { id: a, hidePlaceholder: r, autoComplete: o } = D(), { inputId: l } = h(s.YEAR), { isFirstPart: c } = L(s.YEAR), { t: m } = R(), i = H(null), d = r ? void 0 : m("field.date.placeholder.year");
|
|
182
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(X, {
|
|
188
188
|
ref: i,
|
|
189
189
|
id: l,
|
|
190
190
|
className: e,
|
|
@@ -195,16 +195,16 @@ const F = ({ children: e, className: a }) => {
|
|
|
195
195
|
"data-hook": s.YEAR
|
|
196
196
|
});
|
|
197
197
|
};
|
|
198
|
-
|
|
199
|
-
|
|
198
|
+
C.Label = Ve;
|
|
199
|
+
C.Input = Be;
|
|
200
200
|
n.Label = he;
|
|
201
201
|
n.Month = g;
|
|
202
|
-
n.Day =
|
|
203
|
-
n.Year =
|
|
202
|
+
n.Day = F;
|
|
203
|
+
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 } = K();
|
|
208
208
|
return N(() => {
|
|
209
209
|
const r = e.toLowerCase();
|
|
210
210
|
return {
|
|
@@ -241,67 +241,67 @@ 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 } = R(), 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",
|
|
251
|
+
const we = "_fields_b2cgx_1", ke = "_month_b2cgx_10", $e = "_day_b2cgx_11", qe = "_year_b2cgx_12", ze = "_dayInput_b2cgx_28", Xe = "_yearInput_b2cgx_29", Ke = "_monthTrigger_b2cgx_33", Qe = "_monthOption_b2cgx_53", _ = {
|
|
252
252
|
fields: we,
|
|
253
253
|
month: ke,
|
|
254
|
-
day:
|
|
255
|
-
year:
|
|
256
|
-
dayInput:
|
|
257
|
-
yearInput:
|
|
258
|
-
monthTrigger:
|
|
254
|
+
day: $e,
|
|
255
|
+
year: qe,
|
|
256
|
+
dayInput: ze,
|
|
257
|
+
yearInput: Xe,
|
|
258
|
+
monthTrigger: Ke,
|
|
259
259
|
monthOption: Qe
|
|
260
260
|
}, We = ({ content: e, locale: a }) => /* @__PURE__ */ t.createElement(ne, {
|
|
261
261
|
content: e,
|
|
262
262
|
locale: a
|
|
263
263
|
}), bt = () => {
|
|
264
|
-
const e = v(
|
|
265
|
-
|
|
266
|
-
]), a = Ae(
|
|
267
|
-
|
|
268
|
-
]), o = v(
|
|
269
|
-
|
|
264
|
+
const e = v(Ie, [
|
|
265
|
+
_.monthTrigger
|
|
266
|
+
]), a = Ae(_e, _.monthOption, Pe), r = v(q, [
|
|
267
|
+
_.dayInput
|
|
268
|
+
]), o = v(q, [
|
|
269
|
+
_.yearInput
|
|
270
270
|
]);
|
|
271
271
|
return /* @__PURE__ */ t.createElement(n, {
|
|
272
|
-
className:
|
|
272
|
+
className: I(de, _.fields)
|
|
273
273
|
}, /* @__PURE__ */ t.createElement(n.Label, {
|
|
274
|
-
className:
|
|
274
|
+
className: I(ue, b.label)
|
|
275
275
|
}, /* @__PURE__ */ t.createElement(n.Label.Required, {
|
|
276
|
-
className:
|
|
276
|
+
className: I(pe, b.requiredMark)
|
|
277
277
|
})), /* @__PURE__ */ t.createElement(n.Month, {
|
|
278
|
-
className:
|
|
278
|
+
className: _.month
|
|
279
279
|
}, /* @__PURE__ */ t.createElement(n.Month.Label, {
|
|
280
|
-
className:
|
|
280
|
+
className: I(Y, b.label)
|
|
281
281
|
}), /* @__PURE__ */ t.createElement(n.Month.Trigger, {
|
|
282
282
|
className: e
|
|
283
|
-
}, /* @__PURE__ */ t.createElement(
|
|
283
|
+
}, /* @__PURE__ */ t.createElement(Re, {
|
|
284
284
|
className: b.dropdownIcon
|
|
285
285
|
})), /* @__PURE__ */ t.createElement(n.Month.Options, {
|
|
286
|
-
className:
|
|
286
|
+
className: I(Ee, b.selectPopover, b.dropdownPopover)
|
|
287
287
|
}, /* @__PURE__ */ t.createElement(n.Month.Options.Option, {
|
|
288
288
|
className: a
|
|
289
289
|
}))), /* @__PURE__ */ t.createElement(n.Day, {
|
|
290
|
-
className:
|
|
290
|
+
className: _.day
|
|
291
291
|
}, /* @__PURE__ */ t.createElement(n.Day.Label, {
|
|
292
|
-
className:
|
|
292
|
+
className: I(Y, b.label)
|
|
293
293
|
}), /* @__PURE__ */ t.createElement(n.Day.Input, {
|
|
294
294
|
className: r
|
|
295
295
|
})), /* @__PURE__ */ t.createElement(n.Year, {
|
|
296
|
-
className:
|
|
296
|
+
className: _.year
|
|
297
297
|
}, /* @__PURE__ */ t.createElement(n.Year.Label, {
|
|
298
|
-
className:
|
|
298
|
+
className: I(Y, b.label)
|
|
299
299
|
}), /* @__PURE__ */ t.createElement(n.Year.Input, {
|
|
300
300
|
className: o
|
|
301
301
|
})), /* @__PURE__ */ t.createElement(n.Error, {
|
|
302
|
-
className:
|
|
303
|
-
}, /* @__PURE__ */ t.createElement(
|
|
304
|
-
className:
|
|
302
|
+
className: I(be, b.error)
|
|
303
|
+
}, /* @__PURE__ */ t.createElement(Me, null), /* @__PURE__ */ t.createElement(n.Error.Text, null)), /* @__PURE__ */ t.createElement(n.Description, {
|
|
304
|
+
className: I(fe, b.description)
|
|
305
305
|
}, We));
|
|
306
306
|
};
|
|
307
307
|
export {
|
package/dist/component/{date-picker-field-rac-eMidYtsl.js → date-picker-field-rac-DJirD93a.js}
RENAMED
|
@@ -4,19 +4,19 @@ import e, { useState as L, useCallback as k, useContext as ee, useRef as P, 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 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, bL as N, bI as U, bD as F, bN as pe, X as fe, am as De, H as Ce, M as ye, I as Se, G as _e } from "./form-BjeODFzx.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-
|
|
10
|
+
import { D as he, E as Te } from "./field-error-headless-DbFXeaud.js";
|
|
11
|
+
import { L as be } from "./field-label-headless-CWOYHPsb.js";
|
|
12
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-
|
|
14
|
-
import { i as Fe } from "./date-availability-
|
|
13
|
+
import { a as Ie } from "./use-is-forced-open-dropdown-Czuo32Nq.js";
|
|
14
|
+
import { i as Fe } from "./date-availability-DTFyrU8J.js";
|
|
15
15
|
import { C as I } from "./chevron-down-icon-CcpVm6B-.js";
|
|
16
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-ts2t4WUO.js";
|
|
19
|
-
import { u as Pe } from "./use-hoverable-input-class-name-
|
|
19
|
+
import { u as Pe } from "./use-hoverable-input-class-name-DO9ctJ81.js";
|
|
20
20
|
const Ae = [
|
|
21
21
|
f.SUNDAY,
|
|
22
22
|
f.MONDAY,
|
|
@@ -28,7 +28,7 @@ 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 } =
|
|
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
32
|
const z = We(Z);
|
|
33
33
|
n(z);
|
|
34
34
|
}, [
|
|
@@ -38,7 +38,7 @@ const Ae = [
|
|
|
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: {
|
|
@@ -64,7 +64,7 @@ const Ae = [
|
|
|
64
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,14 +118,14 @@ 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 } = F(), { availability: c } =
|
|
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
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),
|
|
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
129
|
return /* @__PURE__ */ e.createElement(O, {
|
|
130
130
|
className: r,
|
|
131
131
|
containerPadding: 0
|
|
@@ -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,
|
|
@@ -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)
|
|
@@ -1,23 +1,23 @@
|
|
|
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 X, 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 Q, TimeField as ue, SelectValue as pe, Input as W, DateInput as Ee, DateSegment 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 B, TimeFieldStateContext as fe } from "react-aria-components";
|
|
7
|
+
import { bL as b, bI as J, bD as $, bg as Z, bt as ee, b3 as d, bV as y, bx as j, bi as be, ba as he, bA as _e, bc as K, bN as q, u as Ie, X as ge, am as De, w, x as Ne, M as Te, I as Oe, v as Le, y as ye, z as k } from "./form-BjeODFzx.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-DbFXeaud.js";
|
|
11
|
+
import { L as Me } from "./field-label-headless-CWOYHPsb.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
|
|
15
|
-
import { V as
|
|
14
|
+
import { u as Ve } from "./use-is-forced-open-dropdown-Czuo32Nq.js";
|
|
15
|
+
import { V as we, a as Ye } from "./use-dropdown-option-class-name-CVUEosg4.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-ts2t4WUO.js";
|
|
20
|
-
import { u as H } from "./use-hoverable-input-class-name-
|
|
20
|
+
import { u as H } from "./use-hoverable-input-class-name-DO9ctJ81.js";
|
|
21
21
|
const l = ({ children: e, className: a }) => {
|
|
22
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
|
|
@@ -43,13 +43,13 @@ 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] =
|
|
47
|
-
o || p(typeof
|
|
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] = X(!1), g = Ve(n), [D, T] = X(null), S = i ? Ae : N("field.date.placeholder.month"), te = U((V) => {
|
|
47
|
+
o || p(typeof V == "string" ? V : "");
|
|
48
48
|
}, [
|
|
49
49
|
p,
|
|
50
50
|
o
|
|
51
|
-
]), ae = U((
|
|
52
|
-
v(
|
|
51
|
+
]), ae = U((V) => {
|
|
52
|
+
v(V && !o);
|
|
53
53
|
}, [
|
|
54
54
|
o
|
|
55
55
|
]), ne = u(e, F.Label), re = u(e, F.Trigger), oe = u(e, F.Options);
|
|
@@ -75,10 +75,10 @@ const l = ({ children: e, className: a }) => {
|
|
|
75
75
|
}, re, C(oe, {
|
|
76
76
|
isForcedOpen: g
|
|
77
77
|
}))));
|
|
78
|
-
},
|
|
78
|
+
}, xe = ({ className: e }) => /* @__PURE__ */ t.createElement(G, {
|
|
79
79
|
datePart: d.MONTH,
|
|
80
80
|
className: e
|
|
81
|
-
}),
|
|
81
|
+
}), Be = ({ children: e, className: a }) => {
|
|
82
82
|
const { id: n, readOnly: r } = b(), { inputId: o } = O(d.MONTH), { partError: s, isFirstPart: i } = P(d.MONTH), m = z(null);
|
|
83
83
|
return q(() => {
|
|
84
84
|
var c;
|
|
@@ -93,15 +93,15 @@ const l = ({ children: e, className: a }) => {
|
|
|
93
93
|
"data-invalid": s || void 0,
|
|
94
94
|
"data-readonly": r || void 0
|
|
95
95
|
}, /* @__PURE__ */ t.createElement(pe, null), e);
|
|
96
|
-
},
|
|
96
|
+
}, x = ({ children: e, className: a, ...n }) => {
|
|
97
97
|
const { isForcedOpen: r } = n, { language: o } = $(), s = L(() => Fe(o), [
|
|
98
98
|
o
|
|
99
|
-
]), i = u(e,
|
|
99
|
+
]), i = u(e, x.Option) ?? /* @__PURE__ */ t.createElement(x.Option, null);
|
|
100
100
|
return /* @__PURE__ */ t.createElement(Re, {
|
|
101
101
|
className: a,
|
|
102
102
|
containerPadding: 0,
|
|
103
103
|
offset: 0
|
|
104
|
-
}, /* @__PURE__ */ t.createElement(
|
|
104
|
+
}, /* @__PURE__ */ t.createElement(we, {
|
|
105
105
|
isForcedOpen: r,
|
|
106
106
|
autoFocus: r ? !1 : void 0
|
|
107
107
|
}, s.map((m, c) => C(i, {
|
|
@@ -117,10 +117,10 @@ const l = ({ children: e, className: a }) => {
|
|
|
117
117
|
textValue: r
|
|
118
118
|
}, r);
|
|
119
119
|
};
|
|
120
|
-
F.Label =
|
|
121
|
-
F.Trigger =
|
|
122
|
-
F.Options =
|
|
123
|
-
|
|
120
|
+
F.Label = xe;
|
|
121
|
+
F.Trigger = Be;
|
|
122
|
+
F.Options = x;
|
|
123
|
+
x.Option = ke;
|
|
124
124
|
const R = ({ children: e, className: a }) => {
|
|
125
125
|
const { disabled: n, readOnly: r, showDateLabels: o } = b(), { labelId: s } = O(d.DAY), { partValue: i, partError: m, onPartChange: c } = P(d.DAY), h = u(e, R.Label), p = u(e, R.Input);
|
|
126
126
|
return /* @__PURE__ */ t.createElement("div", {
|
|
@@ -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
|
+
}, Xe = ({ 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
|
+
}, je = ({ 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,
|
|
@@ -233,16 +233,16 @@ const I = ({ children: e, className: a }) => {
|
|
|
233
233
|
segment: i
|
|
234
234
|
}) || /* @__PURE__ */ t.createElement(t.Fragment, null);
|
|
235
235
|
case "literal":
|
|
236
|
-
return /* @__PURE__ */ t.createElement(
|
|
236
|
+
return /* @__PURE__ */ t.createElement(B, {
|
|
237
237
|
segment: i
|
|
238
238
|
});
|
|
239
239
|
default:
|
|
240
240
|
return /* @__PURE__ */ t.createElement(t.Fragment, null);
|
|
241
241
|
}
|
|
242
242
|
});
|
|
243
|
-
},
|
|
243
|
+
}, Ke = ({ 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
|
-
return /* @__PURE__ */ t.createElement(
|
|
245
|
+
return /* @__PURE__ */ t.createElement(B, {
|
|
246
246
|
segment: r,
|
|
247
247
|
className: e,
|
|
248
248
|
...s && {
|
|
@@ -251,7 +251,7 @@ const I = ({ children: e, className: a }) => {
|
|
|
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
|
-
return /* @__PURE__ */ t.createElement(
|
|
254
|
+
return /* @__PURE__ */ t.createElement(B, {
|
|
255
255
|
segment: r,
|
|
256
256
|
className: e,
|
|
257
257
|
...s && {
|
|
@@ -260,7 +260,7 @@ const I = ({ children: e, className: a }) => {
|
|
|
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
|
-
return /* @__PURE__ */ t.createElement(
|
|
263
|
+
return /* @__PURE__ */ t.createElement(B, {
|
|
264
264
|
segment: r,
|
|
265
265
|
className: e,
|
|
266
266
|
onClick: m,
|
|
@@ -269,9 +269,9 @@ const I = ({ children: e, className: a }) => {
|
|
|
269
269
|
}
|
|
270
270
|
});
|
|
271
271
|
};
|
|
272
|
-
I.Label =
|
|
273
|
-
I.Input =
|
|
274
|
-
I.Hour =
|
|
272
|
+
I.Label = Xe;
|
|
273
|
+
I.Input = je;
|
|
274
|
+
I.Hour = Ke;
|
|
275
275
|
I.Minute = Qe;
|
|
276
276
|
I.Period = We;
|
|
277
277
|
l.Label = Me;
|
|
@@ -295,7 +295,7 @@ 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(() => j(a ?? ""), [
|
|
299
299
|
a
|
|
300
300
|
]), m = L(() => be(r, a ?? ""), [
|
|
301
301
|
a,
|
|
@@ -305,13 +305,13 @@ function P(e) {
|
|
|
305
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 = K(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] = j(a ?? ""), T = _e(g, e, c), S = K(T, D);
|
|
315
315
|
n(S);
|
|
316
316
|
}, [
|
|
317
317
|
n,
|
|
@@ -397,7 +397,7 @@ const et = "_fields_1ofw4_1", tt = "_month_1ofw4_10", at = "_day_1ofw4_11", nt =
|
|
|
397
397
|
})), /* @__PURE__ */ t.createElement(l.Month, {
|
|
398
398
|
className: f.month
|
|
399
399
|
}, /* @__PURE__ */ t.createElement(l.Month.Label, {
|
|
400
|
-
className: E(
|
|
400
|
+
className: E(w, _.label)
|
|
401
401
|
}), /* @__PURE__ */ t.createElement(l.Month.Trigger, {
|
|
402
402
|
className: e
|
|
403
403
|
}, /* @__PURE__ */ t.createElement(He, {
|
|
@@ -409,19 +409,19 @@ const et = "_fields_1ofw4_1", tt = "_month_1ofw4_10", at = "_day_1ofw4_11", nt =
|
|
|
409
409
|
}))), /* @__PURE__ */ t.createElement(l.Day, {
|
|
410
410
|
className: f.day
|
|
411
411
|
}, /* @__PURE__ */ t.createElement(l.Day.Label, {
|
|
412
|
-
className: E(
|
|
412
|
+
className: E(w, _.label)
|
|
413
413
|
}), /* @__PURE__ */ t.createElement(l.Day.Input, {
|
|
414
414
|
className: n
|
|
415
415
|
})), /* @__PURE__ */ t.createElement(l.Year, {
|
|
416
416
|
className: f.year
|
|
417
417
|
}, /* @__PURE__ */ t.createElement(l.Year.Label, {
|
|
418
|
-
className: E(
|
|
418
|
+
className: E(w, _.label)
|
|
419
419
|
}), /* @__PURE__ */ t.createElement(l.Year.Input, {
|
|
420
420
|
className: r
|
|
421
421
|
})), /* @__PURE__ */ t.createElement(l.Time, {
|
|
422
422
|
className: f.timeGroup
|
|
423
423
|
}, /* @__PURE__ */ t.createElement(l.Time.Label, {
|
|
424
|
-
className: E(
|
|
424
|
+
className: E(w, _.label)
|
|
425
425
|
}), /* @__PURE__ */ t.createElement(l.Time.Input, {
|
|
426
426
|
className: o
|
|
427
427
|
}, /* @__PURE__ */ t.createElement(l.Time.Hour, {
|
package/dist/component/{dext-checkbox-group-rac-Xmb5IKrb.js → dext-checkbox-group-rac-B0yqJoj8.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 { bL as e, aN as t } from "./form-BjeODFzx.js";
|
|
3
|
+
import { C as p } from "./checkbox-group-field-rac-BZ-YgEYR.js";
|
|
4
4
|
import { D as s } from "./default-limits-D7qVv_Hv.js";
|
|
5
5
|
const C = () => {
|
|
6
6
|
const r = {
|