@wix/form-elements 1.64.0 → 1.65.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-DojiZqx9.js → appointment-rac-0kUk8XQJ.js} +35 -35
- package/dist/component/{bookings-address-rac-Bm_lQchD.js → bookings-address-rac-BUM0wpw0.js} +1 -1
- package/dist/component/{bookings-email-rac-vwuy0kW8.js → bookings-email-rac-BHlvupVS.js} +1 -1
- package/dist/component/{bookings-first-name-rac-BbWuLoeg.js → bookings-first-name-rac-Bwn6xv1U.js} +1 -1
- package/dist/component/{bookings-header-rac-DVknNH29.js → bookings-header-rac-BkRvQMi4.js} +1 -1
- package/dist/component/{bookings-last-name-rac-BnT3Cq0b.js → bookings-last-name-rac-DRTj4VdX.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-DKi-VAXc.js → bookings-login-bar-rac-D-2Bt7Kx.js} +2 -2
- package/dist/component/{bookings-phone-rac-Bfy8rheB.js → bookings-phone-rac-CTcHHpDr.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-DGiBDcXw.js → bookings-rich-text-rac-n-w9iWII.js} +1 -1
- package/dist/component/{checkbox-field-rac-CYADRY54.js → checkbox-field-rac-BamOJv3P.js} +43 -43
- package/dist/component/{checkbox-group-field-headless-BDAFpX5F.js → checkbox-group-field-headless-BmKJbEi0.js} +3 -3
- package/dist/component/{checkbox-group-field-rac-2YUsOmDI.js → checkbox-group-field-rac-CC8qfj0Y.js} +6 -6
- package/dist/component/{checkbox-group-rac-CQf1C9H5.js → checkbox-group-rac-CsrP7zD5.js} +1 -1
- package/dist/component/{checkbox-rac-Bjv8jZjs.js → checkbox-rac-X6E-fJ8k.js} +1 -1
- package/dist/component/{contacts-address-rac-BBTiEec9.js → contacts-address-rac-oYnkIZ6m.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-XReeFHVW.js → contacts-birthdate-rac-B7p8LgYA.js} +1 -1
- package/dist/component/{contacts-company-rac-B-fUQszu.js → contacts-company-rac-cjLRO5J-.js} +1 -1
- package/dist/component/{contacts-email-rac-DBtcCcsV.js → contacts-email-rac-BlJJSkGK.js} +1 -1
- package/dist/component/{contacts-first-name-rac-mkwU3706.js → contacts-first-name-rac-Nl-MDndn.js} +1 -1
- package/dist/component/{contacts-last-name-rac-DY5N-AZx.js → contacts-last-name-rac-DhxAobRI.js} +1 -1
- package/dist/component/{contacts-phone-rac-Ce1rMz_z.js → contacts-phone-rac-CZLWlH0T.js} +1 -1
- package/dist/component/{contacts-position-rac-B65H8PDu.js → contacts-position-rac-DlKC0lCU.js} +1 -1
- package/dist/component/contacts-subscribe-rac-POSKh1Ta.js +13 -0
- package/dist/component/{contacts-tax-id-rac-Jtt0ySK2.js → contacts-tax-id-rac-uyBKxOJn.js} +1 -1
- package/dist/component/{date-availability-B8UwvTJa.js → date-availability-DnFJD1aS.js} +1 -1
- package/dist/component/{date-input-field-rac-RL2a0xoD.js → date-input-field-rac-DojzGm-i.js} +30 -30
- package/dist/component/{date-input-rac-ak3G7V07.js → date-input-rac-BaPKcAuU.js} +1 -1
- package/dist/component/{date-picker-field-rac-SL_Roltf.js → date-picker-field-rac-C1rzJMV8.js} +16 -16
- package/dist/component/{date-picker-rac-ByrM0YIX.js → date-picker-rac-BHsOfkYn.js} +1 -1
- package/dist/component/{date-time-input-field-rac-DOE7xcKi.js → date-time-input-field-rac-B4jAAxU8.js} +15 -15
- package/dist/component/{date-time-input-rac-BA-GyrAc.js → date-time-input-rac-XyL5z_ma.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-EwUnBO80.js → dext-checkbox-group-rac-DzpdOP3i.js} +2 -2
- package/dist/component/{dext-checkbox-rac-CIRKi4B5.js → dext-checkbox-rac-BUWkvW5s.js} +1 -1
- package/dist/component/{dext-date-picker-rac-BYO_Q1zM.js → dext-date-picker-rac-CR0PUoOn.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-BOahPeaH.js → dext-date-time-input-rac-D3WhLSKK.js} +1 -1
- package/dist/component/{dext-dropdown-rac-sTD_r-0H.js → dext-dropdown-rac-BJ1UfAIM.js} +1 -1
- package/dist/component/{dext-email-rac-e-2_h3he.js → dext-email-rac-xk_5C79-.js} +1 -1
- package/dist/component/{dext-number-input-rac-D6LACzWl.js → dext-number-input-rac-Cu1Sqoac.js} +1 -1
- package/dist/component/{dext-phone-rac-kUycy5Od.js → dext-phone-rac-S34qxXwg.js} +1 -1
- package/dist/component/{dext-radio-group-rac-DPD2UkrV.js → dext-radio-group-rac-DXnAk_eU.js} +2 -2
- package/dist/component/{dext-rating-input-rac-DUsnrl9W.js → dext-rating-input-rac-ewGpgB63.js} +1 -1
- package/dist/component/{dext-tags-rac-D6z69HuO.js → dext-tags-rac-BApZKGqP.js} +2 -2
- package/dist/component/{dext-text-area-rac-C-DVtFJ1.js → dext-text-area-rac-DBtuaiwM.js} +1 -1
- package/dist/component/{dext-text-input-rac-CIa2MdC6.js → dext-text-input-rac-qI8VECmA.js} +1 -1
- package/dist/component/{dext-url-input-rac-8rVVW5us.js → dext-url-input-rac-C6vzqNjn.js} +1 -1
- package/dist/component/donation-rac-BDVKvG4j.js +302 -0
- package/dist/component/{dropdown-field-headless-DReo519l.js → dropdown-field-headless-DBl8vGed.js} +3 -3
- package/dist/component/{dropdown-field-rac-DzrjA2O6.js → dropdown-field-rac-O6G7_kSn.js} +7 -7
- package/dist/component/{dropdown-rac-CS7oLTp_.js → dropdown-rac-BImZ5Jwe.js} +1 -1
- package/dist/component/{ecom-address-rac-EIb88J_6.js → ecom-address-rac-BU4XZ_Do.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-CE0Ks6qS.js → ecom-subscription-checkbox-rac-DLzpoNYm.js} +5 -5
- package/dist/component/{email-input-field-rac-BScZxYHw.js → email-input-field-rac-Ui0p35z5.js} +59 -59
- package/dist/component/{events-repeater-rac-Y0rH2Jli.js → events-repeater-rac-bPKOOOit.js} +8 -8
- package/dist/component/{events-rsvp-rac-BiAYVv_b.js → events-rsvp-rac-lsRBBfPQ.js} +12 -12
- package/dist/component/{field-error-headless-DrnFrGun.js → field-error-headless-D6iejMQP.js} +1 -1
- package/dist/component/{field-label-headless-BIYf1BIh.js → field-label-headless-BWLfU3YB.js} +1 -1
- package/dist/component/field-rac.module-DnUIb9Oh.js +21 -0
- package/dist/component/{file-upload-rac-br--tZLp.js → file-upload-rac-DqKL8QQZ.js} +87 -87
- package/dist/component/{fixed-payment-rac-XEtrsaMy.js → fixed-payment-rac-BDtRB8w2.js} +9 -9
- package/dist/component/{form-9yjqDnxY.js → form-CtWkUmxc.js} +69 -69
- package/dist/component/form-element-classes-BSMjWijd.js +63 -0
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-CLELgzqY.js → header-field-rac-BLM8RCDY.js} +3 -3
- package/dist/component/{header-rac-D8KGkVVp.js → header-rac-DViRwafg.js} +1 -1
- package/dist/component/image-choice-rac-D76t2y-b.js +141 -0
- package/dist/component/{index-PHkE0Ru4.js → index--iRBHLXJ.js} +4 -4
- package/dist/component/{index-C4y71e1i.js → index-pEItT2oo.js} +2 -2
- package/dist/component/{isObjectLike-srCDplej.js → isObjectLike-968AHV2b.js} +1 -1
- package/dist/component/{multiline-address-field-rac-CsBLI9y-.js → multiline-address-field-rac-CObOc8KE.js} +98 -98
- package/dist/component/{multiline-address-rac-DFDPFfXh.js → multiline-address-rac-1qVZkN41.js} +1 -1
- package/dist/component/{number-input-field-rac-DZRR7gdt.js → number-input-field-rac-CPQ3u0N7.js} +20 -20
- package/dist/component/{number-input-rac-BCS5lkff.js → number-input-rac-Bq1UyUPZ.js} +1 -1
- package/dist/component/{password-rac-ClDGgR3E.js → password-rac-BZPK1VkN.js} +9 -9
- package/dist/component/{payment-input-rac-COydWmUE.js → payment-input-rac-CQrV0WmN.js} +11 -11
- package/dist/component/{phone-input-field-rac-DYCibqe1.js → phone-input-field-rac-DzUE1-RF.js} +56 -56
- package/dist/component/{phone-rac-BS-dmWkJ.js → phone-rac-BovOZ7V5.js} +1 -1
- package/dist/component/{product-list-rac-hxOhaA-r.js → product-list-rac-CeGm1_WN.js} +22 -22
- package/dist/component/quiz-radio-group-rac-Lw2thQqC.js +13 -0
- package/dist/component/{radio-group-field-rac-DKqWnMBJ.js → radio-group-field-rac-BSVmjEgZ.js} +8 -8
- package/dist/component/{radio-group-field-rac.module-BwUynK_5.js → radio-group-field-rac.module-Cb3mm0f2.js} +3 -3
- package/dist/component/{radio-group-rac-DHURQZKK.js → radio-group-rac-BHhOCSQ2.js} +1 -1
- package/dist/component/{rating-input-field-rac-CZRdSVrf.js → rating-input-field-rac-BvbBZZDO.js} +21 -21
- package/dist/component/{rating-input-rac-BaH52DYm.js → rating-input-rac-DDe1EBpt.js} +1 -1
- package/dist/component/{rich-content-rac.module-ILBfxEmN.js → rich-content-rac.module-BacYkzEv.js} +1 -1
- package/dist/component/{rich-text-field-rac-B58q8Is7.js → rich-text-field-rac-D1W0mUjr.js} +5 -5
- package/dist/component/{rich-text-rac-DGbZh1eX.js → rich-text-rac-B-cOn0RU.js} +1 -1
- package/dist/component/{service-dropdown-rac-DUiNIbdv.js → service-dropdown-rac-CebfMkGP.js} +22 -22
- package/dist/component/{services-multi-choice-rac-B7y9s2l8.js → services-multi-choice-rac-C4bF1xhB.js} +29 -29
- package/dist/component/{signature-rac-CydpvQJZ.js → signature-rac-DWWT65Ez.js} +46 -46
- package/dist/component/{submit-button-rac-OO53h4H8.js → submit-button-rac-_mgn4ChE.js} +2 -2
- package/dist/component/{tags-field-rac-eX3d3JEH.js → tags-field-rac-7coCWj0y.js} +59 -59
- package/dist/component/{tags-rac-CdIB_48Z.js → tags-rac-rgsn8Os0.js} +1 -1
- package/dist/component/{text-area-field-rac-Bir5Q7gz.js → text-area-field-rac-5lUQxnNM.js} +15 -15
- package/dist/component/{text-area-rac-Ct1UNU04.js → text-area-rac-DpGOBzN3.js} +1 -1
- package/dist/component/{text-input-field-rac-onGUXC9J.js → text-input-field-rac-CgWadDfM.js} +3 -3
- package/dist/component/{text-input-headless-Bs9m7QFg.js → text-input-headless-fhxuPytc.js} +3 -3
- package/dist/component/{text-input-rac-DK4nEw4D.js → text-input-rac-kgWS3UUV.js} +1 -1
- package/dist/component/{time-input-rac-BCG9ktFa.js → time-input-rac-CuLUJcBH.js} +15 -15
- package/dist/component/{url-input-field-rac-mUkrVTcL.js → url-input-field-rac-CAGHb2na.js} +18 -18
- package/dist/component/{url-input-rac-Cl7LFYlr.js → url-input-rac-s5_SVi0h.js} +1 -1
- package/dist/component/{use-service-options-base-BYVuKRj2.js → use-service-options-base-CYAEJ75H.js} +1 -1
- package/package.json +2 -2
- package/dist/component/contacts-subscribe-rac-BxO8rIyL.js +0 -13
- package/dist/component/donation-rac-BjmSBabc.js +0 -305
- package/dist/component/field-rac.module-CWkwwhq4.js +0 -21
- package/dist/component/form-element-classes-KRzHUNLu.js +0 -57
- package/dist/component/image-choice-rac-Cl09CLP4.js +0 -141
- package/dist/component/quiz-radio-group-rac-BT-YZO2Q.js +0 -13
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import C from "react";
|
|
2
|
+
import { C as _ } from "./checkbox-field-rac-BamOJv3P.js";
|
|
3
|
+
import { X as e, Y as o, W as r } from "./form-element-classes-BSMjWijd.js";
|
|
4
|
+
const a = () => /* @__PURE__ */ C.createElement(_, {
|
|
5
|
+
classes: {
|
|
6
|
+
container: r,
|
|
7
|
+
label: o,
|
|
8
|
+
control: e
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
export {
|
|
12
|
+
a as ContactsSubscribeRAC
|
|
13
|
+
};
|
package/dist/component/{date-input-field-rac-RL2a0xoD.js → date-input-field-rac-DojzGm-i.js}
RENAMED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { RicosViewer as X } from "@wix/ricos/viewer";
|
|
2
2
|
import E from "classnames";
|
|
3
|
-
import t, { useMemo as g, useState as x, useCallback as
|
|
4
|
-
import { ai as D, af as k, ab as A, J as U, a1 as
|
|
3
|
+
import t, { useMemo as g, useState as x, useCallback as B, useRef as H } from "react";
|
|
4
|
+
import { ai as D, af as k, ab as A, J as U, a1 as q, r as i, as as P, x as Z, K as ee, a8 as te, ak as V } from "./form-CtWkUmxc.js";
|
|
5
5
|
import { UNSAFE_PortalProvider as ae } from "react-aria";
|
|
6
|
-
import { ListBoxItem as ne, ListBox as re, Select as oe, TextField as
|
|
7
|
-
import { f as p, a as
|
|
6
|
+
import { ListBoxItem as ne, ListBox as re, Select as oe, TextField as $, SelectValue as se, Input as z } from "react-aria-components";
|
|
7
|
+
import { f as p, a as K } from "./find-child-C60k4CxG.js";
|
|
8
8
|
import { g as le } from "./helpers-HmkkXrh2.js";
|
|
9
|
-
import { D as ce, E as ie } from "./field-error-headless-
|
|
10
|
-
import { L as me } from "./field-label-headless-
|
|
9
|
+
import { D as ce, E as ie } from "./field-error-headless-D6iejMQP.js";
|
|
10
|
+
import { L as me } from "./field-label-headless-BWLfU3YB.js";
|
|
11
11
|
import { F as de } from "./fieldset-headless-CD3fds9J.js";
|
|
12
12
|
import { N as ue, S as pe } from "./non-modal-popover-DtIMXHbe.js";
|
|
13
13
|
import { C as Ee } from "./chevron-down-icon-CcpVm6B-.js";
|
|
14
14
|
import { E as be } from "./error-icon-hZxQ6DEy.js";
|
|
15
15
|
import { H as fe } from "./custom-focus-class-_483Pkwp.js";
|
|
16
|
-
import { s as u } from "./field-rac.module-
|
|
17
|
-
import {
|
|
16
|
+
import { s as u } from "./field-rac.module-DnUIb9Oh.js";
|
|
17
|
+
import { z as R, P as he, y as j, C as Ie, q as De, j as ye } from "./form-element-classes-BSMjWijd.js";
|
|
18
18
|
const n = ({ children: e, className: a }) => {
|
|
19
|
-
const { id: r, required: o, onBlur: s, onFocus: c, FieldLayout: l } = D(), { inputId: d, labelId: m, ariaDescribedBy: f } = k(), { regionalFormat: b } = A(), I = g(() => U(b).filter(
|
|
19
|
+
const { id: r, required: o, onBlur: s, onFocus: c, FieldLayout: l } = D(), { inputId: d, labelId: m, ariaDescribedBy: f } = k(), { regionalFormat: b } = A(), I = g(() => U(b).filter(q).map((v) => v.toUpperCase()), [
|
|
20
20
|
b
|
|
21
21
|
]), O = p(e, n.Label), T = p(e, n.Description), Y = p(e, n.Error), N = {
|
|
22
22
|
[i.MONTH]: p(e, n.Month),
|
|
@@ -25,7 +25,7 @@ const n = ({ children: e, className: a }) => {
|
|
|
25
25
|
};
|
|
26
26
|
return /* @__PURE__ */ t.createElement(l, {
|
|
27
27
|
fieldId: r,
|
|
28
|
-
renderLabel: () =>
|
|
28
|
+
renderLabel: () => K(O, {
|
|
29
29
|
as: "div"
|
|
30
30
|
}),
|
|
31
31
|
renderInput: () => /* @__PURE__ */ t.createElement(de, {
|
|
@@ -40,12 +40,12 @@ const n = ({ children: e, className: a }) => {
|
|
|
40
40
|
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, Y, T)
|
|
41
41
|
});
|
|
42
42
|
}, y = ({ children: e, className: a }) => {
|
|
43
|
-
const { disabled: r, readOnly: o, showDateLabels: s, hidePlaceholder: c } = D(), { labelId: l } = _(i.MONTH), { partValue: d, partError: m, onPartChange: f } = L(i.MONTH), { t: b } = P(), [I, O] = x(!1), [T, Y] = x(null), N = c ? void 0 : b("field.date.placeholder.month"), v =
|
|
43
|
+
const { disabled: r, readOnly: o, showDateLabels: s, hidePlaceholder: c } = D(), { labelId: l } = _(i.MONTH), { partValue: d, partError: m, onPartChange: f } = L(i.MONTH), { t: b } = P(), [I, O] = x(!1), [T, Y] = x(null), N = c ? void 0 : b("field.date.placeholder.month"), v = B((M) => {
|
|
44
44
|
o || f(typeof M == "string" ? M : "");
|
|
45
45
|
}, [
|
|
46
46
|
f,
|
|
47
47
|
o
|
|
48
|
-
]),
|
|
48
|
+
]), J = B((M) => {
|
|
49
49
|
O(M && !o);
|
|
50
50
|
}, [
|
|
51
51
|
o
|
|
@@ -68,14 +68,14 @@ const n = ({ children: e, className: a }) => {
|
|
|
68
68
|
isInvalid: m,
|
|
69
69
|
placeholder: N,
|
|
70
70
|
isOpen: I,
|
|
71
|
-
onOpenChange:
|
|
71
|
+
onOpenChange: J
|
|
72
72
|
}, G, W)));
|
|
73
|
-
}, _e = ({ className: e }) => /* @__PURE__ */ t.createElement(
|
|
73
|
+
}, _e = ({ className: e }) => /* @__PURE__ */ t.createElement(w, {
|
|
74
74
|
datePart: i.MONTH,
|
|
75
75
|
className: e
|
|
76
76
|
}), ge = ({ children: e, className: a }) => {
|
|
77
|
-
const { id: r, readOnly: o } = D(), { inputId: s } = _(i.MONTH), { partError: c, isFirstPart: l } = L(i.MONTH), d =
|
|
78
|
-
return
|
|
77
|
+
const { id: r, readOnly: o } = D(), { inputId: s } = _(i.MONTH), { partError: c, isFirstPart: l } = L(i.MONTH), d = H(null);
|
|
78
|
+
return V(() => {
|
|
79
79
|
var m;
|
|
80
80
|
l && ((m = d.current) == null || m.focus());
|
|
81
81
|
}, r), /* @__PURE__ */ t.createElement(pe, {
|
|
@@ -94,7 +94,7 @@ const n = ({ children: e, className: a }) => {
|
|
|
94
94
|
className: a,
|
|
95
95
|
containerPadding: 0,
|
|
96
96
|
offset: 0
|
|
97
|
-
}, /* @__PURE__ */ t.createElement(re, null, o.map((c, l) =>
|
|
97
|
+
}, /* @__PURE__ */ t.createElement(re, null, o.map((c, l) => K(s, {
|
|
98
98
|
key: String(l + 1),
|
|
99
99
|
value: String(l + 1),
|
|
100
100
|
label: c
|
|
@@ -116,7 +116,7 @@ const F = ({ children: e, className: a }) => {
|
|
|
116
116
|
return /* @__PURE__ */ t.createElement("div", {
|
|
117
117
|
className: a,
|
|
118
118
|
"data-date-field": !0
|
|
119
|
-
}, s && f, /* @__PURE__ */ t.createElement(
|
|
119
|
+
}, s && f, /* @__PURE__ */ t.createElement($, {
|
|
120
120
|
"aria-labelledby": s ? c : void 0,
|
|
121
121
|
value: l,
|
|
122
122
|
onChange: m,
|
|
@@ -124,12 +124,12 @@ const F = ({ children: e, className: a }) => {
|
|
|
124
124
|
isReadOnly: o,
|
|
125
125
|
isInvalid: d
|
|
126
126
|
}, b));
|
|
127
|
-
}, Oe = ({ className: e }) => /* @__PURE__ */ t.createElement(
|
|
127
|
+
}, Oe = ({ className: e }) => /* @__PURE__ */ t.createElement(w, {
|
|
128
128
|
datePart: i.DAY,
|
|
129
129
|
className: e
|
|
130
130
|
}), Ne = ({ className: e }) => {
|
|
131
|
-
const { id: a, hidePlaceholder: r } = D(), { inputId: o } = _(i.DAY), { isFirstPart: s } = L(i.DAY), { t: c } = P(), l =
|
|
132
|
-
return
|
|
131
|
+
const { id: a, hidePlaceholder: r } = D(), { inputId: o } = _(i.DAY), { isFirstPart: s } = L(i.DAY), { t: c } = P(), l = H(null), d = r ? void 0 : c("field.date.placeholder.day");
|
|
132
|
+
return V(() => {
|
|
133
133
|
var m;
|
|
134
134
|
s && ((m = l.current) == null || m.focus());
|
|
135
135
|
}, a), /* @__PURE__ */ t.createElement(z, {
|
|
@@ -149,7 +149,7 @@ const C = ({ children: e, className: a }) => {
|
|
|
149
149
|
return /* @__PURE__ */ t.createElement("div", {
|
|
150
150
|
className: a,
|
|
151
151
|
"data-date-field": !0
|
|
152
|
-
}, s && f, /* @__PURE__ */ t.createElement(
|
|
152
|
+
}, s && f, /* @__PURE__ */ t.createElement($, {
|
|
153
153
|
"aria-labelledby": s ? c : void 0,
|
|
154
154
|
value: l,
|
|
155
155
|
onChange: m,
|
|
@@ -157,12 +157,12 @@ const C = ({ children: e, className: a }) => {
|
|
|
157
157
|
isReadOnly: o,
|
|
158
158
|
isInvalid: d
|
|
159
159
|
}, b));
|
|
160
|
-
}, Fe = ({ className: e }) => /* @__PURE__ */ t.createElement(
|
|
160
|
+
}, Fe = ({ className: e }) => /* @__PURE__ */ t.createElement(w, {
|
|
161
161
|
datePart: i.YEAR,
|
|
162
162
|
className: e
|
|
163
163
|
}), Ce = ({ className: e }) => {
|
|
164
|
-
const { id: a, hidePlaceholder: r } = D(), { inputId: o } = _(i.YEAR), { isFirstPart: s } = L(i.YEAR), { t: c } = P(), l =
|
|
165
|
-
return
|
|
164
|
+
const { id: a, hidePlaceholder: r } = D(), { inputId: o } = _(i.YEAR), { isFirstPart: s } = L(i.YEAR), { t: c } = P(), l = H(null), d = r ? void 0 : c("field.date.placeholder.year");
|
|
165
|
+
return V(() => {
|
|
166
166
|
var m;
|
|
167
167
|
s && ((m = l.current) == null || m.focus());
|
|
168
168
|
}, a), /* @__PURE__ */ t.createElement(z, {
|
|
@@ -202,14 +202,14 @@ function L(e) {
|
|
|
202
202
|
]), l = g(() => ee(o, a ?? ""), [
|
|
203
203
|
a,
|
|
204
204
|
o
|
|
205
|
-
]), d = c[e] || "", m =
|
|
205
|
+
]), d = c[e] || "", m = B((b) => {
|
|
206
206
|
const I = te(b, e, c);
|
|
207
207
|
r(I);
|
|
208
208
|
}, [
|
|
209
209
|
r,
|
|
210
210
|
c,
|
|
211
211
|
e
|
|
212
|
-
]), f = g(() => U(s).filter(
|
|
212
|
+
]), f = g(() => U(s).filter(q).map((O) => O.toUpperCase())[0] === e, [
|
|
213
213
|
s,
|
|
214
214
|
e
|
|
215
215
|
]);
|
|
@@ -220,7 +220,7 @@ function L(e) {
|
|
|
220
220
|
isFirstPart: f
|
|
221
221
|
};
|
|
222
222
|
}
|
|
223
|
-
function
|
|
223
|
+
function w({ datePart: e, className: a }) {
|
|
224
224
|
const { inputId: r, labelId: o } = _(e), { t: s } = P(), c = `field.date.label.${e.toLowerCase()}`, l = s(c);
|
|
225
225
|
return /* @__PURE__ */ t.createElement("label", {
|
|
226
226
|
id: o,
|
|
@@ -238,7 +238,7 @@ const Me = "_fields_12ojb_1", Re = "_month_12ojb_9", Se = "_day_12ojb_10", Ae =
|
|
|
238
238
|
yearInput: Ye,
|
|
239
239
|
monthTrigger: ve,
|
|
240
240
|
monthOption: je
|
|
241
|
-
},
|
|
241
|
+
}, Be = ({ content: e, locale: a }) => /* @__PURE__ */ t.createElement(X, {
|
|
242
242
|
content: e,
|
|
243
243
|
locale: a
|
|
244
244
|
}), tt = () => {
|
|
@@ -279,7 +279,7 @@ const Me = "_fields_12ojb_1", Re = "_month_12ojb_9", Se = "_day_12ojb_10", Ae =
|
|
|
279
279
|
className: E(De, u.error)
|
|
280
280
|
}, /* @__PURE__ */ t.createElement(be, null), /* @__PURE__ */ t.createElement(n.Error.Text, null)), /* @__PURE__ */ t.createElement(n.Description, {
|
|
281
281
|
className: E(ye, u.description)
|
|
282
|
-
},
|
|
282
|
+
}, Be));
|
|
283
283
|
};
|
|
284
284
|
export {
|
|
285
285
|
tt as D
|
package/dist/component/{date-picker-field-rac-SL_Roltf.js → date-picker-field-rac-C1rzJMV8.js}
RENAMED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { RicosViewer as G } from "@wix/ricos/viewer";
|
|
2
2
|
import y from "classnames";
|
|
3
|
-
import e, { useState as
|
|
4
|
-
import { D, ai as v, af as A, ab as S, ak as Z } from "./form-
|
|
5
|
-
import { parseDate as
|
|
3
|
+
import e, { useState as z, useCallback as F, useContext as Q, useRef as L, useMemo as _ } from "react";
|
|
4
|
+
import { D, ai as v, af as A, ab as S, ak as Z } from "./form-CtWkUmxc.js";
|
|
5
|
+
import { parseDate as J } from "@internationalized/date";
|
|
6
6
|
import { UNSAFE_PortalProvider as X } from "react-aria";
|
|
7
7
|
import { I18nProvider as ee, DatePicker as te, DatePickerStateContext as re, Group as ae, DateInput as ne, DateSegment as oe, Dialog as le, Calendar as se, CalendarMonthPicker as ce, CalendarYearPicker as ie, CalendarGrid as me, CalendarCell as ue, Button as R, Select as O, SelectValue as x, ListBox as k, ListBoxItem as M } from "react-aria-components";
|
|
8
8
|
import { g as de } from "./get-first-day-of-the-week-DvnsxYhQ.js";
|
|
9
9
|
import { f as E, a as b } from "./find-child-C60k4CxG.js";
|
|
10
|
-
import { D as ge, E as Ee } from "./field-error-headless-
|
|
11
|
-
import { L as pe } from "./field-label-headless-
|
|
10
|
+
import { D as ge, E as Ee } from "./field-error-headless-D6iejMQP.js";
|
|
11
|
+
import { L as pe } from "./field-label-headless-BWLfU3YB.js";
|
|
12
12
|
import { D as De, N as I, S as w } from "./non-modal-popover-DtIMXHbe.js";
|
|
13
|
-
import { i as fe } from "./date-availability-
|
|
13
|
+
import { i as fe } from "./date-availability-DnFJD1aS.js";
|
|
14
14
|
import { C as N } from "./chevron-down-icon-CcpVm6B-.js";
|
|
15
15
|
import { E as Ce } from "./error-icon-hZxQ6DEy.js";
|
|
16
|
-
import { s as p } from "./field-rac.module-
|
|
17
|
-
import {
|
|
16
|
+
import { s as p } from "./field-rac.module-DnUIb9Oh.js";
|
|
17
|
+
import { z as ye, P as he, y as ve, C as Se, q as Te, j as be } from "./form-element-classes-BSMjWijd.js";
|
|
18
18
|
const _e = [
|
|
19
19
|
D.SUNDAY,
|
|
20
20
|
D.MONDAY,
|
|
@@ -26,15 +26,15 @@ const _e = [
|
|
|
26
26
|
], Ne = {
|
|
27
27
|
availableDays: _e
|
|
28
28
|
}, a = ({ children: t }) => {
|
|
29
|
-
const { id: r, value: n, onChange: l, disabled: i, required: c, onBlur: d, onFocus: o, FieldLayout: m, hasError: u, readOnly: f } = v(), { labelId: C } = A(), { regionalFormat: s } = S(), [T, Y] =
|
|
29
|
+
const { id: r, value: n, onChange: l, disabled: i, required: c, onBlur: d, onFocus: o, FieldLayout: m, hasError: u, readOnly: f } = v(), { labelId: C } = A(), { regionalFormat: s } = S(), [T, Y] = z(null), B = F((j) => {
|
|
30
30
|
const H = Me(j);
|
|
31
31
|
l(H);
|
|
32
32
|
}, [
|
|
33
33
|
l
|
|
34
|
-
]),
|
|
34
|
+
]), q = E(t, a.Label), V = E(t, a.Control), U = E(t, a.Calendar), W = E(t, a.Description), K = E(t, a.Error), $ = ke(n);
|
|
35
35
|
return /* @__PURE__ */ e.createElement(m, {
|
|
36
36
|
fieldId: r,
|
|
37
|
-
renderLabel: () =>
|
|
37
|
+
renderLabel: () => q,
|
|
38
38
|
renderInput: () => /* @__PURE__ */ e.createElement(ee, {
|
|
39
39
|
locale: s
|
|
40
40
|
}, /* @__PURE__ */ e.createElement("div", {
|
|
@@ -54,7 +54,7 @@ const _e = [
|
|
|
54
54
|
isRequired: c,
|
|
55
55
|
onBlur: d,
|
|
56
56
|
onFocus: o
|
|
57
|
-
},
|
|
57
|
+
}, V, U))),
|
|
58
58
|
renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, K, W)
|
|
59
59
|
});
|
|
60
60
|
}, Ie = ({ children: t, className: r }) => {
|
|
@@ -203,7 +203,7 @@ function ke(t) {
|
|
|
203
203
|
if (!t)
|
|
204
204
|
return null;
|
|
205
205
|
try {
|
|
206
|
-
return
|
|
206
|
+
return J(t);
|
|
207
207
|
} catch {
|
|
208
208
|
return null;
|
|
209
209
|
}
|
|
@@ -250,9 +250,9 @@ const Be = (t) => /* @__PURE__ */ e.createElement("svg", {
|
|
|
250
250
|
strokeWidth: "1.5",
|
|
251
251
|
strokeLinecap: "round",
|
|
252
252
|
strokeLinejoin: "round"
|
|
253
|
-
})),
|
|
254
|
-
control:
|
|
255
|
-
segments:
|
|
253
|
+
})), qe = "_control_1xqv5_1", Ve = "_segments_1xqv5_14", Ue = "_trigger_1xqv5_65", We = "_calendarPopover_1xqv5_96", Ke = "_calendarDay_1xqv5_219", $e = "_mobile_1xqv5_262", h = {
|
|
254
|
+
control: qe,
|
|
255
|
+
segments: Ve,
|
|
256
256
|
trigger: Ue,
|
|
257
257
|
calendarPopover: We,
|
|
258
258
|
calendarDay: Ke,
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { RicosViewer as ne } from "@wix/ricos/viewer";
|
|
2
2
|
import p from "classnames";
|
|
3
3
|
import t, { useMemo as T, useState as G, useCallback as w, useRef as z, useContext as re } from "react";
|
|
4
|
-
import { ai as g, af as K, ab as B, J as Q, a1 as W, r as d, as as O, a5 as j, O as oe, x as le, a8 as se, y as J, ak as
|
|
4
|
+
import { ai as g, af as K, ab as B, J as Q, a1 as W, r as d, as as O, a5 as j, O as oe, x as le, a8 as se, y as J, ak as q } from "./form-CtWkUmxc.js";
|
|
5
5
|
import { parseTime as ie } from "@internationalized/date";
|
|
6
6
|
import { UNSAFE_PortalProvider as ce } from "react-aria";
|
|
7
7
|
import { ListBoxItem as me, ListBox as de, Select as ue, TextField as X, TimeField as pe, SelectValue as Ee, Input as Z, DateInput as he, DateSegment as U, TimeFieldStateContext as fe } from "react-aria-components";
|
|
8
8
|
import { f as u, a as R } from "./find-child-C60k4CxG.js";
|
|
9
9
|
import { g as be } from "./helpers-HmkkXrh2.js";
|
|
10
|
-
import { D as ge, E as Ie } from "./field-error-headless-
|
|
11
|
-
import { L as _e } from "./field-label-headless-
|
|
10
|
+
import { D as ge, E as Ie } from "./field-error-headless-D6iejMQP.js";
|
|
11
|
+
import { L as _e } from "./field-label-headless-BWLfU3YB.js";
|
|
12
12
|
import { F as ye } from "./fieldset-headless-CD3fds9J.js";
|
|
13
13
|
import { N as De, S as Ne } from "./non-modal-popover-DtIMXHbe.js";
|
|
14
14
|
import { C as Le } from "./chevron-down-icon-CcpVm6B-.js";
|
|
15
15
|
import { E as Te } from "./error-icon-hZxQ6DEy.js";
|
|
16
16
|
import { H as Y } from "./custom-focus-class-_483Pkwp.js";
|
|
17
|
-
import { s as E } from "./field-rac.module-
|
|
18
|
-
import {
|
|
17
|
+
import { s as E } from "./field-rac.module-DnUIb9Oh.js";
|
|
18
|
+
import { z as S, P as Oe, y as H, C as Fe, q as Pe, j as Ce } from "./form-element-classes-BSMjWijd.js";
|
|
19
19
|
const l = ({ children: e, className: a }) => {
|
|
20
20
|
const { id: n, required: o, onBlur: s, onFocus: r, FieldLayout: i } = g(), { inputId: m, labelId: c, ariaDescribedBy: f } = K(), { regionalFormat: b } = B(), y = T(() => Q(b).filter(W).map((M) => M.toUpperCase()), [
|
|
21
21
|
b
|
|
@@ -71,12 +71,12 @@ const l = ({ children: e, className: a }) => {
|
|
|
71
71
|
isOpen: y,
|
|
72
72
|
onOpenChange: M
|
|
73
73
|
}, te, ae)));
|
|
74
|
-
}, Me = ({ className: e }) => /* @__PURE__ */ t.createElement(
|
|
74
|
+
}, Me = ({ className: e }) => /* @__PURE__ */ t.createElement($, {
|
|
75
75
|
datePart: d.MONTH,
|
|
76
76
|
className: e
|
|
77
77
|
}), Se = ({ children: e, className: a }) => {
|
|
78
78
|
const { id: n, readOnly: o } = g(), { inputId: s } = N(d.MONTH), { partError: r, isFirstPart: i } = P(d.MONTH), m = z(null);
|
|
79
|
-
return
|
|
79
|
+
return q(() => {
|
|
80
80
|
var c;
|
|
81
81
|
i && ((c = m.current) == null || c.focus());
|
|
82
82
|
}, n), /* @__PURE__ */ t.createElement(Ne, {
|
|
@@ -125,12 +125,12 @@ const A = ({ children: e, className: a }) => {
|
|
|
125
125
|
isReadOnly: o,
|
|
126
126
|
isInvalid: m
|
|
127
127
|
}, b));
|
|
128
|
-
}, Ae = ({ className: e }) => /* @__PURE__ */ t.createElement(
|
|
128
|
+
}, Ae = ({ className: e }) => /* @__PURE__ */ t.createElement($, {
|
|
129
129
|
datePart: d.DAY,
|
|
130
130
|
className: e
|
|
131
131
|
}), ke = ({ className: e }) => {
|
|
132
132
|
const { id: a, hidePlaceholder: n } = g(), { inputId: o } = N(d.DAY), { isFirstPart: s } = P(d.DAY), { t: r } = O(), i = z(null), m = n ? void 0 : r("field.date.placeholder.day");
|
|
133
|
-
return
|
|
133
|
+
return q(() => {
|
|
134
134
|
var c;
|
|
135
135
|
s && ((c = i.current) == null || c.focus());
|
|
136
136
|
}, a), /* @__PURE__ */ t.createElement(Z, {
|
|
@@ -158,12 +158,12 @@ const k = ({ children: e, className: a }) => {
|
|
|
158
158
|
isReadOnly: o,
|
|
159
159
|
isInvalid: m
|
|
160
160
|
}, b));
|
|
161
|
-
}, ve = ({ className: e }) => /* @__PURE__ */ t.createElement(
|
|
161
|
+
}, ve = ({ className: e }) => /* @__PURE__ */ t.createElement($, {
|
|
162
162
|
datePart: d.YEAR,
|
|
163
163
|
className: e
|
|
164
164
|
}), Ve = ({ className: e }) => {
|
|
165
165
|
const { id: a, hidePlaceholder: n } = g(), { inputId: o } = N(d.YEAR), { isFirstPart: s } = P(d.YEAR), { t: r } = O(), i = z(null), m = n ? void 0 : r("field.date.placeholder.year");
|
|
166
|
-
return
|
|
166
|
+
return q(() => {
|
|
167
167
|
var c;
|
|
168
168
|
s && ((c = i.current) == null || c.focus());
|
|
169
169
|
}, a), /* @__PURE__ */ t.createElement(Z, {
|
|
@@ -320,7 +320,7 @@ function P(e) {
|
|
|
320
320
|
isFirstPart: C
|
|
321
321
|
};
|
|
322
322
|
}
|
|
323
|
-
function
|
|
323
|
+
function $({ datePart: e, className: a }) {
|
|
324
324
|
const { inputId: n, labelId: o } = N(e), { t: s } = O(), r = `field.date.label.${e.toLowerCase()}`, i = s(r);
|
|
325
325
|
return /* @__PURE__ */ t.createElement("label", {
|
|
326
326
|
id: o,
|
|
@@ -347,9 +347,9 @@ function ze(e) {
|
|
|
347
347
|
o
|
|
348
348
|
].join(":");
|
|
349
349
|
}
|
|
350
|
-
const
|
|
351
|
-
fields:
|
|
352
|
-
month:
|
|
350
|
+
const qe = "_fields_1khoa_1", $e = "_month_1khoa_10", Ge = "_day_1khoa_11", je = "_year_1khoa_12", Je = "_timeGroup_1khoa_13", Ke = "_mobile_1khoa_32", Qe = "_dayInput_1khoa_45", We = "_yearInput_1khoa_46", Xe = "_monthTrigger_1khoa_50", Ze = "_monthOption_1khoa_70", et = "_time_1khoa_13", tt = "_hour_1khoa_89", at = "_minute_1khoa_90", nt = "_period_1khoa_91", h = {
|
|
351
|
+
fields: qe,
|
|
352
|
+
month: $e,
|
|
353
353
|
day: Ge,
|
|
354
354
|
year: je,
|
|
355
355
|
timeGroup: Je,
|
package/dist/component/{dext-checkbox-group-rac-EwUnBO80.js → dext-checkbox-group-rac-DzpdOP3i.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import o from "react";
|
|
2
|
-
import { ai as e, h as t } from "./form-
|
|
3
|
-
import { C as p } from "./checkbox-group-field-rac-
|
|
2
|
+
import { ai as e, h as t } from "./form-CtWkUmxc.js";
|
|
3
|
+
import { C as p } from "./checkbox-group-field-rac-CC8qfj0Y.js";
|
|
4
4
|
import { D as s } from "./default-limits-D7qVv_Hv.js";
|
|
5
5
|
const C = () => {
|
|
6
6
|
const r = {
|
package/dist/component/{dext-radio-group-rac-DPD2UkrV.js → dext-radio-group-rac-DXnAk_eU.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import r from "react";
|
|
2
|
-
import { ai as e, h as t } from "./form-
|
|
3
|
-
import { R as p } from "./radio-group-field-rac-
|
|
2
|
+
import { ai as e, h as t } from "./form-CtWkUmxc.js";
|
|
3
|
+
import { R as p } from "./radio-group-field-rac-BSVmjEgZ.js";
|
|
4
4
|
import { a } from "./default-limits-D7qVv_Hv.js";
|
|
5
5
|
const l = () => {
|
|
6
6
|
const o = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import r from "react";
|
|
2
|
-
import { ai as e, h as o } from "./form-
|
|
3
|
-
import { T as s } from "./tags-field-rac-
|
|
2
|
+
import { ai as e, h as o } from "./form-CtWkUmxc.js";
|
|
3
|
+
import { T as s } from "./tags-field-rac-7coCWj0y.js";
|
|
4
4
|
import { b as a } from "./default-limits-D7qVv_Hv.js";
|
|
5
5
|
const l = () => {
|
|
6
6
|
const t = {
|