@wix/form-elements 1.84.0 → 1.85.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-BSy3u0GK.js → appointment-rac-CCaJ6P5r.js} +78 -78
- package/dist/component/{bookings-address-rac-CL7Bh1yH.js → bookings-address-rac-DEt9SGPG.js} +1 -1
- package/dist/component/{bookings-email-rac-Bw9tj_tv.js → bookings-email-rac-BydOvOUZ.js} +1 -1
- package/dist/component/{bookings-first-name-rac-BOOu_AXM.js → bookings-first-name-rac-BoQki0Pb.js} +1 -1
- package/dist/component/{bookings-header-rac-3kBei7GF.js → bookings-header-rac-DK-EcXrk.js} +1 -1
- package/dist/component/{bookings-last-name-rac-CUKbu22q.js → bookings-last-name-rac-BuGIyd43.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-CLrUhdX2.js → bookings-login-bar-rac-Cr500ehb.js} +6 -6
- package/dist/component/{bookings-phone-rac-7DViellg.js → bookings-phone-rac-Bq2zdMxo.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-CIUZX--G.js → bookings-rich-text-rac-DRmfusX9.js} +1 -1
- package/dist/component/{checkbox-field-rac-C_jth3RK.js → checkbox-field-rac-b9mcZlMP.js} +5 -5
- package/dist/component/{checkbox-group-field-headless-D-c9Kyj8.js → checkbox-group-field-headless-BSNhdCfs.js} +30 -30
- package/dist/component/{checkbox-group-field-rac-MgGUuYII.js → checkbox-group-field-rac-BObfui8r.js} +6 -6
- package/dist/component/{checkbox-group-rac-rr1mN2EJ.js → checkbox-group-rac-CBNMgBHU.js} +1 -1
- package/dist/component/{checkbox-rac-CRsLQKhN.js → checkbox-rac-DXh-i6Ot.js} +1 -1
- package/dist/component/{contacts-address-rac-BFlNbQKh.js → contacts-address-rac-BDQLFakc.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-D7Ww3iAz.js → contacts-birthdate-rac-BUMVVVfb.js} +1 -1
- package/dist/component/{contacts-company-rac-DLl4nqH-.js → contacts-company-rac-CidGcaA3.js} +1 -1
- package/dist/component/{contacts-email-rac-K8fCs8qS.js → contacts-email-rac-GePAhKDQ.js} +1 -1
- package/dist/component/{contacts-first-name-rac-BOTxHl3m.js → contacts-first-name-rac-kw5sIBEE.js} +1 -1
- package/dist/component/{contacts-last-name-rac-bFnG-7Hm.js → contacts-last-name-rac-DzoZKs1n.js} +1 -1
- package/dist/component/{contacts-phone-rac-B4teqDIV.js → contacts-phone-rac-CxVW4Zp0.js} +1 -1
- package/dist/component/{contacts-position-rac-CnWoXO5h.js → contacts-position-rac-CXFxlSty.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-Bco722BU.js → contacts-subscribe-rac-kpRGeELB.js} +2 -2
- package/dist/component/{contacts-tax-id-rac-QQsKhAx3.js → contacts-tax-id-rac-B5qw-rtP.js} +1 -1
- package/dist/component/{date-availability-DMbyb1GZ.js → date-availability-BCDMem-_.js} +1 -1
- package/dist/component/{date-input-field-rac-CVRjO19U.js → date-input-field-rac-BLDZ4_Mw.js} +43 -43
- package/dist/component/{date-input-rac-zi7AQ8Ai.js → date-input-rac-B1WGYKOp.js} +1 -1
- package/dist/component/{date-picker-field-rac-5H10gH9D.js → date-picker-field-rac-BNd8aZ0c.js} +20 -20
- package/dist/component/{date-picker-rac-CxWNDsyJ.js → date-picker-rac-ItWxSngw.js} +1 -1
- package/dist/component/{date-time-input-field-rac-CDa-nyf8.js → date-time-input-field-rac-Ch8z0NRT.js} +5 -5
- package/dist/component/{date-time-input-rac-DglwFYb0.js → date-time-input-rac-FebIovNN.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-BBB652Uy.js → dext-checkbox-group-rac-BXYHMQ3R.js} +2 -2
- package/dist/component/{dext-checkbox-rac-BVtiGV3w.js → dext-checkbox-rac-C78ScIGY.js} +1 -1
- package/dist/component/{dext-date-picker-rac-Di4x6sI_.js → dext-date-picker-rac-BptT4fhe.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-agWHwUo7.js → dext-date-time-input-rac-RWJ51IjA.js} +1 -1
- package/dist/component/{dext-dropdown-rac-U3FZTA2-.js → dext-dropdown-rac-DZDOtSIG.js} +1 -1
- package/dist/component/{dext-email-rac-CZ9AQw_k.js → dext-email-rac-CJceqZsw.js} +1 -1
- package/dist/component/{dext-number-input-rac-DFr_9ZX5.js → dext-number-input-rac-buSXk49E.js} +1 -1
- package/dist/component/{dext-phone-rac-BYsfNwXn.js → dext-phone-rac-CeHUOWck.js} +1 -1
- package/dist/component/{dext-radio-group-rac-B_jm5YAT.js → dext-radio-group-rac-CNyNSfeP.js} +2 -2
- package/dist/component/{dext-rating-input-rac-CNlhMKt-.js → dext-rating-input-rac-mmdh9tYT.js} +1 -1
- package/dist/component/{dext-tags-rac-y9x8Fg54.js → dext-tags-rac-CqJ4iv-V.js} +2 -2
- package/dist/component/{dext-text-area-rac-BgRxIpn9.js → dext-text-area-rac-P1EzLNDE.js} +1 -1
- package/dist/component/{dext-text-input-rac-CdzgUZ38.js → dext-text-input-rac-Dtz4ZLj7.js} +1 -1
- package/dist/component/{dext-url-input-rac-Cg1TYyNV.js → dext-url-input-rac-DUVbW2yl.js} +1 -1
- package/dist/component/{donation-rac-Deiw7Tl9.js → donation-rac-Nn7z8_to.js} +43 -43
- package/dist/component/{dropdown-field-headless-BKj2rdy9.js → dropdown-field-headless-CT4uSCPR.js} +11 -11
- package/dist/component/{dropdown-field-rac-CIdC2_O3.js → dropdown-field-rac-CUiyFJi_.js} +5 -5
- package/dist/component/{dropdown-rac-CYxaJrXP.js → dropdown-rac-Bs_PVy1q.js} +1 -1
- package/dist/component/{ecom-address-rac-Crr3A_iU.js → ecom-address-rac-BTXwDlMM.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-DdXAex4c.js → ecom-subscription-checkbox-rac-CGI84A37.js} +3 -3
- package/dist/component/{email-input-field-rac-C516Fm0v.js → email-input-field-rac-DKD7FsQX.js} +54 -54
- package/dist/component/{events-repeater-rac-DL49KaIU.js → events-repeater-rac-B7yIRlyt.js} +30 -30
- package/dist/component/{events-rsvp-rac-B5EvAP8x.js → events-rsvp-rac-C7FOuFmH.js} +3 -3
- package/dist/component/{field-error-headless-D2CJ4Qk7.js → field-error-headless-BHTkMu35.js} +1 -1
- package/dist/component/{field-label-headless-D2-WvVKT.js → field-label-headless-D3DwX65k.js} +7 -7
- package/dist/component/{file-upload-rac-BG3msdbn.js → file-upload-rac-B3n_LYYK.js} +85 -85
- package/dist/component/{fixed-payment-rac-3bI_h_W0.js → fixed-payment-rac-C6jsiS4-.js} +12 -12
- package/dist/component/{form-B3KiRFhB.js → form-BkmOXzqo.js} +2510 -2487
- package/dist/component/{form-element-classes-Ct1UaxuQ.js → form-element-classes-BsXkFtp2.js} +90 -57
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-Bp7hStrt.js → header-field-rac-FG9EP9--.js} +5 -5
- package/dist/component/{header-rac-yVYId2B_.js → header-rac-DZZgqFjW.js} +1 -1
- package/dist/component/{image-choice-rac-D1mqJfcn.js → image-choice-rac-CXgE6z_f.js} +42 -42
- package/dist/component/{index-LrdDmlej.js → index-CSwTHDCX.js} +2 -2
- package/dist/component/{index-B0PANcv8.js → index-DKV2sNhD.js} +4 -4
- package/dist/component/{isObjectLike-DH7T0Txd.js → isObjectLike-DYfHbEQ3.js} +1 -1
- package/dist/component/{multiline-address-field-rac-C-gtuNCU.js → multiline-address-field-rac-DnCOKW8F.js} +128 -128
- package/dist/component/{multiline-address-rac-B3ixmNqi.js → multiline-address-rac-BZRlzLZq.js} +1 -1
- package/dist/component/{number-input-field-rac-BNPMYFay.js → number-input-field-rac-BOJNJ50c.js} +30 -30
- package/dist/component/{number-input-rac-BaEBt2uf.js → number-input-rac-D8ZcIPwq.js} +1 -1
- package/dist/component/{password-rac-B0H_ILkt.js → password-rac-T9PR5j2v.js} +19 -19
- package/dist/component/{payment-input-rac-LIk9MP5a.js → payment-input-rac-C9N3LZOZ.js} +17 -17
- package/dist/component/{phone-input-field-rac-CUUAacDK.js → phone-input-field-rac-BxUiCV5Z.js} +40 -40
- package/dist/component/{phone-rac-BYqYOw60.js → phone-rac-BjKFrr86.js} +1 -1
- package/dist/component/{product-list-rac-CvoI6ajr.js → product-list-rac-BG-VK_Hz.js} +41 -41
- package/dist/component/{quiz-radio-group-rac-D0IJGSh0.js → quiz-radio-group-rac-B1x7Yatu.js} +2 -2
- package/dist/component/{radio-button-module-classes-CWfSY9kQ.js → radio-button-module-classes-BXWANbga.js} +7 -7
- package/dist/component/{radio-group-field-rac-DisEhh0b.js → radio-group-field-rac-DmEOydAr.js} +4 -4
- package/dist/component/{radio-group-rac-DrwjFNWh.js → radio-group-rac-DAcU_lkj.js} +1 -1
- package/dist/component/{rating-input-field-rac-BLMQWT7z.js → rating-input-field-rac-Cazqeqzw.js} +16 -16
- package/dist/component/{rating-input-rac-CGJY2HSO.js → rating-input-rac-KJ8FnJTj.js} +1 -1
- package/dist/component/{rich-content-rac.module-C9cKdumu.js → rich-content-rac.module-PZgMV2M7.js} +1 -1
- package/dist/component/{rich-text-field-rac-DTSRvaTK.js → rich-text-field-rac-DNEeY_m8.js} +3 -3
- package/dist/component/{rich-text-rac-Blk3neHN.js → rich-text-rac-g9upYD25.js} +1 -1
- package/dist/component/{service-dropdown-rac-C9P5IWrV.js → service-dropdown-rac-CmmWetDa.js} +20 -20
- package/dist/component/{services-multi-choice-rac-Cnhwy1a9.js → services-multi-choice-rac-D0PJNlq2.js} +7 -7
- package/dist/component/{signature-rac-Benar-ci.js → signature-rac-Q4G3uEhw.js} +41 -41
- package/dist/component/submit-button-rac-DdLPGJ6v.js +141 -0
- package/dist/component/{tags-field-rac-wA_0ZinI.js → tags-field-rac-PZ8Vfmsn.js} +72 -72
- package/dist/component/{tags-rac-BcVGekA6.js → tags-rac-DLjeR5G1.js} +1 -1
- package/dist/component/{text-area-field-rac-VpuojNac.js → text-area-field-rac-BNVK0R0Z.js} +25 -25
- package/dist/component/{text-area-rac-DDvi8u5M.js → text-area-rac-CNOLe3Vx.js} +1 -1
- package/dist/component/{text-input-field-rac-C6LohBtn.js → text-input-field-rac-DjdW6TCf.js} +3 -3
- package/dist/component/{text-input-headless-5yKhWpLD.js → text-input-headless-DFWQwZAN.js} +10 -10
- package/dist/component/{text-input-rac-C8hsNUp6.js → text-input-rac-GXPtQEjT.js} +1 -1
- package/dist/component/{time-input-rac-fOT-pjju.js → time-input-rac-B_g-erqu.js} +19 -19
- package/dist/component/{url-input-field-rac-DxR6Hymf.js → url-input-field-rac-CXWYeQLf.js} +19 -19
- package/dist/component/{url-input-rac-B928R10o.js → url-input-rac-DX-vjyXj.js} +1 -1
- package/dist/component/use-element-state-class-name-lZnP6sE6.js +22 -0
- package/dist/component/{use-service-options-base-UyJmT2P6.js → use-service-options-base-BJE86Rzo.js} +5 -5
- package/dist/component/{use-text-input-class-name-Qk2v8a6-.js → use-text-input-class-name-B-GYaltW.js} +5 -5
- package/dist/form.d.ts +58 -2
- package/package.json +5 -3
- package/dist/component/submit-button-rac-BDJQsZC3.js +0 -116
- package/dist/component/use-element-state-class-name-CBjBYCW5.js +0 -20
package/dist/component/{date-picker-field-rac-5H10gH9D.js → date-picker-field-rac-BNd8aZ0c.js}
RENAMED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { RicosViewer as G } from "@wix/ricos/viewer";
|
|
2
2
|
import C from "classnames";
|
|
3
3
|
import e, { useState as Q, useCallback as F, useContext as Z, useRef as L, useMemo as _ } from "react";
|
|
4
|
-
import { D,
|
|
4
|
+
import { D, aj as v, ag as A, ab as S, al as z } from "./form-BkmOXzqo.js";
|
|
5
5
|
import { parseDate as J } from "@internationalized/date";
|
|
6
6
|
import { UNSAFE_PortalProvider as X } from "react-aria";
|
|
7
|
-
import { I18nProvider as ee, DatePicker as te, DatePickerStateContext as re, Group as ae, DateInput as ne, DateSegment as oe, Dialog as le, Calendar as se, CalendarMonthPicker as ce, CalendarYearPicker as ie, CalendarGrid as me, CalendarCell as ue, Button as R, Select as O, SelectValue as x, ListBox as
|
|
7
|
+
import { I18nProvider as ee, DatePicker as te, DatePickerStateContext as re, Group as ae, DateInput as ne, DateSegment as oe, Dialog as le, Calendar as se, CalendarMonthPicker as ce, CalendarYearPicker as ie, CalendarGrid as me, CalendarCell as ue, Button as R, Select as O, SelectValue as x, ListBox as M, ListBoxItem as k } from "react-aria-components";
|
|
8
8
|
import { g as de } from "./get-first-day-of-the-week-DvnsxYhQ.js";
|
|
9
9
|
import { f as E, a as b } from "./find-child-C60k4CxG.js";
|
|
10
|
-
import { D as ge, E as Ee } from "./field-error-headless-
|
|
11
|
-
import { L as pe } from "./field-label-headless-
|
|
10
|
+
import { D as ge, E as Ee } from "./field-error-headless-BHTkMu35.js";
|
|
11
|
+
import { L as pe } from "./field-label-headless-D3DwX65k.js";
|
|
12
12
|
import { D as De, N as I, S as w } from "./non-modal-popover-DtIMXHbe.js";
|
|
13
|
-
import { i as fe } from "./date-availability-
|
|
13
|
+
import { i as fe } from "./date-availability-BCDMem-_.js";
|
|
14
14
|
import { C as N } from "./chevron-down-icon-CcpVm6B-.js";
|
|
15
15
|
import { E as ye } from "./error-icon-hZxQ6DEy.js";
|
|
16
16
|
import { s as p } from "./field-rac.module-D06m9T9x.js";
|
|
17
|
-
import { y as Ce,
|
|
17
|
+
import { y as Ce, P as he, x as ve, B as Se, o as Te, i as be } from "./form-element-classes-BsXkFtp2.js";
|
|
18
18
|
const _e = [
|
|
19
19
|
D.SUNDAY,
|
|
20
20
|
D.MONDAY,
|
|
@@ -26,12 +26,12 @@ const _e = [
|
|
|
26
26
|
], Ne = {
|
|
27
27
|
availableDays: _e
|
|
28
28
|
}, a = ({ children: t }) => {
|
|
29
|
-
const { id: r, value: n, onChange: l, disabled: i, required: c, onBlur: d, onFocus: o, FieldLayout: m, hasError: u, readOnly: f } = v(), { labelId: y } = A(), { regionalFormat: s } = S(), [T, Y] = Q(null), B = F((
|
|
30
|
-
const
|
|
31
|
-
l(
|
|
29
|
+
const { id: r, value: n, onChange: l, disabled: i, required: c, onBlur: d, onFocus: o, FieldLayout: m, hasError: u, readOnly: f } = v(), { labelId: y } = A(), { regionalFormat: s } = S(), [T, Y] = Q(null), B = F((j) => {
|
|
30
|
+
const H = ke(j);
|
|
31
|
+
l(H);
|
|
32
32
|
}, [
|
|
33
33
|
l
|
|
34
|
-
]), V = E(t, a.Label), q = E(t, a.Control), U = E(t, a.Calendar), W = E(t, a.Description), K = E(t, a.Error), $ =
|
|
34
|
+
]), V = E(t, a.Label), q = E(t, a.Control), U = E(t, a.Calendar), W = E(t, a.Description), K = E(t, a.Error), $ = Me(n);
|
|
35
35
|
return /* @__PURE__ */ e.createElement(m, {
|
|
36
36
|
fieldId: r,
|
|
37
37
|
renderLabel: () => V,
|
|
@@ -165,9 +165,9 @@ const _e = [
|
|
|
165
165
|
}, /* @__PURE__ */ e.createElement(x, null), t), /* @__PURE__ */ e.createElement(I, {
|
|
166
166
|
className: o,
|
|
167
167
|
containerPadding: 0
|
|
168
|
-
}, /* @__PURE__ */ e.createElement(
|
|
168
|
+
}, /* @__PURE__ */ e.createElement(M, {
|
|
169
169
|
items: d
|
|
170
|
-
}, (m) => /* @__PURE__ */ e.createElement(
|
|
170
|
+
}, (m) => /* @__PURE__ */ e.createElement(k, {
|
|
171
171
|
id: m.id
|
|
172
172
|
}, m.formatted))));
|
|
173
173
|
}, xe = ({ children: t, className: r, ...n }) => {
|
|
@@ -181,9 +181,9 @@ const _e = [
|
|
|
181
181
|
}, /* @__PURE__ */ e.createElement(x, null), t), /* @__PURE__ */ e.createElement(I, {
|
|
182
182
|
className: o,
|
|
183
183
|
containerPadding: 0
|
|
184
|
-
}, /* @__PURE__ */ e.createElement(
|
|
184
|
+
}, /* @__PURE__ */ e.createElement(M, {
|
|
185
185
|
items: d
|
|
186
|
-
}, (m) => /* @__PURE__ */ e.createElement(
|
|
186
|
+
}, (m) => /* @__PURE__ */ e.createElement(k, {
|
|
187
187
|
id: m.id
|
|
188
188
|
}, m.formatted))));
|
|
189
189
|
};
|
|
@@ -199,7 +199,7 @@ a.Trigger = Pe;
|
|
|
199
199
|
a.Calendar = g;
|
|
200
200
|
a.Description = ge;
|
|
201
201
|
a.Error = Ee;
|
|
202
|
-
function
|
|
202
|
+
function Me(t) {
|
|
203
203
|
if (!t)
|
|
204
204
|
return null;
|
|
205
205
|
try {
|
|
@@ -208,7 +208,7 @@ function ke(t) {
|
|
|
208
208
|
return null;
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
|
-
function
|
|
211
|
+
function ke(t) {
|
|
212
212
|
if (!t)
|
|
213
213
|
return null;
|
|
214
214
|
const r = String(t.year).padStart(4, "0"), n = String(t.month).padStart(2, "0"), l = String(t.day).padStart(2, "0");
|
|
@@ -257,15 +257,15 @@ const Be = (t) => /* @__PURE__ */ e.createElement("svg", {
|
|
|
257
257
|
calendarPopover: We,
|
|
258
258
|
calendarDay: Ke,
|
|
259
259
|
mobile: $e
|
|
260
|
-
},
|
|
260
|
+
}, je = ({ content: t, locale: r }) => /* @__PURE__ */ e.createElement(G, {
|
|
261
261
|
content: t,
|
|
262
262
|
locale: r
|
|
263
|
-
}),
|
|
263
|
+
}), He = {
|
|
264
264
|
left: 90,
|
|
265
265
|
right: -90
|
|
266
266
|
}, P = ({ direction: t }) => /* @__PURE__ */ e.createElement(N, {
|
|
267
267
|
style: {
|
|
268
|
-
transform: `rotate(${
|
|
268
|
+
transform: `rotate(${He[t]}deg)`
|
|
269
269
|
}
|
|
270
270
|
}), ut = () => {
|
|
271
271
|
const { isMobile: t } = S();
|
|
@@ -297,7 +297,7 @@ const Be = (t) => /* @__PURE__ */ e.createElement("svg", {
|
|
|
297
297
|
className: C(Te, p.error)
|
|
298
298
|
}, /* @__PURE__ */ e.createElement(ye, null), /* @__PURE__ */ e.createElement(a.Error.Text, null)), /* @__PURE__ */ e.createElement(a.Description, {
|
|
299
299
|
className: C(be, p.description)
|
|
300
|
-
},
|
|
300
|
+
}, je));
|
|
301
301
|
};
|
|
302
302
|
export {
|
|
303
303
|
ut as D
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { RicosViewer as ne } from "@wix/ricos/viewer";
|
|
2
2
|
import p from "classnames";
|
|
3
3
|
import t, { useMemo as L, useState as G, useCallback as x, useRef as z, useContext as re } from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { aj as g, ag as K, ab as B, J as Q, a1 as W, r as d, at as O, a5 as j, O as se, x as oe, a8 as le, y as J, al as $ } from "./form-BkmOXzqo.js";
|
|
5
5
|
import { parseTime as ie } from "@internationalized/date";
|
|
6
6
|
import { UNSAFE_PortalProvider as ce } from "react-aria";
|
|
7
7
|
import { ListBoxItem as me, ListBox as de, Select as ue, TextField as X, TimeField as pe, SelectValue as Ee, Input as Z, DateInput as fe, DateSegment as k, TimeFieldStateContext as he } from "react-aria-components";
|
|
8
8
|
import { f as u, a as S } from "./find-child-C60k4CxG.js";
|
|
9
9
|
import { g as be } from "./helpers-HmkkXrh2.js";
|
|
10
|
-
import { D as ge, E as Ie } from "./field-error-headless-
|
|
11
|
-
import { L as _e } from "./field-label-headless-
|
|
10
|
+
import { D as ge, E as Ie } from "./field-error-headless-BHTkMu35.js";
|
|
11
|
+
import { L as _e } from "./field-label-headless-D3DwX65k.js";
|
|
12
12
|
import { F as ye } from "./fieldset-headless-CD3fds9J.js";
|
|
13
13
|
import { N as Ne, S as De } from "./non-modal-popover-DtIMXHbe.js";
|
|
14
14
|
import { C as Te } from "./chevron-down-icon-CcpVm6B-.js";
|
|
15
15
|
import { E as Le } from "./error-icon-hZxQ6DEy.js";
|
|
16
16
|
import { H } from "./custom-focus-class-_483Pkwp.js";
|
|
17
17
|
import { s as f } from "./field-rac.module-D06m9T9x.js";
|
|
18
|
-
import { y as v,
|
|
19
|
-
import { u as U } from "./use-text-input-class-name-
|
|
18
|
+
import { y as v, P as Oe, x as Ce, B as Fe, o as Pe, i as Me } from "./form-element-classes-BsXkFtp2.js";
|
|
19
|
+
import { u as U } from "./use-text-input-class-name-B-GYaltW.js";
|
|
20
20
|
const o = ({ children: e, className: a }) => {
|
|
21
21
|
const { id: n, required: r, onBlur: l, onFocus: s, FieldLayout: i } = g(), { inputId: m, labelId: c, ariaDescribedBy: h } = K(), { regionalFormat: b } = B(), y = L(() => Q(b).filter(W).map((M) => M.toUpperCase()), [
|
|
22
22
|
b
|
package/dist/component/{dext-checkbox-group-rac-BBB652Uy.js → dext-checkbox-group-rac-BXYHMQ3R.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import o from "react";
|
|
2
|
-
import {
|
|
3
|
-
import { C as p } from "./checkbox-group-field-rac-
|
|
2
|
+
import { aj as e, h as t } from "./form-BkmOXzqo.js";
|
|
3
|
+
import { C as p } from "./checkbox-group-field-rac-BObfui8r.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-B_jm5YAT.js → dext-radio-group-rac-CNyNSfeP.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import r from "react";
|
|
2
|
-
import {
|
|
3
|
-
import { R as p } from "./radio-group-field-rac-
|
|
2
|
+
import { aj as e, h as t } from "./form-BkmOXzqo.js";
|
|
3
|
+
import { R as p } from "./radio-group-field-rac-DmEOydAr.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 {
|
|
3
|
-
import { T as s } from "./tags-field-rac-
|
|
2
|
+
import { aj as e, h as o } from "./form-BkmOXzqo.js";
|
|
3
|
+
import { T as s } from "./tags-field-rac-PZ8Vfmsn.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,
|
|
6
|
+
import { P as Q, aj as L, ag as B, at as ue, ab as A, al as me } from "./form-BkmOXzqo.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-BHTkMu35.js";
|
|
10
|
+
import { L as Ce } from "./field-label-headless-D3DwX65k.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
16
|
import { s as S } from "./field-rac.module-D06m9T9x.js";
|
|
17
|
-
import { y as be,
|
|
17
|
+
import { y as be, P as ye, j as Ne, o as ge, i as Fe, k as De } from "./form-element-classes-BsXkFtp2.js";
|
|
18
18
|
import { o as Se } from "./options-rac.module-KM-VT_KY.js";
|
|
19
|
-
import { u as Re } from "./use-element-state-class-name-
|
|
20
|
-
import { u as ve } from "./use-text-input-class-name-
|
|
19
|
+
import { u as Re } from "./use-element-state-class-name-lZnP6sE6.js";
|
|
20
|
+
import { u as ve } from "./use-text-input-class-name-B-GYaltW.js";
|
|
21
21
|
function Le(e, t) {
|
|
22
22
|
return e.reduce((o, r) => (o[r[t]] = r, o), {});
|
|
23
23
|
}
|
|
@@ -25,7 +25,7 @@ function Ae(e) {
|
|
|
25
25
|
return Le(e, "id");
|
|
26
26
|
}
|
|
27
27
|
const je = 0.01;
|
|
28
|
-
function
|
|
28
|
+
function Pe(e) {
|
|
29
29
|
var t;
|
|
30
30
|
return ((t = e == null ? void 0 : e.fixedPriceOptions) == null ? void 0 : t.price) || "0";
|
|
31
31
|
}
|
|
@@ -37,40 +37,40 @@ function z(e, t) {
|
|
|
37
37
|
quantity: 1
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function Te(e) {
|
|
41
41
|
return e.find((t) => t.priceType === Q.DYNAMIC_PRICE);
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function Me(e, t) {
|
|
44
44
|
return (e == null ? void 0 : e.productId) === (t == null ? void 0 : t.id) ? String((e == null ? void 0 : e.price) ?? "") : "";
|
|
45
45
|
}
|
|
46
46
|
function xe(e, t, o) {
|
|
47
47
|
const r = (t == null ? void 0 : t.productId) === e ? void 0 : e, a = r ? o[r] : void 0;
|
|
48
48
|
return a ? [
|
|
49
|
-
z(a,
|
|
49
|
+
z(a, Pe(a))
|
|
50
50
|
] : [];
|
|
51
51
|
}
|
|
52
52
|
const s = ({ children: e }) => {
|
|
53
53
|
const { id: t, value: o, onChange: r, disabled: a, required: m, onBlur: p, onFocus: h, validation: c, addOther: u, addOtherPlaceholder: i, FieldLayout: C, hasError: O } = L(), { labelId: _ } = B(), { t: I } = ue(), { currency: j, regionalFormat: N } = A(), d = o == null ? void 0 : o[0], g = x(() => {
|
|
54
|
-
var E,
|
|
55
|
-
return ((
|
|
54
|
+
var E, M;
|
|
55
|
+
return ((M = (E = c == null ? void 0 : c.predefined) == null ? void 0 : E.paymentOptions) == null ? void 0 : M.products) || [];
|
|
56
56
|
}, [
|
|
57
57
|
c
|
|
58
|
-
]),
|
|
58
|
+
]), P = x(() => Ae(g), [
|
|
59
59
|
g
|
|
60
|
-
]), l = x(() => u ?
|
|
60
|
+
]), l = x(() => u ? Te(g) : void 0, [
|
|
61
61
|
g,
|
|
62
62
|
u
|
|
63
|
-
]), J =
|
|
63
|
+
]), J = Me(d, l), [q, T] = he({
|
|
64
64
|
sourceValue: J,
|
|
65
65
|
format: (E) => fe(String(E ?? ""), N),
|
|
66
66
|
regionalFormat: N
|
|
67
|
-
}),
|
|
68
|
-
r(xe(E, d,
|
|
67
|
+
}), w = F((E) => {
|
|
68
|
+
r(xe(E, d, P)), T("");
|
|
69
69
|
}, [
|
|
70
70
|
r,
|
|
71
|
-
|
|
71
|
+
P,
|
|
72
72
|
d,
|
|
73
|
-
|
|
73
|
+
T
|
|
74
74
|
]), H = F((E) => {
|
|
75
75
|
l && r(typeof E == "number" ? [
|
|
76
76
|
z(l, String(E))
|
|
@@ -82,39 +82,39 @@ 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:
|
|
86
|
-
M
|
|
85
|
+
const { validInput: M, validNumber: ne } = Ee(E.target.value, je, q, N);
|
|
86
|
+
T(M), $(ne);
|
|
87
87
|
}, [
|
|
88
88
|
N,
|
|
89
89
|
r,
|
|
90
90
|
d,
|
|
91
91
|
l,
|
|
92
|
-
|
|
92
|
+
q,
|
|
93
93
|
$,
|
|
94
|
-
|
|
95
|
-
]),
|
|
96
|
-
l != null && l.id &&
|
|
94
|
+
T
|
|
95
|
+
]), U = (d == null ? void 0 : d.productId) || null, X = F(() => {
|
|
96
|
+
l != null && l.id && U !== l.id && w(l.id);
|
|
97
97
|
}, [
|
|
98
98
|
l == null ? void 0 : l.id,
|
|
99
|
-
|
|
100
|
-
|
|
99
|
+
U,
|
|
100
|
+
w
|
|
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,
|
|
104
104
|
renderLabel: () => Z,
|
|
105
105
|
renderInput: () => /* @__PURE__ */ n.createElement(se, {
|
|
106
106
|
"aria-labelledby": _,
|
|
107
|
-
value:
|
|
108
|
-
onChange:
|
|
107
|
+
value: U,
|
|
108
|
+
onChange: w,
|
|
109
109
|
isDisabled: a,
|
|
110
110
|
isInvalid: O,
|
|
111
111
|
isRequired: m,
|
|
112
112
|
onBlur: p,
|
|
113
113
|
onFocus: h
|
|
114
114
|
}, V ? y(V, {
|
|
115
|
-
productsById:
|
|
115
|
+
productsById: P,
|
|
116
116
|
addOther: u,
|
|
117
|
-
customAmount:
|
|
117
|
+
customAmount: q,
|
|
118
118
|
onCustomAmountInputChange: K,
|
|
119
119
|
currency: j,
|
|
120
120
|
t: I,
|
|
@@ -155,8 +155,8 @@ const s = ({ children: e }) => {
|
|
|
155
155
|
customAmountProductId: i,
|
|
156
156
|
onFocusCustomInput: C
|
|
157
157
|
}) : null);
|
|
158
|
-
},
|
|
159
|
-
const { productsById: r } = o, { options: a, numberOfColumns: m } = L(), { isMobile: p } = A(), h = f(e,
|
|
158
|
+
}, k = ({ children: e, className: t, ...o }) => {
|
|
159
|
+
const { productsById: r } = o, { options: a, numberOfColumns: m } = L(), { isMobile: p } = A(), h = f(e, k.Option), c = p ? Ie.ONE : m;
|
|
160
160
|
return /* @__PURE__ */ n.createElement("div", {
|
|
161
161
|
className: t,
|
|
162
162
|
"data-columns": c
|
|
@@ -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
|
+
}, qe = ({ 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
|
+
}, we = ({ 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
|
-
R.Value =
|
|
207
|
-
R.Currency =
|
|
206
|
+
R.Value = qe;
|
|
207
|
+
R.Currency = we;
|
|
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({
|
|
@@ -237,7 +237,7 @@ const v = ({ children: e, className: t, ...o }) => {
|
|
|
237
237
|
placeholder: h,
|
|
238
238
|
customAmountProductId: c
|
|
239
239
|
}) : null));
|
|
240
|
-
},
|
|
240
|
+
}, Ue = ({ className: e, ...t }) => {
|
|
241
241
|
const { currency: o, t: r } = t, { prefixId: a } = B();
|
|
242
242
|
return /* @__PURE__ */ n.createElement("span", {
|
|
243
243
|
id: a,
|
|
@@ -245,7 +245,7 @@ const v = ({ children: e, className: t, ...o }) => {
|
|
|
245
245
|
"aria-label": Oe(r, o),
|
|
246
246
|
className: e
|
|
247
247
|
}, (o == null ? void 0 : o.sign) || (o == null ? void 0 : o.code) || "");
|
|
248
|
-
},
|
|
248
|
+
}, ke = ({ className: e, ...t }) => {
|
|
249
249
|
const { placeholder: o, customAmountProductId: r } = t, { ariaDescribedBy: a, labelId: m, prefixId: p } = B();
|
|
250
250
|
return /* @__PURE__ */ n.createElement(ie, {
|
|
251
251
|
id: r,
|
|
@@ -257,12 +257,12 @@ const v = ({ children: e, className: t, ...o }) => {
|
|
|
257
257
|
className: e
|
|
258
258
|
});
|
|
259
259
|
};
|
|
260
|
-
v.Currency =
|
|
261
|
-
v.Value =
|
|
262
|
-
|
|
260
|
+
v.Currency = Ue;
|
|
261
|
+
v.Value = ke;
|
|
262
|
+
k.Option = R;
|
|
263
263
|
s.Label = Ce;
|
|
264
264
|
s.Control = Be;
|
|
265
|
-
s.Options =
|
|
265
|
+
s.Options = k;
|
|
266
266
|
s.OtherInput = v;
|
|
267
267
|
s.Description = pe;
|
|
268
268
|
s.Error = de;
|
package/dist/component/{dropdown-field-headless-BKj2rdy9.js → dropdown-field-headless-CT4uSCPR.js}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import e, { useState as E, useCallback as g, useRef as q } from "react";
|
|
2
2
|
import { UNSAFE_PortalProvider as A } from "react-aria";
|
|
3
|
-
import { Select as
|
|
4
|
-
import {
|
|
3
|
+
import { Select as j, SelectValue as w, ListBox as M, ListBoxItem as U } from "react-aria-components";
|
|
4
|
+
import { aj as p, ag as b, al as _ } from "./form-BkmOXzqo.js";
|
|
5
5
|
import { f as d, a as z } 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-BHTkMu35.js";
|
|
7
|
+
import { L as J } from "./field-label-headless-D3DwX65k.js";
|
|
8
8
|
import { S as K, N as Q } from "./non-modal-popover-DtIMXHbe.js";
|
|
9
9
|
const n = ({ children: t }) => {
|
|
10
10
|
const { id: o, value: r, defaultValue: l, options: a = [], readOnly: s, onChange: u, placeholder: m, disabled: i, required: v, onBlur: O, onFocus: y, FieldLayout: F, hasError: C } = p(), [D, L] = E(!1), [h, I] = E(null), B = r && a.some((c) => (c.value ?? c.label) === r) ? r : l || null, { labelId: N } = b(), P = g((c) => {
|
|
@@ -15,7 +15,7 @@ const n = ({ children: t }) => {
|
|
|
15
15
|
]), S = g((c) => L(c && !i && !s), [
|
|
16
16
|
i,
|
|
17
17
|
s
|
|
18
|
-
]), T = d(t, n.Label), x = d(t, n.Trigger), V = d(t, n.Options),
|
|
18
|
+
]), T = d(t, n.Label), x = d(t, n.Trigger), V = d(t, n.Options), R = d(t, n.Description), k = d(t, n.Error);
|
|
19
19
|
return /* @__PURE__ */ e.createElement(F, {
|
|
20
20
|
fieldId: o,
|
|
21
21
|
renderLabel: () => T,
|
|
@@ -26,7 +26,7 @@ const n = ({ children: t }) => {
|
|
|
26
26
|
}
|
|
27
27
|
}), /* @__PURE__ */ e.createElement(A, {
|
|
28
28
|
getContainer: () => h
|
|
29
|
-
}, /* @__PURE__ */ e.createElement(
|
|
29
|
+
}, /* @__PURE__ */ e.createElement(j, {
|
|
30
30
|
"aria-labelledby": N,
|
|
31
31
|
value: B,
|
|
32
32
|
isOpen: D && !i && !s,
|
|
@@ -39,11 +39,11 @@ const n = ({ children: t }) => {
|
|
|
39
39
|
onBlur: O,
|
|
40
40
|
onFocus: y
|
|
41
41
|
}, x, V))),
|
|
42
|
-
renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null,
|
|
42
|
+
renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, k, R)
|
|
43
43
|
});
|
|
44
44
|
}, W = ({ children: t, className: o }) => {
|
|
45
45
|
const { inputId: r, ariaDescribedBy: l } = b(), { id: a, hasError: s, isLoading: u } = p(), m = q(null);
|
|
46
|
-
return
|
|
46
|
+
return _(() => {
|
|
47
47
|
var i;
|
|
48
48
|
(i = m.current) == null || i.focus();
|
|
49
49
|
}, a), /* @__PURE__ */ e.createElement(K, {
|
|
@@ -53,21 +53,21 @@ const n = ({ children: t }) => {
|
|
|
53
53
|
className: o,
|
|
54
54
|
"data-invalid": s || void 0,
|
|
55
55
|
"data-loading": u || void 0
|
|
56
|
-
}, /* @__PURE__ */ e.createElement(
|
|
56
|
+
}, /* @__PURE__ */ e.createElement(w, null), t);
|
|
57
57
|
}, f = ({ children: t, className: o }) => {
|
|
58
58
|
const { options: r = [] } = p(), l = d(t, f.Option);
|
|
59
59
|
return /* @__PURE__ */ e.createElement(Q, {
|
|
60
60
|
className: o,
|
|
61
61
|
containerPadding: 0,
|
|
62
62
|
offset: 0
|
|
63
|
-
}, /* @__PURE__ */ e.createElement(
|
|
63
|
+
}, /* @__PURE__ */ e.createElement(M, null, r.map((a) => z(l, {
|
|
64
64
|
key: a.value ?? a.label,
|
|
65
65
|
value: a.value ?? a.label,
|
|
66
66
|
label: a.label
|
|
67
67
|
}))));
|
|
68
68
|
}, X = ({ className: t, ...o }) => {
|
|
69
69
|
const { value: r, label: l } = o;
|
|
70
|
-
return /* @__PURE__ */ e.createElement(
|
|
70
|
+
return /* @__PURE__ */ e.createElement(U, {
|
|
71
71
|
className: t,
|
|
72
72
|
id: r,
|
|
73
73
|
textValue: l
|
|
@@ -1,13 +1,13 @@
|
|
|
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 o } from "./dropdown-field-headless-
|
|
4
|
+
import { D as o } from "./dropdown-field-headless-CT4uSCPR.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
8
|
import { s as r } from "./field-rac.module-D06m9T9x.js";
|
|
9
|
-
import { y as i,
|
|
10
|
-
const
|
|
9
|
+
import { y as i, P as E, x as p, B as _, o as S, i as R } from "./form-element-classes-BsXkFtp2.js";
|
|
10
|
+
const D = ({ content: a, locale: s }) => /* @__PURE__ */ e.createElement(m, {
|
|
11
11
|
content: a,
|
|
12
12
|
locale: s
|
|
13
13
|
}), u = () => /* @__PURE__ */ e.createElement(o, null, /* @__PURE__ */ e.createElement(o.Label, {
|
|
@@ -25,8 +25,8 @@ const R = ({ content: a, locale: s }) => /* @__PURE__ */ e.createElement(m, {
|
|
|
25
25
|
})), /* @__PURE__ */ e.createElement(o.Error, {
|
|
26
26
|
className: t(S, r.error)
|
|
27
27
|
}, /* @__PURE__ */ e.createElement(l, null), /* @__PURE__ */ e.createElement(o.Error.Text, null)), /* @__PURE__ */ e.createElement(o.Description, {
|
|
28
|
-
className: t(
|
|
29
|
-
},
|
|
28
|
+
className: t(R, r.description)
|
|
29
|
+
}, D));
|
|
30
30
|
export {
|
|
31
31
|
u as D
|
|
32
32
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o, { useMemo as a } from "react";
|
|
2
|
-
import {
|
|
3
|
-
import { C } from "./checkbox-field-rac-
|
|
4
|
-
import { m as l, n as m, l as p } from "./form-element-classes-
|
|
2
|
+
import { aj as n, at as c, h as i } from "./form-BkmOXzqo.js";
|
|
3
|
+
import { C } from "./checkbox-field-rac-b9mcZlMP.js";
|
|
4
|
+
import { m as l, n as m, l as p } from "./form-element-classes-BsXkFtp2.js";
|
|
5
5
|
const _ = (e) => ({
|
|
6
6
|
nodes: [
|
|
7
7
|
{
|