@wix/form-elements 1.217.0 → 1.219.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-BwV-BiuM.js → appointment-rac-BHOy_R7-.js} +4 -4
- package/dist/component/{bookings-address-rac-60s8mINA.js → bookings-address-rac-BCrQv66p.js} +1 -1
- package/dist/component/{bookings-email-rac-CD180ofz.js → bookings-email-rac-DmRfdxfb.js} +1 -1
- package/dist/component/{bookings-first-name-rac-DPj9TLDZ.js → bookings-first-name-rac-BXO3f2gd.js} +1 -1
- package/dist/component/{bookings-header-rac-DWAqHAC3.js → bookings-header-rac-CO6AOevd.js} +1 -1
- package/dist/component/{bookings-last-name-rac-C-0GchtO.js → bookings-last-name-rac-BJBEASFi.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-DpVUsgYV.js → bookings-login-bar-rac-BIAIfq4E.js} +5 -5
- package/dist/component/{bookings-phone-rac-DSw3Wpi6.js → bookings-phone-rac-Ccj4N7sU.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-BcfuuhqF.js → bookings-rich-text-rac-B3HZ904h.js} +1 -1
- package/dist/component/{checkbox-field-rac-CxN4DXcm.js → checkbox-field-rac-CMLQboNZ.js} +43 -43
- package/dist/component/{checkbox-group-field-headless-Cxytn3cY.js → checkbox-group-field-headless-BoPu_anP.js} +41 -41
- package/dist/component/{checkbox-group-field-rac-COySLANT.js → checkbox-group-field-rac-DDkB4mAS.js} +4 -4
- package/dist/component/{checkbox-group-rac-C36q50g-.js → checkbox-group-rac-CYRjp2pd.js} +1 -1
- package/dist/component/{checkbox-rac-CPRna7wo.js → checkbox-rac-CZtOcpN3.js} +1 -1
- package/dist/component/{contacts-address-rac-C9WfyF_C.js → contacts-address-rac-CTcU_s2X.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-DI_n6KW2.js → contacts-birthdate-rac-CfoYd88-.js} +1 -1
- package/dist/component/{contacts-company-rac-C2L3jLDV.js → contacts-company-rac-BFa1_U3K.js} +1 -1
- package/dist/component/{contacts-email-rac-BXxC1EQz.js → contacts-email-rac-DnAo-YRv.js} +1 -1
- package/dist/component/{contacts-first-name-rac-DDNYc6DW.js → contacts-first-name-rac-CXaZzVt1.js} +1 -1
- package/dist/component/{contacts-last-name-rac-C8kg5uC1.js → contacts-last-name-rac-DfpXadTk.js} +1 -1
- package/dist/component/{contacts-phone-rac-GBwlIMQi.js → contacts-phone-rac-CCwC37Ud.js} +1 -1
- package/dist/component/{contacts-position-rac-sI-eyBLH.js → contacts-position-rac-CvMNYTKL.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-DI3nlzX4.js → contacts-subscribe-rac-vL2jR6hR.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-CRq4rhb6.js → contacts-tax-id-rac-CrFhrlkk.js} +1 -1
- package/dist/component/{date-availability-17HTB6Bn.js → date-availability-5zvsa_GI.js} +1 -1
- package/dist/component/{date-input-field-rac-BLO1qQSi.js → date-input-field-rac-BQuCwFBz.js} +43 -43
- package/dist/component/{date-input-rac-Zryc6o9F.js → date-input-rac-DKzwySbG.js} +1 -1
- package/dist/component/{date-picker-field-rac-COGESH_j.js → date-picker-field-rac-D-B3bNeU.js} +35 -35
- package/dist/component/{date-picker-rac-BR5X3Gg4.js → date-picker-rac-DjYsBhgo.js} +1 -1
- package/dist/component/{date-time-input-field-rac-CKbGhDKq.js → date-time-input-field-rac-BECpkgB2.js} +30 -30
- package/dist/component/{date-time-input-rac-DnP-sVbv.js → date-time-input-rac-FbqGdzfB.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-O9bQHdjz.js → dext-checkbox-group-rac-BtSRkEFa.js} +2 -2
- package/dist/component/{dext-checkbox-rac-3Eqa1NNz.js → dext-checkbox-rac-BnC_NNyy.js} +1 -1
- package/dist/component/{dext-date-picker-rac-BYjvDil-.js → dext-date-picker-rac-okrwxNz9.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-BLX3xG9x.js → dext-date-time-input-rac-DHKRYBUe.js} +1 -1
- package/dist/component/{dext-dropdown-rac-BwpbF2-Z.js → dext-dropdown-rac-1T_Ufw_J.js} +1 -1
- package/dist/component/{dext-email-rac-DUNmxVKy.js → dext-email-rac-BY3bKE0q.js} +1 -1
- package/dist/component/{dext-number-input-rac-D2rZrzXe.js → dext-number-input-rac-CFnKXD1l.js} +1 -1
- package/dist/component/{dext-phone-rac-C9dvhFCl.js → dext-phone-rac-LT9InJXw.js} +1 -1
- package/dist/component/{dext-radio-group-rac-D8mUfv1Y.js → dext-radio-group-rac-BUebk1mz.js} +2 -2
- package/dist/component/{dext-rating-input-rac-BY8MRBDl.js → dext-rating-input-rac-Drk4nKuW.js} +1 -1
- package/dist/component/{dext-tags-rac-DBKnRkUI.js → dext-tags-rac-BcW2-hht.js} +2 -2
- package/dist/component/{dext-text-area-rac-BYVMZ7HH.js → dext-text-area-rac-ew2HEDVz.js} +1 -1
- package/dist/component/{dext-text-input-rac-B6Ga232R.js → dext-text-input-rac-BhhGEp-y.js} +1 -1
- package/dist/component/{dext-url-input-rac-Cgu1URth.js → dext-url-input-rac-DKPl-POV.js} +1 -1
- package/dist/component/{donation-rac-DL1TnDAO.js → donation-rac-B9w7zHLs.js} +50 -50
- package/dist/component/{dropdown-field-rac-KYozl4DF.js → dropdown-field-rac-CyIgQ8Wg.js} +3 -3
- package/dist/component/{dropdown-rac-DiqI7QHS.js → dropdown-rac-D4zhCab8.js} +1 -1
- package/dist/component/{ecom-address-rac-Cmb0daDG.js → ecom-address-rac-Cgc5vi9N.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-B7AuYQA2.js → ecom-subscription-checkbox-rac-Ci19HUzq.js} +2 -2
- package/dist/component/{email-input-field-rac-DocV1aB9.js → email-input-field-rac-DX-z3AgN.js} +29 -29
- package/dist/component/{events-repeater-rac-B0Qqfo8D.js → events-repeater-rac-XGxIXTW0.js} +29 -29
- package/dist/component/{events-rsvp-rac-fv3hIzAL.js → events-rsvp-rac-CMEcer8W.js} +3 -3
- package/dist/component/{field-error-headless-Dfvu9FuO.js → field-error-headless-fX6PeZaI.js} +1 -1
- package/dist/component/{field-label-headless-Cxyl3wGC.js → field-label-headless-CoLjciGG.js} +5 -5
- package/dist/component/{file-upload-rac-Je_--JfX.js → file-upload-rac-N6_i0ky0.js} +88 -88
- package/dist/component/{fixed-payment-rac-BnXYEIDe.js → fixed-payment-rac-DB6BtjkX.js} +7 -7
- package/dist/component/{form-a7SUDn8q.js → form-cgY_BDTU.js} +1444 -1426
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-D6gL7ZE_.js → header-field-rac-CwNoeHks.js} +2 -2
- package/dist/component/{header-rac-DEkEGPwy.js → header-rac-DefKb4Vd.js} +1 -1
- package/dist/component/{image-choice-rac-Br7ZpUIc.js → image-choice-rac-CZFYVSzP.js} +25 -25
- package/dist/component/{index-nfuicG4V.js → index-D1ybDmS5.js} +2 -2
- package/dist/component/{index-CCtGcc8K.js → index-DUVXPUGc.js} +4 -4
- package/dist/component/{isObjectLike-zLoHjg3a.js → isObjectLike-93vxyYs1.js} +1 -1
- package/dist/component/multiline-address-field-rac-BN_Tnrno.js +1738 -0
- package/dist/component/{multiline-address-rac-CyM0O2ZV.js → multiline-address-rac-CoF0BwJI.js} +1 -1
- package/dist/component/{number-input-field-rac-orHx_sCp.js → number-input-field-rac-BVdfzTwW.js} +21 -21
- package/dist/component/{number-input-rac-CF5v19rL.js → number-input-rac-D-A2ybtN.js} +1 -1
- package/dist/component/{password-rac-BSWihZvF.js → password-rac-CbUBNreW.js} +26 -26
- package/dist/component/{payment-input-rac-CeAz10YA.js → payment-input-rac-BXdDXgXp.js} +46 -46
- package/dist/component/{phone-input-field-rac-BefHQnSh.js → phone-input-field-rac-CjmpG7p9.js} +57 -57
- package/dist/component/{phone-rac-C5jSEw_g.js → phone-rac-D3g5Pi2p.js} +1 -1
- package/dist/component/{product-list-rac-C0UIu3qw.js → product-list-rac-gJvJaUnQ.js} +35 -35
- package/dist/component/{quiz-radio-group-rac-Bya6uEoi.js → quiz-radio-group-rac-YCKwAv5G.js} +1 -1
- package/dist/component/{radio-button-module-classes-YEfiQQtW.js → radio-button-module-classes-2nfcqSJp.js} +15 -15
- package/dist/component/{radio-group-field-rac-DZWxn-QY.js → radio-group-field-rac-BBYaCpeZ.js} +4 -4
- package/dist/component/{radio-group-rac-DsL2Ttyk.js → radio-group-rac-fYuYtO48.js} +1 -1
- package/dist/component/{rating-input-field-rac-BioYAy-_.js → rating-input-field-rac-sPYk1nWc.js} +20 -20
- package/dist/component/{rating-input-rac-DahZMbKa.js → rating-input-rac-CiWqxkPO.js} +1 -1
- package/dist/component/{rich-content-rac.module-pvsjrr7Y.js → rich-content-rac.module-BjcbV5CK.js} +5 -5
- package/dist/component/{rich-text-field-rac-H-mxitKA.js → rich-text-field-rac-DY0vRG7M.js} +4 -4
- package/dist/component/{rich-text-rac-CPfXGilA.js → rich-text-rac-BngE_MAC.js} +1 -1
- package/dist/component/{service-dropdown-rac-C2qfLOFr.js → service-dropdown-rac-Db53P8Fm.js} +13 -13
- package/dist/component/{services-multi-choice-rac-D7-sJi_t.js → services-multi-choice-rac-Cr791rTd.js} +9 -9
- package/dist/component/{signature-rac-DuQuR2U3.js → signature-rac-BCNYIwad.js} +41 -41
- package/dist/component/{submit-button-rac-DrUDtzCX.js → submit-button-rac-CyyEQGsz.js} +10 -10
- package/dist/component/{tags-field-rac-D8gyv5Kk.js → tags-field-rac-k3HHiR5C.js} +24 -24
- package/dist/component/{tags-rac-Be588VqA.js → tags-rac-nOXYrsHv.js} +1 -1
- package/dist/component/{text-area-field-rac-hezqhMgQ.js → text-area-field-rac-CwpxShM0.js} +22 -22
- package/dist/component/{text-area-rac-B_KUlOes.js → text-area-rac-CkKcWyW5.js} +1 -1
- package/dist/component/{text-input-field-rac-BWRz4111.js → text-input-field-rac-DvIwNwn3.js} +3 -3
- package/dist/component/{text-input-headless-BUNQFfZw.js → text-input-headless-vfGxjFpa.js} +9 -9
- package/dist/component/{text-input-rac-DdfHXZ8B.js → text-input-rac-DoVI2HNp.js} +1 -1
- package/dist/component/{time-input-rac-CUTavG2g.js → time-input-rac-DPbbdnl3.js} +16 -16
- package/dist/component/{url-input-field-rac-CG5yrtux.js → url-input-field-rac-CiZi4oVe.js} +20 -20
- package/dist/component/{url-input-rac-DMw4tPKk.js → url-input-rac-C-IvLpA8.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-CHW3T4PQ.js → use-dropdown-option-class-name-CMgoymWE.js} +2 -2
- package/dist/component/{use-dropdown-trigger-class-name-6UsjW0rS.js → use-dropdown-trigger-class-name-BH0PyTH_.js} +24 -24
- package/dist/component/{use-element-state-class-name-YRDhi6Zr.js → use-element-state-class-name-DiZjY9WE.js} +1 -1
- package/dist/component/{use-hoverable-input-class-name-arCOozPK.js → use-hoverable-input-class-name-QpNEvrdn.js} +2 -2
- package/dist/component/{use-is-forced-open-dropdown-NJIAuz_W.js → use-is-forced-open-dropdown-CHh9nGJz.js} +4 -4
- package/dist/component/{use-service-options-base-nhf-7Ope.js → use-service-options-base-BGB82e2d.js} +4 -4
- package/dist/component/use-text-input-class-name-_CjB7lhB.js +6 -0
- package/package.json +2 -2
- package/dist/component/multiline-address-field-rac-Bgfked1m.js +0 -1664
- package/dist/component/use-text-input-class-name-C9496S5f.js +0 -6
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { RicosViewer as
|
|
1
|
+
import { RicosViewer as Q } from "@wix/ricos/viewer";
|
|
2
2
|
import F from "classnames";
|
|
3
|
-
import t, { useRef as S, useMemo as I, useState as
|
|
4
|
-
import { CheckboxGroup as w, TextField as z, Input as B, CheckboxField as
|
|
5
|
-
import {
|
|
6
|
-
import { f, a as
|
|
7
|
-
import { E as
|
|
8
|
-
import { L as P } from "./field-label-headless-
|
|
3
|
+
import t, { useRef as S, useMemo as I, useState as X, useLayoutEffect as Y, useCallback as x } from "react";
|
|
4
|
+
import { CheckboxGroup as w, TextField as z, Input as B, CheckboxField as J, CheckboxButton as Z } from "react-aria-components";
|
|
5
|
+
import { bN as y, bK as M, bW as U, bY as T, bP as ee, X as te, am as oe, ax as ne, M as ae, I as se, ay as re } from "./form-cgY_BDTU.js";
|
|
6
|
+
import { f, a as W } from "./find-child-C60k4CxG.js";
|
|
7
|
+
import { E as k, D as H } from "./field-error-headless-fX6PeZaI.js";
|
|
8
|
+
import { L as P } from "./field-label-headless-CoLjciGG.js";
|
|
9
9
|
import { F as le } from "./fieldset-headless-CD3fds9J.js";
|
|
10
10
|
import { E as ie } from "./error-icon-hZxQ6DEy.js";
|
|
11
11
|
import { s as D } from "./field-rac.module-DcyJyi2B.js";
|
|
12
|
-
import { u as ce } from "./use-element-state-class-name-
|
|
13
|
-
import { u as ue } from "./use-text-input-class-name-
|
|
12
|
+
import { u as ce } from "./use-element-state-class-name-DiZjY9WE.js";
|
|
13
|
+
import { u as ue } from "./use-text-input-class-name-_CjB7lhB.js";
|
|
14
14
|
var de = /* @__PURE__ */ (function(e) {
|
|
15
15
|
return e[e.FREE_FLOW = 0] = "FREE_FLOW", e[e.ONE = 1] = "ONE", e[e.TWO = 2] = "TWO", e[e.THREE = 3] = "THREE", e;
|
|
16
16
|
})({});
|
|
@@ -26,11 +26,11 @@ const v = "Other", me = (e, o) => {
|
|
|
26
26
|
const { value: o, onChange: s, addOtherLabel: i, addOtherPlaceholder: r, otherInputCharacterLimit: l, disabled: u, readOnly: p, hasError: d } = y(), { t: h } = T(), n = i || h("add-other.default-other-option-label") || v, b = I(() => me(o || [], n), [
|
|
27
27
|
o,
|
|
28
28
|
n
|
|
29
|
-
]), [c, L] =
|
|
30
|
-
|
|
29
|
+
]), [c, L] = X(b), O = S(s);
|
|
30
|
+
Y(() => {
|
|
31
31
|
O.current = s;
|
|
32
32
|
});
|
|
33
|
-
const g =
|
|
33
|
+
const g = x((E) => {
|
|
34
34
|
L(E);
|
|
35
35
|
const C = (o || []).filter((m) => !m.startsWith(`${n}:`) && m !== n), _ = E ? `${n}: ${E}` : n;
|
|
36
36
|
O.current([
|
|
@@ -70,19 +70,19 @@ const v = "Other", me = (e, o) => {
|
|
|
70
70
|
E,
|
|
71
71
|
r,
|
|
72
72
|
i
|
|
73
|
-
]), _ =
|
|
74
|
-
const G = pe(n || []),
|
|
73
|
+
]), _ = x((m) => {
|
|
74
|
+
const G = pe(n || []), N = E.filter((K) => G.includes(K));
|
|
75
75
|
h(m ? [
|
|
76
|
-
...
|
|
76
|
+
...N,
|
|
77
77
|
r
|
|
78
|
-
] :
|
|
78
|
+
] : N);
|
|
79
79
|
}, [
|
|
80
80
|
r,
|
|
81
81
|
h,
|
|
82
82
|
n,
|
|
83
83
|
E
|
|
84
84
|
]);
|
|
85
|
-
return /* @__PURE__ */ t.createElement(
|
|
85
|
+
return /* @__PURE__ */ t.createElement(J, {
|
|
86
86
|
inputRef: O,
|
|
87
87
|
value: C,
|
|
88
88
|
onChange: l ? _ : void 0,
|
|
@@ -92,7 +92,7 @@ const v = "Other", me = (e, o) => {
|
|
|
92
92
|
}, /* @__PURE__ */ t.createElement(Z, {
|
|
93
93
|
className: o,
|
|
94
94
|
"data-hook": `tags-${l ? v : i}`
|
|
95
|
-
},
|
|
95
|
+
}, W(g, {
|
|
96
96
|
value: i,
|
|
97
97
|
label: r,
|
|
98
98
|
isOther: l,
|
|
@@ -119,7 +119,7 @@ const v = "Other", me = (e, o) => {
|
|
|
119
119
|
"data-columns": l
|
|
120
120
|
}, h.map((n, b) => {
|
|
121
121
|
const c = n.value ?? n.label;
|
|
122
|
-
return
|
|
122
|
+
return W(d, {
|
|
123
123
|
key: n.isOther ? v : c,
|
|
124
124
|
value: c,
|
|
125
125
|
label: n.label,
|
|
@@ -143,7 +143,7 @@ const v = "Other", me = (e, o) => {
|
|
|
143
143
|
U(O);
|
|
144
144
|
const g = I(() => s || [], [
|
|
145
145
|
s
|
|
146
|
-
]), E = f(e, P), C = f(e, q), _ = f(e, H), m = f(e,
|
|
146
|
+
]), E = f(e, P), C = f(e, q), _ = f(e, H), m = f(e, k);
|
|
147
147
|
return /* @__PURE__ */ t.createElement(r, {
|
|
148
148
|
fieldId: o,
|
|
149
149
|
renderLabel: () => E,
|
|
@@ -174,21 +174,21 @@ a.Control = q;
|
|
|
174
174
|
a.Options = A;
|
|
175
175
|
a.OtherInput = j;
|
|
176
176
|
a.Description = H;
|
|
177
|
-
a.Error =
|
|
177
|
+
a.Error = k;
|
|
178
178
|
const he = "_control_oshjt_1", Ee = "_options_oshjt_7", be = "_option_oshjt_7", Oe = "_optionHover_oshjt_76", fe = "_optionSelected_oshjt_76", R = {
|
|
179
179
|
control: he,
|
|
180
180
|
options: Ee,
|
|
181
181
|
option: be,
|
|
182
182
|
optionHover: Oe,
|
|
183
183
|
optionSelected: fe
|
|
184
|
-
}, Ie = ({ content: e, locale: o }) => /* @__PURE__ */ t.createElement(
|
|
184
|
+
}, Ie = ({ content: e, locale: o }) => /* @__PURE__ */ t.createElement(Q, {
|
|
185
185
|
content: e,
|
|
186
186
|
locale: o
|
|
187
187
|
}), Le = {
|
|
188
188
|
base: R.option,
|
|
189
189
|
selected: R.optionSelected,
|
|
190
190
|
hover: R.optionHover
|
|
191
|
-
},
|
|
191
|
+
}, xe = () => {
|
|
192
192
|
const e = ce({
|
|
193
193
|
globalClasses: re,
|
|
194
194
|
moduleClasses: Le
|
|
@@ -212,5 +212,5 @@ const he = "_control_oshjt_1", Ee = "_options_oshjt_7", be = "_option_oshjt_7",
|
|
|
212
212
|
}, Ie));
|
|
213
213
|
};
|
|
214
214
|
export {
|
|
215
|
-
|
|
215
|
+
xe as T
|
|
216
216
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { RicosViewer as N } from "@wix/ricos/viewer";
|
|
2
2
|
import o from "classnames";
|
|
3
|
-
import r, { useCallback as
|
|
4
|
-
import { TextField as
|
|
5
|
-
import {
|
|
3
|
+
import r, { useCallback as S, useRef as T } from "react";
|
|
4
|
+
import { TextField as y, TextArea as O } from "react-aria-components";
|
|
5
|
+
import { bN as p, bK as d, bP as x, bW as h, X as g, am as v, M, I as q } from "./form-cgY_BDTU.js";
|
|
6
6
|
import { f as i } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as B, E as
|
|
8
|
-
import { L as
|
|
7
|
+
import { D as B, E as P } from "./field-error-headless-fX6PeZaI.js";
|
|
8
|
+
import { L as V } from "./field-label-headless-CoLjciGG.js";
|
|
9
9
|
import { E as k } from "./error-icon-hZxQ6DEy.js";
|
|
10
10
|
import { s as c } from "./field-rac.module-DcyJyi2B.js";
|
|
11
|
-
import { u as
|
|
11
|
+
import { u as K } from "./use-text-input-class-name-_CjB7lhB.js";
|
|
12
12
|
const e = ({ children: t }) => {
|
|
13
|
-
const { id: a, value: m, onChange: n, disabled: u, required: s, readOnly: l, onBlur: E, onFocus: b, FieldLayout: I, hasError: f } = p(), { labelId: F } = d(), L =
|
|
13
|
+
const { id: a, value: m, onChange: n, disabled: u, required: s, readOnly: l, onBlur: E, onFocus: b, FieldLayout: I, hasError: f } = p(), { labelId: F } = d(), L = S((A) => {
|
|
14
14
|
n(A);
|
|
15
15
|
}, [
|
|
16
16
|
n
|
|
@@ -18,7 +18,7 @@ const e = ({ children: t }) => {
|
|
|
18
18
|
return /* @__PURE__ */ r.createElement(I, {
|
|
19
19
|
fieldId: a,
|
|
20
20
|
renderLabel: () => R,
|
|
21
|
-
renderInput: () => /* @__PURE__ */ r.createElement(
|
|
21
|
+
renderInput: () => /* @__PURE__ */ r.createElement(y, {
|
|
22
22
|
"aria-labelledby": F,
|
|
23
23
|
value: m ?? "",
|
|
24
24
|
onChange: L,
|
|
@@ -31,14 +31,14 @@ const e = ({ children: t }) => {
|
|
|
31
31
|
}, D),
|
|
32
32
|
renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, C, _)
|
|
33
33
|
});
|
|
34
|
-
},
|
|
35
|
-
const { inputId: a, ariaDescribedBy: m } = d(), { id: n, placeholder: u } = p(), s =
|
|
34
|
+
}, w = ({ className: t }) => {
|
|
35
|
+
const { inputId: a, ariaDescribedBy: m } = d(), { id: n, placeholder: u } = p(), s = T(null);
|
|
36
36
|
return x(() => {
|
|
37
37
|
var l;
|
|
38
38
|
(l = s.current) == null || l.focus({
|
|
39
39
|
preventScroll: !0
|
|
40
40
|
});
|
|
41
|
-
}, n), h(s), /* @__PURE__ */ r.createElement(
|
|
41
|
+
}, n), h(s), /* @__PURE__ */ r.createElement(O, {
|
|
42
42
|
ref: s,
|
|
43
43
|
id: a,
|
|
44
44
|
"aria-describedby": m,
|
|
@@ -46,28 +46,28 @@ const e = ({ children: t }) => {
|
|
|
46
46
|
className: t
|
|
47
47
|
});
|
|
48
48
|
};
|
|
49
|
-
e.Label =
|
|
50
|
-
e.Input =
|
|
49
|
+
e.Label = V;
|
|
50
|
+
e.Input = w;
|
|
51
51
|
e.Description = B;
|
|
52
|
-
e.Error =
|
|
53
|
-
const
|
|
54
|
-
input:
|
|
55
|
-
},
|
|
52
|
+
e.Error = P;
|
|
53
|
+
const Q = "_input_ug5v8_1", U = {
|
|
54
|
+
input: Q
|
|
55
|
+
}, W = ({ content: t, locale: a }) => /* @__PURE__ */ r.createElement(N, {
|
|
56
56
|
content: t,
|
|
57
57
|
locale: a
|
|
58
58
|
}), te = () => {
|
|
59
|
-
const t =
|
|
59
|
+
const t = K(U.input);
|
|
60
60
|
return /* @__PURE__ */ r.createElement(e, null, /* @__PURE__ */ r.createElement(e.Label, {
|
|
61
|
-
className: o(
|
|
61
|
+
className: o(g, c.label)
|
|
62
62
|
}, /* @__PURE__ */ r.createElement(e.Label.Required, {
|
|
63
|
-
className: o(
|
|
63
|
+
className: o(v, c.requiredMark)
|
|
64
64
|
})), /* @__PURE__ */ r.createElement(e.Input, {
|
|
65
65
|
className: t
|
|
66
66
|
}), /* @__PURE__ */ r.createElement(e.Error, {
|
|
67
|
-
className: o(
|
|
67
|
+
className: o(M, c.error)
|
|
68
68
|
}, /* @__PURE__ */ r.createElement(k, null), /* @__PURE__ */ r.createElement(e.Error.Text, null)), /* @__PURE__ */ r.createElement(e.Description, {
|
|
69
69
|
className: o(q, c.description)
|
|
70
|
-
},
|
|
70
|
+
}, W));
|
|
71
71
|
};
|
|
72
72
|
export {
|
|
73
73
|
te as T
|
package/dist/component/{text-input-field-rac-BWRz4111.js → text-input-field-rac-DvIwNwn3.js}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { RicosViewer as l } from "@wix/ricos/viewer";
|
|
2
2
|
import t from "classnames";
|
|
3
3
|
import e from "react";
|
|
4
|
-
import { T as r } from "./text-input-headless-
|
|
4
|
+
import { T as r } from "./text-input-headless-vfGxjFpa.js";
|
|
5
5
|
import { E as o } from "./error-icon-hZxQ6DEy.js";
|
|
6
6
|
import { s as a } from "./field-rac.module-DcyJyi2B.js";
|
|
7
|
-
import { X as n, am as c, M as E, I as i } from "./form-
|
|
8
|
-
import { u as p } from "./use-text-input-class-name-
|
|
7
|
+
import { X as n, am as c, M as E, I as i } from "./form-cgY_BDTU.js";
|
|
8
|
+
import { u as p } from "./use-text-input-class-name-_CjB7lhB.js";
|
|
9
9
|
const I = ({ content: s, locale: m }) => /* @__PURE__ */ e.createElement(l, {
|
|
10
10
|
content: s,
|
|
11
11
|
locale: m
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import n, { useRef as v } from "react";
|
|
2
2
|
import { TextField as C, Input as R } from "react-aria-components";
|
|
3
|
-
import {
|
|
3
|
+
import { bN as d, bK as p, bP as h, bW as T } from "./form-cgY_BDTU.js";
|
|
4
4
|
import { f as a } from "./find-child-C60k4CxG.js";
|
|
5
|
-
import { D as
|
|
6
|
-
import { L as
|
|
5
|
+
import { D as g, E as x } from "./field-error-headless-fX6PeZaI.js";
|
|
6
|
+
import { L as B } from "./field-label-headless-CoLjciGG.js";
|
|
7
7
|
const e = ({ children: r }) => {
|
|
8
8
|
const { id: s, value: l, onChange: i, disabled: u, readOnly: t, required: o, hasError: c, onBlur: m, onFocus: b, autoComplete: f, FieldLayout: E } = d(), { labelId: I } = p(), F = a(r, e.Label), y = a(r, e.Input), D = a(r, e.Description), L = a(r, e.Error);
|
|
9
9
|
return /* @__PURE__ */ n.createElement(E, {
|
|
@@ -23,14 +23,14 @@ const e = ({ children: r }) => {
|
|
|
23
23
|
}, y),
|
|
24
24
|
renderDescription: () => /* @__PURE__ */ n.createElement(n.Fragment, null, L, D)
|
|
25
25
|
});
|
|
26
|
-
},
|
|
26
|
+
}, O = ({ className: r }) => {
|
|
27
27
|
const { id: s, placeholder: l } = d(), { inputId: i, ariaDescribedBy: u } = p(), t = v(null);
|
|
28
28
|
return h(() => {
|
|
29
29
|
var o;
|
|
30
30
|
(o = t.current) == null || o.focus({
|
|
31
31
|
preventScroll: !0
|
|
32
32
|
});
|
|
33
|
-
}, s),
|
|
33
|
+
}, s), T(t), /* @__PURE__ */ n.createElement(R, {
|
|
34
34
|
ref: t,
|
|
35
35
|
id: i,
|
|
36
36
|
"aria-describedby": u,
|
|
@@ -38,10 +38,10 @@ const e = ({ children: r }) => {
|
|
|
38
38
|
placeholder: l
|
|
39
39
|
});
|
|
40
40
|
};
|
|
41
|
-
e.Label =
|
|
42
|
-
e.Input =
|
|
43
|
-
e.Description =
|
|
44
|
-
e.Error =
|
|
41
|
+
e.Label = B;
|
|
42
|
+
e.Input = O;
|
|
43
|
+
e.Description = g;
|
|
44
|
+
e.Error = x;
|
|
45
45
|
export {
|
|
46
46
|
e as T
|
|
47
47
|
};
|
|
@@ -3,21 +3,21 @@ import { RicosViewer as q } from "@wix/ricos/viewer";
|
|
|
3
3
|
import m from "classnames";
|
|
4
4
|
import { parseTime as B } from "@internationalized/date";
|
|
5
5
|
import { TimeField as k, DateInput as U, DateSegment as _, TimeFieldStateContext as w } from "react-aria-components";
|
|
6
|
-
import {
|
|
6
|
+
import { bN as p, bK as j, bY as T, bP as K, X as Q, am as X, M as Y, I as z } from "./form-cgY_BDTU.js";
|
|
7
7
|
import { f as u, a as F } from "./find-child-C60k4CxG.js";
|
|
8
|
-
import { D as
|
|
9
|
-
import { L as
|
|
8
|
+
import { D as G, E as J } from "./field-error-headless-fX6PeZaI.js";
|
|
9
|
+
import { L as W } from "./field-label-headless-CoLjciGG.js";
|
|
10
10
|
import { E as Z } from "./error-icon-hZxQ6DEy.js";
|
|
11
11
|
import { H as S } from "./custom-focus-class-_483Pkwp.js";
|
|
12
12
|
import { s as f } from "./field-rac.module-DcyJyi2B.js";
|
|
13
|
-
import { u as $ } from "./use-text-input-class-name-
|
|
13
|
+
import { u as $ } from "./use-text-input-class-name-_CjB7lhB.js";
|
|
14
14
|
const r = ({ children: t }) => {
|
|
15
|
-
const { id: n, value: s, onChange: a, disabled: i, readOnly: o, required: c, onBlur: l, onFocus: E, use24HourFormat: b, FieldLayout: C, hasError: I } = p(), { inputId: g, ariaDescribedBy: D, labelId: L } =
|
|
15
|
+
const { id: n, value: s, onChange: a, disabled: i, readOnly: o, required: c, onBlur: l, onFocus: E, use24HourFormat: b, FieldLayout: C, hasError: I } = p(), { inputId: g, ariaDescribedBy: D, labelId: L } = j(), R = V((M) => {
|
|
16
16
|
const H = ae(M);
|
|
17
17
|
a(H);
|
|
18
18
|
}, [
|
|
19
19
|
a
|
|
20
|
-
]), N = u(t, r.Label), y = u(t, r.Time), P = u(t, r.Description),
|
|
20
|
+
]), N = u(t, r.Label), y = u(t, r.Time), P = u(t, r.Description), A = u(t, r.Error), O = ne(s);
|
|
21
21
|
return /* @__PURE__ */ e.createElement(C, {
|
|
22
22
|
fieldId: n,
|
|
23
23
|
renderLabel: () => N,
|
|
@@ -25,7 +25,7 @@ const r = ({ children: t }) => {
|
|
|
25
25
|
"aria-labelledby": L,
|
|
26
26
|
id: g,
|
|
27
27
|
"aria-describedby": D,
|
|
28
|
-
value:
|
|
28
|
+
value: O,
|
|
29
29
|
onChange: R,
|
|
30
30
|
isDisabled: i,
|
|
31
31
|
isReadOnly: o,
|
|
@@ -35,7 +35,7 @@ const r = ({ children: t }) => {
|
|
|
35
35
|
onFocus: E,
|
|
36
36
|
hourCycle: b ? 24 : 12
|
|
37
37
|
}, y),
|
|
38
|
-
renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null,
|
|
38
|
+
renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, A, P)
|
|
39
39
|
});
|
|
40
40
|
}, d = ({ children: t, className: n }) => {
|
|
41
41
|
const { hasError: s, hidePlaceholder: a } = p(), i = u(t, d.Hour), o = u(t, d.Minute), c = u(t, d.Period);
|
|
@@ -67,7 +67,7 @@ const r = ({ children: t }) => {
|
|
|
67
67
|
});
|
|
68
68
|
}, ee = ({ className: t, ...n }) => {
|
|
69
69
|
const { id: s, hidePlaceholder: a } = p(), { segment: i } = n, { t: o } = T(), c = v(null);
|
|
70
|
-
|
|
70
|
+
K(() => {
|
|
71
71
|
var E;
|
|
72
72
|
(E = c.current) == null || E.focus({
|
|
73
73
|
preventScroll: !0
|
|
@@ -105,10 +105,10 @@ const r = ({ children: t }) => {
|
|
|
105
105
|
d.Hour = ee;
|
|
106
106
|
d.Minute = te;
|
|
107
107
|
d.Period = re;
|
|
108
|
-
r.Label =
|
|
108
|
+
r.Label = W;
|
|
109
109
|
r.Time = d;
|
|
110
|
-
r.Description =
|
|
111
|
-
r.Error =
|
|
110
|
+
r.Description = G;
|
|
111
|
+
r.Error = J;
|
|
112
112
|
function ne(t) {
|
|
113
113
|
if (!t)
|
|
114
114
|
return null;
|
|
@@ -139,9 +139,9 @@ const oe = "_time_5p151_1", le = "_hour_5p151_17", se = "_minute_5p151_18", ie =
|
|
|
139
139
|
}), me = () => {
|
|
140
140
|
const t = $(h.time);
|
|
141
141
|
return /* @__PURE__ */ e.createElement(r, null, /* @__PURE__ */ e.createElement(r.Label, {
|
|
142
|
-
className: m(
|
|
142
|
+
className: m(Q, f.label)
|
|
143
143
|
}, /* @__PURE__ */ e.createElement(r.Label.Required, {
|
|
144
|
-
className: m(
|
|
144
|
+
className: m(X, f.requiredMark)
|
|
145
145
|
})), /* @__PURE__ */ e.createElement(r.Time, {
|
|
146
146
|
className: t
|
|
147
147
|
}, /* @__PURE__ */ e.createElement(r.Time.Hour, {
|
|
@@ -151,9 +151,9 @@ const oe = "_time_5p151_1", le = "_hour_5p151_17", se = "_minute_5p151_18", ie =
|
|
|
151
151
|
}), /* @__PURE__ */ e.createElement(r.Time.Period, {
|
|
152
152
|
className: m(h.period, S)
|
|
153
153
|
})), /* @__PURE__ */ e.createElement(r.Error, {
|
|
154
|
-
className: m(
|
|
154
|
+
className: m(Y, f.error)
|
|
155
155
|
}, /* @__PURE__ */ e.createElement(Z, null), /* @__PURE__ */ e.createElement(r.Error.Text, null)), /* @__PURE__ */ e.createElement(r.Description, {
|
|
156
|
-
className: m(
|
|
156
|
+
className: m(z, f.description)
|
|
157
157
|
}, ce));
|
|
158
158
|
}, ge = () => /* @__PURE__ */ e.createElement(me, null);
|
|
159
159
|
export {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { RicosViewer as
|
|
1
|
+
import { RicosViewer as S } from "@wix/ricos/viewer";
|
|
2
2
|
import i from "classnames";
|
|
3
|
-
import r, { useCallback as
|
|
4
|
-
import { TextField as
|
|
5
|
-
import {
|
|
3
|
+
import r, { useCallback as h, useRef as y } from "react";
|
|
4
|
+
import { TextField as O, Input as A } from "react-aria-components";
|
|
5
|
+
import { bN as d, bK as E, bP as P, bW as v, X as B, am as M, M as T, I as g } from "./form-cgY_BDTU.js";
|
|
6
6
|
import { f as c } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as k, E as q } from "./field-error-headless-
|
|
8
|
-
import { L as x } from "./field-label-headless-
|
|
7
|
+
import { D as k, E as q } from "./field-error-headless-fX6PeZaI.js";
|
|
8
|
+
import { L as x } from "./field-label-headless-CoLjciGG.js";
|
|
9
9
|
import { u as U } from "./use-invoke-callback-UH73A_J3.js";
|
|
10
10
|
import { E as V } from "./error-icon-hZxQ6DEy.js";
|
|
11
11
|
import { s as u } from "./field-rac.module-DcyJyi2B.js";
|
|
12
|
-
import { u as
|
|
13
|
-
const
|
|
14
|
-
const { id: o, value: a, onChange: l, disabled: m, readOnly: s, required: n, hasError: I, onBlur: b, onFocus: f, FieldLayout: R } = d(), { labelId: F } = E(), p = U(b), L = c(t, e.Label), D = c(t, e.Input), C = c(t, e.Description), _ = c(t, e.Error),
|
|
15
|
-
l(
|
|
12
|
+
import { u as W } from "./use-text-input-class-name-_CjB7lhB.js";
|
|
13
|
+
const w = (t) => t ? `https://${String(t).replace(/^https?:\/\//, "")}` : "", e = ({ children: t }) => {
|
|
14
|
+
const { id: o, value: a, onChange: l, disabled: m, readOnly: s, required: n, hasError: I, onBlur: b, onFocus: f, FieldLayout: R } = d(), { labelId: F } = E(), p = U(b), L = c(t, e.Label), D = c(t, e.Input), C = c(t, e.Description), _ = c(t, e.Error), N = h(() => {
|
|
15
|
+
l(w(a)), p();
|
|
16
16
|
}, [
|
|
17
17
|
p,
|
|
18
18
|
l,
|
|
@@ -21,7 +21,7 @@ const W = (t) => t ? `https://${String(t).replace(/^https?:\/\//, "")}` : "", e
|
|
|
21
21
|
return /* @__PURE__ */ r.createElement(R, {
|
|
22
22
|
fieldId: o,
|
|
23
23
|
renderLabel: () => L,
|
|
24
|
-
renderInput: () => /* @__PURE__ */ r.createElement(
|
|
24
|
+
renderInput: () => /* @__PURE__ */ r.createElement(O, {
|
|
25
25
|
"aria-labelledby": F,
|
|
26
26
|
value: a ?? "",
|
|
27
27
|
onChange: l,
|
|
@@ -29,14 +29,14 @@ const W = (t) => t ? `https://${String(t).replace(/^https?:\/\//, "")}` : "", e
|
|
|
29
29
|
isReadOnly: s,
|
|
30
30
|
isRequired: n,
|
|
31
31
|
isInvalid: I,
|
|
32
|
-
onBlur:
|
|
32
|
+
onBlur: N,
|
|
33
33
|
onFocus: f
|
|
34
34
|
}, D),
|
|
35
35
|
renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, _, C)
|
|
36
36
|
});
|
|
37
|
-
},
|
|
38
|
-
const { id: o, placeholder: a } = d(), { inputId: l, ariaDescribedBy: m } = E(), s =
|
|
39
|
-
return
|
|
37
|
+
}, K = ({ className: t }) => {
|
|
38
|
+
const { id: o, placeholder: a } = d(), { inputId: l, ariaDescribedBy: m } = E(), s = y(null);
|
|
39
|
+
return P(() => {
|
|
40
40
|
var n;
|
|
41
41
|
(n = s.current) == null || n.focus({
|
|
42
42
|
preventScroll: !0
|
|
@@ -52,25 +52,25 @@ const W = (t) => t ? `https://${String(t).replace(/^https?:\/\//, "")}` : "", e
|
|
|
52
52
|
});
|
|
53
53
|
};
|
|
54
54
|
e.Label = x;
|
|
55
|
-
e.Input =
|
|
55
|
+
e.Input = K;
|
|
56
56
|
e.Description = k;
|
|
57
57
|
e.Error = q;
|
|
58
|
-
const
|
|
58
|
+
const $ = ({ content: t, locale: o }) => /* @__PURE__ */ r.createElement(S, {
|
|
59
59
|
content: t,
|
|
60
60
|
locale: o
|
|
61
61
|
}), oe = () => {
|
|
62
|
-
const t =
|
|
62
|
+
const t = W();
|
|
63
63
|
return /* @__PURE__ */ r.createElement(e, null, /* @__PURE__ */ r.createElement(e.Label, {
|
|
64
64
|
className: i(B, u.label)
|
|
65
65
|
}, /* @__PURE__ */ r.createElement(e.Label.Required, {
|
|
66
|
-
className: i(
|
|
66
|
+
className: i(M, u.requiredMark)
|
|
67
67
|
})), /* @__PURE__ */ r.createElement(e.Input, {
|
|
68
68
|
className: t
|
|
69
69
|
}), /* @__PURE__ */ r.createElement(e.Error, {
|
|
70
70
|
className: i(T, u.error)
|
|
71
71
|
}, /* @__PURE__ */ r.createElement(V, null), /* @__PURE__ */ r.createElement(e.Error.Text, null)), /* @__PURE__ */ r.createElement(e.Description, {
|
|
72
72
|
className: i(g, u.description)
|
|
73
|
-
},
|
|
73
|
+
}, $));
|
|
74
74
|
};
|
|
75
75
|
export {
|
|
76
76
|
oe as U
|
|
@@ -2,8 +2,8 @@ import d, { useContext as _, useRef as L, useState as m, Children as N, useLayou
|
|
|
2
2
|
import { CollectionRendererContext as g, DefaultCollectionRenderer as E, ListBox as M } from "react-aria-components";
|
|
3
3
|
import P from "classnames";
|
|
4
4
|
import { s as h } from "./field-rac.module-DcyJyi2B.js";
|
|
5
|
-
import { K as T } from "./form-
|
|
6
|
-
import { u as H } from "./use-element-state-class-name-
|
|
5
|
+
import { K as T } from "./form-cgY_BDTU.js";
|
|
6
|
+
import { u as H } from "./use-element-state-class-name-DiZjY9WE.js";
|
|
7
7
|
const R = 1 / 0, I = {
|
|
8
8
|
position: "absolute",
|
|
9
9
|
width: 0,
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import e, { useState as F, useCallback as v, useRef as
|
|
1
|
+
import e, { useState as F, useCallback as v, useRef as M } from "react";
|
|
2
2
|
import { UNSAFE_PortalProvider as $ } from "react-aria";
|
|
3
|
-
import { VisuallyHidden as k, Select as G, SelectValue as
|
|
4
|
-
import {
|
|
3
|
+
import { VisuallyHidden as k, Select as G, SelectValue as Y, ListBoxItem as K } from "react-aria-components";
|
|
4
|
+
import { bN as b, bK as D, bY as U, bP as W, L as j } from "./form-cgY_BDTU.js";
|
|
5
5
|
import { f as d, a as L } from "./find-child-C60k4CxG.js";
|
|
6
|
-
import { D as
|
|
7
|
-
import { L as
|
|
8
|
-
import { E as
|
|
9
|
-
import { b as te } from "./use-is-forced-open-dropdown-
|
|
10
|
-
import { V as ne } from "./use-dropdown-option-class-name-
|
|
11
|
-
import { u as re } from "./use-hoverable-input-class-name-
|
|
6
|
+
import { D as z, E as J } from "./field-error-headless-fX6PeZaI.js";
|
|
7
|
+
import { L as Q } from "./field-label-headless-CoLjciGG.js";
|
|
8
|
+
import { E as X, S as Z, N as ee } from "./non-modal-popover-D-u13tmp.js";
|
|
9
|
+
import { b as te } from "./use-is-forced-open-dropdown-CHh9nGJz.js";
|
|
10
|
+
import { V as ne } from "./use-dropdown-option-class-name-CMgoymWE.js";
|
|
11
|
+
import { u as re } from "./use-hoverable-input-class-name-QpNEvrdn.js";
|
|
12
12
|
const r = ({ children: t }) => {
|
|
13
|
-
const { id: l, value: a, defaultValue: s, options: u = [], readOnly: o, onChange: n, placeholder: m, disabled: i, required: p, onBlur: C, onFocus: I, FieldLayout: y, hasError:
|
|
13
|
+
const { id: l, value: a, defaultValue: s, options: u = [], readOnly: o, onChange: n, placeholder: m, disabled: i, required: p, onBlur: C, onFocus: I, FieldLayout: y, hasError: N } = b(), [P, T] = F(!1), E = te(l), [R, h] = F(null), S = a && u.some((c) => (c.value ?? c.label) === a) ? a : s || null, { labelId: f } = D(), { t: V } = U(), O = `${f}-required`, B = v((c) => {
|
|
14
14
|
o || n(typeof c == "string" ? c : null);
|
|
15
15
|
}, [
|
|
16
16
|
n,
|
|
17
17
|
o
|
|
18
|
-
]), _ = v((c) =>
|
|
18
|
+
]), _ = v((c) => T(c && !i && !o), [
|
|
19
19
|
i,
|
|
20
20
|
o
|
|
21
|
-
]), q = d(t, r.Label), x = d(t, r.Trigger), w = d(t, r.Options),
|
|
21
|
+
]), q = d(t, r.Label), x = d(t, r.Trigger), w = d(t, r.Options), A = d(t, r.Description), H = d(t, r.Error);
|
|
22
22
|
return /* @__PURE__ */ e.createElement(y, {
|
|
23
23
|
fieldId: l,
|
|
24
24
|
renderLabel: () => q,
|
|
@@ -34,23 +34,23 @@ const r = ({ children: t }) => {
|
|
|
34
34
|
}, /* @__PURE__ */ e.createElement(G, {
|
|
35
35
|
"aria-labelledby": p ? `${f} ${O}` : f,
|
|
36
36
|
value: S,
|
|
37
|
-
isOpen: E ||
|
|
37
|
+
isOpen: E || P && !i && !o,
|
|
38
38
|
onOpenChange: E ? void 0 : _,
|
|
39
39
|
onChange: B,
|
|
40
40
|
isDisabled: i,
|
|
41
|
-
isInvalid:
|
|
41
|
+
isInvalid: N,
|
|
42
42
|
isRequired: p,
|
|
43
|
-
placeholder: m ||
|
|
43
|
+
placeholder: m || X,
|
|
44
44
|
onBlur: C,
|
|
45
45
|
onFocus: I
|
|
46
46
|
}, x, L(w, {
|
|
47
47
|
isForcedOpen: E
|
|
48
48
|
})))),
|
|
49
|
-
renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null,
|
|
49
|
+
renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, H, A)
|
|
50
50
|
});
|
|
51
51
|
}, ae = ({ children: t, className: l }) => {
|
|
52
|
-
const { inputId: a, ariaDescribedBy: s } = D(), { id: u, hasError: o, isLoading: n } = b(), m =
|
|
53
|
-
return
|
|
52
|
+
const { inputId: a, ariaDescribedBy: s } = D(), { id: u, hasError: o, isLoading: n } = b(), m = M(null);
|
|
53
|
+
return W(() => {
|
|
54
54
|
var i;
|
|
55
55
|
(i = m.current) == null || i.focus({
|
|
56
56
|
preventScroll: !0
|
|
@@ -62,7 +62,7 @@ const r = ({ children: t }) => {
|
|
|
62
62
|
className: l,
|
|
63
63
|
"data-invalid": o || void 0,
|
|
64
64
|
"data-loading": n || void 0
|
|
65
|
-
}, /* @__PURE__ */ e.createElement(
|
|
65
|
+
}, /* @__PURE__ */ e.createElement(Y, null), t);
|
|
66
66
|
}, g = ({ children: t, className: l, ...a }) => {
|
|
67
67
|
const { isForcedOpen: s } = a, { options: u = [] } = b(), o = d(t, g.Option);
|
|
68
68
|
return /* @__PURE__ */ e.createElement(ee, {
|
|
@@ -79,19 +79,19 @@ const r = ({ children: t }) => {
|
|
|
79
79
|
}))));
|
|
80
80
|
}, se = ({ className: t, ...l }) => {
|
|
81
81
|
const { value: a, label: s } = l;
|
|
82
|
-
return /* @__PURE__ */ e.createElement(
|
|
82
|
+
return /* @__PURE__ */ e.createElement(K, {
|
|
83
83
|
className: t,
|
|
84
84
|
id: a,
|
|
85
85
|
textValue: s
|
|
86
86
|
}, s);
|
|
87
87
|
};
|
|
88
88
|
g.Option = se;
|
|
89
|
-
r.Label =
|
|
89
|
+
r.Label = Q;
|
|
90
90
|
r.Trigger = ae;
|
|
91
91
|
r.Options = g;
|
|
92
|
-
r.Description =
|
|
93
|
-
r.Error =
|
|
94
|
-
const ge = (...t) => re(
|
|
92
|
+
r.Description = z;
|
|
93
|
+
r.Error = J;
|
|
94
|
+
const ge = (...t) => re(j, t);
|
|
95
95
|
export {
|
|
96
96
|
r as D,
|
|
97
97
|
ge as u
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import i from "classnames";
|
|
2
|
-
import {
|
|
2
|
+
import { bG as s, bc as v } from "./form-cgY_BDTU.js";
|
|
3
3
|
const x = ({ globalClasses: e, moduleClasses: r }) => {
|
|
4
4
|
var d;
|
|
5
5
|
const c = ((d = s(...v(e))) == null ? void 0 : d.split(/\s+/)) ?? [], o = [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { bN as n } from "./form-cgY_BDTU.js";
|
|
2
2
|
import { s as e } from "./field-rac.module-DcyJyi2B.js";
|
|
3
|
-
import { u } from "./use-element-state-class-name-
|
|
3
|
+
import { u } from "./use-element-state-class-name-DiZjY9WE.js";
|
|
4
4
|
const b = (s, a) => {
|
|
5
5
|
const { disabled: t, readOnly: o } = n(), r = u({
|
|
6
6
|
globalClasses: s,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useContext as u, useMemo as a } from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { bH as c, aR as p, bF as E, F as o } from "./form-cgY_BDTU.js";
|
|
3
3
|
const D = [
|
|
4
4
|
o.DROPDOWN,
|
|
5
5
|
o.DEXT_DROPDOWN,
|
|
@@ -27,9 +27,9 @@ const D = [
|
|
|
27
27
|
}, _ = ({ properties: e }) => {
|
|
28
28
|
var n, t;
|
|
29
29
|
return ((t = (n = e.fieldSettings) == null ? void 0 : n.country) == null ? void 0 : t.show) !== !1;
|
|
30
|
-
}, S = (e, n) => T.includes(e.fieldType) && !n && P(e), A = (e) => D.includes(e.fieldType), C = (e) => l.includes(e.fieldType), N = (e) => O.includes(e.fieldType) && _(e),
|
|
30
|
+
}, S = (e, n) => T.includes(e.fieldType) && !n && P(e), A = (e) => D.includes(e.fieldType), C = (e) => l.includes(e.fieldType), N = (e) => O.includes(e.fieldType) && _(e), F = (e) => I.includes(e.fieldType), h = ({ properties: e }) => !e.disabled && !e.readOnly, i = (e) => {
|
|
31
31
|
const n = u(p), { isMobile: t = !1 } = E();
|
|
32
|
-
return a(() => !n || n.parentId ? [] : n.fields.filter((s) => e(s, t) &&
|
|
32
|
+
return a(() => !n || n.parentId ? [] : n.fields.filter((s) => e(s, t) && h(s)).map((s) => s.id), [
|
|
33
33
|
n,
|
|
34
34
|
t,
|
|
35
35
|
e
|
|
@@ -52,7 +52,7 @@ const D = [
|
|
|
52
52
|
return n && t.includes(e);
|
|
53
53
|
}, L = (e) => {
|
|
54
54
|
var s;
|
|
55
|
-
const n = ((s = c().datePicker) == null ? void 0 : s.open) === !0, t = i(
|
|
55
|
+
const n = ((s = c().datePicker) == null ? void 0 : s.open) === !0, t = i(F);
|
|
56
56
|
return n && t.includes(e);
|
|
57
57
|
};
|
|
58
58
|
export {
|