@wix/form-elements 1.193.0 → 1.195.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-7eD_yW7i.js → appointment-rac-BDa88iTP.js} +4 -4
- package/dist/component/{bookings-address-rac-Bpt7DrEs.js → bookings-address-rac-B1gPV--H.js} +1 -1
- package/dist/component/{bookings-email-rac-BYgeQczn.js → bookings-email-rac-DX-W7Axd.js} +1 -1
- package/dist/component/{bookings-first-name-rac-N7cvqHVh.js → bookings-first-name-rac-DdCziNtq.js} +1 -1
- package/dist/component/{bookings-header-rac-TCezj9Ur.js → bookings-header-rac-lGTzfTNR.js} +1 -1
- package/dist/component/{bookings-last-name-rac-t4O2yMDP.js → bookings-last-name-rac-CSa6tpCc.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-CJSoMvyZ.js → bookings-login-bar-rac-BiVTmFCB.js} +1 -1
- package/dist/component/{bookings-phone-rac-D9DS7Vkl.js → bookings-phone-rac-By2drUcb.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-9SxwdW6F.js → bookings-rich-text-rac-D-Gz46J9.js} +1 -1
- package/dist/component/{checkbox-field-rac-BBccyPVf.js → checkbox-field-rac-CKn8FeIB.js} +141 -141
- package/dist/component/{checkbox-group-field-headless-Dwnolboz.js → checkbox-group-field-headless-DbMidU6n.js} +79 -76
- package/dist/component/{checkbox-group-field-rac-BqcHS2rI.js → checkbox-group-field-rac-Czg7XNjP.js} +4 -4
- package/dist/component/{checkbox-group-rac-D1eH4xRZ.js → checkbox-group-rac-H23UY8V-.js} +1 -1
- package/dist/component/{checkbox-rac-D8KBjt2N.js → checkbox-rac-BViZUwuW.js} +1 -1
- package/dist/component/{contacts-address-rac-Cl-McrL_.js → contacts-address-rac-WxyYhD1V.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-tD574IDc.js → contacts-birthdate-rac-B2Sdyr45.js} +1 -1
- package/dist/component/{contacts-company-rac-p09ntN6y.js → contacts-company-rac-C8eUlCqT.js} +1 -1
- package/dist/component/{contacts-email-rac-hFxe_vYm.js → contacts-email-rac-BAmub2j_.js} +1 -1
- package/dist/component/{contacts-first-name-rac-CRQalepX.js → contacts-first-name-rac-C2bV0fls.js} +1 -1
- package/dist/component/{contacts-last-name-rac-BxWC_dQK.js → contacts-last-name-rac-D7kimOp8.js} +1 -1
- package/dist/component/{contacts-phone-rac-BoESpvX4.js → contacts-phone-rac-DMOMf2Fj.js} +1 -1
- package/dist/component/{contacts-position-rac-C-dEH79x.js → contacts-position-rac-CMl8ykC1.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-Wevw2yIs.js → contacts-subscribe-rac-DyEimqfI.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-C_YoCoUk.js → contacts-tax-id-rac-kOk59-rS.js} +1 -1
- package/dist/component/{date-availability-zeRtXneN.js → date-availability-D3-akuGp.js} +1 -1
- package/dist/component/{date-input-field-rac-wl1J79Lm.js → date-input-field-rac-D4mJM3Mi.js} +6 -6
- package/dist/component/{date-input-rac-DZG0E4dR.js → date-input-rac-DT28Xbno.js} +1 -1
- package/dist/component/{date-picker-field-rac-BgVpHr0x.js → date-picker-field-rac-Cj4S9fCJ.js} +6 -6
- package/dist/component/{date-picker-rac-Cxncpp-S.js → date-picker-rac-CFaHMNd-.js} +1 -1
- package/dist/component/{date-time-input-field-rac-BybKpDmr.js → date-time-input-field-rac-D1nJaGDz.js} +6 -6
- package/dist/component/{date-time-input-rac-BV45ahu6.js → date-time-input-rac-B1X8e_8t.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-CcnOnG3r.js → dext-checkbox-group-rac-CZc0qwzc.js} +2 -2
- package/dist/component/{dext-checkbox-rac-DZMbVP-v.js → dext-checkbox-rac-CchrXQUN.js} +1 -1
- package/dist/component/{dext-date-picker-rac-Ch7gU188.js → dext-date-picker-rac-BAugBZ0Y.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-DUssq9pN.js → dext-date-time-input-rac-CfMKLLyb.js} +1 -1
- package/dist/component/{dext-dropdown-rac-MZNHRD4Y.js → dext-dropdown-rac-BnHpXwmg.js} +1 -1
- package/dist/component/{dext-email-rac-bzMikfP7.js → dext-email-rac-DTzTU7Yv.js} +1 -1
- package/dist/component/{dext-number-input-rac-BDx2sZKk.js → dext-number-input-rac-4zxYCJ75.js} +1 -1
- package/dist/component/{dext-phone-rac-DBiQKWp5.js → dext-phone-rac-Cuy9Ong7.js} +1 -1
- package/dist/component/{dext-radio-group-rac-DQ0cJ_AF.js → dext-radio-group-rac-2_uzJUJC.js} +2 -2
- package/dist/component/{dext-rating-input-rac-DB8BVtRj.js → dext-rating-input-rac-Jq_Bjvuh.js} +1 -1
- package/dist/component/{dext-tags-rac-BlwcMf4S.js → dext-tags-rac-RlqgLji2.js} +2 -2
- package/dist/component/{dext-text-area-rac-RAxzXAFv.js → dext-text-area-rac-BEgLinV6.js} +1 -1
- package/dist/component/{dext-text-input-rac-bCmpx20f.js → dext-text-input-rac-tsXWti5j.js} +1 -1
- package/dist/component/{dext-url-input-rac-CF9E7GBh.js → dext-url-input-rac-u8XEkC0e.js} +1 -1
- package/dist/component/{donation-rac-CVWZE3yz.js → donation-rac-D_Rv9dCb.js} +5 -5
- package/dist/component/{dropdown-field-rac-BnxTiejT.js → dropdown-field-rac-An-1mFG9.js} +3 -3
- package/dist/component/{dropdown-rac-BSj6tud_.js → dropdown-rac-Dej2LbdS.js} +1 -1
- package/dist/component/{ecom-address-rac-Dsht1oXo.js → ecom-address-rac-DgpIV9et.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-NdMstAuc.js → ecom-subscription-checkbox-rac-B_vc4yei.js} +2 -2
- package/dist/component/{email-input-field-rac-BCxurSsa.js → email-input-field-rac-CCJAErTE.js} +3 -3
- package/dist/component/{events-repeater-rac-Dz59WhGX.js → events-repeater-rac-r6bYzbhi.js} +4 -4
- package/dist/component/{events-rsvp-rac-M4068R7R.js → events-rsvp-rac-CGIiANKI.js} +3 -3
- package/dist/component/{field-error-headless-DQ-jwMtX.js → field-error-headless-C-6U5jK5.js} +1 -1
- package/dist/component/{field-label-headless-D0N5zbDh.js → field-label-headless-CNe_Y93p.js} +1 -1
- package/dist/component/{file-upload-rac-Cy9ymgFI.js → file-upload-rac-Dj5MrGuQ.js} +4 -4
- package/dist/component/{fixed-payment-rac-DHL9zRaN.js → fixed-payment-rac-Dej4ZffG.js} +3 -3
- package/dist/component/{form-ur8Cb2nw.js → form-CrkZgddm.js} +3324 -3287
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-DmRHkStT.js → header-field-rac-kKF5WFnm.js} +2 -2
- package/dist/component/{header-rac-BMxv-FJ_.js → header-rac-EnnJI00C.js} +1 -1
- package/dist/component/{image-choice-rac-Bj54Ms5f.js → image-choice-rac-BIjCtkqd.js} +71 -68
- package/dist/component/{index-D1Nkz9Je.js → index-CGcAAYLG.js} +4 -4
- package/dist/component/{index-DwxUwvfW.js → index-HyPWuLT4.js} +2 -2
- package/dist/component/{isObjectLike-CA05Trvx.js → isObjectLike-Km_2vWSW.js} +1 -1
- package/dist/component/{multiline-address-field-rac-O10IwOCo.js → multiline-address-field-rac-DDCVJWIi.js} +7 -7
- package/dist/component/{multiline-address-rac-BHsYqS8U.js → multiline-address-rac-1IlceJjh.js} +1 -1
- package/dist/component/{number-input-field-rac-Dv6mIcWK.js → number-input-field-rac-BXfUcSDN.js} +4 -4
- package/dist/component/{number-input-rac-DB4aCeZ3.js → number-input-rac-C5cpfylm.js} +1 -1
- package/dist/component/{password-rac-Bzyoy7Ue.js → password-rac-BbMYEuXh.js} +4 -4
- package/dist/component/{payment-input-rac-d3XhrKDL.js → payment-input-rac-Bwkl3Z5r.js} +4 -4
- package/dist/component/{phone-input-field-rac-B1fOUnoX.js → phone-input-field-rac-BzqbdcNA.js} +6 -6
- package/dist/component/{phone-rac-CIourqo0.js → phone-rac-6a2EYMIa.js} +1 -1
- package/dist/component/{product-list-rac-2b6ZKst8.js → product-list-rac-DRiQBACq.js} +4 -4
- package/dist/component/{quiz-radio-group-rac-UzeDK6Fb.js → quiz-radio-group-rac-D--2yt8z.js} +1 -1
- package/dist/component/{radio-button-module-classes-BQiTZl4N.js → radio-button-module-classes-DpairWHD.js} +48 -45
- package/dist/component/{radio-group-field-rac-DMly0YyR.js → radio-group-field-rac-DfB_u2vb.js} +4 -4
- package/dist/component/{radio-group-rac-DWnKmLpT.js → radio-group-rac-6nMarETU.js} +1 -1
- package/dist/component/{rating-input-field-rac-B8b5CdR7.js → rating-input-field-rac-CFJFtI5b.js} +45 -43
- package/dist/component/{rating-input-rac-BqRJ0so2.js → rating-input-rac-BDH7MaUi.js} +1 -1
- package/dist/component/{rich-content-rac.module-BgjdfUpM.js → rich-content-rac.module-CkqZCs-2.js} +1 -1
- package/dist/component/{rich-text-field-rac-Drh-o9ma.js → rich-text-field-rac-Ctym7hYF.js} +2 -2
- package/dist/component/{rich-text-rac-BhUjaWGI.js → rich-text-rac-C57HTjbQ.js} +1 -1
- package/dist/component/{service-dropdown-rac-Cj4BuLCe.js → service-dropdown-rac-ClHCanJy.js} +4 -4
- package/dist/component/{services-multi-choice-rac-BWgmoaGp.js → services-multi-choice-rac-Ca9MfRHt.js} +5 -5
- package/dist/component/{signature-rac-DEFLilBW.js → signature-rac-CyHmUNnC.js} +4 -4
- package/dist/component/{submit-button-rac-_Lluhrls.js → submit-button-rac-DuCxy8Dp.js} +2 -2
- package/dist/component/tags-field-rac-CR3t0sMl.js +216 -0
- package/dist/component/{tags-rac-DsBzlrwA.js → tags-rac-Bsjv-eAy.js} +1 -1
- package/dist/component/{text-area-field-rac-COU0UfH0.js → text-area-field-rac-D8NrZuYn.js} +4 -4
- package/dist/component/{text-area-rac-DY2np20s.js → text-area-rac-CePWkwsf.js} +1 -1
- package/dist/component/{text-input-field-rac-Jl4gKN4D.js → text-input-field-rac-CwAh7Rsq.js} +3 -3
- package/dist/component/{text-input-headless-DsIKhwwK.js → text-input-headless-B7-hkYK7.js} +3 -3
- package/dist/component/{text-input-rac-Dwoai7Y2.js → text-input-rac-B3lmF2k7.js} +1 -1
- package/dist/component/{time-input-rac-CeUzBpvQ.js → time-input-rac-DmtviG0W.js} +4 -4
- package/dist/component/{url-input-field-rac-D5dK0qXo.js → url-input-field-rac-D1c1qFA8.js} +4 -4
- package/dist/component/{url-input-rac-DGC2_VVy.js → url-input-rac-CVXiOK3x.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-DCf8o4bn.js → use-dropdown-option-class-name-CYe9j3TQ.js} +2 -2
- package/dist/component/{use-dropdown-trigger-class-name-VcbNtj9H.js → use-dropdown-trigger-class-name-DAXgQ97Y.js} +6 -6
- package/dist/component/{use-element-state-class-name-Dc9b8x0t.js → use-element-state-class-name-BgZPeBgR.js} +1 -1
- package/dist/component/{use-hoverable-input-class-name-BNb7P_5E.js → use-hoverable-input-class-name-DDWuNCH3.js} +2 -2
- package/dist/component/{use-is-forced-open-dropdown-BlG9NkCS.js → use-is-forced-open-dropdown-Dzt7p3CD.js} +1 -1
- package/dist/component/{use-service-options-base-DB4bYGFa.js → use-service-options-base-bKP2vFsb.js} +1 -1
- package/dist/component/use-text-input-class-name-w_3X2xFo.js +6 -0
- package/dist/form.d.ts +2 -1
- package/package.json +3 -3
- package/dist/component/tags-field-rac-C7nXKUBj.js +0 -213
- package/dist/component/use-text-input-class-name-BxX9CE3F.js +0 -6
|
@@ -1,49 +1,52 @@
|
|
|
1
|
-
import o, { useMemo as F, useCallback as $,
|
|
2
|
-
import { CheckboxGroup as A, CheckboxField as J, CheckboxButton as
|
|
3
|
-
import { debounce as
|
|
4
|
-
import { bM as R, bJ as Q,
|
|
1
|
+
import o, { useRef as q, useMemo as F, useCallback as $, useState as M, useEffect as W } from "react";
|
|
2
|
+
import { CheckboxGroup as A, CheckboxField as J, CheckboxButton as K, TextField as X, Input as j } from "react-aria-components";
|
|
3
|
+
import { debounce as z } from "ts-debounce";
|
|
4
|
+
import { bM as R, bJ as Q, bV as U, bX as Y, bO as Z } from "./form-CrkZgddm.js";
|
|
5
5
|
import { f as I, a as k } from "./find-child-C60k4CxG.js";
|
|
6
|
-
import { D as
|
|
7
|
-
import { L as
|
|
8
|
-
import { F as
|
|
9
|
-
import { S as
|
|
10
|
-
const B = "Other",
|
|
6
|
+
import { D as ee, E as te } from "./field-error-headless-C-6U5jK5.js";
|
|
7
|
+
import { L as ae } from "./field-label-headless-CNe_Y93p.js";
|
|
8
|
+
import { F as ne } from "./fieldset-headless-CD3fds9J.js";
|
|
9
|
+
import { S as le } from "./selection-indicator-XQ8MYHUQ.js";
|
|
10
|
+
const B = "Other", se = (e, t) => e.some((r) => !t.includes(r)), N = (e, t) => e.length > 0 && se(e, t), re = (e, t) => {
|
|
11
11
|
const r = t == null ? void 0 : t("add-other.default-other-option-label");
|
|
12
12
|
return e || r || B;
|
|
13
|
-
},
|
|
13
|
+
}, T = (e, t) => {
|
|
14
14
|
const a = t ? t.length + 2 : 0;
|
|
15
15
|
return (e.find((s) => s.startsWith(`${t}: `)) || "").slice(a);
|
|
16
|
-
}, S = (e) => e.map((t) => t.value ?? t.label),
|
|
17
|
-
const r = R(), { id: a, value: n, onChange: s, disabled: d, required: p, onBlur: f, onFocus: m, hasError: c, FieldLayout: i } = r, { inputId: h, labelId: u, ariaDescribedBy:
|
|
16
|
+
}, S = (e) => e.map((t) => t.value ?? t.label), V = ({ children: e, className: t }) => {
|
|
17
|
+
const r = R(), { id: a, value: n, onChange: s, disabled: d, required: p, onBlur: f, onFocus: m, hasError: c, FieldLayout: i } = r, { inputId: h, labelId: u, ariaDescribedBy: g } = Q(), O = q(null);
|
|
18
|
+
U(O);
|
|
19
|
+
const L = I(e, V.Label), v = I(e, V.Options), l = I(e, V.Description), E = I(e, V.Error), C = F(() => n || [], [
|
|
18
20
|
n
|
|
19
|
-
]),
|
|
20
|
-
s == null || s(
|
|
21
|
+
]), b = $((x) => {
|
|
22
|
+
s == null || s(x);
|
|
21
23
|
}, [
|
|
22
24
|
s
|
|
23
25
|
]);
|
|
24
26
|
return /* @__PURE__ */ o.createElement(i, {
|
|
25
27
|
fieldId: a,
|
|
26
|
-
renderLabel: () =>
|
|
27
|
-
renderInput: () => /* @__PURE__ */ o.createElement(
|
|
28
|
+
renderLabel: () => L,
|
|
29
|
+
renderInput: () => /* @__PURE__ */ o.createElement(ne, {
|
|
28
30
|
id: h,
|
|
29
31
|
ariaLabelledBy: u,
|
|
30
|
-
ariaDescribedBy:
|
|
32
|
+
ariaDescribedBy: g,
|
|
31
33
|
required: p,
|
|
32
34
|
onBlur: f,
|
|
33
35
|
onFocus: m
|
|
34
36
|
}, /* @__PURE__ */ o.createElement(A, {
|
|
37
|
+
ref: O,
|
|
35
38
|
className: t,
|
|
36
39
|
"aria-labelledby": u,
|
|
37
|
-
value:
|
|
38
|
-
onChange:
|
|
40
|
+
value: C,
|
|
41
|
+
onChange: b,
|
|
39
42
|
isDisabled: d,
|
|
40
43
|
isRequired: p,
|
|
41
44
|
isInvalid: c
|
|
42
|
-
},
|
|
43
|
-
renderDescription: () => /* @__PURE__ */ o.createElement(o.Fragment, null,
|
|
45
|
+
}, v)),
|
|
46
|
+
renderDescription: () => /* @__PURE__ */ o.createElement(o.Fragment, null, E, l)
|
|
44
47
|
});
|
|
45
48
|
}, _ = ({ children: e, className: t }) => {
|
|
46
|
-
const r = R(), { id: a, options: n, addOther: s, addOtherLabel: d, numberOfColumns: p } = r, { t: f } =
|
|
49
|
+
const r = R(), { id: a, options: n, addOther: s, addOtherLabel: d, numberOfColumns: p } = r, { t: f } = Y(), m = I(e, _.Option), c = re(d, f);
|
|
47
50
|
return /* @__PURE__ */ o.createElement("div", {
|
|
48
51
|
className: t,
|
|
49
52
|
"data-columns": p
|
|
@@ -62,145 +65,145 @@ const B = "Other", le = (e, t) => e.some((r) => !t.includes(r)), N = (e, t) => e
|
|
|
62
65
|
label: c,
|
|
63
66
|
isOther: !0
|
|
64
67
|
}));
|
|
65
|
-
},
|
|
68
|
+
}, oe = ({ className: e, ...t }) => {
|
|
66
69
|
const { label: r } = t;
|
|
67
70
|
return /* @__PURE__ */ o.createElement("span", {
|
|
68
71
|
className: e
|
|
69
72
|
}, r);
|
|
70
|
-
},
|
|
71
|
-
const { value: a, label: n, isFirst: s = !1, isOther: d = !1, fieldId: p } = r, f = R(), { value: m, onChange: c, disabled: i, readOnly: h, hasError: u, options:
|
|
72
|
-
|
|
73
|
+
}, D = ({ children: e, className: t, ...r }) => {
|
|
74
|
+
const { value: a, label: n, isFirst: s = !1, isOther: d = !1, fieldId: p } = r, f = R(), { value: m, onChange: c, disabled: i, readOnly: h, hasError: u, options: g } = f, O = q(null);
|
|
75
|
+
Z(() => {
|
|
73
76
|
var b;
|
|
74
|
-
s && ((b =
|
|
77
|
+
s && ((b = O.current) == null || b.focus({
|
|
75
78
|
preventScroll: !0
|
|
76
79
|
}));
|
|
77
80
|
}, p);
|
|
78
|
-
const
|
|
81
|
+
const L = I(e, D.Label), v = I(e, D.Input), l = F(() => m || [], [
|
|
79
82
|
m
|
|
80
|
-
]),
|
|
83
|
+
]), E = F(() => d ? l.find((b) => b === n || b.startsWith(`${n}: `)) || n : a, [
|
|
81
84
|
d,
|
|
82
85
|
l,
|
|
83
86
|
n,
|
|
84
87
|
a
|
|
85
|
-
]),
|
|
88
|
+
]), C = $((b) => {
|
|
86
89
|
if (!d)
|
|
87
90
|
return;
|
|
88
|
-
const
|
|
89
|
-
...
|
|
91
|
+
const x = S(g || []), y = l.filter((w) => x.includes(w)), H = b ? [
|
|
92
|
+
...y,
|
|
90
93
|
n
|
|
91
|
-
] :
|
|
94
|
+
] : y;
|
|
92
95
|
c == null || c(H);
|
|
93
96
|
}, [
|
|
94
97
|
d,
|
|
95
98
|
n,
|
|
96
99
|
c,
|
|
97
|
-
|
|
100
|
+
g,
|
|
98
101
|
l
|
|
99
102
|
]);
|
|
100
103
|
return /* @__PURE__ */ o.createElement(J, {
|
|
101
|
-
value:
|
|
102
|
-
onChange: d ?
|
|
104
|
+
value: E,
|
|
105
|
+
onChange: d ? C : void 0,
|
|
103
106
|
isDisabled: i,
|
|
104
107
|
isReadOnly: h,
|
|
105
108
|
isInvalid: u
|
|
106
|
-
}, /* @__PURE__ */ o.createElement(
|
|
107
|
-
ref:
|
|
109
|
+
}, /* @__PURE__ */ o.createElement(K, {
|
|
110
|
+
ref: O,
|
|
108
111
|
className: t,
|
|
109
112
|
"data-hook": `checkbox-${n}`
|
|
110
|
-
}, ({ isSelected: b, isHovered:
|
|
113
|
+
}, ({ isSelected: b, isHovered: x, isFocused: y }) => /* @__PURE__ */ o.createElement(o.Fragment, null, k(v, {
|
|
111
114
|
isSelected: b,
|
|
112
|
-
isHovered:
|
|
113
|
-
isFocused:
|
|
114
|
-
}), k(
|
|
115
|
+
isHovered: x,
|
|
116
|
+
isFocused: y
|
|
117
|
+
}), k(L, {
|
|
115
118
|
label: n
|
|
116
119
|
}))));
|
|
117
120
|
};
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
const
|
|
121
|
-
const { value: r, label: a, isFirst: n = !1, isOther: s = !1, fieldId: d } = t, p = R(), { value: f, onChange: m, options: c, addOtherPlaceholder: i, otherInputCharacterLimit: h, disabled: u, readOnly:
|
|
121
|
+
D.Label = oe;
|
|
122
|
+
D.Input = le;
|
|
123
|
+
const P = ({ children: e, ...t }) => {
|
|
124
|
+
const { value: r, label: a, isFirst: n = !1, isOther: s = !1, fieldId: d } = t, p = R(), { value: f, onChange: m, options: c, addOtherPlaceholder: i, otherInputCharacterLimit: h, disabled: u, readOnly: g, hasError: O } = p, L = I(e, D), v = I(e, G), l = F(() => f || [], [
|
|
122
125
|
f
|
|
123
|
-
]),
|
|
126
|
+
]), E = F(() => {
|
|
124
127
|
if (!s)
|
|
125
128
|
return !1;
|
|
126
|
-
const
|
|
127
|
-
return N(l,
|
|
129
|
+
const C = S(c || []);
|
|
130
|
+
return N(l, C);
|
|
128
131
|
}, [
|
|
129
132
|
s,
|
|
130
133
|
l,
|
|
131
134
|
c
|
|
132
135
|
]);
|
|
133
|
-
return /* @__PURE__ */ o.createElement(o.Fragment, null, k(
|
|
136
|
+
return /* @__PURE__ */ o.createElement(o.Fragment, null, k(L, {
|
|
134
137
|
value: r,
|
|
135
138
|
label: a,
|
|
136
139
|
isFirst: n,
|
|
137
140
|
isOther: s,
|
|
138
141
|
fieldId: d
|
|
139
|
-
}), s &&
|
|
142
|
+
}), s && E && k(v, {
|
|
140
143
|
fieldValue: l,
|
|
141
144
|
onChange: m,
|
|
142
145
|
label: a,
|
|
143
146
|
placeholder: i,
|
|
144
147
|
maxLength: h,
|
|
145
148
|
disabled: u,
|
|
146
|
-
readOnly:
|
|
147
|
-
hasError:
|
|
149
|
+
readOnly: g,
|
|
150
|
+
hasError: O,
|
|
148
151
|
ariaLabel: a,
|
|
149
152
|
addOtherLabel: a,
|
|
150
153
|
options: c
|
|
151
154
|
}));
|
|
152
155
|
}, G = ({ className: e, inputClassName: t, ...r }) => {
|
|
153
|
-
const { fieldValue: a, onChange: n, label: s, placeholder: d, maxLength: p, disabled: f, readOnly: m, hasError: c, ariaLabel: i, addOtherLabel: h, options: u } = r, [
|
|
156
|
+
const { fieldValue: a, onChange: n, label: s, placeholder: d, maxLength: p, disabled: f, readOnly: m, hasError: c, ariaLabel: i, addOtherLabel: h, options: u } = r, [g, O] = M(() => {
|
|
154
157
|
const l = S(u || []);
|
|
155
|
-
return N(a, l) ?
|
|
158
|
+
return N(a, l) ? T(a, h) : "";
|
|
156
159
|
});
|
|
157
160
|
W(() => {
|
|
158
|
-
const l = S(u || []),
|
|
159
|
-
E
|
|
161
|
+
const l = S(u || []), E = N(a, l);
|
|
162
|
+
O(E ? T(a, h) : "");
|
|
160
163
|
}, [
|
|
161
164
|
a,
|
|
162
165
|
u,
|
|
163
166
|
h
|
|
164
167
|
]);
|
|
165
|
-
const
|
|
166
|
-
const
|
|
167
|
-
...
|
|
168
|
+
const L = F(() => z((l) => {
|
|
169
|
+
const E = S(u || []), C = a.filter((y) => E.includes(y)), b = l ? `${h}: ${l}` : s, x = [
|
|
170
|
+
...C,
|
|
168
171
|
b
|
|
169
172
|
];
|
|
170
|
-
n(
|
|
173
|
+
n(x);
|
|
171
174
|
}, 500), [
|
|
172
175
|
n,
|
|
173
176
|
u,
|
|
174
177
|
a,
|
|
175
178
|
h,
|
|
176
179
|
s
|
|
177
|
-
]),
|
|
178
|
-
|
|
180
|
+
]), v = $((l) => {
|
|
181
|
+
O(l), L(l);
|
|
179
182
|
}, [
|
|
180
|
-
|
|
183
|
+
L
|
|
181
184
|
]);
|
|
182
|
-
return /* @__PURE__ */ o.createElement(
|
|
185
|
+
return /* @__PURE__ */ o.createElement(X, {
|
|
183
186
|
"aria-label": i,
|
|
184
|
-
value:
|
|
185
|
-
onChange:
|
|
187
|
+
value: g,
|
|
188
|
+
onChange: v,
|
|
186
189
|
isDisabled: f,
|
|
187
190
|
isReadOnly: m,
|
|
188
191
|
isInvalid: c,
|
|
189
192
|
className: e
|
|
190
|
-
}, /* @__PURE__ */ o.createElement(
|
|
193
|
+
}, /* @__PURE__ */ o.createElement(j, {
|
|
191
194
|
className: t,
|
|
192
195
|
placeholder: d,
|
|
193
196
|
maxLength: p,
|
|
194
197
|
"aria-label": i
|
|
195
198
|
}));
|
|
196
199
|
};
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
_.Option =
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
200
|
+
V.Label = ae;
|
|
201
|
+
V.Options = _;
|
|
202
|
+
_.Option = P;
|
|
203
|
+
P.Checkbox = D;
|
|
204
|
+
P.OtherInput = G;
|
|
205
|
+
V.Description = ee;
|
|
206
|
+
V.Error = te;
|
|
204
207
|
export {
|
|
205
|
-
|
|
208
|
+
V as C
|
|
206
209
|
};
|
package/dist/component/{checkbox-group-field-rac-BqcHS2rI.js → checkbox-group-field-rac-Czg7XNjP.js}
RENAMED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { RicosViewer as m } from "@wix/ricos/viewer";
|
|
2
2
|
import a from "classnames";
|
|
3
3
|
import e from "react";
|
|
4
|
-
import { C as t } from "./checkbox-group-field-headless-
|
|
4
|
+
import { C as t } from "./checkbox-group-field-headless-DbMidU6n.js";
|
|
5
5
|
import { E as n } from "./error-icon-hZxQ6DEy.js";
|
|
6
6
|
import { C as c } from "./checkbox-indicator-module-classes-DOxE4UQg.js";
|
|
7
7
|
import { s } from "./field-rac.module-DcyJyi2B.js";
|
|
8
|
-
import { X as i, am as E, p, r as C, M as O, I as _, q as I } from "./form-
|
|
8
|
+
import { X as i, am as E, p, r as C, M as O, I as _, q as I } from "./form-CrkZgddm.js";
|
|
9
9
|
import { o as l } from "./options-rac.module-_THNq6Qq.js";
|
|
10
|
-
import { u as L } from "./use-element-state-class-name-
|
|
11
|
-
import { u as R } from "./use-text-input-class-name-
|
|
10
|
+
import { u as L } from "./use-element-state-class-name-BgZPeBgR.js";
|
|
11
|
+
import { u as R } from "./use-text-input-class-name-w_3X2xFo.js";
|
|
12
12
|
const u = ({ content: r, locale: o }) => /* @__PURE__ */ e.createElement(m, {
|
|
13
13
|
content: r,
|
|
14
14
|
locale: o
|
package/dist/component/{date-input-field-rac-wl1J79Lm.js → date-input-field-rac-D4mJM3Mi.js}
RENAMED
|
@@ -3,20 +3,20 @@ 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
5
|
import { ListBoxItem as se, Select as oe, TextField as z, SelectValue as le, Input as X } from "react-aria-components";
|
|
6
|
-
import { bM as D, bJ as J, bE as U, bh as K, bu as Q, b4 as s, bX as M, bb as ce, bi as ie, bB as me, bO as B, 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-
|
|
6
|
+
import { bM as D, bJ as J, bE as U, bh as K, bu as Q, b4 as s, bX as M, bb as ce, bi as ie, bB as me, bO as B, 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-CrkZgddm.js";
|
|
7
7
|
import { f as p, a as V } 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-C-6U5jK5.js";
|
|
10
|
+
import { L as he } from "./field-label-headless-CNe_Y93p.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-
|
|
13
|
+
import { u as Ce } from "./use-is-forced-open-dropdown-Dzt7p3CD.js";
|
|
14
|
+
import { V as Te, a as Ae } from "./use-dropdown-option-class-name-CYe9j3TQ.js";
|
|
15
15
|
import { C as Me } from "./chevron-down-icon-CcpVm6B-.js";
|
|
16
16
|
import { E as Re } 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-DcyJyi2B.js";
|
|
19
|
-
import { u as v } from "./use-hoverable-input-class-name-
|
|
19
|
+
import { u as v } from "./use-hoverable-input-class-name-DDWuNCH3.js";
|
|
20
20
|
const Se = {
|
|
21
21
|
[s.MONTH]: "bday-month",
|
|
22
22
|
[s.DAY]: "bday-day",
|
package/dist/component/{date-picker-field-rac-BgVpHr0x.js → date-picker-field-rac-Cj4S9fCJ.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, bM as h, bJ as U, bE as O, bO as pe, X as fe, am as De, H as Ce, M as ye, I as Se, G as _e } from "./form-
|
|
7
|
+
import { D as f, bM as h, bJ as U, bE as O, bO as pe, X as fe, am as De, H as Ce, M as ye, I as Se, G as _e } from "./form-CrkZgddm.js";
|
|
8
8
|
import { g as he, 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 Ne, E as Te } from "./field-error-headless-
|
|
11
|
-
import { L as be } from "./field-label-headless-
|
|
10
|
+
import { D as Ne, E as Te } from "./field-error-headless-C-6U5jK5.js";
|
|
11
|
+
import { L as be } from "./field-label-headless-CNe_Y93p.js";
|
|
12
12
|
import { D as ve, N as F, 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 Oe } from "./date-availability-
|
|
13
|
+
import { a as Ie } from "./use-is-forced-open-dropdown-Dzt7p3CD.js";
|
|
14
|
+
import { i as Oe } from "./date-availability-D3-akuGp.js";
|
|
15
15
|
import { C as I } from "./chevron-down-icon-CcpVm6B-.js";
|
|
16
16
|
import { E as Fe } 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-DDWuNCH3.js";
|
|
20
20
|
const Ae = [
|
|
21
21
|
f.SUNDAY,
|
|
22
22
|
f.MONDAY,
|
|
@@ -4,20 +4,20 @@ import t, { useMemo as L, useState as X, useCallback as U, useRef as z, useConte
|
|
|
4
4
|
import { parseTime as ie } from "@internationalized/date";
|
|
5
5
|
import { UNSAFE_PortalProvider as ce } from "react-aria";
|
|
6
6
|
import { ListBoxItem as me, Select as de, TextField as K, TimeField as ue, SelectValue as pe, Input as Q, DateInput as Ee, DateSegment as x, TimeFieldStateContext as fe } from "react-aria-components";
|
|
7
|
-
import { bM as b, bJ as W, bE as $, bh as Z, bu as ee, b4 as d, bX as y, by as j, bj as be, bb as he, bB as _e, bd as J, bO 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-
|
|
7
|
+
import { bM as b, bJ as W, bE as $, bh as Z, bu as ee, b4 as d, bX as y, by as j, bj as be, bb as he, bB as _e, bd as J, bO 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-CrkZgddm.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-C-6U5jK5.js";
|
|
11
|
+
import { L as Me } from "./field-label-headless-CNe_Y93p.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-Dzt7p3CD.js";
|
|
15
|
+
import { V as Ve, a as Ye } from "./use-dropdown-option-class-name-CYe9j3TQ.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-DDWuNCH3.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 } = W(), { regionalFormat: p } = $(), N = L(() => Z(p).filter(ee).map((S) => S.toUpperCase()), [
|
|
23
23
|
p
|
package/dist/component/{dext-checkbox-group-rac-CcnOnG3r.js → dext-checkbox-group-rac-CZc0qwzc.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import o from "react";
|
|
2
|
-
import { bM as e, aN as t } from "./form-
|
|
3
|
-
import { C as p } from "./checkbox-group-field-rac-
|
|
2
|
+
import { bM as e, aN as t } from "./form-CrkZgddm.js";
|
|
3
|
+
import { C as p } from "./checkbox-group-field-rac-Czg7XNjP.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-DQ0cJ_AF.js → dext-radio-group-rac-2_uzJUJC.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import r from "react";
|
|
2
|
-
import { bM as e, aN as t } from "./form-
|
|
3
|
-
import { R as p } from "./radio-group-field-rac-
|
|
2
|
+
import { bM as e, aN as t } from "./form-CrkZgddm.js";
|
|
3
|
+
import { R as p } from "./radio-group-field-rac-DfB_u2vb.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 { bM as e, aN as o } from "./form-
|
|
3
|
-
import { T as s } from "./tags-field-rac-
|
|
2
|
+
import { bM as e, aN as o } from "./form-CrkZgddm.js";
|
|
3
|
+
import { T as s } from "./tags-field-rac-CR3t0sMl.js";
|
|
4
4
|
import { b as a } from "./default-limits-D7qVv_Hv.js";
|
|
5
5
|
const l = () => {
|
|
6
6
|
const t = {
|