@wix/form-elements 1.113.0 → 1.115.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-BZ9sCf_L.js → appointment-rac-CN3z7X0K.js} +204 -204
- package/dist/component/{bookings-address-rac-DDisJZwl.js → bookings-address-rac-C3_L2-L5.js} +1 -1
- package/dist/component/{bookings-email-rac-ovewChXn.js → bookings-email-rac-jf6DBtqR.js} +1 -1
- package/dist/component/{bookings-first-name-rac-CyudJnHy.js → bookings-first-name-rac-Dv5X7Xdt.js} +1 -1
- package/dist/component/{bookings-header-rac-BSN_BoC0.js → bookings-header-rac-B7pVOaU9.js} +1 -1
- package/dist/component/{bookings-last-name-rac-SdX5IANy.js → bookings-last-name-rac-DUwYiliZ.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-COQ2BOsY.js → bookings-login-bar-rac-NJDeVd7j.js} +1 -1
- package/dist/component/{bookings-phone-rac-DlUfTzEz.js → bookings-phone-rac-Bkr85nD5.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-Dx0uxbQc.js → bookings-rich-text-rac-Wa8I8MHJ.js} +1 -1
- package/dist/component/{checkbox-field-rac-DueJINhA.js → checkbox-field-rac-DbKz4tNx.js} +4 -4
- package/dist/component/{checkbox-group-field-headless-wj9ITlbE.js → checkbox-group-field-headless-CfXdn4Ff.js} +3 -3
- package/dist/component/{checkbox-group-field-rac-CrD849TZ.js → checkbox-group-field-rac-D6I8L5vF.js} +8 -10
- package/dist/component/{checkbox-group-rac-Wdz1ShJh.js → checkbox-group-rac-C3qVOH_9.js} +1 -1
- package/dist/component/{checkbox-rac-BC7A8y2w.js → checkbox-rac-CKsZjKGO.js} +1 -1
- package/dist/component/{contacts-address-rac-DoWo8zyH.js → contacts-address-rac-iX8JJdvR.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-CEXkyOuk.js → contacts-birthdate-rac-B7U3XVSs.js} +1 -1
- package/dist/component/{contacts-company-rac-CYaVpLCk.js → contacts-company-rac-gTys-wAp.js} +1 -1
- package/dist/component/{contacts-email-rac-teBI-Rpu.js → contacts-email-rac-Bo0GTj47.js} +1 -1
- package/dist/component/{contacts-first-name-rac-BOPuOgk1.js → contacts-first-name-rac-D2723xQx.js} +1 -1
- package/dist/component/{contacts-last-name-rac-DdRhuv9q.js → contacts-last-name-rac-BrTL8dWN.js} +1 -1
- package/dist/component/{contacts-phone-rac-BMiop0kR.js → contacts-phone-rac-CPrOsDjh.js} +1 -1
- package/dist/component/{contacts-position-rac-C8iM62rN.js → contacts-position-rac-CXK8WpP3.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-CkToH-f2.js → contacts-subscribe-rac-BJXzn1dy.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-JM0KJre8.js → contacts-tax-id-rac-Dkx_VwKM.js} +1 -1
- package/dist/component/{date-availability-DJyvNJ6w.js → date-availability-CvLIxT4E.js} +1 -1
- package/dist/component/{date-input-field-rac-CStB2jP7.js → date-input-field-rac-CHLxtBFZ.js} +42 -42
- package/dist/component/{date-input-rac-DUSJH8am.js → date-input-rac-CKK-Gx0P.js} +1 -1
- package/dist/component/{date-picker-field-rac-6xffgnXB.js → date-picker-field-rac-DQEWIIOn.js} +5 -5
- package/dist/component/{date-picker-rac-Dpe0w0G6.js → date-picker-rac-DCXIiPH7.js} +1 -1
- package/dist/component/{date-time-input-field-rac-CX39V3G1.js → date-time-input-field-rac-Cdko026n.js} +32 -32
- package/dist/component/{date-time-input-rac-DBVMIbom.js → date-time-input-rac-CHYJiwQN.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-CAxyCWQY.js → dext-checkbox-group-rac-CSbzWhrQ.js} +2 -2
- package/dist/component/{dext-checkbox-rac-CRBzElbv.js → dext-checkbox-rac-DynyHr0h.js} +1 -1
- package/dist/component/{dext-date-picker-rac-DNzXwBkg.js → dext-date-picker-rac-DR87-bl9.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-D2W3buJP.js → dext-date-time-input-rac-BUDSzPar.js} +1 -1
- package/dist/component/{dext-dropdown-rac-CTTreT77.js → dext-dropdown-rac-CXn0jJKa.js} +1 -1
- package/dist/component/{dext-email-rac-BwI4-hML.js → dext-email-rac-DSO2U9wf.js} +1 -1
- package/dist/component/{dext-number-input-rac-DT5pQiC3.js → dext-number-input-rac-B5NmGYdT.js} +1 -1
- package/dist/component/{dext-phone-rac-MA6wyUxM.js → dext-phone-rac-DAIqe6sm.js} +1 -1
- package/dist/component/{dext-radio-group-rac-3PYEgYHn.js → dext-radio-group-rac-C28aYLZj.js} +2 -2
- package/dist/component/{dext-rating-input-rac-I3e9k3Tp.js → dext-rating-input-rac-BOuSmqPF.js} +1 -1
- package/dist/component/{dext-tags-rac-Bf4tEUAW.js → dext-tags-rac-yLwjhfPp.js} +2 -2
- package/dist/component/{dext-text-area-rac-5oOAM6zJ.js → dext-text-area-rac-8tlma9gL.js} +1 -1
- package/dist/component/{dext-text-input-rac-8nHhvQfO.js → dext-text-input-rac-D_okxmlQ.js} +1 -1
- package/dist/component/{dext-url-input-rac-DSAfDqx1.js → dext-url-input-rac-BA9iqu2_.js} +1 -1
- package/dist/component/{donation-rac-DJiD7Fel.js → donation-rac-CeGI5IS5.js} +70 -70
- package/dist/component/{dropdown-field-headless-B_W8kD-t.js → dropdown-field-headless-De1WEEXn.js} +4 -4
- package/dist/component/{dropdown-field-rac-IDVaMgoc.js → dropdown-field-rac-CqX5mLGE.js} +3 -3
- package/dist/component/{dropdown-rac-I2ZO66jF.js → dropdown-rac-7iaHY50r.js} +1 -1
- package/dist/component/{ecom-address-rac-B1knDuog.js → ecom-address-rac-PAnE6xQW.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-BQPJb2kl.js → ecom-subscription-checkbox-rac-0uCN5_Dz.js} +2 -2
- package/dist/component/{email-input-field-rac-DsjMnxGw.js → email-input-field-rac-CdQLnxHp.js} +3 -3
- package/dist/component/{events-repeater-rac-CT7scvgS.js → events-repeater-rac-BQQveKCR.js} +4 -4
- package/dist/component/events-rsvp-rac-DSsAsXGm.js +48 -0
- package/dist/component/{field-error-headless-DRkkbv__.js → field-error-headless-E5JcyvTx.js} +1 -1
- package/dist/component/{field-label-headless-m633nF93.js → field-label-headless-iSxxobxd.js} +1 -1
- package/dist/component/{file-upload-rac-DaExm5ny.js → file-upload-rac-BOyE5XpC.js} +4 -4
- package/dist/component/{fixed-payment-rac-BglZ8zc0.js → fixed-payment-rac-Bz0J89wO.js} +3 -3
- package/dist/component/{form-CY-iFZdC.js → form-CJ_Fa4im.js} +1201 -1196
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-B6Mzqr3b.js → header-field-rac-B3LiQV-q.js} +2 -2
- package/dist/component/{header-rac-CB2NDeCJ.js → header-rac-wqjuLzYn.js} +1 -1
- package/dist/component/{image-choice-rac-gtYrnTGg.js → image-choice-rac-CGukvBje.js} +54 -57
- package/dist/component/{index-wR-OU2AH.js → index-Bd0x52fb.js} +4 -4
- package/dist/component/{index-Ozpoh9do.js → index-CNgJ9B-N.js} +2 -2
- package/dist/component/{isObjectLike-DsBVSQ_O.js → isObjectLike-CSA_-cuj.js} +1 -1
- package/dist/component/{multiline-address-field-rac-Z4hKy_B_.js → multiline-address-field-rac-BHXDan0o.js} +7 -7
- package/dist/component/{multiline-address-rac-DWV0BZHX.js → multiline-address-rac-B1L72JOQ.js} +1 -1
- package/dist/component/{number-input-field-rac-DKpSb1S_.js → number-input-field-rac-BgfwQQSP.js} +4 -4
- package/dist/component/{number-input-rac-Di7Q8CH9.js → number-input-rac-DMIjiN5s.js} +1 -1
- package/dist/component/options-rac.module-_THNq6Qq.js +7 -0
- package/dist/component/{password-rac-B9RT0izw.js → password-rac-BhgMZqAu.js} +4 -4
- package/dist/component/{payment-input-rac-DdGNnPcd.js → payment-input-rac-D1VqfYhh.js} +4 -4
- package/dist/component/{phone-input-field-rac-B-5gHBXY.js → phone-input-field-rac-DeDVNdf0.js} +6 -6
- package/dist/component/{phone-rac-CmZwJyH7.js → phone-rac-DXS3Mogp.js} +1 -1
- package/dist/component/{product-list-rac-BInJ4cw_.js → product-list-rac-ByQz3AOS.js} +5 -5
- package/dist/component/{quiz-radio-group-rac-B1EIBOt5.js → quiz-radio-group-rac-B1MDx7gg.js} +1 -1
- package/dist/component/radio-button-module-classes-mIRaJBuM.js +131 -0
- package/dist/component/{radio-group-field-rac-DAwCG8w2.js → radio-group-field-rac-DOVrrH9g.js} +15 -16
- package/dist/component/{radio-group-rac-CExbY0aw.js → radio-group-rac-Brc8ZKVX.js} +1 -1
- package/dist/component/{rating-input-field-rac-DTeubyLu.js → rating-input-field-rac-MfJkvu8m.js} +4 -4
- package/dist/component/{rating-input-rac-P7Fdwrm3.js → rating-input-rac-CqcZ73CF.js} +1 -1
- package/dist/component/{rich-content-rac.module-DgQubdPj.js → rich-content-rac.module-En_EemWS.js} +1 -1
- package/dist/component/{rich-text-field-rac-8dkTMWKw.js → rich-text-field-rac-BcxoOePq.js} +2 -2
- package/dist/component/{rich-text-rac-C6u_hF5R.js → rich-text-rac-B_2paTxf.js} +1 -1
- package/dist/component/{service-dropdown-rac-CTSCew5q.js → service-dropdown-rac-BklQyiab.js} +4 -4
- package/dist/component/{services-multi-choice-rac-BUFJHq-l.js → services-multi-choice-rac-ChBS2WU3.js} +27 -29
- package/dist/component/{signature-rac-yO924Qfv.js → signature-rac-Cf9YLYPi.js} +3 -3
- package/dist/component/{submit-button-rac-BurhcqZP.js → submit-button-rac-CZTeK1uB.js} +1 -1
- package/dist/component/{tags-field-rac-qbNQcwnE.js → tags-field-rac-9v2644JD.js} +54 -54
- package/dist/component/{tags-rac-DVHcpxNG.js → tags-rac-CeUucfxg.js} +1 -1
- package/dist/component/{text-area-field-rac-BKhGX0CL.js → text-area-field-rac-BdCpgmgG.js} +4 -4
- package/dist/component/{text-area-rac-CHHEDeUX.js → text-area-rac-6fZvUFD8.js} +1 -1
- package/dist/component/{text-input-field-rac-BGitxCuC.js → text-input-field-rac-C7G_xyfv.js} +3 -3
- package/dist/component/{text-input-headless-BBn1G2s9.js → text-input-headless-BiNwU3sG.js} +3 -3
- package/dist/component/{text-input-rac-CHX-U7Kp.js → text-input-rac-DOaoH5TA.js} +1 -1
- package/dist/component/{time-input-rac-Bp6B2gO3.js → time-input-rac-MqQpSz7I.js} +4 -4
- package/dist/component/{url-input-field-rac-CPibLAWz.js → url-input-field-rac-DukAWJtU.js} +4 -4
- package/dist/component/{url-input-rac-Bj4PV2YJ.js → url-input-rac-BRFCsqH0.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-CE1u4RLT.js → use-dropdown-option-class-name-Bm5e7RIh.js} +2 -2
- package/dist/component/{use-element-state-class-name-Dn_LpP1k.js → use-element-state-class-name-jIzS-0f1.js} +1 -1
- package/dist/component/{use-is-forced-open-dropdown-B2mdY7ku.js → use-is-forced-open-dropdown-CjqjVZmI.js} +1 -1
- package/dist/component/{use-service-options-base-DBvqU30V.js → use-service-options-base-1CckNmPE.js} +1 -1
- package/dist/component/{use-text-input-class-name-BUW0svzK.js → use-text-input-class-name-Bce8xMys.js} +2 -2
- package/dist/form.d.ts +1 -1
- package/package.json +2 -2
- package/dist/component/events-rsvp-rac-Dcrc1yxR.js +0 -49
- package/dist/component/options-rac.module-CTDdATiz.js +0 -8
- package/dist/component/radio-button-module-classes-CjDU2x_m.js +0 -133
|
@@ -4,22 +4,22 @@ import t, { useMemo as T, useState as q, useCallback as w, useRef as G, useConte
|
|
|
4
4
|
import { parseTime as le } from "@internationalized/date";
|
|
5
5
|
import { UNSAFE_PortalProvider as ie } from "react-aria";
|
|
6
6
|
import { ListBoxItem as ce, ListBox as me, Select as de, TextField as Q, TimeField as ue, SelectValue as pe, Input as W, DateInput as Ee, DateSegment as x, TimeFieldStateContext as he } from "react-aria-components";
|
|
7
|
-
import { b9 as b, b6 as X, b1 as U, aG as J, aT as Z, au as d, bj as L, aX as j, aI as fe, aB as be, a_ as ge, aC as K, bb as z, I as
|
|
7
|
+
import { b9 as b, b6 as X, b1 as U, aG as J, aT as Z, au as d, bj as L, aX as j, aI as fe, aB as be, a_ as ge, aC as K, bb as z, I as R, U as Ie, t as De, K as _e, v as Ne, p as ye } from "./form-CJ_Fa4im.js";
|
|
8
8
|
import { f as u, a as P } from "./find-child-C60k4CxG.js";
|
|
9
9
|
import { g as Oe } from "./helpers-HmkkXrh2.js";
|
|
10
|
-
import { D as Te, E as Le } from "./field-error-headless-
|
|
11
|
-
import { L as Fe } from "./field-label-headless-
|
|
10
|
+
import { D as Te, E as Le } from "./field-error-headless-E5JcyvTx.js";
|
|
11
|
+
import { L as Fe } from "./field-label-headless-iSxxobxd.js";
|
|
12
12
|
import { F as Ce } from "./fieldset-headless-CD3fds9J.js";
|
|
13
13
|
import { N as Pe, S as Me } from "./non-modal-popover-DtIMXHbe.js";
|
|
14
|
-
import { u as
|
|
15
|
-
import { C as
|
|
16
|
-
import { E as
|
|
14
|
+
import { u as Se } from "./use-is-forced-open-dropdown-CjqjVZmI.js";
|
|
15
|
+
import { C as Re } from "./chevron-down-icon-CcpVm6B-.js";
|
|
16
|
+
import { E as Ae } from "./error-icon-hZxQ6DEy.js";
|
|
17
17
|
import { H } from "./custom-focus-class-_483Pkwp.js";
|
|
18
18
|
import { s as f } from "./field-rac.module-B4l_0KRU.js";
|
|
19
|
-
import { u as
|
|
20
|
-
import { u as k } from "./use-text-input-class-name-
|
|
19
|
+
import { u as ve } from "./use-dropdown-option-class-name-Bm5e7RIh.js";
|
|
20
|
+
import { u as k } from "./use-text-input-class-name-Bce8xMys.js";
|
|
21
21
|
const l = ({ children: e, className: a }) => {
|
|
22
|
-
const { id: n, required: o, onBlur: s, onFocus: r, FieldLayout: i } = b(), { inputId: m, labelId: c, ariaDescribedBy: g } = X(), { regionalFormat: p } = U(), N = T(() => J(p).filter(Z).map((
|
|
22
|
+
const { id: n, required: o, onBlur: s, onFocus: r, FieldLayout: i } = b(), { inputId: m, labelId: c, ariaDescribedBy: g } = X(), { regionalFormat: p } = U(), N = T(() => J(p).filter(Z).map((S) => S.toUpperCase()), [
|
|
23
23
|
p
|
|
24
24
|
]), M = u(e, l.Label), V = u(e, l.Description), D = u(e, l.Error), _ = {
|
|
25
25
|
[d.MONTH]: u(e, l.Month),
|
|
@@ -43,7 +43,7 @@ const l = ({ children: e, className: a }) => {
|
|
|
43
43
|
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, D, V)
|
|
44
44
|
});
|
|
45
45
|
}, F = ({ children: e, className: a }) => {
|
|
46
|
-
const { id: n, disabled: o, readOnly: s, showDateLabels: r, hidePlaceholder: i } = b(), { labelId: m } = O(d.MONTH), { partValue: c, partError: g, onPartChange: p } = C(d.MONTH), { t: N } = L(), [M, V] = q(!1), D =
|
|
46
|
+
const { id: n, disabled: o, readOnly: s, showDateLabels: r, hidePlaceholder: i } = b(), { labelId: m } = O(d.MONTH), { partValue: c, partError: g, onPartChange: p } = C(d.MONTH), { t: N } = L(), [M, V] = q(!1), D = Se(n), [_, y] = q(null), S = i ? void 0 : N("field.date.placeholder.month"), ee = w((Y) => {
|
|
47
47
|
s || p(typeof Y == "string" ? Y : "");
|
|
48
48
|
}, [
|
|
49
49
|
p,
|
|
@@ -69,7 +69,7 @@ const l = ({ children: e, className: a }) => {
|
|
|
69
69
|
onChange: ee,
|
|
70
70
|
isDisabled: o,
|
|
71
71
|
isInvalid: g,
|
|
72
|
-
placeholder:
|
|
72
|
+
placeholder: S,
|
|
73
73
|
isOpen: D || M,
|
|
74
74
|
onOpenChange: D ? void 0 : te
|
|
75
75
|
}, ne, P(re, {
|
|
@@ -118,8 +118,8 @@ F.Label = Ve;
|
|
|
118
118
|
F.Trigger = Ye;
|
|
119
119
|
F.Options = B;
|
|
120
120
|
B.Option = He;
|
|
121
|
-
const
|
|
122
|
-
const { disabled: n, readOnly: o, showDateLabels: s } = b(), { labelId: r } = O(d.DAY), { partValue: i, partError: m, onPartChange: c } = C(d.DAY), g = u(e,
|
|
121
|
+
const A = ({ children: e, className: a }) => {
|
|
122
|
+
const { disabled: n, readOnly: o, showDateLabels: s } = b(), { labelId: r } = O(d.DAY), { partValue: i, partError: m, onPartChange: c } = C(d.DAY), g = u(e, A.Label), p = u(e, A.Input);
|
|
123
123
|
return /* @__PURE__ */ t.createElement("div", {
|
|
124
124
|
className: a,
|
|
125
125
|
"data-date-field": !0
|
|
@@ -149,10 +149,10 @@ const R = ({ children: e, className: a }) => {
|
|
|
149
149
|
"data-hook": d.DAY
|
|
150
150
|
});
|
|
151
151
|
};
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
const
|
|
155
|
-
const { disabled: n, readOnly: o, showDateLabels: s } = b(), { labelId: r } = O(d.YEAR), { partValue: i, partError: m, onPartChange: c } = C(d.YEAR), g = u(e,
|
|
152
|
+
A.Label = we;
|
|
153
|
+
A.Input = Be;
|
|
154
|
+
const v = ({ children: e, className: a }) => {
|
|
155
|
+
const { disabled: n, readOnly: o, showDateLabels: s } = b(), { labelId: r } = O(d.YEAR), { partValue: i, partError: m, onPartChange: c } = C(d.YEAR), g = u(e, v.Label), p = u(e, v.Input);
|
|
156
156
|
return /* @__PURE__ */ t.createElement("div", {
|
|
157
157
|
className: a,
|
|
158
158
|
"data-date-field": !0
|
|
@@ -182,8 +182,8 @@ const A = ({ children: e, className: a }) => {
|
|
|
182
182
|
"data-hook": d.YEAR
|
|
183
183
|
});
|
|
184
184
|
};
|
|
185
|
-
|
|
186
|
-
|
|
185
|
+
v.Label = xe;
|
|
186
|
+
v.Input = ke;
|
|
187
187
|
const I = ({ children: e, className: a }) => {
|
|
188
188
|
const { disabled: n, readOnly: o, use24HourFormat: s, showDateLabels: r } = b(), { labelId: i } = O("time"), { partValue: m, partError: c, onPartChange: g } = C("time"), p = u(e, I.Label), N = u(e, I.Input);
|
|
189
189
|
return /* @__PURE__ */ t.createElement("div", {
|
|
@@ -268,8 +268,8 @@ I.Minute = $e;
|
|
|
268
268
|
I.Period = qe;
|
|
269
269
|
l.Label = Fe;
|
|
270
270
|
l.Month = F;
|
|
271
|
-
l.Day =
|
|
272
|
-
l.Year =
|
|
271
|
+
l.Day = A;
|
|
272
|
+
l.Year = v;
|
|
273
273
|
l.Time = I;
|
|
274
274
|
l.Description = Te;
|
|
275
275
|
l.Error = Le;
|
|
@@ -303,8 +303,8 @@ function C(e) {
|
|
|
303
303
|
n,
|
|
304
304
|
r
|
|
305
305
|
]), N = w((D) => {
|
|
306
|
-
const [, _] = j(a ?? ""), y = ge(D, e, c),
|
|
307
|
-
n(
|
|
306
|
+
const [, _] = j(a ?? ""), y = ge(D, e, c), S = K(y, _);
|
|
307
|
+
n(S);
|
|
308
308
|
}, [
|
|
309
309
|
n,
|
|
310
310
|
a,
|
|
@@ -353,7 +353,7 @@ function Ke(e) {
|
|
|
353
353
|
o
|
|
354
354
|
].join(":");
|
|
355
355
|
}
|
|
356
|
-
const Qe = "
|
|
356
|
+
const Qe = "_fields_h99r9_1", We = "_month_h99r9_10", Xe = "_day_h99r9_11", Je = "_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", ot = "_hour_h99r9_78", st = "_minute_h99r9_79", lt = "_period_h99r9_80", h = {
|
|
357
357
|
fields: Qe,
|
|
358
358
|
month: We,
|
|
359
359
|
day: Xe,
|
|
@@ -371,20 +371,20 @@ const Qe = "_fields_9mv0h_1", We = "_month_9mv0h_11", Xe = "_day_9mv0h_12", Je =
|
|
|
371
371
|
content: e,
|
|
372
372
|
locale: a
|
|
373
373
|
}), Pt = () => {
|
|
374
|
-
const e =
|
|
374
|
+
const e = ve(h.monthOption, H), a = k(h.dayInput), n = k(h.yearInput), o = k(h.time);
|
|
375
375
|
return /* @__PURE__ */ t.createElement(l, {
|
|
376
376
|
className: h.fields
|
|
377
377
|
}, /* @__PURE__ */ t.createElement(l.Label, {
|
|
378
|
-
className: E(
|
|
378
|
+
className: E(R, f.label)
|
|
379
379
|
}, /* @__PURE__ */ t.createElement(l.Label.Required, {
|
|
380
380
|
className: E(Ie, f.requiredMark)
|
|
381
381
|
})), /* @__PURE__ */ t.createElement(l.Month, {
|
|
382
382
|
className: h.month
|
|
383
383
|
}, /* @__PURE__ */ t.createElement(l.Month.Label, {
|
|
384
|
-
className: E(
|
|
384
|
+
className: E(R, f.label)
|
|
385
385
|
}), /* @__PURE__ */ t.createElement(l.Month.Trigger, {
|
|
386
386
|
className: E(De, f.input, h.monthTrigger)
|
|
387
|
-
}, /* @__PURE__ */ t.createElement(
|
|
387
|
+
}, /* @__PURE__ */ t.createElement(Re, {
|
|
388
388
|
className: f.dropdownIcon
|
|
389
389
|
})), /* @__PURE__ */ t.createElement(l.Month.Options, {
|
|
390
390
|
className: E(_e, f.selectPopover, f.dropdownPopover)
|
|
@@ -393,19 +393,19 @@ const Qe = "_fields_9mv0h_1", We = "_month_9mv0h_11", Xe = "_day_9mv0h_12", Je =
|
|
|
393
393
|
}))), /* @__PURE__ */ t.createElement(l.Day, {
|
|
394
394
|
className: h.day
|
|
395
395
|
}, /* @__PURE__ */ t.createElement(l.Day.Label, {
|
|
396
|
-
className: E(
|
|
396
|
+
className: E(R, f.label)
|
|
397
397
|
}), /* @__PURE__ */ t.createElement(l.Day.Input, {
|
|
398
398
|
className: a
|
|
399
399
|
})), /* @__PURE__ */ t.createElement(l.Year, {
|
|
400
400
|
className: h.year
|
|
401
401
|
}, /* @__PURE__ */ t.createElement(l.Year.Label, {
|
|
402
|
-
className: E(
|
|
402
|
+
className: E(R, f.label)
|
|
403
403
|
}), /* @__PURE__ */ t.createElement(l.Year.Input, {
|
|
404
404
|
className: n
|
|
405
405
|
})), /* @__PURE__ */ t.createElement(l.Time, {
|
|
406
406
|
className: h.timeGroup
|
|
407
407
|
}, /* @__PURE__ */ t.createElement(l.Time.Label, {
|
|
408
|
-
className: E(
|
|
408
|
+
className: E(R, f.label)
|
|
409
409
|
}), /* @__PURE__ */ t.createElement(l.Time.Input, {
|
|
410
410
|
className: o
|
|
411
411
|
}, /* @__PURE__ */ t.createElement(l.Time.Hour, {
|
|
@@ -416,7 +416,7 @@ const Qe = "_fields_9mv0h_1", We = "_month_9mv0h_11", Xe = "_day_9mv0h_12", Je =
|
|
|
416
416
|
className: E(h.period, H)
|
|
417
417
|
}))), /* @__PURE__ */ t.createElement(l.Error, {
|
|
418
418
|
className: E(Ne, f.error)
|
|
419
|
-
}, /* @__PURE__ */ t.createElement(
|
|
419
|
+
}, /* @__PURE__ */ t.createElement(Ae, null), /* @__PURE__ */ t.createElement(l.Error.Text, null)), /* @__PURE__ */ t.createElement(l.Description, {
|
|
420
420
|
className: E(ye, f.description)
|
|
421
421
|
}, it));
|
|
422
422
|
};
|
package/dist/component/{dext-checkbox-group-rac-CAxyCWQY.js → dext-checkbox-group-rac-CSbzWhrQ.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-CJ_Fa4im.js";
|
|
3
|
+
import { C as p } from "./checkbox-group-field-rac-D6I8L5vF.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-3PYEgYHn.js → dext-radio-group-rac-C28aYLZj.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-CJ_Fa4im.js";
|
|
3
|
+
import { R as p } from "./radio-group-field-rac-DOVrrH9g.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-CJ_Fa4im.js";
|
|
3
|
+
import { T as s } from "./tags-field-rac-9v2644JD.js";
|
|
4
4
|
import { b as a } from "./default-limits-D7qVv_Hv.js";
|
|
5
5
|
const c = () => {
|
|
6
6
|
const t = {
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import n, { useMemo as M, useCallback as
|
|
2
|
-
import { RicosViewer as
|
|
3
|
-
import
|
|
4
|
-
import { RadioGroup as
|
|
5
|
-
import { debounce as
|
|
6
|
-
import { aq as
|
|
1
|
+
import n, { useMemo as M, useCallback as F, useRef as oe } from "react";
|
|
2
|
+
import { RicosViewer as re } from "@wix/ricos/viewer";
|
|
3
|
+
import D from "classnames";
|
|
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
|
+
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-CJ_Fa4im.js";
|
|
7
7
|
import { f as E, a as y } from "./find-child-C60k4CxG.js";
|
|
8
|
-
import { a as
|
|
9
|
-
import { D as
|
|
10
|
-
import { L as
|
|
11
|
-
import { a as
|
|
8
|
+
import { a as W } from "./format-currency-BwShJ9vM.js";
|
|
9
|
+
import { D as he, E as Oe } from "./field-error-headless-E5JcyvTx.js";
|
|
10
|
+
import { L as be } from "./field-label-headless-iSxxobxd.js";
|
|
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
|
-
import { u as
|
|
14
|
-
import { E as
|
|
13
|
+
import { u as ge } from "./use-synced-display-value-DcAxdn3M.js";
|
|
14
|
+
import { E as Fe } from "./error-icon-hZxQ6DEy.js";
|
|
15
15
|
import { s as v } from "./field-rac.module-B4l_0KRU.js";
|
|
16
|
-
import { o as
|
|
17
|
-
import { u as ve } from "./use-element-state-class-name-
|
|
18
|
-
import { u as Se } from "./use-text-input-class-name-
|
|
16
|
+
import { o as De } from "./options-rac.module-_THNq6Qq.js";
|
|
17
|
+
import { u as ve } from "./use-element-state-class-name-jIzS-0f1.js";
|
|
18
|
+
import { u as Se } from "./use-text-input-class-name-Bce8xMys.js";
|
|
19
19
|
function Re(e, t) {
|
|
20
20
|
return e.reduce((o, r) => (o[r[t]] = r, o), {});
|
|
21
21
|
}
|
|
@@ -27,16 +27,16 @@ function Te(e) {
|
|
|
27
27
|
var t;
|
|
28
28
|
return ((t = e == null ? void 0 : e.fixedPriceOptions) == null ? void 0 : t.price) || "0";
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function z(e, t) {
|
|
31
31
|
const o = Number(t || "0");
|
|
32
32
|
return {
|
|
33
33
|
productId: e.id,
|
|
34
|
-
price: e.priceType ===
|
|
34
|
+
price: e.priceType === Q.DYNAMIC_PRICE ? o : String(o),
|
|
35
35
|
quantity: 1
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
38
|
function Pe(e) {
|
|
39
|
-
return e.find((t) => t.priceType ===
|
|
39
|
+
return e.find((t) => t.priceType === Q.DYNAMIC_PRICE);
|
|
40
40
|
}
|
|
41
41
|
function xe(e, t) {
|
|
42
42
|
return (e == null ? void 0 : e.productId) === (t == null ? void 0 : t.id) ? String((e == null ? void 0 : e.price) ?? "") : "";
|
|
@@ -44,63 +44,63 @@ function xe(e, t) {
|
|
|
44
44
|
function Me(e, t, o) {
|
|
45
45
|
const r = (t == null ? void 0 : t.productId) === e ? void 0 : e, a = r ? o[r] : void 0;
|
|
46
46
|
return a ? [
|
|
47
|
-
|
|
47
|
+
z(a, Te(a))
|
|
48
48
|
] : [];
|
|
49
49
|
}
|
|
50
50
|
const s = ({ children: e }) => {
|
|
51
|
-
const { id: t, value: o, onChange: r, disabled: a, required: u, onBlur: m, onFocus: I, validation: i, addOther: p, addOtherPlaceholder: c, FieldLayout: h, hasError: _ } = L(), { labelId: O } = B(), { t: f } =
|
|
51
|
+
const { id: t, value: o, onChange: r, disabled: a, required: u, onBlur: m, onFocus: I, validation: i, addOther: p, addOtherPlaceholder: c, FieldLayout: h, hasError: _ } = L(), { labelId: O } = B(), { t: f } = ue(), { currency: A, regionalFormat: N } = j(), d = o == null ? void 0 : o[0], g = M(() => {
|
|
52
52
|
var C, x;
|
|
53
53
|
return ((x = (C = i == null ? void 0 : i.predefined) == null ? void 0 : C.paymentOptions) == null ? void 0 : x.products) || [];
|
|
54
54
|
}, [
|
|
55
55
|
i
|
|
56
|
-
]), T = M(() => Le(
|
|
57
|
-
|
|
58
|
-
]), l = M(() => p ? Pe(
|
|
59
|
-
|
|
56
|
+
]), T = M(() => Le(g), [
|
|
57
|
+
g
|
|
58
|
+
]), l = M(() => p ? Pe(g) : void 0, [
|
|
59
|
+
g,
|
|
60
60
|
p
|
|
61
|
-
]),
|
|
62
|
-
sourceValue:
|
|
63
|
-
format: (C) =>
|
|
64
|
-
regionalFormat:
|
|
65
|
-
}), w =
|
|
61
|
+
]), J = xe(d, l), [q, P] = ge({
|
|
62
|
+
sourceValue: J,
|
|
63
|
+
format: (C) => ye(String(C ?? ""), N),
|
|
64
|
+
regionalFormat: N
|
|
65
|
+
}), w = F((C) => {
|
|
66
66
|
r(Me(C, d, T)), P("");
|
|
67
67
|
}, [
|
|
68
68
|
r,
|
|
69
69
|
T,
|
|
70
70
|
d,
|
|
71
71
|
P
|
|
72
|
-
]), k =
|
|
72
|
+
]), k = F((C) => {
|
|
73
73
|
l && r(typeof C == "number" ? [
|
|
74
|
-
|
|
74
|
+
z(l, String(C))
|
|
75
75
|
] : []);
|
|
76
76
|
}, [
|
|
77
77
|
r,
|
|
78
78
|
l
|
|
79
|
-
]), $ = M(() =>
|
|
79
|
+
]), $ = M(() => ce(k, 500), [
|
|
80
80
|
k
|
|
81
|
-
]),
|
|
81
|
+
]), K = F((C) => {
|
|
82
82
|
(d == null ? void 0 : d.productId) !== (l == null ? void 0 : l.id) && r(void 0);
|
|
83
|
-
const { validInput: x, validNumber:
|
|
84
|
-
P(x), $(
|
|
83
|
+
const { validInput: x, validNumber: ne } = _e(C.target.value, Ae, q, N);
|
|
84
|
+
P(x), $(ne);
|
|
85
85
|
}, [
|
|
86
|
-
|
|
86
|
+
N,
|
|
87
87
|
r,
|
|
88
88
|
d,
|
|
89
89
|
l,
|
|
90
90
|
q,
|
|
91
91
|
$,
|
|
92
92
|
P
|
|
93
|
-
]), H = (d == null ? void 0 : d.productId) || null,
|
|
93
|
+
]), H = (d == null ? void 0 : d.productId) || null, X = F(() => {
|
|
94
94
|
l != null && l.id && H !== l.id && w(l.id);
|
|
95
95
|
}, [
|
|
96
96
|
l == null ? void 0 : l.id,
|
|
97
97
|
H,
|
|
98
98
|
w
|
|
99
|
-
]),
|
|
99
|
+
]), Z = E(e, s.Label), V = E(e, s.Control), ee = E(e, s.Description), te = E(e, s.Error);
|
|
100
100
|
return /* @__PURE__ */ n.createElement(h, {
|
|
101
101
|
fieldId: t,
|
|
102
|
-
renderLabel: () =>
|
|
103
|
-
renderInput: () => /* @__PURE__ */ n.createElement(
|
|
102
|
+
renderLabel: () => Z,
|
|
103
|
+
renderInput: () => /* @__PURE__ */ n.createElement(se, {
|
|
104
104
|
"aria-labelledby": O,
|
|
105
105
|
value: H,
|
|
106
106
|
onChange: w,
|
|
@@ -113,14 +113,14 @@ const s = ({ children: e }) => {
|
|
|
113
113
|
productsById: T,
|
|
114
114
|
addOther: p,
|
|
115
115
|
customAmount: q,
|
|
116
|
-
onCustomAmountInputChange:
|
|
116
|
+
onCustomAmountInputChange: K,
|
|
117
117
|
currency: A,
|
|
118
118
|
t: f,
|
|
119
119
|
placeholder: c === void 0 ? f("donation.other-option.placeholder") : c,
|
|
120
120
|
customAmountProductId: l == null ? void 0 : l.id,
|
|
121
|
-
onFocusCustomInput:
|
|
121
|
+
onFocusCustomInput: X
|
|
122
122
|
}) : null),
|
|
123
|
-
renderDescription: () => /* @__PURE__ */ n.createElement(n.Fragment, null,
|
|
123
|
+
renderDescription: () => /* @__PURE__ */ n.createElement(n.Fragment, null, te, ee)
|
|
124
124
|
});
|
|
125
125
|
}, Be = ({ children: e, className: t, ...o }) => {
|
|
126
126
|
const { productsById: r, addOther: a, customAmount: u, onCustomAmountInputChange: m, currency: I, t: i, placeholder: p, customAmountProductId: c, onFocusCustomInput: h } = o, { hasError: _ } = L(), O = E(e, s.Options), f = E(e, s.OtherInput);
|
|
@@ -129,7 +129,7 @@ const s = ({ children: e }) => {
|
|
|
129
129
|
"data-invalid": _
|
|
130
130
|
}, O ? y(O, {
|
|
131
131
|
productsById: r
|
|
132
|
-
}) : null, a && c && /* @__PURE__ */ n.createElement(
|
|
132
|
+
}) : null, a && c && /* @__PURE__ */ n.createElement(G, {
|
|
133
133
|
value: c,
|
|
134
134
|
style: {
|
|
135
135
|
position: "absolute",
|
|
@@ -142,7 +142,7 @@ const s = ({ children: e }) => {
|
|
|
142
142
|
whiteSpace: "nowrap",
|
|
143
143
|
border: "0"
|
|
144
144
|
}
|
|
145
|
-
}, /* @__PURE__ */ n.createElement(
|
|
145
|
+
}, /* @__PURE__ */ n.createElement(Y, {
|
|
146
146
|
"aria-label": i("donation.other-option.label", "Custom amount")
|
|
147
147
|
}, i("donation.other-option.label", "Custom amount"))), f && a ? y(f, {
|
|
148
148
|
customAmount: u,
|
|
@@ -168,26 +168,26 @@ const s = ({ children: e }) => {
|
|
|
168
168
|
});
|
|
169
169
|
}));
|
|
170
170
|
}, S = ({ children: e, className: t, ...o }) => {
|
|
171
|
-
const { value: r, price: a } = o, { id: u } = L(), { currency: m, regionalFormat: I } = j(), i = E(e, S.Value), p = E(e, S.Currency), { isCurrencyPrefixed: c } =
|
|
171
|
+
const { value: r, price: a } = o, { id: u } = L(), { currency: m, regionalFormat: I } = j(), i = E(e, S.Value), p = E(e, S.Currency), { isCurrencyPrefixed: c } = W({
|
|
172
172
|
amount: a,
|
|
173
173
|
currency: m == null ? void 0 : m.code,
|
|
174
174
|
locale: I
|
|
175
|
-
}), h =
|
|
176
|
-
|
|
175
|
+
}), h = oe(null);
|
|
176
|
+
me(() => {
|
|
177
177
|
var O, f;
|
|
178
178
|
(f = (O = h.current) == null ? void 0 : O.querySelector("input")) == null || f.focus();
|
|
179
179
|
}, u);
|
|
180
180
|
const _ = i ? y(i, {
|
|
181
181
|
price: a
|
|
182
182
|
}) : null;
|
|
183
|
-
return /* @__PURE__ */ n.createElement(
|
|
183
|
+
return /* @__PURE__ */ n.createElement(G, {
|
|
184
184
|
value: r
|
|
185
|
-
}, /* @__PURE__ */ n.createElement(
|
|
185
|
+
}, /* @__PURE__ */ n.createElement(Y, {
|
|
186
186
|
className: t,
|
|
187
187
|
ref: h
|
|
188
188
|
}, /* @__PURE__ */ n.createElement(n.Fragment, null, c && p, _, !c && p)));
|
|
189
189
|
}, je = ({ className: e, ...t }) => {
|
|
190
|
-
const { price: o } = t, { currency: r, regionalFormat: a } = j(), { value: u } =
|
|
190
|
+
const { price: o } = t, { currency: r, regionalFormat: a } = j(), { value: u } = W({
|
|
191
191
|
amount: o,
|
|
192
192
|
currency: r == null ? void 0 : r.code,
|
|
193
193
|
locale: a
|
|
@@ -204,27 +204,27 @@ const s = ({ children: e }) => {
|
|
|
204
204
|
S.Value = je;
|
|
205
205
|
S.Currency = qe;
|
|
206
206
|
const R = ({ children: e, className: t, ...o }) => {
|
|
207
|
-
const { customAmount: r, onCustomAmountInputChange: a, currency: u, t: m, placeholder: I, customAmountProductId: i, onFocusCustomInput: p } = o, { disabled: c, hasError: h } = L(), { labelId: _, prefixId: O } = B(), f = E(e, R.Currency), A = E(e, R.Value),
|
|
207
|
+
const { customAmount: r, onCustomAmountInputChange: a, currency: u, t: m, placeholder: I, customAmountProductId: i, onFocusCustomInput: p } = o, { disabled: c, hasError: h } = L(), { labelId: _, prefixId: O } = B(), f = E(e, R.Currency), A = E(e, R.Value), N = F((g) => {
|
|
208
208
|
a({
|
|
209
209
|
target: {
|
|
210
|
-
value:
|
|
210
|
+
value: g
|
|
211
211
|
}
|
|
212
212
|
});
|
|
213
213
|
}, [
|
|
214
214
|
a
|
|
215
|
-
]), d =
|
|
215
|
+
]), d = F(() => {
|
|
216
216
|
p();
|
|
217
217
|
}, [
|
|
218
218
|
p
|
|
219
219
|
]);
|
|
220
|
-
return /* @__PURE__ */ n.createElement(
|
|
220
|
+
return /* @__PURE__ */ n.createElement(ae, {
|
|
221
221
|
"aria-labelledby": `${_} ${O}`,
|
|
222
222
|
value: r,
|
|
223
|
-
onChange:
|
|
223
|
+
onChange: N,
|
|
224
224
|
onFocus: d,
|
|
225
225
|
isDisabled: c,
|
|
226
226
|
isInvalid: h
|
|
227
|
-
}, /* @__PURE__ */ n.createElement(
|
|
227
|
+
}, /* @__PURE__ */ n.createElement(le, {
|
|
228
228
|
className: t,
|
|
229
229
|
isDisabled: c,
|
|
230
230
|
isInvalid: h
|
|
@@ -245,7 +245,7 @@ const R = ({ children: e, className: t, ...o }) => {
|
|
|
245
245
|
}, (o == null ? void 0 : o.sign) || (o == null ? void 0 : o.code) || "");
|
|
246
246
|
}, He = ({ className: e, ...t }) => {
|
|
247
247
|
const { placeholder: o, customAmountProductId: r } = t, { ariaDescribedBy: a, labelId: u, prefixId: m } = B();
|
|
248
|
-
return /* @__PURE__ */ n.createElement(
|
|
248
|
+
return /* @__PURE__ */ n.createElement(ie, {
|
|
249
249
|
id: r,
|
|
250
250
|
"aria-labelledby": `${u} ${m}`,
|
|
251
251
|
"aria-describedby": a,
|
|
@@ -258,12 +258,12 @@ const R = ({ children: e, className: t, ...o }) => {
|
|
|
258
258
|
R.Currency = we;
|
|
259
259
|
R.Value = He;
|
|
260
260
|
U.Option = S;
|
|
261
|
-
s.Label =
|
|
261
|
+
s.Label = be;
|
|
262
262
|
s.Control = Be;
|
|
263
263
|
s.Options = U;
|
|
264
264
|
s.OtherInput = R;
|
|
265
|
-
s.Description =
|
|
266
|
-
s.Error =
|
|
265
|
+
s.Description = he;
|
|
266
|
+
s.Error = Oe;
|
|
267
267
|
const Ue = "_control_1fjsf_1", ke = "_options_1fjsf_7", $e = "_option_1fjsf_7", Ve = "_optionHover_1fjsf_44", Ge = "_optionSelected_1fjsf_44", Ye = "_optionCurrency_1fjsf_94", Qe = "_otherInput_1fjsf_98", We = "_otherInputCurrency_1fjsf_117", b = {
|
|
268
268
|
control: Ue,
|
|
269
269
|
options: ke,
|
|
@@ -273,7 +273,7 @@ const Ue = "_control_1fjsf_1", ke = "_options_1fjsf_7", $e = "_option_1fjsf_7",
|
|
|
273
273
|
optionCurrency: Ye,
|
|
274
274
|
otherInput: Qe,
|
|
275
275
|
otherInputCurrency: We
|
|
276
|
-
}, ze = ({ content: e, locale: t }) => /* @__PURE__ */ n.createElement(
|
|
276
|
+
}, ze = ({ content: e, locale: t }) => /* @__PURE__ */ n.createElement(re, {
|
|
277
277
|
content: e,
|
|
278
278
|
locale: t
|
|
279
279
|
}), Je = {
|
|
@@ -282,17 +282,17 @@ const Ue = "_control_1fjsf_1", ke = "_options_1fjsf_7", $e = "_option_1fjsf_7",
|
|
|
282
282
|
hover: b.optionHover
|
|
283
283
|
}, Ke = () => {
|
|
284
284
|
const e = Se(b.otherInput), t = ve({
|
|
285
|
-
globalClasses:
|
|
285
|
+
globalClasses: Ee,
|
|
286
286
|
moduleClasses: Je
|
|
287
287
|
});
|
|
288
288
|
return /* @__PURE__ */ n.createElement(s, null, /* @__PURE__ */ n.createElement(s.Label, {
|
|
289
|
-
className:
|
|
289
|
+
className: D(pe, v.label)
|
|
290
290
|
}, /* @__PURE__ */ n.createElement(s.Label.Required, {
|
|
291
|
-
className:
|
|
291
|
+
className: D(de, v.requiredMark)
|
|
292
292
|
})), /* @__PURE__ */ n.createElement(s.Control, {
|
|
293
|
-
className:
|
|
293
|
+
className: b.control
|
|
294
294
|
}, /* @__PURE__ */ n.createElement(s.Options, {
|
|
295
|
-
className:
|
|
295
|
+
className: D(Ie, De.options, b.options)
|
|
296
296
|
}, /* @__PURE__ */ n.createElement(s.Options.Option, {
|
|
297
297
|
className: ({ isSelected: o, isHovered: r }) => t({
|
|
298
298
|
isSelected: o,
|
|
@@ -307,9 +307,9 @@ const Ue = "_control_1fjsf_1", ke = "_options_1fjsf_7", $e = "_option_1fjsf_7",
|
|
|
307
307
|
}), /* @__PURE__ */ n.createElement(s.OtherInput.Value, {
|
|
308
308
|
className: v.innerInput
|
|
309
309
|
}))), /* @__PURE__ */ n.createElement(s.Error, {
|
|
310
|
-
className:
|
|
311
|
-
}, /* @__PURE__ */ n.createElement(
|
|
312
|
-
className:
|
|
310
|
+
className: D(fe, v.error)
|
|
311
|
+
}, /* @__PURE__ */ n.createElement(Fe, null), /* @__PURE__ */ n.createElement(s.Error.Text, null)), /* @__PURE__ */ n.createElement(s.Description, {
|
|
312
|
+
className: D(Ce, v.description)
|
|
313
313
|
}, ze));
|
|
314
314
|
}, Ct = () => /* @__PURE__ */ n.createElement(Ke, null);
|
|
315
315
|
export {
|
package/dist/component/{dropdown-field-headless-B_W8kD-t.js → dropdown-field-headless-De1WEEXn.js}
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
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 _, ListBox as j, ListBoxItem as z } from "react-aria-components";
|
|
4
|
-
import { b9 as f, b6 as O, bb as G } from "./form-
|
|
4
|
+
import { b9 as f, b6 as O, bb as G } from "./form-CJ_Fa4im.js";
|
|
5
5
|
import { f as d, a as F } from "./find-child-C60k4CxG.js";
|
|
6
|
-
import { D as H, E as J } from "./field-error-headless-
|
|
7
|
-
import { L as K } from "./field-label-headless-
|
|
6
|
+
import { D as H, E as J } from "./field-error-headless-E5JcyvTx.js";
|
|
7
|
+
import { L as K } from "./field-label-headless-iSxxobxd.js";
|
|
8
8
|
import { S as Q, N as W } from "./non-modal-popover-DtIMXHbe.js";
|
|
9
|
-
import { u as X } from "./use-is-forced-open-dropdown-
|
|
9
|
+
import { u as X } from "./use-is-forced-open-dropdown-CjqjVZmI.js";
|
|
10
10
|
const r = ({ children: n }) => {
|
|
11
11
|
const { id: l, value: a, defaultValue: s, options: u = [], readOnly: o, onChange: t, placeholder: m, disabled: i, required: v, onBlur: y, onFocus: D, FieldLayout: C, hasError: I } = f(), [L, h] = E(!1), p = X(l), [B, N] = E(null), P = a && u.some((c) => (c.value ?? c.label) === a) ? a : s || null, { labelId: S } = O(), T = g((c) => {
|
|
12
12
|
o || t(typeof c == "string" ? c : null);
|