@wix/form-elements 1.121.0 → 1.122.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-BmwzUTfZ.js → appointment-rac-Cj90bm7v.js} +4 -4
- package/dist/component/{bookings-address-rac-CDpBaBGi.js → bookings-address-rac-ta3UnLl8.js} +1 -1
- package/dist/component/{bookings-email-rac-8AonBAEP.js → bookings-email-rac-Ch2W4ucr.js} +1 -1
- package/dist/component/{bookings-first-name-rac-BAF3OLyL.js → bookings-first-name-rac-CvBNN0qW.js} +1 -1
- package/dist/component/{bookings-header-rac-DIXxOHe1.js → bookings-header-rac-BGn5xB-k.js} +1 -1
- package/dist/component/{bookings-last-name-rac-Cm-58BWq.js → bookings-last-name-rac-Dlu0RgZ0.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-DvaiFVqg.js → bookings-login-bar-rac-1htwH3kv.js} +1 -1
- package/dist/component/{bookings-phone-rac-znrjfRwm.js → bookings-phone-rac-U75qHO4B.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-DFPeWcrH.js → bookings-rich-text-rac-_j66QPCk.js} +1 -1
- package/dist/component/{checkbox-field-rac-COvxqyF7.js → checkbox-field-rac-CjQeC7-Y.js} +4 -4
- package/dist/component/{checkbox-group-field-headless-DT1HX61N.js → checkbox-group-field-headless-BLZlefmT.js} +3 -3
- package/dist/component/{checkbox-group-field-rac-Db1w6Vzm.js → checkbox-group-field-rac-s_9nrnok.js} +4 -4
- package/dist/component/{checkbox-group-rac-BCgFQJ4P.js → checkbox-group-rac-DZgOprql.js} +1 -1
- package/dist/component/{checkbox-rac-C1dKq2AT.js → checkbox-rac-H0jZt4pG.js} +1 -1
- package/dist/component/{contacts-address-rac-BoZ2LExb.js → contacts-address-rac-QMPNicwV.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-CX-oJkwP.js → contacts-birthdate-rac-BubQqfVp.js} +1 -1
- package/dist/component/{contacts-company-rac-ByY9oaOX.js → contacts-company-rac-fVQn5dPH.js} +1 -1
- package/dist/component/{contacts-email-rac-DBnTEm82.js → contacts-email-rac-sJqycgjN.js} +1 -1
- package/dist/component/{contacts-first-name-rac-Jn-ubMoS.js → contacts-first-name-rac-DuHDHR2w.js} +1 -1
- package/dist/component/{contacts-last-name-rac-Wea7_JU-.js → contacts-last-name-rac-DV2g2QGF.js} +1 -1
- package/dist/component/{contacts-phone-rac-POYGTwBr.js → contacts-phone-rac-e9o55Al-.js} +1 -1
- package/dist/component/{contacts-position-rac-DjDHNTfL.js → contacts-position-rac-Z6vDVuT7.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-C7vOLrLV.js → contacts-subscribe-rac-GiiBZhQ7.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-C-CVis0b.js → contacts-tax-id-rac-KFIbfE1X.js} +1 -1
- package/dist/component/{date-availability-B3unFx4z.js → date-availability-BloJXrmD.js} +1 -1
- package/dist/component/date-input-field-rac-MT_m-Z3G.js +290 -0
- package/dist/component/{date-input-rac-BW_WuabB.js → date-input-rac-C2WNFEp-.js} +1 -1
- package/dist/component/{date-picker-field-rac-DgBfvDRc.js → date-picker-field-rac-C9ewyabf.js} +117 -114
- package/dist/component/{date-picker-rac-B2v-E9tZ.js → date-picker-rac-BiDt00zO.js} +1 -1
- package/dist/component/{date-time-input-field-rac-DNxauQLv.js → date-time-input-field-rac-D1GNwPmZ.js} +111 -111
- package/dist/component/{date-time-input-rac-DZMQuMlD.js → date-time-input-rac-VMTzuAzt.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-B0u3i1v1.js → dext-checkbox-group-rac-CUG-FJj1.js} +2 -2
- package/dist/component/{dext-checkbox-rac-BngAFLbm.js → dext-checkbox-rac-DUC-rpQy.js} +1 -1
- package/dist/component/{dext-date-picker-rac-CyPtZQQp.js → dext-date-picker-rac-Bp1_5ZRF.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-DBm_ZVMr.js → dext-date-time-input-rac-D7BBsF1U.js} +1 -1
- package/dist/component/{dext-dropdown-rac-DBDOigJS.js → dext-dropdown-rac-GmP2v4Va.js} +1 -1
- package/dist/component/{dext-email-rac-Cj-eerfr.js → dext-email-rac-Dfu8MJjD.js} +1 -1
- package/dist/component/{dext-number-input-rac-WdUIM6bV.js → dext-number-input-rac-C8ejJdHk.js} +1 -1
- package/dist/component/{dext-phone-rac-CH-UDDKr.js → dext-phone-rac-iaVcaxNr.js} +1 -1
- package/dist/component/{dext-radio-group-rac-umexCSNY.js → dext-radio-group-rac-yOH9UuWW.js} +2 -2
- package/dist/component/{dext-rating-input-rac-ukMPDLxU.js → dext-rating-input-rac-d_PyzTCP.js} +1 -1
- package/dist/component/{dext-tags-rac-BE8aqyRm.js → dext-tags-rac-CjH32M87.js} +2 -2
- package/dist/component/{dext-text-area-rac-GtNDPetb.js → dext-text-area-rac-BLcw2KMH.js} +1 -1
- package/dist/component/{dext-text-input-rac-DQhaKaoe.js → dext-text-input-rac-2SLBKsBY.js} +1 -1
- package/dist/component/{dext-url-input-rac-DogsntOO.js → dext-url-input-rac-BIh4KJw3.js} +1 -1
- package/dist/component/{donation-rac-C1Se3wmU.js → donation-rac-D1cY7dDX.js} +5 -5
- package/dist/component/{dropdown-field-headless-5vi45azS.js → dropdown-field-headless-DgpZtlSI.js} +5 -5
- package/dist/component/{dropdown-field-rac-B0PeCuG6.js → dropdown-field-rac-CUNtROoj.js} +18 -17
- package/dist/component/{dropdown-rac--ZgcFbpH.js → dropdown-rac-BdCYUN39.js} +1 -1
- package/dist/component/{ecom-address-rac-C1p-fN1j.js → ecom-address-rac-CRcfdrJ1.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-uplYmDWZ.js → ecom-subscription-checkbox-rac-CgePHF0U.js} +2 -2
- package/dist/component/{email-input-field-rac-C6nqydVv.js → email-input-field-rac-DvWj_fAr.js} +3 -3
- package/dist/component/{events-repeater-rac-CqKFo75H.js → events-repeater-rac-Cfth4URI.js} +4 -4
- package/dist/component/{events-rsvp-rac-BBQwW-Jk.js → events-rsvp-rac-PmNHKbSw.js} +3 -3
- package/dist/component/{field-error-headless-COObBNJG.js → field-error-headless-B8MijSrk.js} +1 -1
- package/dist/component/{field-label-headless-DhXceghb.js → field-label-headless-D3FPZC-x.js} +1 -1
- package/dist/component/{file-upload-rac-B5CnpgIo.js → file-upload-rac-BNqkSQ2b.js} +4 -4
- package/dist/component/{fixed-payment-rac-B8yKRpQV.js → fixed-payment-rac-CtNOKzeC.js} +3 -3
- package/dist/component/{form-CimhBiBc.js → form-AphBF-mQ.js} +691 -671
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-BHgFF-LG.js → header-field-rac-cJ2ZFy67.js} +2 -2
- package/dist/component/{header-rac-DJttTbow.js → header-rac-Dd7yRNC0.js} +1 -1
- package/dist/component/{image-choice-rac-C-qj1WBS.js → image-choice-rac-2Z_7AfHu.js} +4 -4
- package/dist/component/{index-Qe91Dgi2.js → index-A4jMKGCs.js} +2 -2
- package/dist/component/{index-9nfSsqJo.js → index-ERGpdqrG.js} +4 -4
- package/dist/component/{isObjectLike-VICRth8V.js → isObjectLike-wpJkrV5k.js} +1 -1
- package/dist/component/{multiline-address-field-rac-DMg6V-0L.js → multiline-address-field-rac-CGqF3dfq.js} +369 -369
- package/dist/component/{multiline-address-rac-DpvB5bX9.js → multiline-address-rac-Dy8_4emN.js} +1 -1
- package/dist/component/{number-input-field-rac-DQERdWaA.js → number-input-field-rac-BaTODjcx.js} +4 -4
- package/dist/component/{number-input-rac-DY9uyE-k.js → number-input-rac-CVpDhFz5.js} +1 -1
- package/dist/component/{password-rac-cSWH1LPy.js → password-rac-BNam3XdN.js} +4 -4
- package/dist/component/{payment-input-rac-BiUNnsQx.js → payment-input-rac-Czqho0fu.js} +4 -4
- package/dist/component/phone-input-field-rac-BM2SoA5b.js +507 -0
- package/dist/component/{phone-rac-CFeNcp2U.js → phone-rac-BuC_Yxb2.js} +1 -1
- package/dist/component/{product-list-rac-DzhnEmL_.js → product-list-rac-gfZUDEoh.js} +4 -4
- package/dist/component/{quiz-radio-group-rac-BpsPgebu.js → quiz-radio-group-rac-DswfVeX4.js} +1 -1
- package/dist/component/{radio-button-module-classes-NBKHsJH7.js → radio-button-module-classes-DmWrhFOe.js} +3 -3
- package/dist/component/{radio-group-field-rac-C2oTt1mT.js → radio-group-field-rac-CE67QNOZ.js} +4 -4
- package/dist/component/{radio-group-rac-oINHZ5yY.js → radio-group-rac-hMr6DTvG.js} +1 -1
- package/dist/component/{rating-input-field-rac-fnv2RdUA.js → rating-input-field-rac-bDVUjGJa.js} +4 -4
- package/dist/component/{rating-input-rac-BFofFzSX.js → rating-input-rac-ZNdJ7gjD.js} +1 -1
- package/dist/component/{rich-content-rac.module-BplXvCt6.js → rich-content-rac.module-CUYcnq1k.js} +1 -1
- package/dist/component/{rich-text-field-rac-Csi4_gCV.js → rich-text-field-rac-DjnSs-6W.js} +2 -2
- package/dist/component/{rich-text-rac-Btu1y3LR.js → rich-text-rac-BIZ9Yyb_.js} +1 -1
- package/dist/component/service-dropdown-rac-6cm9orLJ.js +146 -0
- package/dist/component/{services-multi-choice-rac-B2rAg7VN.js → services-multi-choice-rac-DkojlNhZ.js} +5 -5
- package/dist/component/{signature-rac-tznFgZ4j.js → signature-rac-BfDoEvbo.js} +3 -3
- package/dist/component/submit-button-rac-BDEQy_l_.js +172 -0
- package/dist/component/{tags-field-rac-DFm9o85s.js → tags-field-rac-DvmQ9U0Y.js} +5 -5
- package/dist/component/{tags-rac-CJFccYp5.js → tags-rac-DxkhHwfm.js} +1 -1
- package/dist/component/{text-area-field-rac-C4UEZOjz.js → text-area-field-rac-DngdDcia.js} +4 -4
- package/dist/component/{text-area-rac-Dhsq1l8f.js → text-area-rac-CXm7TYZV.js} +1 -1
- package/dist/component/{text-input-field-rac-DiW0Sqj_.js → text-input-field-rac-DyDgs_io.js} +3 -3
- package/dist/component/{text-input-headless-u1_aFnZ1.js → text-input-headless-C_feZwcp.js} +3 -3
- package/dist/component/{text-input-rac-COy-c4N_.js → text-input-rac-C5UxE1Zt.js} +1 -1
- package/dist/component/{time-input-rac-DipZQTZN.js → time-input-rac-cBIuRiEr.js} +4 -4
- package/dist/component/{url-input-field-rac-DhBCGvKd.js → url-input-field-rac-BUO9FUv6.js} +4 -4
- package/dist/component/{url-input-rac-kw4gCDbc.js → url-input-rac-D7Z-AQaq.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-Bes6rpX4.js → use-dropdown-option-class-name-Bm1SOTi8.js} +2 -2
- package/dist/component/use-dropdown-trigger-class-name-Dcy1VIqo.js +43 -0
- package/dist/component/{use-element-state-class-name-_GWfwpEf.js → use-element-state-class-name-B3vhm52Z.js} +1 -1
- package/dist/component/use-hoverable-input-class-name-nSoEwyiu.js +23 -0
- package/dist/component/{use-service-options-base-4yrjmSWU.js → use-service-options-base-Drse9uff.js} +1 -1
- package/dist/component/use-text-input-class-name-CZWGRiSQ.js +6 -0
- package/package.json +2 -2
- package/dist/component/date-input-field-rac-BW0c1-Kl.js +0 -290
- package/dist/component/phone-input-field-rac-CtPGbnw_.js +0 -504
- package/dist/component/service-dropdown-rac-CzZW7Bp1.js +0 -145
- package/dist/component/submit-button-rac-DnHWbtTC.js +0 -141
- package/dist/component/use-is-forced-open-dropdown-RE1Ml2A3.js +0 -41
- package/dist/component/use-text-input-class-name-uMLXv54u.js +0 -23
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { RicosViewer as se } from "@wix/ricos/viewer";
|
|
2
|
-
import
|
|
3
|
-
import t, { useMemo as
|
|
2
|
+
import h from "classnames";
|
|
3
|
+
import t, { useMemo as O, useState as q, useCallback as H, useRef as U, useContext as oe } from "react";
|
|
4
4
|
import { parseTime as le } from "@internationalized/date";
|
|
5
5
|
import { UNSAFE_PortalProvider as ie } from "react-aria";
|
|
6
|
-
import { ListBoxItem as ce, Select as me, TextField as Q, TimeField as de, SelectValue as ue, Input as
|
|
7
|
-
import { b9 as
|
|
6
|
+
import { ListBoxItem as ce, Select as me, TextField as Q, TimeField as de, SelectValue as ue, Input as X, DateInput as pe, DateSegment as x, TimeFieldStateContext as Ee } from "react-aria-components";
|
|
7
|
+
import { b9 as f, b6 as J, b1 as z, aG as W, aT as Z, au as d, bj as C, aX as j, aI as he, aB as fe, a_ as be, aC as K, bb as G, I as R, U as ge, K as Ie, v as Ne, p as De } from "./form-AphBF-mQ.js";
|
|
8
8
|
import { f as u, a as P } from "./find-child-C60k4CxG.js";
|
|
9
|
-
import { g as
|
|
10
|
-
import { D as
|
|
11
|
-
import { L as
|
|
12
|
-
import { F as
|
|
13
|
-
import { N as
|
|
14
|
-
import { u as Me } from "./use-
|
|
15
|
-
import { V as Se, u as Re } from "./use-dropdown-option-class-name-
|
|
9
|
+
import { g as _e } from "./helpers-HmkkXrh2.js";
|
|
10
|
+
import { D as ye, E as Te } from "./field-error-headless-B8MijSrk.js";
|
|
11
|
+
import { L as Oe } from "./field-label-headless-D3FPZC-x.js";
|
|
12
|
+
import { F as Ce } from "./fieldset-headless-CD3fds9J.js";
|
|
13
|
+
import { N as Fe, S as Le } from "./non-modal-popover-DtIMXHbe.js";
|
|
14
|
+
import { a as Pe, u as Me } from "./use-dropdown-trigger-class-name-Dcy1VIqo.js";
|
|
15
|
+
import { V as Se, u as Re } from "./use-dropdown-option-class-name-Bm1SOTi8.js";
|
|
16
16
|
import { C as Ae } from "./chevron-down-icon-CcpVm6B-.js";
|
|
17
17
|
import { E as Ve } from "./error-icon-hZxQ6DEy.js";
|
|
18
|
-
import { H } from "./custom-focus-class-_483Pkwp.js";
|
|
19
|
-
import { s as
|
|
20
|
-
import { u as k } from "./use-text-input-class-name-
|
|
18
|
+
import { H as w } from "./custom-focus-class-_483Pkwp.js";
|
|
19
|
+
import { s as g } from "./field-rac.module-B4l_0KRU.js";
|
|
20
|
+
import { u as k } from "./use-text-input-class-name-CZWGRiSQ.js";
|
|
21
21
|
const l = ({ children: e, className: a }) => {
|
|
22
|
-
const { id: n, required: s, onBlur: o, onFocus: r, FieldLayout: i } =
|
|
22
|
+
const { id: n, required: s, onBlur: o, onFocus: r, FieldLayout: i } = f(), { inputId: m, labelId: c, ariaDescribedBy: b } = J(), { regionalFormat: p } = z(), _ = O(() => W(p).filter(Z).map((S) => S.toUpperCase()), [
|
|
23
23
|
p
|
|
24
|
-
]), M = u(e, l.Label), v = u(e, l.Description),
|
|
24
|
+
]), M = u(e, l.Label), v = u(e, l.Description), N = u(e, l.Error), D = {
|
|
25
25
|
[d.MONTH]: u(e, l.Month),
|
|
26
26
|
[d.DAY]: u(e, l.Day),
|
|
27
27
|
[d.YEAR]: u(e, l.Year)
|
|
@@ -31,28 +31,28 @@ const l = ({ children: e, className: a }) => {
|
|
|
31
31
|
renderLabel: () => P(M, {
|
|
32
32
|
as: "div"
|
|
33
33
|
}),
|
|
34
|
-
renderInput: () => /* @__PURE__ */ t.createElement(
|
|
34
|
+
renderInput: () => /* @__PURE__ */ t.createElement(Ce, {
|
|
35
35
|
id: m,
|
|
36
36
|
ariaLabelledBy: c,
|
|
37
|
-
ariaDescribedBy:
|
|
37
|
+
ariaDescribedBy: b,
|
|
38
38
|
required: s,
|
|
39
39
|
onBlur: o,
|
|
40
40
|
onFocus: r,
|
|
41
41
|
className: a
|
|
42
|
-
}, _[
|
|
43
|
-
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null,
|
|
42
|
+
}, D[_[0]], D[_[1]], D[_[2]], y),
|
|
43
|
+
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, N, v)
|
|
44
44
|
});
|
|
45
|
-
},
|
|
46
|
-
const { id: n, disabled: s, readOnly: o, showDateLabels: r, hidePlaceholder: i } =
|
|
45
|
+
}, F = ({ children: e, className: a }) => {
|
|
46
|
+
const { id: n, disabled: s, readOnly: o, showDateLabels: r, hidePlaceholder: i } = f(), { labelId: m } = T(d.MONTH), { partValue: c, partError: b, onPartChange: p } = L(d.MONTH), { t: _ } = C(), [M, v] = q(!1), N = Pe(n), [D, y] = q(null), S = i ? void 0 : _("field.date.placeholder.month"), ee = H((Y) => {
|
|
47
47
|
o || p(typeof Y == "string" ? Y : "");
|
|
48
48
|
}, [
|
|
49
49
|
p,
|
|
50
50
|
o
|
|
51
|
-
]), te =
|
|
51
|
+
]), te = H((Y) => {
|
|
52
52
|
v(Y && !o);
|
|
53
53
|
}, [
|
|
54
54
|
o
|
|
55
|
-
]), ae = u(e,
|
|
55
|
+
]), ae = u(e, F.Label), ne = u(e, F.Trigger), re = u(e, F.Options);
|
|
56
56
|
return /* @__PURE__ */ t.createElement("div", {
|
|
57
57
|
className: a,
|
|
58
58
|
"data-date-field": !0
|
|
@@ -62,28 +62,28 @@ const l = ({ children: e, className: a }) => {
|
|
|
62
62
|
display: "contents"
|
|
63
63
|
}
|
|
64
64
|
}), /* @__PURE__ */ t.createElement(ie, {
|
|
65
|
-
getContainer: () =>
|
|
65
|
+
getContainer: () => D
|
|
66
66
|
}, /* @__PURE__ */ t.createElement(me, {
|
|
67
67
|
"aria-labelledby": r ? m : void 0,
|
|
68
68
|
value: c || null,
|
|
69
69
|
onChange: ee,
|
|
70
70
|
isDisabled: s,
|
|
71
|
-
isInvalid:
|
|
71
|
+
isInvalid: b,
|
|
72
72
|
placeholder: S,
|
|
73
|
-
isOpen:
|
|
74
|
-
onOpenChange:
|
|
73
|
+
isOpen: N || M,
|
|
74
|
+
onOpenChange: N ? void 0 : te
|
|
75
75
|
}, ne, P(re, {
|
|
76
|
-
isForcedOpen:
|
|
76
|
+
isForcedOpen: N
|
|
77
77
|
}))));
|
|
78
78
|
}, ve = ({ className: e }) => /* @__PURE__ */ t.createElement($, {
|
|
79
79
|
datePart: d.MONTH,
|
|
80
80
|
className: e
|
|
81
81
|
}), Ye = ({ children: e, className: a }) => {
|
|
82
|
-
const { id: n, readOnly: s } =
|
|
83
|
-
return
|
|
82
|
+
const { id: n, readOnly: s } = f(), { inputId: o } = T(d.MONTH), { partError: r, isFirstPart: i } = L(d.MONTH), m = U(null);
|
|
83
|
+
return G(() => {
|
|
84
84
|
var c;
|
|
85
85
|
i && ((c = m.current) == null || c.focus());
|
|
86
|
-
}, n), /* @__PURE__ */ t.createElement(
|
|
86
|
+
}, n), /* @__PURE__ */ t.createElement(Le, {
|
|
87
87
|
ref: m,
|
|
88
88
|
id: o,
|
|
89
89
|
className: a,
|
|
@@ -92,10 +92,10 @@ const l = ({ children: e, className: a }) => {
|
|
|
92
92
|
"data-readonly": s || void 0
|
|
93
93
|
}, /* @__PURE__ */ t.createElement(ue, null), e);
|
|
94
94
|
}, B = ({ children: e, className: a, ...n }) => {
|
|
95
|
-
const { isForcedOpen: s } = n, { language: o } =
|
|
95
|
+
const { isForcedOpen: s } = n, { language: o } = z(), r = O(() => _e(o), [
|
|
96
96
|
o
|
|
97
97
|
]), i = u(e, B.Option) ?? /* @__PURE__ */ t.createElement(B.Option, null);
|
|
98
|
-
return /* @__PURE__ */ t.createElement(
|
|
98
|
+
return /* @__PURE__ */ t.createElement(Fe, {
|
|
99
99
|
className: a,
|
|
100
100
|
containerPadding: 0,
|
|
101
101
|
offset: 0
|
|
@@ -107,7 +107,7 @@ const l = ({ children: e, className: a }) => {
|
|
|
107
107
|
value: String(c + 1),
|
|
108
108
|
label: m
|
|
109
109
|
}))));
|
|
110
|
-
},
|
|
110
|
+
}, we = ({ className: e, ...a }) => {
|
|
111
111
|
const { value: n, label: s } = a;
|
|
112
112
|
return /* @__PURE__ */ t.createElement(ce, {
|
|
113
113
|
className: e,
|
|
@@ -115,16 +115,16 @@ const l = ({ children: e, className: a }) => {
|
|
|
115
115
|
textValue: s
|
|
116
116
|
}, s);
|
|
117
117
|
};
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
B.Option =
|
|
118
|
+
F.Label = ve;
|
|
119
|
+
F.Trigger = Ye;
|
|
120
|
+
F.Options = B;
|
|
121
|
+
B.Option = we;
|
|
122
122
|
const A = ({ children: e, className: a }) => {
|
|
123
|
-
const { disabled: n, readOnly: s, showDateLabels: o } =
|
|
123
|
+
const { disabled: n, readOnly: s, showDateLabels: o } = f(), { labelId: r } = T(d.DAY), { partValue: i, partError: m, onPartChange: c } = L(d.DAY), b = u(e, A.Label), p = u(e, A.Input);
|
|
124
124
|
return /* @__PURE__ */ t.createElement("div", {
|
|
125
125
|
className: a,
|
|
126
126
|
"data-date-field": !0
|
|
127
|
-
}, o &&
|
|
127
|
+
}, o && b, /* @__PURE__ */ t.createElement(Q, {
|
|
128
128
|
"aria-labelledby": o ? r : void 0,
|
|
129
129
|
value: i,
|
|
130
130
|
onChange: c,
|
|
@@ -132,15 +132,15 @@ const A = ({ children: e, className: a }) => {
|
|
|
132
132
|
isReadOnly: s,
|
|
133
133
|
isInvalid: m
|
|
134
134
|
}, p));
|
|
135
|
-
},
|
|
135
|
+
}, He = ({ className: e }) => /* @__PURE__ */ t.createElement($, {
|
|
136
136
|
datePart: d.DAY,
|
|
137
137
|
className: e
|
|
138
138
|
}), Be = ({ className: e }) => {
|
|
139
|
-
const { id: a, hidePlaceholder: n } =
|
|
140
|
-
return
|
|
139
|
+
const { id: a, hidePlaceholder: n } = f(), { inputId: s } = T(d.DAY), { isFirstPart: o } = L(d.DAY), { t: r } = C(), i = U(null), m = n ? void 0 : r("field.date.placeholder.day");
|
|
140
|
+
return G(() => {
|
|
141
141
|
var c;
|
|
142
142
|
o && ((c = i.current) == null || c.focus());
|
|
143
|
-
}, a), /* @__PURE__ */ t.createElement(
|
|
143
|
+
}, a), /* @__PURE__ */ t.createElement(X, {
|
|
144
144
|
ref: i,
|
|
145
145
|
id: s,
|
|
146
146
|
className: e,
|
|
@@ -150,14 +150,14 @@ const A = ({ children: e, className: a }) => {
|
|
|
150
150
|
"data-hook": d.DAY
|
|
151
151
|
});
|
|
152
152
|
};
|
|
153
|
-
A.Label =
|
|
153
|
+
A.Label = He;
|
|
154
154
|
A.Input = Be;
|
|
155
155
|
const V = ({ children: e, className: a }) => {
|
|
156
|
-
const { disabled: n, readOnly: s, showDateLabels: o } =
|
|
156
|
+
const { disabled: n, readOnly: s, showDateLabels: o } = f(), { labelId: r } = T(d.YEAR), { partValue: i, partError: m, onPartChange: c } = L(d.YEAR), b = u(e, V.Label), p = u(e, V.Input);
|
|
157
157
|
return /* @__PURE__ */ t.createElement("div", {
|
|
158
158
|
className: a,
|
|
159
159
|
"data-date-field": !0
|
|
160
|
-
}, o &&
|
|
160
|
+
}, o && b, /* @__PURE__ */ t.createElement(Q, {
|
|
161
161
|
"aria-labelledby": o ? r : void 0,
|
|
162
162
|
value: i,
|
|
163
163
|
onChange: c,
|
|
@@ -169,11 +169,11 @@ const V = ({ children: e, className: a }) => {
|
|
|
169
169
|
datePart: d.YEAR,
|
|
170
170
|
className: e
|
|
171
171
|
}), ke = ({ className: e }) => {
|
|
172
|
-
const { id: a, hidePlaceholder: n } =
|
|
173
|
-
return
|
|
172
|
+
const { id: a, hidePlaceholder: n } = f(), { inputId: s } = T(d.YEAR), { isFirstPart: o } = L(d.YEAR), { t: r } = C(), i = U(null), m = n ? void 0 : r("field.date.placeholder.year");
|
|
173
|
+
return G(() => {
|
|
174
174
|
var c;
|
|
175
175
|
o && ((c = i.current) == null || c.focus());
|
|
176
|
-
}, a), /* @__PURE__ */ t.createElement(
|
|
176
|
+
}, a), /* @__PURE__ */ t.createElement(X, {
|
|
177
177
|
ref: i,
|
|
178
178
|
id: s,
|
|
179
179
|
className: e,
|
|
@@ -186,27 +186,27 @@ const V = ({ children: e, className: a }) => {
|
|
|
186
186
|
V.Label = xe;
|
|
187
187
|
V.Input = ke;
|
|
188
188
|
const I = ({ children: e, className: a }) => {
|
|
189
|
-
const { disabled: n, readOnly: s, use24HourFormat: o, showDateLabels: r } =
|
|
189
|
+
const { disabled: n, readOnly: s, use24HourFormat: o, showDateLabels: r } = f(), { labelId: i } = T("time"), { partValue: m, partError: c, onPartChange: b } = L("time"), p = u(e, I.Label), _ = u(e, I.Input);
|
|
190
190
|
return /* @__PURE__ */ t.createElement("div", {
|
|
191
191
|
className: a,
|
|
192
192
|
"data-date-field": !0
|
|
193
193
|
}, r && p, /* @__PURE__ */ t.createElement(de, {
|
|
194
194
|
"aria-labelledby": r ? i : void 0,
|
|
195
195
|
value: m,
|
|
196
|
-
onChange:
|
|
196
|
+
onChange: b,
|
|
197
197
|
isDisabled: n,
|
|
198
198
|
isReadOnly: s,
|
|
199
199
|
isInvalid: c,
|
|
200
200
|
hourCycle: o ? 24 : 12
|
|
201
|
-
},
|
|
202
|
-
},
|
|
203
|
-
const { inputId: a, labelId: n } =
|
|
201
|
+
}, _));
|
|
202
|
+
}, Ue = ({ className: e }) => {
|
|
203
|
+
const { inputId: a, labelId: n } = T("time"), { t: s } = C(), o = s("field.date.label.time");
|
|
204
204
|
return /* @__PURE__ */ t.createElement("label", {
|
|
205
205
|
id: n,
|
|
206
206
|
htmlFor: a,
|
|
207
207
|
className: e
|
|
208
208
|
}, o);
|
|
209
|
-
},
|
|
209
|
+
}, ze = ({ children: e, className: a }) => {
|
|
210
210
|
const n = u(e, I.Hour), s = u(e, I.Minute), o = u(e, I.Period);
|
|
211
211
|
return /* @__PURE__ */ t.createElement(pe, {
|
|
212
212
|
className: a,
|
|
@@ -233,8 +233,8 @@ const I = ({ children: e, className: a }) => {
|
|
|
233
233
|
return /* @__PURE__ */ t.createElement(t.Fragment, null);
|
|
234
234
|
}
|
|
235
235
|
});
|
|
236
|
-
},
|
|
237
|
-
const { hidePlaceholder: n } =
|
|
236
|
+
}, Ge = ({ className: e, ...a }) => {
|
|
237
|
+
const { hidePlaceholder: n } = f(), { segment: s } = a, { t: o } = C(), r = n ? void 0 : o("field.date.placeholder.hour");
|
|
238
238
|
return /* @__PURE__ */ t.createElement(x, {
|
|
239
239
|
segment: s,
|
|
240
240
|
className: e,
|
|
@@ -243,7 +243,7 @@ const I = ({ children: e, className: a }) => {
|
|
|
243
243
|
}
|
|
244
244
|
});
|
|
245
245
|
}, $e = ({ className: e, ...a }) => {
|
|
246
|
-
const { hidePlaceholder: n } =
|
|
246
|
+
const { hidePlaceholder: n } = f(), { segment: s } = a, { t: o } = C(), r = n ? void 0 : o("field.date.placeholder.minute");
|
|
247
247
|
return /* @__PURE__ */ t.createElement(x, {
|
|
248
248
|
segment: s,
|
|
249
249
|
className: e,
|
|
@@ -252,7 +252,7 @@ const I = ({ children: e, className: a }) => {
|
|
|
252
252
|
}
|
|
253
253
|
});
|
|
254
254
|
}, qe = ({ className: e, ...a }) => {
|
|
255
|
-
const { hidePlaceholder: n } =
|
|
255
|
+
const { hidePlaceholder: n } = f(), { segment: s } = a, { t: o } = C(), r = oe(Ee), i = n ? void 0 : o("field.date.placeholder.period"), m = () => r == null ? void 0 : r.increment("dayPeriod");
|
|
256
256
|
return /* @__PURE__ */ t.createElement(x, {
|
|
257
257
|
segment: s,
|
|
258
258
|
className: e,
|
|
@@ -262,21 +262,21 @@ const I = ({ children: e, className: a }) => {
|
|
|
262
262
|
}
|
|
263
263
|
});
|
|
264
264
|
};
|
|
265
|
-
I.Label =
|
|
266
|
-
I.Input =
|
|
267
|
-
I.Hour =
|
|
265
|
+
I.Label = Ue;
|
|
266
|
+
I.Input = ze;
|
|
267
|
+
I.Hour = Ge;
|
|
268
268
|
I.Minute = $e;
|
|
269
269
|
I.Period = qe;
|
|
270
|
-
l.Label =
|
|
271
|
-
l.Month =
|
|
270
|
+
l.Label = Oe;
|
|
271
|
+
l.Month = F;
|
|
272
272
|
l.Day = A;
|
|
273
273
|
l.Year = V;
|
|
274
274
|
l.Time = I;
|
|
275
|
-
l.Description =
|
|
275
|
+
l.Description = ye;
|
|
276
276
|
l.Error = Te;
|
|
277
|
-
function
|
|
278
|
-
const { inputId: a } =
|
|
279
|
-
return
|
|
277
|
+
function T(e) {
|
|
278
|
+
const { inputId: a } = J();
|
|
279
|
+
return O(() => {
|
|
280
280
|
const n = e.toLowerCase();
|
|
281
281
|
return {
|
|
282
282
|
inputId: `${a}-${n}-input`,
|
|
@@ -287,48 +287,48 @@ function O(e) {
|
|
|
287
287
|
e
|
|
288
288
|
]);
|
|
289
289
|
}
|
|
290
|
-
function
|
|
291
|
-
const { value: a, onChange: n, hasError: s = !1 } =
|
|
290
|
+
function L(e) {
|
|
291
|
+
const { value: a, onChange: n, hasError: s = !1 } = f(), { regionalFormat: o } = z(), [r, i] = O(() => j(a ?? ""), [
|
|
292
292
|
a
|
|
293
|
-
]), m =
|
|
293
|
+
]), m = O(() => he(s, a ?? ""), [
|
|
294
294
|
a,
|
|
295
295
|
s
|
|
296
|
-
]), c =
|
|
296
|
+
]), c = O(() => fe(r), [
|
|
297
297
|
r
|
|
298
|
-
]),
|
|
298
|
+
]), b = O(() => je(i), [
|
|
299
299
|
i
|
|
300
|
-
]), p =
|
|
301
|
-
const
|
|
300
|
+
]), p = H((N) => {
|
|
301
|
+
const D = Ke(N), y = K(r, D);
|
|
302
302
|
n(y);
|
|
303
303
|
}, [
|
|
304
304
|
n,
|
|
305
305
|
r
|
|
306
|
-
]),
|
|
307
|
-
const [,
|
|
306
|
+
]), _ = H((N) => {
|
|
307
|
+
const [, D] = j(a ?? ""), y = be(N, e, c), S = K(y, D);
|
|
308
308
|
n(S);
|
|
309
309
|
}, [
|
|
310
310
|
n,
|
|
311
311
|
a,
|
|
312
312
|
c,
|
|
313
313
|
e
|
|
314
|
-
]), M =
|
|
314
|
+
]), M = O(() => e === "time" ? !1 : W(o).filter(Z).map((y) => y.toUpperCase())[0] === e, [
|
|
315
315
|
o,
|
|
316
316
|
e
|
|
317
317
|
]);
|
|
318
318
|
return e === "time" ? {
|
|
319
|
-
partValue:
|
|
319
|
+
partValue: b,
|
|
320
320
|
partError: m.TIME,
|
|
321
321
|
onPartChange: p,
|
|
322
322
|
isFirstPart: !1
|
|
323
323
|
} : {
|
|
324
324
|
partValue: c[e] || "",
|
|
325
325
|
partError: m[e],
|
|
326
|
-
onPartChange:
|
|
326
|
+
onPartChange: _,
|
|
327
327
|
isFirstPart: M
|
|
328
328
|
};
|
|
329
329
|
}
|
|
330
330
|
function $({ datePart: e, className: a }) {
|
|
331
|
-
const { inputId: n, labelId: s } =
|
|
331
|
+
const { inputId: n, labelId: s } = T(e), { t: o } = C(), r = `field.date.label.${e.toLowerCase()}`, i = o(r);
|
|
332
332
|
return /* @__PURE__ */ t.createElement("label", {
|
|
333
333
|
id: s,
|
|
334
334
|
htmlFor: n,
|
|
@@ -354,11 +354,11 @@ function Ke(e) {
|
|
|
354
354
|
s
|
|
355
355
|
].join(":");
|
|
356
356
|
}
|
|
357
|
-
const Qe = "_fields_h99r9_1",
|
|
357
|
+
const Qe = "_fields_h99r9_1", Xe = "_month_h99r9_10", Je = "_day_h99r9_11", We = "_year_h99r9_12", Ze = "_timeGroup_h99r9_13", et = "_dayInput_h99r9_34", tt = "_yearInput_h99r9_35", at = "_monthTrigger_h99r9_39", nt = "_monthOption_h99r9_59", rt = "_time_h99r9_13", st = "_hour_h99r9_78", ot = "_minute_h99r9_79", lt = "_period_h99r9_80", E = {
|
|
358
358
|
fields: Qe,
|
|
359
|
-
month:
|
|
360
|
-
day:
|
|
361
|
-
year:
|
|
359
|
+
month: Xe,
|
|
360
|
+
day: Je,
|
|
361
|
+
year: We,
|
|
362
362
|
timeGroup: Ze,
|
|
363
363
|
dayInput: et,
|
|
364
364
|
yearInput: tt,
|
|
@@ -372,53 +372,53 @@ const Qe = "_fields_h99r9_1", We = "_month_h99r9_10", Xe = "_day_h99r9_11", Je =
|
|
|
372
372
|
content: e,
|
|
373
373
|
locale: a
|
|
374
374
|
}), Pt = () => {
|
|
375
|
-
const e = Re(
|
|
375
|
+
const e = Me(E.monthTrigger), a = Re(E.monthOption, w), n = k(E.dayInput), s = k(E.yearInput), o = k(E.time);
|
|
376
376
|
return /* @__PURE__ */ t.createElement(l, {
|
|
377
|
-
className:
|
|
377
|
+
className: E.fields
|
|
378
378
|
}, /* @__PURE__ */ t.createElement(l.Label, {
|
|
379
|
-
className:
|
|
379
|
+
className: h(R, g.label)
|
|
380
380
|
}, /* @__PURE__ */ t.createElement(l.Label.Required, {
|
|
381
|
-
className:
|
|
381
|
+
className: h(ge, g.requiredMark)
|
|
382
382
|
})), /* @__PURE__ */ t.createElement(l.Month, {
|
|
383
|
-
className:
|
|
383
|
+
className: E.month
|
|
384
384
|
}, /* @__PURE__ */ t.createElement(l.Month.Label, {
|
|
385
|
-
className:
|
|
385
|
+
className: h(R, g.label)
|
|
386
386
|
}), /* @__PURE__ */ t.createElement(l.Month.Trigger, {
|
|
387
|
-
className:
|
|
387
|
+
className: e
|
|
388
388
|
}, /* @__PURE__ */ t.createElement(Ae, {
|
|
389
|
-
className:
|
|
389
|
+
className: g.dropdownIcon
|
|
390
390
|
})), /* @__PURE__ */ t.createElement(l.Month.Options, {
|
|
391
|
-
className:
|
|
391
|
+
className: h(Ie, g.selectPopover, g.dropdownPopover)
|
|
392
392
|
}, /* @__PURE__ */ t.createElement(l.Month.Options.Option, {
|
|
393
|
-
className:
|
|
393
|
+
className: a
|
|
394
394
|
}))), /* @__PURE__ */ t.createElement(l.Day, {
|
|
395
|
-
className:
|
|
395
|
+
className: E.day
|
|
396
396
|
}, /* @__PURE__ */ t.createElement(l.Day.Label, {
|
|
397
|
-
className:
|
|
397
|
+
className: h(R, g.label)
|
|
398
398
|
}), /* @__PURE__ */ t.createElement(l.Day.Input, {
|
|
399
|
-
className:
|
|
399
|
+
className: n
|
|
400
400
|
})), /* @__PURE__ */ t.createElement(l.Year, {
|
|
401
|
-
className:
|
|
401
|
+
className: E.year
|
|
402
402
|
}, /* @__PURE__ */ t.createElement(l.Year.Label, {
|
|
403
|
-
className:
|
|
403
|
+
className: h(R, g.label)
|
|
404
404
|
}), /* @__PURE__ */ t.createElement(l.Year.Input, {
|
|
405
|
-
className:
|
|
405
|
+
className: s
|
|
406
406
|
})), /* @__PURE__ */ t.createElement(l.Time, {
|
|
407
|
-
className:
|
|
407
|
+
className: E.timeGroup
|
|
408
408
|
}, /* @__PURE__ */ t.createElement(l.Time.Label, {
|
|
409
|
-
className:
|
|
409
|
+
className: h(R, g.label)
|
|
410
410
|
}), /* @__PURE__ */ t.createElement(l.Time.Input, {
|
|
411
|
-
className:
|
|
411
|
+
className: o
|
|
412
412
|
}, /* @__PURE__ */ t.createElement(l.Time.Hour, {
|
|
413
|
-
className: E
|
|
413
|
+
className: h(E.hour, w)
|
|
414
414
|
}), /* @__PURE__ */ t.createElement(l.Time.Minute, {
|
|
415
|
-
className: E
|
|
415
|
+
className: h(E.minute, w)
|
|
416
416
|
}), /* @__PURE__ */ t.createElement(l.Time.Period, {
|
|
417
|
-
className: E
|
|
417
|
+
className: h(E.period, w)
|
|
418
418
|
}))), /* @__PURE__ */ t.createElement(l.Error, {
|
|
419
|
-
className:
|
|
419
|
+
className: h(Ne, g.error)
|
|
420
420
|
}, /* @__PURE__ */ t.createElement(Ve, null), /* @__PURE__ */ t.createElement(l.Error.Text, null)), /* @__PURE__ */ t.createElement(l.Description, {
|
|
421
|
-
className:
|
|
421
|
+
className: h(De, g.description)
|
|
422
422
|
}, it));
|
|
423
423
|
};
|
|
424
424
|
export {
|
package/dist/component/{dext-checkbox-group-rac-B0u3i1v1.js → dext-checkbox-group-rac-CUG-FJj1.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import o from "react";
|
|
2
|
-
import { b9 as e, ac as t } from "./form-
|
|
3
|
-
import { C as p } from "./checkbox-group-field-rac-
|
|
2
|
+
import { b9 as e, ac as t } from "./form-AphBF-mQ.js";
|
|
3
|
+
import { C as p } from "./checkbox-group-field-rac-s_9nrnok.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-umexCSNY.js → dext-radio-group-rac-yOH9UuWW.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import r from "react";
|
|
2
|
-
import { b9 as e, ac as t } from "./form-
|
|
3
|
-
import { R as p } from "./radio-group-field-rac-
|
|
2
|
+
import { b9 as e, ac as t } from "./form-AphBF-mQ.js";
|
|
3
|
+
import { R as p } from "./radio-group-field-rac-CE67QNOZ.js";
|
|
4
4
|
import { a } from "./default-limits-D7qVv_Hv.js";
|
|
5
5
|
const c = () => {
|
|
6
6
|
const o = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import r from "react";
|
|
2
|
-
import { b9 as e, ac as o } from "./form-
|
|
3
|
-
import { T as s } from "./tags-field-rac-
|
|
2
|
+
import { b9 as e, ac as o } from "./form-AphBF-mQ.js";
|
|
3
|
+
import { T as s } from "./tags-field-rac-DvmQ9U0Y.js";
|
|
4
4
|
import { b as a } from "./default-limits-D7qVv_Hv.js";
|
|
5
5
|
const c = () => {
|
|
6
6
|
const t = {
|
|
@@ -3,19 +3,19 @@ import { RicosViewer as re } from "@wix/ricos/viewer";
|
|
|
3
3
|
import D from "classnames";
|
|
4
4
|
import { RadioGroup as se, RadioField as G, RadioButton as Y, TextField as ae, Group as le, Input as ie } from "react-aria-components";
|
|
5
5
|
import { debounce as ce } from "ts-debounce";
|
|
6
|
-
import { aq as Q, b9 as L, b6 as B, bj as ue, b1 as j, bb as me, I as pe, U as de, q as Ie, v as fe, p as Ce, r as Ee } from "./form-
|
|
6
|
+
import { aq as Q, b9 as L, b6 as B, bj as ue, b1 as j, bb as me, I as pe, U as de, q as Ie, v as fe, p as Ce, r as Ee } from "./form-AphBF-mQ.js";
|
|
7
7
|
import { f as E, a as y } from "./find-child-C60k4CxG.js";
|
|
8
8
|
import { a as W } from "./format-currency-BwShJ9vM.js";
|
|
9
|
-
import { D as he, E as Oe } from "./field-error-headless-
|
|
10
|
-
import { L as be } from "./field-label-headless-
|
|
9
|
+
import { D as he, E as Oe } from "./field-error-headless-B8MijSrk.js";
|
|
10
|
+
import { L as be } from "./field-label-headless-D3FPZC-x.js";
|
|
11
11
|
import { a as _e, b as ye } from "./numeric-input-utils-CuBMi4-a.js";
|
|
12
12
|
import { g as Ne } from "./payment-field-utils-DobiK5Xh.js";
|
|
13
13
|
import { u as ge } from "./use-synced-display-value-DcAxdn3M.js";
|
|
14
14
|
import { E as Fe } from "./error-icon-hZxQ6DEy.js";
|
|
15
15
|
import { s as v } from "./field-rac.module-B4l_0KRU.js";
|
|
16
16
|
import { o as De } from "./options-rac.module-_THNq6Qq.js";
|
|
17
|
-
import { u as ve } from "./use-element-state-class-name-
|
|
18
|
-
import { u as Se } from "./use-text-input-class-name-
|
|
17
|
+
import { u as ve } from "./use-element-state-class-name-B3vhm52Z.js";
|
|
18
|
+
import { u as Se } from "./use-text-input-class-name-CZWGRiSQ.js";
|
|
19
19
|
function Re(e, t) {
|
|
20
20
|
return e.reduce((o, r) => (o[r[t]] = r, o), {});
|
|
21
21
|
}
|
package/dist/component/{dropdown-field-headless-5vi45azS.js → dropdown-field-headless-DgpZtlSI.js}
RENAMED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import e, { useState as E, useCallback as g, useRef as A } from "react";
|
|
2
2
|
import { UNSAFE_PortalProvider as M } from "react-aria";
|
|
3
3
|
import { Select as U, SelectValue as _, ListBoxItem as j } from "react-aria-components";
|
|
4
|
-
import { b9 as f, b6 as O, bb as z } from "./form-
|
|
4
|
+
import { b9 as f, b6 as O, bb as z } from "./form-AphBF-mQ.js";
|
|
5
5
|
import { f as d, a as F } from "./find-child-C60k4CxG.js";
|
|
6
|
-
import { D as G, E as H } from "./field-error-headless-
|
|
7
|
-
import { L as J } from "./field-label-headless-
|
|
6
|
+
import { D as G, E as H } from "./field-error-headless-B8MijSrk.js";
|
|
7
|
+
import { L as J } from "./field-label-headless-D3FPZC-x.js";
|
|
8
8
|
import { S as K, N as Q } from "./non-modal-popover-DtIMXHbe.js";
|
|
9
|
-
import {
|
|
10
|
-
import { V as X } from "./use-dropdown-option-class-name-
|
|
9
|
+
import { a as W } from "./use-dropdown-trigger-class-name-Dcy1VIqo.js";
|
|
10
|
+
import { V as X } from "./use-dropdown-option-class-name-Bm1SOTi8.js";
|
|
11
11
|
const r = ({ children: n }) => {
|
|
12
12
|
const { id: l, value: o, defaultValue: a, options: u = [], readOnly: s, onChange: t, placeholder: m, disabled: i, required: v, onBlur: y, onFocus: D, FieldLayout: C, hasError: I } = f(), [L, h] = E(!1), p = W(l), [B, N] = E(null), P = o && u.some((c) => (c.value ?? c.label) === o) ? o : a || null, { labelId: S } = O(), V = g((c) => {
|
|
13
13
|
s || t(typeof c == "string" ? c : null);
|