@wix/form-elements 1.93.0 → 1.95.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-bw0pvoxP.js → appointment-rac-mhQIjy3A.js} +310 -311
- package/dist/component/{bookings-address-rac-DECq7eWR.js → bookings-address-rac-pcZeAN2d.js} +1 -1
- package/dist/component/{bookings-email-rac-DTLjh6Zw.js → bookings-email-rac-BHdvWhcv.js} +1 -1
- package/dist/component/{bookings-first-name-rac-DObRe-Gq.js → bookings-first-name-rac-mPNuMBGo.js} +1 -1
- package/dist/component/{bookings-header-rac-DjpmYRJG.js → bookings-header-rac-CUzR91gM.js} +1 -1
- package/dist/component/{bookings-last-name-rac-Ds3o0ABM.js → bookings-last-name-rac-q2bsOPke.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-DPUL2jWj.js → bookings-login-bar-rac-BpwVjQwz.js} +4 -4
- package/dist/component/{bookings-phone-rac-DIIHPxEP.js → bookings-phone-rac-DWdDpi-n.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-BrcQO9xx.js → bookings-rich-text-rac-CZnGLPwv.js} +1 -1
- package/dist/component/{get-first-day-of-the-week-DvnsxYhQ.js → calendar.module-DnhTT4QT.js} +23 -18
- package/dist/component/{checkbox-field-rac-CD1MP1LT.js → checkbox-field-rac-DRVjITJ_.js} +7 -7
- package/dist/component/{checkbox-group-field-headless-C0V6zq0u.js → checkbox-group-field-headless-CKXgbUdv.js} +3 -3
- package/dist/component/{checkbox-group-field-rac-B-MYpz53.js → checkbox-group-field-rac-Dt3yWmua.js} +14 -14
- package/dist/component/{checkbox-group-rac-BejQjiO2.js → checkbox-group-rac-BTFoDjxn.js} +1 -1
- package/dist/component/{checkbox-indicator-module-classes-mJ7hl_8K.js → checkbox-indicator-module-classes-DhbNznSB.js} +1 -1
- package/dist/component/{checkbox-rac-B0YgCj29.js → checkbox-rac-Crn5HP7E.js} +1 -1
- package/dist/component/{contacts-address-rac-B1QNl3Lb.js → contacts-address-rac-c1zfBJgx.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-Cp-gh3P-.js → contacts-birthdate-rac-BaaSPZgO.js} +1 -1
- package/dist/component/{contacts-company-rac-CSCU7JGm.js → contacts-company-rac-CzuRjr1D.js} +1 -1
- package/dist/component/{contacts-email-rac-B1Oov6-3.js → contacts-email-rac-hL98o3x4.js} +1 -1
- package/dist/component/{contacts-first-name-rac-rsHIOcjr.js → contacts-first-name-rac-BXTnd1aU.js} +1 -1
- package/dist/component/{contacts-last-name-rac-Csgq53Wm.js → contacts-last-name-rac-DYjmWO4_.js} +1 -1
- package/dist/component/{contacts-phone-rac-r9SwjDZ4.js → contacts-phone-rac-KMnorQhu.js} +1 -1
- package/dist/component/{contacts-position-rac-D7VcCM7v.js → contacts-position-rac-ylzvuGhD.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-8Nu9ncZW.js → contacts-subscribe-rac-Bi3ZazuW.js} +2 -2
- package/dist/component/{contacts-tax-id-rac-CL_JSl_W.js → contacts-tax-id-rac-C01LkO1D.js} +1 -1
- package/dist/component/{date-availability-DLOKY9C4.js → date-availability-BXwnYCBt.js} +1 -1
- package/dist/component/{date-input-field-rac-D23Al-Mr.js → date-input-field-rac-BMdPQoFk.js} +58 -57
- package/dist/component/{date-input-rac-B6zgkw-L.js → date-input-rac-D2mDdJ_4.js} +1 -1
- package/dist/component/date-picker-field-rac-7gyRMkPp.js +317 -0
- package/dist/component/{date-picker-rac-C7g6aceb.js → date-picker-rac-FyNcNbTc.js} +1 -1
- package/dist/component/{date-time-input-field-rac-BENzf6gc.js → date-time-input-field-rac-BTjqn_g-.js} +54 -53
- package/dist/component/{date-time-input-rac-CVpK3mgw.js → date-time-input-rac-C81cN7rJ.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-CbEFDD3H.js → dext-checkbox-group-rac-DAjQPdi_.js} +2 -2
- package/dist/component/{dext-checkbox-rac-BdtZvn6I.js → dext-checkbox-rac-DVt9mAXM.js} +1 -1
- package/dist/component/{dext-date-picker-rac-BAhFvUEx.js → dext-date-picker-rac-BnaExh1i.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-iXMKMwQY.js → dext-date-time-input-rac-DPAW4eBA.js} +1 -1
- package/dist/component/{dext-dropdown-rac-D-NPziZS.js → dext-dropdown-rac-P9T1vh24.js} +1 -1
- package/dist/component/{dext-email-rac-DYSwyB80.js → dext-email-rac-BfEuFGaV.js} +1 -1
- package/dist/component/{dext-number-input-rac-DXx8hgFg.js → dext-number-input-rac-B5eN2rLP.js} +1 -1
- package/dist/component/{dext-phone-rac-BtuLROzm.js → dext-phone-rac-DA-h_tpZ.js} +1 -1
- package/dist/component/{dext-radio-group-rac-MdKNiJ2i.js → dext-radio-group-rac-BjpkApRr.js} +2 -2
- package/dist/component/{dext-rating-input-rac-d998xond.js → dext-rating-input-rac-DUMRW9uI.js} +1 -1
- package/dist/component/{dext-tags-rac-DnSpOM9T.js → dext-tags-rac-s0WchM4X.js} +2 -2
- package/dist/component/{dext-text-area-rac-KqjeDDWe.js → dext-text-area-rac-BRMsiGEH.js} +1 -1
- package/dist/component/{dext-text-input-rac-CtCnClfX.js → dext-text-input-rac-BBZi3D8V.js} +1 -1
- package/dist/component/{dext-url-input-rac-DSJQcLLr.js → dext-url-input-rac-jKMWbCGB.js} +1 -1
- package/dist/component/{donation-rac-B_KGkBgo.js → donation-rac-DyeKbodo.js} +30 -30
- package/dist/component/{dropdown-field-headless-BUilB8wZ.js → dropdown-field-headless-BK8BN3u4.js} +4 -4
- package/dist/component/{dropdown-field-rac-COupYC1a.js → dropdown-field-rac-B6yzL_R0.js} +6 -6
- package/dist/component/{dropdown-rac-Dj0UZrE0.js → dropdown-rac-CQaMpex2.js} +1 -1
- package/dist/component/{ecom-address-rac-C0xnn86e.js → ecom-address-rac-DQr3-QeV.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-D-ekxwUE.js → ecom-subscription-checkbox-rac-CZ-pj21A.js} +3 -3
- package/dist/component/{email-input-field-rac-DVj1qz_R.js → email-input-field-rac-Vp0YfQOe.js} +41 -41
- package/dist/component/{events-repeater-rac-U0aq9Z4Q.js → events-repeater-rac-BPE4Hn_G.js} +6 -6
- package/dist/component/{events-rsvp-rac-C7J58_5q.js → events-rsvp-rac-u_BDmDJ2.js} +21 -21
- package/dist/component/{field-error-headless-2nYJ2792.js → field-error-headless-BOlFtckJ.js} +1 -1
- package/dist/component/{field-label-headless-D97ACnmc.js → field-label-headless-Dx3VrM-U.js} +1 -1
- package/dist/component/field-rac.module-DobpyqOd.js +26 -0
- package/dist/component/{file-upload-rac-BR7QpuPW.js → file-upload-rac-DaFuvO-g.js} +44 -44
- package/dist/component/{fixed-payment-rac-COl18wW1.js → fixed-payment-rac-DpBwOtOf.js} +11 -11
- package/dist/component/{form-DKKTSAj1.js → form-Wsx4lguO.js} +69 -69
- package/dist/component/{form-element-classes-CLZXu-91.js → form-element-classes-BtKlobUX.js} +60 -59
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-B6DyMG3U.js → header-field-rac-C8FlksmH.js} +3 -3
- package/dist/component/{header-rac-x4H2qMky.js → header-rac-C2J-pLq-.js} +1 -1
- package/dist/component/{image-choice-rac-BVgmKTKk.js → image-choice-rac-i4C_OXyb.js} +16 -16
- package/dist/component/{index-C47UMGhd.js → index-C34urqyX.js} +4 -4
- package/dist/component/{index-DnpqBcg5.js → index-CRI82pG6.js} +2 -2
- package/dist/component/{isObjectLike-BrrFBP4f.js → isObjectLike-D-9JnXmU.js} +1 -1
- package/dist/component/{multiline-address-field-rac-B6ka-2Wy.js → multiline-address-field-rac-Dkfso46f.js} +87 -86
- package/dist/component/{multiline-address-rac-Bh58qUEe.js → multiline-address-rac-BjrwDwOk.js} +1 -1
- package/dist/component/{number-input-field-rac-pAmxvk3A.js → number-input-field-rac-CgHi83Q1.js} +19 -19
- package/dist/component/{number-input-rac-mKA2njIU.js → number-input-rac-BinBxOCS.js} +1 -1
- package/dist/component/{password-rac-BbD7PQXO.js → password-rac-CDGqIRW5.js} +38 -38
- package/dist/component/{payment-input-rac-UdkwC1ek.js → payment-input-rac-f4uuGeJF.js} +23 -23
- package/dist/component/{phone-input-field-rac-BVLVVDTq.js → phone-input-field-rac-IdBqjM9Q.js} +33 -32
- package/dist/component/{phone-rac-LixcB9WV.js → phone-rac-VHPMrSpw.js} +1 -1
- package/dist/component/{product-list-rac-B_dL1Ov-.js → product-list-rac-Bk8q5y5L.js} +17 -17
- package/dist/component/{quiz-radio-group-rac-Bj5XfqNf.js → quiz-radio-group-rac-kTWqvAoW.js} +2 -2
- package/dist/component/{radio-button-module-classes-y_PtsZPP.js → radio-button-module-classes-D77Nc48M.js} +3 -3
- package/dist/component/{radio-group-field-rac-C8OElNAQ.js → radio-group-field-rac-DC-AYSOH.js} +5 -5
- package/dist/component/{radio-group-rac-BqJFboHE.js → radio-group-rac-BkswH1Py.js} +1 -1
- package/dist/component/{rating-input-field-rac-C9_ITvEh.js → rating-input-field-rac-Cqgw6PjV.js} +32 -32
- package/dist/component/{rating-input-rac-CvTpEUoU.js → rating-input-rac-CbZhlK3h.js} +1 -1
- package/dist/component/{rich-content-rac.module-D4pEN-TY.js → rich-content-rac.module-j_9YbXMI.js} +1 -1
- package/dist/component/{rich-text-field-rac-B8cqCmaf.js → rich-text-field-rac-Da1EIb3b.js} +3 -3
- package/dist/component/{rich-text-rac-C1o-tfXG.js → rich-text-rac-BarNBtgP.js} +1 -1
- package/dist/component/{service-dropdown-rac-BOXqB2aq.js → service-dropdown-rac-DLIC_csj.js} +36 -36
- package/dist/component/{services-multi-choice-rac-Dk4rz-fw.js → services-multi-choice-rac-vyxtwSM2.js} +14 -14
- package/dist/component/{signature-rac-h9GWVdez.js → signature-rac-DIM2Uwsg.js} +102 -102
- package/dist/component/{submit-button-rac-qNaTyCxd.js → submit-button-rac-DgxjomCu.js} +2 -2
- package/dist/component/{tags-field-rac-NMRn0YnW.js → tags-field-rac-BFlkxifd.js} +67 -67
- package/dist/component/{tags-rac-DGx4KxEn.js → tags-rac-D4TwrAWc.js} +1 -1
- package/dist/component/{text-area-field-rac-C7u0D4l3.js → text-area-field-rac-Dcz7VUQ5.js} +28 -28
- package/dist/component/{text-area-rac-Yo-RIyLm.js → text-area-rac-DhloXdO2.js} +1 -1
- package/dist/component/{text-input-field-rac-CvU-1clq.js → text-input-field-rac-C8e3TMxI.js} +8 -8
- package/dist/component/{text-input-headless-DLRwVmwf.js → text-input-headless-fl7qoZzR.js} +3 -3
- package/dist/component/{text-input-rac-CWh5xjZA.js → text-input-rac-CBn6bHtP.js} +1 -1
- package/dist/component/{time-input-rac-BZlso9qK.js → time-input-rac-Dsm7_vrf.js} +26 -26
- package/dist/component/{url-input-field-rac-Bax0TB4Q.js → url-input-field-rac-9Hfx1xzO.js} +20 -20
- package/dist/component/{url-input-rac-Bw2nfybR.js → url-input-rac-CVlE4pcg.js} +1 -1
- package/dist/component/use-dropdown-option-class-name-Dsxto42_.js +21 -0
- package/dist/component/{use-element-state-class-name-C0zLrsDR.js → use-element-state-class-name-BIqDbVvI.js} +1 -1
- package/dist/component/use-is-forced-open-dropdown-BMPqRDVW.js +41 -0
- package/dist/component/{use-service-options-base-Bkj6BSQL.js → use-service-options-base-07_rqXcG.js} +1 -1
- package/dist/component/{use-text-input-class-name-Biu89Ma7.js → use-text-input-class-name-DqFt59gd.js} +4 -4
- package/package.json +2 -2
- package/dist/component/date-picker-field-rac-BqdzPPzK.js +0 -304
- package/dist/component/field-rac.module-BUvPquav.js +0 -26
- package/dist/component/use-dropdown-option-class-name-vKSagp3b.js +0 -57
|
@@ -1,25 +1,26 @@
|
|
|
1
1
|
import { RicosViewer as se } from "@wix/ricos/viewer";
|
|
2
2
|
import p from "classnames";
|
|
3
|
-
import t, { useMemo as T, useState as
|
|
4
|
-
import { ak as b, ah as
|
|
3
|
+
import t, { useMemo as T, useState as q, useCallback as w, useRef as G, useContext as oe } from "react";
|
|
4
|
+
import { ak as b, ah as Q, ac as B, K as W, a2 as J, s as d, au as L, a6 as j, Q as le, y as ie, a9 as ce, z as K, am as U } from "./form-Wsx4lguO.js";
|
|
5
5
|
import { parseTime as me } from "@internationalized/date";
|
|
6
6
|
import { UNSAFE_PortalProvider as de } from "react-aria";
|
|
7
7
|
import { ListBoxItem as ue, ListBox as pe, Select as Ee, TextField as X, TimeField as fe, SelectValue as he, Input as Z, DateInput as be, DateSegment as k, TimeFieldStateContext as ge } from "react-aria-components";
|
|
8
8
|
import { f as u, a as P } from "./find-child-C60k4CxG.js";
|
|
9
9
|
import { g as Ie } from "./helpers-HmkkXrh2.js";
|
|
10
|
-
import { D as _e, E as De } from "./field-error-headless-
|
|
11
|
-
import { L as Ne } from "./field-label-headless-
|
|
10
|
+
import { D as _e, E as De } from "./field-error-headless-BOlFtckJ.js";
|
|
11
|
+
import { L as Ne } from "./field-label-headless-Dx3VrM-U.js";
|
|
12
12
|
import { F as ye } from "./fieldset-headless-CD3fds9J.js";
|
|
13
13
|
import { N as Oe, S as Te } from "./non-modal-popover-DtIMXHbe.js";
|
|
14
|
-
import {
|
|
15
|
-
import { C as
|
|
16
|
-
import { E as
|
|
14
|
+
import { u as Le } from "./use-is-forced-open-dropdown-BMPqRDVW.js";
|
|
15
|
+
import { C as Fe } from "./chevron-down-icon-CcpVm6B-.js";
|
|
16
|
+
import { E as Ce } from "./error-icon-hZxQ6DEy.js";
|
|
17
17
|
import { H } from "./custom-focus-class-_483Pkwp.js";
|
|
18
|
-
import { s as h } from "./field-rac.module-
|
|
19
|
-
import {
|
|
20
|
-
import { u as
|
|
18
|
+
import { s as h } from "./field-rac.module-DobpyqOd.js";
|
|
19
|
+
import { C as v, S as Pe, n as Me, E as Se, r as ve, j as Re } from "./form-element-classes-BtKlobUX.js";
|
|
20
|
+
import { u as Ae } from "./use-dropdown-option-class-name-Dsxto42_.js";
|
|
21
|
+
import { u as z } from "./use-text-input-class-name-DqFt59gd.js";
|
|
21
22
|
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 } =
|
|
23
|
+
const { id: n, required: o, onBlur: s, onFocus: r, FieldLayout: i } = b(), { inputId: m, labelId: c, ariaDescribedBy: g } = Q(), { regionalFormat: f } = B(), N = T(() => W(f).filter(J).map((S) => S.toUpperCase()), [
|
|
23
24
|
f
|
|
24
25
|
]), M = u(e, l.Label), V = u(e, l.Description), _ = u(e, l.Error), D = {
|
|
25
26
|
[d.MONTH]: u(e, l.Month),
|
|
@@ -43,7 +44,7 @@ const l = ({ children: e, className: a }) => {
|
|
|
43
44
|
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, _, V)
|
|
44
45
|
});
|
|
45
46
|
}, 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: f } = C(d.MONTH), { t: N } = L(), [M, V] =
|
|
47
|
+
const { id: n, disabled: o, readOnly: s, showDateLabels: r, hidePlaceholder: i } = b(), { labelId: m } = O(d.MONTH), { partValue: c, partError: g, onPartChange: f } = C(d.MONTH), { t: N } = L(), [M, V] = q(!1), _ = Le(n), [D, y] = q(null), S = i ? void 0 : N("field.date.placeholder.month"), ee = w((Y) => {
|
|
47
48
|
s || f(typeof Y == "string" ? Y : "");
|
|
48
49
|
}, [
|
|
49
50
|
f,
|
|
@@ -69,13 +70,13 @@ const l = ({ children: e, className: a }) => {
|
|
|
69
70
|
onChange: ee,
|
|
70
71
|
isDisabled: o,
|
|
71
72
|
isInvalid: g,
|
|
72
|
-
placeholder:
|
|
73
|
+
placeholder: S,
|
|
73
74
|
isOpen: _ || M,
|
|
74
75
|
onOpenChange: _ ? void 0 : te
|
|
75
76
|
}, ne, P(re, {
|
|
76
77
|
isForcedOpen: _
|
|
77
78
|
}))));
|
|
78
|
-
}, Ve = ({ className: e }) => /* @__PURE__ */ t.createElement(
|
|
79
|
+
}, Ve = ({ className: e }) => /* @__PURE__ */ t.createElement($, {
|
|
79
80
|
datePart: d.MONTH,
|
|
80
81
|
className: e
|
|
81
82
|
}), Ye = ({ children: e, className: a }) => {
|
|
@@ -91,10 +92,10 @@ const l = ({ children: e, className: a }) => {
|
|
|
91
92
|
"data-invalid": r || void 0,
|
|
92
93
|
"data-readonly": o || void 0
|
|
93
94
|
}, /* @__PURE__ */ t.createElement(he, null), e);
|
|
94
|
-
},
|
|
95
|
-
const { isForcedOpen: o } = n, { language: s } =
|
|
95
|
+
}, x = ({ children: e, className: a, ...n }) => {
|
|
96
|
+
const { isForcedOpen: o } = n, { language: s } = B(), r = T(() => Ie(s), [
|
|
96
97
|
s
|
|
97
|
-
]), i = u(e,
|
|
98
|
+
]), i = u(e, x.Option) ?? /* @__PURE__ */ t.createElement(x.Option, null);
|
|
98
99
|
return /* @__PURE__ */ t.createElement(Oe, {
|
|
99
100
|
className: a,
|
|
100
101
|
containerPadding: 0,
|
|
@@ -116,8 +117,8 @@ const l = ({ children: e, className: a }) => {
|
|
|
116
117
|
};
|
|
117
118
|
F.Label = Ve;
|
|
118
119
|
F.Trigger = Ye;
|
|
119
|
-
F.Options =
|
|
120
|
-
|
|
120
|
+
F.Options = x;
|
|
121
|
+
x.Option = He;
|
|
121
122
|
const R = ({ children: e, className: a }) => {
|
|
122
123
|
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, R.Label), f = u(e, R.Input);
|
|
123
124
|
return /* @__PURE__ */ t.createElement("div", {
|
|
@@ -131,10 +132,10 @@ const R = ({ children: e, className: a }) => {
|
|
|
131
132
|
isReadOnly: o,
|
|
132
133
|
isInvalid: m
|
|
133
134
|
}, f));
|
|
134
|
-
}, we = ({ className: e }) => /* @__PURE__ */ t.createElement(
|
|
135
|
+
}, we = ({ className: e }) => /* @__PURE__ */ t.createElement($, {
|
|
135
136
|
datePart: d.DAY,
|
|
136
137
|
className: e
|
|
137
|
-
}),
|
|
138
|
+
}), xe = ({ className: e }) => {
|
|
138
139
|
const { id: a, hidePlaceholder: n } = b(), { inputId: o } = O(d.DAY), { isFirstPart: s } = C(d.DAY), { t: r } = L(), i = G(null), m = n ? void 0 : r("field.date.placeholder.day");
|
|
139
140
|
return U(() => {
|
|
140
141
|
var c;
|
|
@@ -150,7 +151,7 @@ const R = ({ children: e, className: a }) => {
|
|
|
150
151
|
});
|
|
151
152
|
};
|
|
152
153
|
R.Label = we;
|
|
153
|
-
R.Input =
|
|
154
|
+
R.Input = xe;
|
|
154
155
|
const A = ({ children: e, className: a }) => {
|
|
155
156
|
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, A.Label), f = u(e, A.Input);
|
|
156
157
|
return /* @__PURE__ */ t.createElement("div", {
|
|
@@ -164,7 +165,7 @@ const A = ({ children: e, className: a }) => {
|
|
|
164
165
|
isReadOnly: o,
|
|
165
166
|
isInvalid: m
|
|
166
167
|
}, f));
|
|
167
|
-
},
|
|
168
|
+
}, Be = ({ className: e }) => /* @__PURE__ */ t.createElement($, {
|
|
168
169
|
datePart: d.YEAR,
|
|
169
170
|
className: e
|
|
170
171
|
}), ke = ({ className: e }) => {
|
|
@@ -182,7 +183,7 @@ const A = ({ children: e, className: a }) => {
|
|
|
182
183
|
"data-hook": d.YEAR
|
|
183
184
|
});
|
|
184
185
|
};
|
|
185
|
-
A.Label =
|
|
186
|
+
A.Label = Be;
|
|
186
187
|
A.Input = ke;
|
|
187
188
|
const I = ({ children: e, className: a }) => {
|
|
188
189
|
const { disabled: n, readOnly: o, use24HourFormat: s, showDateLabels: r } = b(), { labelId: i } = O("time"), { partValue: m, partError: c, onPartChange: g } = C("time"), f = u(e, I.Label), N = u(e, I.Input);
|
|
@@ -241,7 +242,7 @@ const I = ({ children: e, className: a }) => {
|
|
|
241
242
|
placeholder: r
|
|
242
243
|
}
|
|
243
244
|
});
|
|
244
|
-
},
|
|
245
|
+
}, $e = ({ className: e, ...a }) => {
|
|
245
246
|
const { hidePlaceholder: n } = b(), { segment: o } = a, { t: s } = L(), r = n ? void 0 : s("field.date.placeholder.minute");
|
|
246
247
|
return /* @__PURE__ */ t.createElement(k, {
|
|
247
248
|
segment: o,
|
|
@@ -250,7 +251,7 @@ const I = ({ children: e, className: a }) => {
|
|
|
250
251
|
placeholder: r
|
|
251
252
|
}
|
|
252
253
|
});
|
|
253
|
-
},
|
|
254
|
+
}, qe = ({ className: e, ...a }) => {
|
|
254
255
|
const { hidePlaceholder: n } = b(), { segment: o } = a, { t: s } = L(), r = oe(ge), i = n ? void 0 : s("field.date.placeholder.period"), m = () => r == null ? void 0 : r.increment("dayPeriod");
|
|
255
256
|
return /* @__PURE__ */ t.createElement(k, {
|
|
256
257
|
segment: o,
|
|
@@ -264,8 +265,8 @@ const I = ({ children: e, className: a }) => {
|
|
|
264
265
|
I.Label = ze;
|
|
265
266
|
I.Input = Ge;
|
|
266
267
|
I.Hour = Ue;
|
|
267
|
-
I.Minute =
|
|
268
|
-
I.Period =
|
|
268
|
+
I.Minute = $e;
|
|
269
|
+
I.Period = qe;
|
|
269
270
|
l.Label = Ne;
|
|
270
271
|
l.Month = F;
|
|
271
272
|
l.Day = R;
|
|
@@ -274,7 +275,7 @@ l.Time = I;
|
|
|
274
275
|
l.Description = _e;
|
|
275
276
|
l.Error = De;
|
|
276
277
|
function O(e) {
|
|
277
|
-
const { inputId: a } =
|
|
278
|
+
const { inputId: a } = Q();
|
|
278
279
|
return T(() => {
|
|
279
280
|
const n = e.toLowerCase();
|
|
280
281
|
return {
|
|
@@ -287,24 +288,24 @@ function O(e) {
|
|
|
287
288
|
]);
|
|
288
289
|
}
|
|
289
290
|
function C(e) {
|
|
290
|
-
const { value: a, onChange: n, hasError: o = !1 } = b(), { regionalFormat: s } =
|
|
291
|
+
const { value: a, onChange: n, hasError: o = !1 } = b(), { regionalFormat: s } = B(), [r, i] = T(() => j(a ?? ""), [
|
|
291
292
|
a
|
|
292
293
|
]), m = T(() => le(o, a ?? ""), [
|
|
293
294
|
a,
|
|
294
295
|
o
|
|
295
296
|
]), c = T(() => ie(r), [
|
|
296
297
|
r
|
|
297
|
-
]), g = T(() =>
|
|
298
|
+
]), g = T(() => je(i), [
|
|
298
299
|
i
|
|
299
300
|
]), f = w((_) => {
|
|
300
|
-
const D =
|
|
301
|
+
const D = Ke(_), y = K(r, D);
|
|
301
302
|
n(y);
|
|
302
303
|
}, [
|
|
303
304
|
n,
|
|
304
305
|
r
|
|
305
306
|
]), N = w((_) => {
|
|
306
|
-
const [, D] =
|
|
307
|
-
n(
|
|
307
|
+
const [, D] = j(a ?? ""), y = ce(_, e, c), S = K(y, D);
|
|
308
|
+
n(S);
|
|
308
309
|
}, [
|
|
309
310
|
n,
|
|
310
311
|
a,
|
|
@@ -326,7 +327,7 @@ function C(e) {
|
|
|
326
327
|
isFirstPart: M
|
|
327
328
|
};
|
|
328
329
|
}
|
|
329
|
-
function
|
|
330
|
+
function $({ datePart: e, className: a }) {
|
|
330
331
|
const { inputId: n, labelId: o } = O(e), { t: s } = L(), r = `field.date.label.${e.toLowerCase()}`, i = s(r);
|
|
331
332
|
return /* @__PURE__ */ t.createElement("label", {
|
|
332
333
|
id: o,
|
|
@@ -334,7 +335,7 @@ function q({ datePart: e, className: a }) {
|
|
|
334
335
|
className: a
|
|
335
336
|
}, i);
|
|
336
337
|
}
|
|
337
|
-
function
|
|
338
|
+
function je(e) {
|
|
338
339
|
if (!e)
|
|
339
340
|
return null;
|
|
340
341
|
try {
|
|
@@ -343,7 +344,7 @@ function Ke(e) {
|
|
|
343
344
|
return null;
|
|
344
345
|
}
|
|
345
346
|
}
|
|
346
|
-
function
|
|
347
|
+
function Ke(e) {
|
|
347
348
|
if (!e)
|
|
348
349
|
return null;
|
|
349
350
|
const a = String(e.hour).padStart(2, "0"), n = String(e.minute).padStart(2, "0"), o = String(e.second).padStart(2, "0");
|
|
@@ -353,8 +354,8 @@ function Qe(e) {
|
|
|
353
354
|
o
|
|
354
355
|
].join(":");
|
|
355
356
|
}
|
|
356
|
-
const
|
|
357
|
-
fields:
|
|
357
|
+
const Qe = "_fields_1svr5_1", We = "_month_1svr5_10", Je = "_day_1svr5_11", Xe = "_year_1svr5_12", Ze = "_timeGroup_1svr5_13", et = "_mobile_1svr5_32", tt = "_dayInput_1svr5_45", at = "_yearInput_1svr5_46", nt = "_monthTrigger_1svr5_50", rt = "_monthOption_1svr5_70", st = "_time_1svr5_13", ot = "_hour_1svr5_89", lt = "_minute_1svr5_90", it = "_period_1svr5_91", E = {
|
|
358
|
+
fields: Qe,
|
|
358
359
|
month: We,
|
|
359
360
|
day: Je,
|
|
360
361
|
year: Xe,
|
|
@@ -371,23 +372,23 @@ const je = "_fields_1svr5_1", We = "_month_1svr5_10", Je = "_day_1svr5_11", Xe =
|
|
|
371
372
|
}, ct = ({ content: e, locale: a }) => /* @__PURE__ */ t.createElement(se, {
|
|
372
373
|
content: e,
|
|
373
374
|
locale: a
|
|
374
|
-
}),
|
|
375
|
-
const e =
|
|
375
|
+
}), St = () => {
|
|
376
|
+
const e = Ae(E.monthOption, H), { isMobile: a } = B(), n = z(E.dayInput), o = z(E.yearInput), s = z(E.time);
|
|
376
377
|
return /* @__PURE__ */ t.createElement(l, {
|
|
377
378
|
className: p(E.fields, {
|
|
378
379
|
[E.mobile]: a
|
|
379
380
|
})
|
|
380
381
|
}, /* @__PURE__ */ t.createElement(l.Label, {
|
|
381
|
-
className: p(
|
|
382
|
+
className: p(v, h.label)
|
|
382
383
|
}, /* @__PURE__ */ t.createElement(l.Label.Required, {
|
|
383
|
-
className: p(
|
|
384
|
+
className: p(Pe, h.requiredMark)
|
|
384
385
|
})), /* @__PURE__ */ t.createElement(l.Month, {
|
|
385
386
|
className: E.month
|
|
386
387
|
}, /* @__PURE__ */ t.createElement(l.Month.Label, {
|
|
387
|
-
className: p(
|
|
388
|
+
className: p(v, h.label)
|
|
388
389
|
}), /* @__PURE__ */ t.createElement(l.Month.Trigger, {
|
|
389
|
-
className: p(
|
|
390
|
-
}, /* @__PURE__ */ t.createElement(
|
|
390
|
+
className: p(Me, h.input, E.monthTrigger)
|
|
391
|
+
}, /* @__PURE__ */ t.createElement(Fe, {
|
|
391
392
|
className: h.dropdownIcon
|
|
392
393
|
})), /* @__PURE__ */ t.createElement(l.Month.Options, {
|
|
393
394
|
className: p(Se, h.selectPopover, h.dropdownPopover)
|
|
@@ -396,19 +397,19 @@ const je = "_fields_1svr5_1", We = "_month_1svr5_10", Je = "_day_1svr5_11", Xe =
|
|
|
396
397
|
}))), /* @__PURE__ */ t.createElement(l.Day, {
|
|
397
398
|
className: E.day
|
|
398
399
|
}, /* @__PURE__ */ t.createElement(l.Day.Label, {
|
|
399
|
-
className: p(
|
|
400
|
+
className: p(v, h.label)
|
|
400
401
|
}), /* @__PURE__ */ t.createElement(l.Day.Input, {
|
|
401
402
|
className: n
|
|
402
403
|
})), /* @__PURE__ */ t.createElement(l.Year, {
|
|
403
404
|
className: E.year
|
|
404
405
|
}, /* @__PURE__ */ t.createElement(l.Year.Label, {
|
|
405
|
-
className: p(
|
|
406
|
+
className: p(v, h.label)
|
|
406
407
|
}), /* @__PURE__ */ t.createElement(l.Year.Input, {
|
|
407
408
|
className: o
|
|
408
409
|
})), /* @__PURE__ */ t.createElement(l.Time, {
|
|
409
410
|
className: E.timeGroup
|
|
410
411
|
}, /* @__PURE__ */ t.createElement(l.Time.Label, {
|
|
411
|
-
className: p(
|
|
412
|
+
className: p(v, h.label)
|
|
412
413
|
}), /* @__PURE__ */ t.createElement(l.Time.Input, {
|
|
413
414
|
className: s
|
|
414
415
|
}, /* @__PURE__ */ t.createElement(l.Time.Hour, {
|
|
@@ -418,11 +419,11 @@ const je = "_fields_1svr5_1", We = "_month_1svr5_10", Je = "_day_1svr5_11", Xe =
|
|
|
418
419
|
}), /* @__PURE__ */ t.createElement(l.Time.Period, {
|
|
419
420
|
className: p(E.period, H)
|
|
420
421
|
}))), /* @__PURE__ */ t.createElement(l.Error, {
|
|
421
|
-
className: p(
|
|
422
|
-
}, /* @__PURE__ */ t.createElement(
|
|
423
|
-
className: p(
|
|
422
|
+
className: p(ve, h.error)
|
|
423
|
+
}, /* @__PURE__ */ t.createElement(Ce, null), /* @__PURE__ */ t.createElement(l.Error.Text, null)), /* @__PURE__ */ t.createElement(l.Description, {
|
|
424
|
+
className: p(Re, h.description)
|
|
424
425
|
}, ct));
|
|
425
426
|
};
|
|
426
427
|
export {
|
|
427
|
-
|
|
428
|
+
St as D
|
|
428
429
|
};
|
package/dist/component/{dext-checkbox-group-rac-CbEFDD3H.js → dext-checkbox-group-rac-DAjQPdi_.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import o from "react";
|
|
2
|
-
import { ak as e, h as t } from "./form-
|
|
3
|
-
import { C as p } from "./checkbox-group-field-rac-
|
|
2
|
+
import { ak as e, h as t } from "./form-Wsx4lguO.js";
|
|
3
|
+
import { C as p } from "./checkbox-group-field-rac-Dt3yWmua.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-MdKNiJ2i.js → dext-radio-group-rac-BjpkApRr.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import r from "react";
|
|
2
|
-
import { ak as e, h as t } from "./form-
|
|
3
|
-
import { R as p } from "./radio-group-field-rac-
|
|
2
|
+
import { ak as e, h as t } from "./form-Wsx4lguO.js";
|
|
3
|
+
import { R as p } from "./radio-group-field-rac-DC-AYSOH.js";
|
|
4
4
|
import { a } from "./default-limits-D7qVv_Hv.js";
|
|
5
5
|
const l = () => {
|
|
6
6
|
const o = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import r from "react";
|
|
2
|
-
import { ak as e, h as o } from "./form-
|
|
3
|
-
import { T as s } from "./tags-field-rac-
|
|
2
|
+
import { ak as e, h as o } from "./form-Wsx4lguO.js";
|
|
3
|
+
import { T as s } from "./tags-field-rac-BFlkxifd.js";
|
|
4
4
|
import { b as a } from "./default-limits-D7qVv_Hv.js";
|
|
5
5
|
const l = () => {
|
|
6
6
|
const t = {
|
|
@@ -3,21 +3,21 @@ 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 { P as Q, ak as L, ah as B, au as ue, ac as A, am as me } from "./form-
|
|
6
|
+
import { P as Q, ak as L, ah as B, au as ue, ac as A, am as me } from "./form-Wsx4lguO.js";
|
|
7
7
|
import { f, a as y } from "./find-child-C60k4CxG.js";
|
|
8
8
|
import { a as W } from "./format-currency-BwShJ9vM.js";
|
|
9
|
-
import { D as pe, E as de } from "./field-error-headless-
|
|
10
|
-
import { L as Ce } from "./field-label-headless-
|
|
9
|
+
import { D as pe, E as de } from "./field-error-headless-BOlFtckJ.js";
|
|
10
|
+
import { L as Ce } from "./field-label-headless-Dx3VrM-U.js";
|
|
11
11
|
import { N as Ie } from "./options-layout-constants-DEfIEJWD.js";
|
|
12
12
|
import { a as Ee, b as fe } from "./numeric-input-utils-CuBMi4-a.js";
|
|
13
13
|
import { g as Oe } from "./payment-field-utils-DobiK5Xh.js";
|
|
14
14
|
import { u as he } from "./use-synced-display-value-DcAxdn3M.js";
|
|
15
15
|
import { E as _e } from "./error-icon-hZxQ6DEy.js";
|
|
16
|
-
import { s as
|
|
17
|
-
import {
|
|
18
|
-
import { o as
|
|
19
|
-
import { u as
|
|
20
|
-
import { u as ve } from "./use-text-input-class-name-
|
|
16
|
+
import { s as S } from "./field-rac.module-DobpyqOd.js";
|
|
17
|
+
import { C as be, S as ye, k as Ne, r as ge, j as Fe, l as De } from "./form-element-classes-BtKlobUX.js";
|
|
18
|
+
import { o as Se } from "./options-rac.module-KM-VT_KY.js";
|
|
19
|
+
import { u as Re } from "./use-element-state-class-name-BIqDbVvI.js";
|
|
20
|
+
import { u as ve } from "./use-text-input-class-name-DqFt59gd.js";
|
|
21
21
|
function Le(e, t) {
|
|
22
22
|
return e.reduce((o, r) => (o[r[t]] = r, o), {});
|
|
23
23
|
}
|
|
@@ -60,11 +60,11 @@ const s = ({ children: e }) => {
|
|
|
60
60
|
]), l = x(() => u ? Me(g) : void 0, [
|
|
61
61
|
g,
|
|
62
62
|
u
|
|
63
|
-
]), J = Pe(d, l), [
|
|
63
|
+
]), J = Pe(d, l), [k, M] = he({
|
|
64
64
|
sourceValue: J,
|
|
65
65
|
format: (E) => fe(String(E ?? ""), N),
|
|
66
66
|
regionalFormat: N
|
|
67
|
-
}),
|
|
67
|
+
}), q = F((E) => {
|
|
68
68
|
r(xe(E, d, T)), M("");
|
|
69
69
|
}, [
|
|
70
70
|
r,
|
|
@@ -82,22 +82,22 @@ const s = ({ children: e }) => {
|
|
|
82
82
|
H
|
|
83
83
|
]), K = F((E) => {
|
|
84
84
|
(d == null ? void 0 : d.productId) !== (l == null ? void 0 : l.id) && r(void 0);
|
|
85
|
-
const { validInput: P, validNumber: ne } = Ee(E.target.value, je,
|
|
85
|
+
const { validInput: P, validNumber: ne } = Ee(E.target.value, je, k, N);
|
|
86
86
|
M(P), $(ne);
|
|
87
87
|
}, [
|
|
88
88
|
N,
|
|
89
89
|
r,
|
|
90
90
|
d,
|
|
91
91
|
l,
|
|
92
|
-
|
|
92
|
+
k,
|
|
93
93
|
$,
|
|
94
94
|
M
|
|
95
95
|
]), w = (d == null ? void 0 : d.productId) || null, X = F(() => {
|
|
96
|
-
l != null && l.id && w !== l.id &&
|
|
96
|
+
l != null && l.id && w !== l.id && q(l.id);
|
|
97
97
|
}, [
|
|
98
98
|
l == null ? void 0 : l.id,
|
|
99
99
|
w,
|
|
100
|
-
|
|
100
|
+
q
|
|
101
101
|
]), Z = f(e, s.Label), V = f(e, s.Control), ee = f(e, s.Description), te = f(e, s.Error);
|
|
102
102
|
return /* @__PURE__ */ n.createElement(C, {
|
|
103
103
|
fieldId: t,
|
|
@@ -105,7 +105,7 @@ const s = ({ children: e }) => {
|
|
|
105
105
|
renderInput: () => /* @__PURE__ */ n.createElement(se, {
|
|
106
106
|
"aria-labelledby": _,
|
|
107
107
|
value: w,
|
|
108
|
-
onChange:
|
|
108
|
+
onChange: q,
|
|
109
109
|
isDisabled: a,
|
|
110
110
|
isInvalid: O,
|
|
111
111
|
isRequired: m,
|
|
@@ -114,7 +114,7 @@ const s = ({ children: e }) => {
|
|
|
114
114
|
}, V ? y(V, {
|
|
115
115
|
productsById: T,
|
|
116
116
|
addOther: u,
|
|
117
|
-
customAmount:
|
|
117
|
+
customAmount: k,
|
|
118
118
|
onCustomAmountInputChange: K,
|
|
119
119
|
currency: j,
|
|
120
120
|
t: I,
|
|
@@ -169,8 +169,8 @@ const s = ({ children: e }) => {
|
|
|
169
169
|
price: C || "0"
|
|
170
170
|
});
|
|
171
171
|
}));
|
|
172
|
-
},
|
|
173
|
-
const { value: r, price: a } = o, { id: m } = L(), { currency: p, regionalFormat: h } = A(), c = f(e,
|
|
172
|
+
}, R = ({ children: e, className: t, ...o }) => {
|
|
173
|
+
const { value: r, price: a } = o, { id: m } = L(), { currency: p, regionalFormat: h } = A(), c = f(e, R.Value), u = f(e, R.Currency), { isCurrencyPrefixed: i } = W({
|
|
174
174
|
amount: a,
|
|
175
175
|
currency: p == null ? void 0 : p.code,
|
|
176
176
|
locale: h
|
|
@@ -188,7 +188,7 @@ const s = ({ children: e }) => {
|
|
|
188
188
|
className: t,
|
|
189
189
|
ref: C
|
|
190
190
|
}, /* @__PURE__ */ n.createElement(n.Fragment, null, i && u, O, !i && u)));
|
|
191
|
-
},
|
|
191
|
+
}, ke = ({ className: e, ...t }) => {
|
|
192
192
|
const { price: o } = t, { currency: r, regionalFormat: a } = A(), { value: m } = W({
|
|
193
193
|
amount: o,
|
|
194
194
|
currency: r == null ? void 0 : r.code,
|
|
@@ -197,14 +197,14 @@ const s = ({ children: e }) => {
|
|
|
197
197
|
return /* @__PURE__ */ n.createElement("span", {
|
|
198
198
|
className: e
|
|
199
199
|
}, m);
|
|
200
|
-
},
|
|
200
|
+
}, qe = ({ className: e }) => {
|
|
201
201
|
const { currency: t } = A();
|
|
202
202
|
return /* @__PURE__ */ n.createElement("span", {
|
|
203
203
|
className: e
|
|
204
204
|
}, (t == null ? void 0 : t.sign) || (t == null ? void 0 : t.code) || "");
|
|
205
205
|
};
|
|
206
|
-
|
|
207
|
-
|
|
206
|
+
R.Value = ke;
|
|
207
|
+
R.Currency = qe;
|
|
208
208
|
const v = ({ children: e, className: t, ...o }) => {
|
|
209
209
|
const { customAmount: r, onCustomAmountInputChange: a, currency: m, t: p, placeholder: h, customAmountProductId: c, onFocusCustomInput: u } = o, { disabled: i, hasError: C } = L(), { labelId: O, prefixId: _ } = B(), I = f(e, v.Currency), j = f(e, v.Value), N = F((g) => {
|
|
210
210
|
a({
|
|
@@ -259,7 +259,7 @@ const v = ({ children: e, className: t, ...o }) => {
|
|
|
259
259
|
};
|
|
260
260
|
v.Currency = we;
|
|
261
261
|
v.Value = Ue;
|
|
262
|
-
U.Option =
|
|
262
|
+
U.Option = R;
|
|
263
263
|
s.Label = Ce;
|
|
264
264
|
s.Control = Be;
|
|
265
265
|
s.Options = U;
|
|
@@ -283,18 +283,18 @@ const He = "_control_1jl2j_1", $e = "_options_1jl2j_7", Ve = "_option_1jl2j_7",
|
|
|
283
283
|
selected: b.optionSelected,
|
|
284
284
|
hover: b.optionHover
|
|
285
285
|
}, Xe = () => {
|
|
286
|
-
const e = ve(b.otherInput), t =
|
|
286
|
+
const e = ve(b.otherInput), t = Re({
|
|
287
287
|
globalClasses: De,
|
|
288
288
|
moduleClasses: Ke
|
|
289
289
|
});
|
|
290
290
|
return /* @__PURE__ */ n.createElement(s, null, /* @__PURE__ */ n.createElement(s.Label, {
|
|
291
|
-
className: D(be,
|
|
291
|
+
className: D(be, S.label)
|
|
292
292
|
}, /* @__PURE__ */ n.createElement(s.Label.Required, {
|
|
293
|
-
className: D(ye,
|
|
293
|
+
className: D(ye, S.requiredMark)
|
|
294
294
|
})), /* @__PURE__ */ n.createElement(s.Control, {
|
|
295
295
|
className: b.control
|
|
296
296
|
}, /* @__PURE__ */ n.createElement(s.Options, {
|
|
297
|
-
className: D(Ne,
|
|
297
|
+
className: D(Ne, Se.options, b.options)
|
|
298
298
|
}, /* @__PURE__ */ n.createElement(s.Options.Option, {
|
|
299
299
|
className: ({ isSelected: o, isHovered: r }) => t({
|
|
300
300
|
isSelected: o,
|
|
@@ -307,11 +307,11 @@ const He = "_control_1jl2j_1", $e = "_options_1jl2j_7", Ve = "_option_1jl2j_7",
|
|
|
307
307
|
}, /* @__PURE__ */ n.createElement(s.OtherInput.Currency, {
|
|
308
308
|
className: b.otherInputCurrency
|
|
309
309
|
}), /* @__PURE__ */ n.createElement(s.OtherInput.Value, {
|
|
310
|
-
className:
|
|
310
|
+
className: S.innerInput
|
|
311
311
|
}))), /* @__PURE__ */ n.createElement(s.Error, {
|
|
312
|
-
className: D(ge,
|
|
312
|
+
className: D(ge, S.error)
|
|
313
313
|
}, /* @__PURE__ */ n.createElement(_e, null), /* @__PURE__ */ n.createElement(s.Error.Text, null)), /* @__PURE__ */ n.createElement(s.Description, {
|
|
314
|
-
className: D(Fe,
|
|
314
|
+
className: D(Fe, S.description)
|
|
315
315
|
}, Je));
|
|
316
316
|
}, ht = () => /* @__PURE__ */ n.createElement(Xe, null);
|
|
317
317
|
export {
|
package/dist/component/{dropdown-field-headless-BUilB8wZ.js → dropdown-field-headless-BK8BN3u4.js}
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import e, { useState as g, useCallback as b, 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 { ak as f, ah as O, am as G } from "./form-
|
|
4
|
+
import { ak as f, ah as O, am as G } from "./form-Wsx4lguO.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-BOlFtckJ.js";
|
|
7
|
+
import { L as K } from "./field-label-headless-Dx3VrM-U.js";
|
|
8
8
|
import { S as Q, N as W } from "./non-modal-popover-DtIMXHbe.js";
|
|
9
|
-
import {
|
|
9
|
+
import { u as X } from "./use-is-forced-open-dropdown-BMPqRDVW.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: h, hasError: C } = f(), [I, L] = g(!1), p = X(l), [B, N] = g(null), P = a && u.some((c) => (c.value ?? c.label) === a) ? a : s || null, { labelId: S } = O(), T = b((c) => {
|
|
12
12
|
o || t(typeof c == "string" ? c : null);
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { RicosViewer as m } from "@wix/ricos/viewer";
|
|
2
2
|
import t from "classnames";
|
|
3
3
|
import e from "react";
|
|
4
|
-
import { D as r } from "./dropdown-field-headless-
|
|
4
|
+
import { D as r } from "./dropdown-field-headless-BK8BN3u4.js";
|
|
5
5
|
import { C as n } from "./chevron-down-icon-CcpVm6B-.js";
|
|
6
6
|
import { E as l } from "./error-icon-hZxQ6DEy.js";
|
|
7
7
|
import { H as c } from "./custom-focus-class-_483Pkwp.js";
|
|
8
|
-
import { s as o } from "./field-rac.module-
|
|
9
|
-
import {
|
|
10
|
-
import { u as O } from "./use-dropdown-option-class-name-
|
|
8
|
+
import { s as o } from "./field-rac.module-DobpyqOd.js";
|
|
9
|
+
import { C as E, S as i, n as p, E as _, r as R, j as D } from "./form-element-classes-BtKlobUX.js";
|
|
10
|
+
import { u as O } from "./use-dropdown-option-class-name-Dsxto42_.js";
|
|
11
11
|
const S = ({ content: a, locale: s }) => /* @__PURE__ */ e.createElement(m, {
|
|
12
12
|
content: a,
|
|
13
13
|
locale: s
|
|
14
14
|
}), M = () => {
|
|
15
15
|
const a = O(c);
|
|
16
16
|
return /* @__PURE__ */ e.createElement(r, null, /* @__PURE__ */ e.createElement(r.Label, {
|
|
17
|
-
className: t(
|
|
17
|
+
className: t(E, o.label)
|
|
18
18
|
}, /* @__PURE__ */ e.createElement(r.Label.Required, {
|
|
19
|
-
className: t(
|
|
19
|
+
className: t(i, o.requiredMark)
|
|
20
20
|
})), /* @__PURE__ */ e.createElement(r.Trigger, {
|
|
21
21
|
className: t(p, o.input, o.dropdownTrigger)
|
|
22
22
|
}, /* @__PURE__ */ e.createElement(n, {
|