@wix/form-elements 1.136.0 → 1.138.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-DsD7xLmb.js → appointment-rac-DvzMuumV.js} +52 -52
- package/dist/component/{bookings-address-rac-ByaFu51U.js → bookings-address-rac-DoTKdj4W.js} +1 -1
- package/dist/component/{bookings-email-rac-CxuvkcYw.js → bookings-email-rac-CHvxtHcu.js} +1 -1
- package/dist/component/{bookings-first-name-rac-JXLJa_7E.js → bookings-first-name-rac-VAAhC_fg.js} +1 -1
- package/dist/component/{bookings-header-rac-CIQTbf9d.js → bookings-header-rac-YWB4879A.js} +1 -1
- package/dist/component/{bookings-last-name-rac-_2Xt4BPe.js → bookings-last-name-rac-B-aGMcD_.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-BUjys5i9.js → bookings-login-bar-rac-3wYAN_xh.js} +4 -4
- package/dist/component/{bookings-phone-rac-DlsdGmOt.js → bookings-phone-rac-CzQVxpNK.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-BvRdhL7M.js → bookings-rich-text-rac-C5z9Gvts.js} +1 -1
- package/dist/component/{checkbox-field-rac-Be6wicaA.js → checkbox-field-rac-CradfjbE.js} +4 -4
- package/dist/component/{checkbox-group-field-headless-BJ0pGvXi.js → checkbox-group-field-headless-DdVXFUPC.js} +3 -3
- package/dist/component/{checkbox-group-field-rac-D7xqqVf6.js → checkbox-group-field-rac-KqKHh6Uj.js} +4 -4
- package/dist/component/{checkbox-group-rac-DtCS-gEH.js → checkbox-group-rac-C34O1zlM.js} +1 -1
- package/dist/component/{checkbox-rac-ub7MFwY-.js → checkbox-rac-BnXI1EcE.js} +1 -1
- package/dist/component/{contacts-address-rac-Bwsdpg11.js → contacts-address-rac-Ba57mGCo.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-D54hibhb.js → contacts-birthdate-rac-lOtU_kNL.js} +1 -1
- package/dist/component/{contacts-company-rac-CKqzgKio.js → contacts-company-rac-fzSYypTz.js} +1 -1
- package/dist/component/{contacts-email-rac-Dxm31wuY.js → contacts-email-rac-kOu3zzAk.js} +1 -1
- package/dist/component/{contacts-first-name-rac-CXHsx6Vy.js → contacts-first-name-rac-CwUDxtmS.js} +1 -1
- package/dist/component/{contacts-last-name-rac-B0S268f3.js → contacts-last-name-rac-DstG7QIk.js} +1 -1
- package/dist/component/{contacts-phone-rac-DEbgIiEj.js → contacts-phone-rac-DbDYtB90.js} +1 -1
- package/dist/component/{contacts-position-rac-D31uoOlR.js → contacts-position-rac-G-5pxT4U.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-DJ8NtoxZ.js → contacts-subscribe-rac-hfjDjoZw.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-DTQffHAo.js → contacts-tax-id-rac-CUwJltYa.js} +1 -1
- package/dist/component/{date-availability-DmhJ9apH.js → date-availability-CwlAp1DX.js} +1 -1
- package/dist/component/{date-input-field-rac-BwM_q4FW.js → date-input-field-rac-C47Y-z4d.js} +6 -6
- package/dist/component/{date-input-rac-C93pgocp.js → date-input-rac-BSKV4JJO.js} +1 -1
- package/dist/component/{date-picker-field-rac-CtZL368W.js → date-picker-field-rac-NSAnfLRk.js} +5 -5
- package/dist/component/{date-picker-rac-4DNe6hOX.js → date-picker-rac-DlEVDz1X.js} +1 -1
- package/dist/component/{date-time-input-field-rac-MlCVy3Oz.js → date-time-input-field-rac-Bs2xjob_.js} +20 -20
- package/dist/component/{date-time-input-rac-ByyBvFgo.js → date-time-input-rac-Dvy_vn5y.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-BP76Xwiq.js → dext-checkbox-group-rac-ydiyI0Ax.js} +2 -2
- package/dist/component/{dext-checkbox-rac-DGaKSh4Z.js → dext-checkbox-rac-D3FH0uIS.js} +1 -1
- package/dist/component/{dext-date-picker-rac-UEXbMSlL.js → dext-date-picker-rac-C4Xa4Mkn.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-CsJcGK4I.js → dext-date-time-input-rac-DBUVJbqB.js} +1 -1
- package/dist/component/{dext-dropdown-rac-BzbRzloh.js → dext-dropdown-rac-Ku5SxJci.js} +1 -1
- package/dist/component/{dext-email-rac-DufFAnTi.js → dext-email-rac-CdfesgKH.js} +1 -1
- package/dist/component/{dext-number-input-rac-D6xXi7B2.js → dext-number-input-rac-AmiEoijD.js} +1 -1
- package/dist/component/{dext-phone-rac-svy9CDHW.js → dext-phone-rac-BqiNW-E2.js} +1 -1
- package/dist/component/{dext-radio-group-rac-C4p9NuQS.js → dext-radio-group-rac-Bku-LoOz.js} +2 -2
- package/dist/component/{dext-rating-input-rac-wJ7-RFFN.js → dext-rating-input-rac-TxRgyMyp.js} +1 -1
- package/dist/component/{dext-tags-rac-D2myHrSZ.js → dext-tags-rac-C6iBGwg4.js} +2 -2
- package/dist/component/{dext-text-area-rac-B4Fw_9mF.js → dext-text-area-rac-BU0eyjM4.js} +1 -1
- package/dist/component/{dext-text-input-rac-DlZanFMT.js → dext-text-input-rac-BEls3cms.js} +1 -1
- package/dist/component/{dext-url-input-rac-DYjl3wuk.js → dext-url-input-rac-CMAK9Qo6.js} +1 -1
- package/dist/component/donation-rac-aGSBtE2T.js +306 -0
- package/dist/component/{dropdown-field-headless-BAt2RoAH.js → dropdown-field-headless-B6i33cBH.js} +5 -5
- package/dist/component/{dropdown-field-rac-DFjn3ecV.js → dropdown-field-rac-COluC25e.js} +6 -6
- package/dist/component/{dropdown-rac-DQ6keNRI.js → dropdown-rac-BGQx3saK.js} +1 -1
- package/dist/component/{ecom-address-rac-j1T2zp0k.js → ecom-address-rac-BgkdVaiI.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-viTaRZsk.js → ecom-subscription-checkbox-rac-C9jnWaZl.js} +2 -2
- package/dist/component/{email-input-field-rac-5eb-1w7B.js → email-input-field-rac-DHCUGLjQ.js} +3 -3
- package/dist/component/{events-repeater-rac-BtcoN_Ra.js → events-repeater-rac-BHz0azrh.js} +13 -13
- package/dist/component/{events-rsvp-rac-DSzFEmty.js → events-rsvp-rac-BgtEivuD.js} +8 -8
- package/dist/component/{field-error-headless-Bpe041x2.js → field-error-headless-BCrv3sBa.js} +1 -1
- package/dist/component/{field-label-headless-BUuK1Ftv.js → field-label-headless-B54yFVkr.js} +1 -1
- package/dist/component/{file-upload-rac-CfU8Ygwq.js → file-upload-rac-Cg8Z8lhS.js} +21 -21
- package/dist/component/{fixed-payment-rac-CYp7zNq8.js → fixed-payment-rac-B3uuRmES.js} +21 -21
- package/dist/component/{form-C6lnbh2O.js → form-D7mq5tD5.js} +77 -77
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-B7YfrhId.js → header-field-rac-DbeAaOaE.js} +2 -2
- package/dist/component/{header-rac-BtJKAKAz.js → header-rac-CRghbywI.js} +1 -1
- package/dist/component/{image-choice-rac-Bmq7Pyg6.js → image-choice-rac-nCRaXrH5.js} +17 -17
- package/dist/component/{index-CQdUOkIN.js → index-C6cdxkPM.js} +2 -2
- package/dist/component/{index-BjPSeVyh.js → index-DNonwKkE.js} +4 -4
- package/dist/component/{isObjectLike-CxNqKfU5.js → isObjectLike-PXbsarQL.js} +1 -1
- package/dist/component/{multiline-address-field-rac-BeiUJWKd.js → multiline-address-field-rac-DeMafI8g.js} +7 -7
- package/dist/component/{multiline-address-rac-B2mocF6M.js → multiline-address-rac-g1IrapIk.js} +1 -1
- package/dist/component/{number-input-field-rac-CQX7_S2O.js → number-input-field-rac-BSGFZQh_.js} +10 -10
- package/dist/component/{number-input-rac-BZri-E8P.js → number-input-rac-C5yMyFyv.js} +1 -1
- package/dist/component/{password-rac-CdwrtDJU.js → password-rac-jHDFxH5W.js} +10 -10
- package/dist/component/{payment-input-rac-ClQiqmjm.js → payment-input-rac-Cpw8VM0u.js} +14 -14
- package/dist/component/{phone-input-field-rac-BtG_Rado.js → phone-input-field-rac-DLZysv_w.js} +26 -26
- package/dist/component/{phone-rac-CdcAMa5E.js → phone-rac-DK5Toq-q.js} +1 -1
- package/dist/component/{product-list-rac-Dp_YK6mo.js → product-list-rac-DR2bHVkk.js} +22 -22
- package/dist/component/{quiz-radio-group-rac-CorojxKD.js → quiz-radio-group-rac-mWuYJqRQ.js} +1 -1
- package/dist/component/{radio-button-module-classes-ZX12Fyj4.js → radio-button-module-classes-CokNolqR.js} +3 -3
- package/dist/component/{radio-group-field-rac-BifCDpE4.js → radio-group-field-rac-DiaR7RdY.js} +6 -6
- package/dist/component/{radio-group-rac-CJ2fzqnY.js → radio-group-rac-FdQp_E1O.js} +1 -1
- package/dist/component/{rating-input-field-rac-Dg1T0DZW.js → rating-input-field-rac-DbyB_Esi.js} +11 -11
- package/dist/component/{rating-input-rac-Ba4YK13i.js → rating-input-rac-D4C1bB-A.js} +1 -1
- package/dist/component/{rich-content-rac.module-BehwBL3L.js → rich-content-rac.module-CDtZ3pmh.js} +1 -1
- package/dist/component/{rich-text-field-rac-DtIWdB-S.js → rich-text-field-rac-CYqdqamx.js} +2 -2
- package/dist/component/{rich-text-rac-BX4eDDFw.js → rich-text-rac-CDzSg_7O.js} +1 -1
- package/dist/component/{service-dropdown-rac-68WLBlsa.js → service-dropdown-rac-rdwYVwGB.js} +9 -9
- package/dist/component/{services-multi-choice-rac-8yNdAHfS.js → services-multi-choice-rac-DOO6HYgT.js} +7 -7
- package/dist/component/{signature-rac-DeVOyl5O.js → signature-rac-CBh4_hf-.js} +4 -4
- package/dist/component/{submit-button-rac-IOr1g-G-.js → submit-button-rac-B8ZNvJjY.js} +2 -2
- package/dist/component/{tags-field-rac-DaiMlAxt.js → tags-field-rac-D5THw-TO.js} +5 -5
- package/dist/component/{tags-rac-BgrUkY0A.js → tags-rac-C8wN2xTn.js} +1 -1
- package/dist/component/{text-area-field-rac-CLPZEY93.js → text-area-field-rac-D3GB6Wrq.js} +6 -6
- package/dist/component/{text-area-rac-C8PdPSzX.js → text-area-rac-CCTd5x7u.js} +1 -1
- package/dist/component/{text-input-field-rac-Dm-xU8Rg.js → text-input-field-rac-emy5LgNs.js} +3 -3
- package/dist/component/{text-input-headless-BEmRjL8Z.js → text-input-headless-BIgsm4yN.js} +3 -3
- package/dist/component/{text-input-rac-C-FnaOXT.js → text-input-rac-BFRe44DM.js} +1 -1
- package/dist/component/{time-input-rac-VmTURkiK.js → time-input-rac-D6FsrMxb.js} +4 -4
- package/dist/component/{url-input-field-rac-CnnS0tVx.js → url-input-field-rac-Dk9F61BD.js} +8 -8
- package/dist/component/{url-input-rac-6nd_ccoP.js → url-input-rac-C1pAmfj-.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-CcZl1qrj.js → use-dropdown-option-class-name-DNvaYrmm.js} +2 -2
- package/dist/component/{use-dropdown-trigger-class-name-BNc0mkdK.js → use-dropdown-trigger-class-name-_gAS-eDg.js} +2 -2
- package/dist/component/{use-element-state-class-name-BU6RXqBy.js → use-element-state-class-name-CT3HIbmC.js} +1 -1
- package/dist/component/{use-hoverable-input-class-name-CkXPkbiP.js → use-hoverable-input-class-name-DMVtzjju.js} +2 -2
- package/dist/component/{use-service-options-base-B5afDbnr.js → use-service-options-base-DMgeKnCC.js} +1 -1
- package/dist/component/use-text-input-class-name-CO5G1Jx0.js +6 -0
- package/package.json +2 -2
- package/dist/component/donation-rac-B6LwJxik.js +0 -314
- package/dist/component/use-text-input-class-name-BB3V6Q0b.js +0 -6
|
@@ -2,11 +2,11 @@ import t, { useMemo as K, useCallback as v, useRef as U } from "react";
|
|
|
2
2
|
import { RicosViewer as $ } from "@wix/ricos/viewer";
|
|
3
3
|
import _ from "classnames";
|
|
4
4
|
import { CheckboxField as z, CheckboxButton as j, NumberField as X, Group as Y, Button as Q, Input as J } from "react-aria-components";
|
|
5
|
-
import { bj as x, bg as W, bb as V, bt as Z, bl as ee,
|
|
5
|
+
import { bj as x, bg as W, bb as V, bt as Z, bl as ee, N as te, Y as ne, P as ae, S as oe, R as re, M as se, G as le, u as ie, Q as ce } from "./form-D7mq5tD5.js";
|
|
6
6
|
import { f as I, a as f } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { L as ue, g as me } from "./field-label-headless-
|
|
7
|
+
import { L as ue, g as me } from "./field-label-headless-B54yFVkr.js";
|
|
8
8
|
import { f as pe } from "./format-currency-BwShJ9vM.js";
|
|
9
|
-
import { D as de, E as Ee } from "./field-error-headless-
|
|
9
|
+
import { D as de, E as Ee } from "./field-error-headless-BCrv3sBa.js";
|
|
10
10
|
import { F as ye } from "./fieldset-headless-CD3fds9J.js";
|
|
11
11
|
import { g as be } from "./payment-field-utils-DobiK5Xh.js";
|
|
12
12
|
import { S as _e } from "./selection-indicator-XQ8MYHUQ.js";
|
|
@@ -14,8 +14,8 @@ import { E as fe } from "./error-icon-hZxQ6DEy.js";
|
|
|
14
14
|
import { C as Ie } from "./checkbox-indicator-module-classes-6173wvuW.js";
|
|
15
15
|
import { s as q } from "./field-rac.module-DfEb7pBp.js";
|
|
16
16
|
import { o as w } from "./options-rac.module-_THNq6Qq.js";
|
|
17
|
-
import { u as
|
|
18
|
-
var
|
|
17
|
+
import { u as Oe } from "./use-element-state-class-name-CT3HIbmC.js";
|
|
18
|
+
var Le = /* @__PURE__ */ (function(e) {
|
|
19
19
|
return e.crop = "CROP", e.fit = "FIT", e;
|
|
20
20
|
})({}), k = /* @__PURE__ */ (function(e) {
|
|
21
21
|
return e.oneByOne = "one-by-one", e.onlyOne = "only-one", e.many = "many", e;
|
|
@@ -28,7 +28,7 @@ function Ce({ maxItems: e, products: a } = {}) {
|
|
|
28
28
|
}
|
|
29
29
|
const o = ({ children: e }) => {
|
|
30
30
|
var D;
|
|
31
|
-
const { id: a, value: s, onChange: n, disabled: r, readOnly: c, required: y, onBlur:
|
|
31
|
+
const { id: a, value: s, onChange: n, disabled: r, readOnly: c, required: y, onBlur: O, onFocus: l, hasError: u, validation: m, FieldLayout: p } = x(), { inputId: M, labelId: N, ariaDescribedBy: h } = W(), b = I(e, o.Label), g = I(e, o.Options), A = I(e, o.Description), L = I(e, o.Error), i = K(() => s || [], [
|
|
32
32
|
s
|
|
33
33
|
]), T = Ce((D = m == null ? void 0 : m.predefined) == null ? void 0 : D.paymentOptions) === k.many, F = v((S, R) => {
|
|
34
34
|
const d = i.filter((H) => H.productId !== S.productId), B = R ? [
|
|
@@ -48,7 +48,7 @@ const o = ({ children: e }) => {
|
|
|
48
48
|
ariaLabelledBy: N,
|
|
49
49
|
ariaDescribedBy: h,
|
|
50
50
|
required: y,
|
|
51
|
-
onBlur:
|
|
51
|
+
onBlur: O,
|
|
52
52
|
onFocus: l
|
|
53
53
|
}, g ? f(g, {
|
|
54
54
|
allowMany: T,
|
|
@@ -58,15 +58,15 @@ const o = ({ children: e }) => {
|
|
|
58
58
|
readOnly: c,
|
|
59
59
|
hasError: u
|
|
60
60
|
}) : null),
|
|
61
|
-
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null,
|
|
61
|
+
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, L, A)
|
|
62
62
|
});
|
|
63
63
|
}, G = ({ children: e, className: a, ...s }) => {
|
|
64
|
-
const { allowMany: n, productValues: r, onProductChange: c, disabled: y, readOnly:
|
|
64
|
+
const { allowMany: n, productValues: r, onProductChange: c, disabled: y, readOnly: O, hasError: l } = s, { options: u, validation: m, imageResize: p } = x(), { currency: M } = V(), { t: N } = Z(), h = I(e, o.Option);
|
|
65
65
|
return /* @__PURE__ */ t.createElement("div", {
|
|
66
66
|
className: a
|
|
67
67
|
}, u == null ? void 0 : u.map((b, g) => {
|
|
68
68
|
var C, T, F, D, S;
|
|
69
|
-
const A = ((S = (D = (F = (T = (C = m == null ? void 0 : m.predefined) == null ? void 0 : C.paymentOptions) == null ? void 0 : T.products) == null ? void 0 : F.find((R) => R.id === b.value)) == null ? void 0 : D.fixedPriceOptions) == null ? void 0 : S.price) || "0",
|
|
69
|
+
const A = ((S = (D = (F = (T = (C = m == null ? void 0 : m.predefined) == null ? void 0 : C.paymentOptions) == null ? void 0 : T.products) == null ? void 0 : F.find((R) => R.id === b.value)) == null ? void 0 : D.fixedPriceOptions) == null ? void 0 : S.price) || "0", L = be(N, M), i = r.find((R) => R.productId === b.value);
|
|
70
70
|
return f(h, {
|
|
71
71
|
key: b.id || b.value || b.label,
|
|
72
72
|
option: b,
|
|
@@ -76,15 +76,15 @@ const o = ({ children: e }) => {
|
|
|
76
76
|
allowMany: n,
|
|
77
77
|
onProductChange: c,
|
|
78
78
|
disabled: y,
|
|
79
|
-
readOnly:
|
|
79
|
+
readOnly: O,
|
|
80
80
|
hasError: l,
|
|
81
|
-
currencyAriaLabel:
|
|
81
|
+
currencyAriaLabel: L,
|
|
82
82
|
imageResize: p,
|
|
83
83
|
isFirst: g === 0
|
|
84
84
|
});
|
|
85
85
|
}));
|
|
86
86
|
}, E = ({ children: e, className: a, ...s }) => {
|
|
87
|
-
const { option: n, price: r, quantity: c = 0, isSelected: y, allowMany:
|
|
87
|
+
const { option: n, price: r, quantity: c = 0, isSelected: y, allowMany: O, onProductChange: l, disabled: u, readOnly: m, hasError: p, currencyAriaLabel: M, imageResize: N, isFirst: h } = s, { id: b } = x(), g = U(null), A = U(null), L = I(e, E.Image), i = I(e, E.Label), C = I(e, E.Price), T = I(e, E.Input), F = I(e, E.Quantity);
|
|
88
88
|
ee(() => {
|
|
89
89
|
var d;
|
|
90
90
|
h && ((d = g.current ?? A.current) == null || d.focus({
|
|
@@ -112,10 +112,10 @@ const o = ({ children: e }) => {
|
|
|
112
112
|
n.value,
|
|
113
113
|
r
|
|
114
114
|
]), R = `${n.label} ${M} ${r}`;
|
|
115
|
-
return
|
|
115
|
+
return O ? /* @__PURE__ */ t.createElement("div", {
|
|
116
116
|
className: a,
|
|
117
117
|
"data-hook": "product"
|
|
118
|
-
},
|
|
118
|
+
}, L ? f(L, {
|
|
119
119
|
option: n,
|
|
120
120
|
imageResize: N
|
|
121
121
|
}) : null, i ? f(i, {
|
|
@@ -141,7 +141,7 @@ const o = ({ children: e }) => {
|
|
|
141
141
|
ref: g,
|
|
142
142
|
className: a,
|
|
143
143
|
"data-hook": "product"
|
|
144
|
-
}, ({ isHovered: d, isFocused: B }) => /* @__PURE__ */ t.createElement(t.Fragment, null,
|
|
144
|
+
}, ({ isHovered: d, isFocused: B }) => /* @__PURE__ */ t.createElement(t.Fragment, null, L ? f(L, {
|
|
145
145
|
option: n,
|
|
146
146
|
imageResize: N
|
|
147
147
|
}) : null, i ? f(i, {
|
|
@@ -158,14 +158,14 @@ const o = ({ children: e }) => {
|
|
|
158
158
|
const { option: s, imageResize: n } = a, r = (l = s.media) == null ? void 0 : l.image;
|
|
159
159
|
if (!r)
|
|
160
160
|
return null;
|
|
161
|
-
const c = n ===
|
|
161
|
+
const c = n === Le.fit, y = me(r, 96, 96, c ? "fit" : "fill");
|
|
162
162
|
if (!y)
|
|
163
163
|
return null;
|
|
164
|
-
const
|
|
164
|
+
const O = r.altText || s.label || "";
|
|
165
165
|
return /* @__PURE__ */ t.createElement("img", {
|
|
166
166
|
className: e,
|
|
167
167
|
src: y,
|
|
168
|
-
alt:
|
|
168
|
+
alt: O,
|
|
169
169
|
"data-fit": c ? "contain" : "cover",
|
|
170
170
|
"data-hook": "product-image"
|
|
171
171
|
});
|
|
@@ -186,7 +186,7 @@ const o = ({ children: e }) => {
|
|
|
186
186
|
"data-hook": "product-price"
|
|
187
187
|
}, c);
|
|
188
188
|
}, De = ({ className: e, ...a }) => {
|
|
189
|
-
const { quantity: s, onQuantityChange: n, disabled: r, readOnly: c, hasError: y, ariaLabel:
|
|
189
|
+
const { quantity: s, onQuantityChange: n, disabled: r, readOnly: c, hasError: y, ariaLabel: O, inputRef: l } = a, u = v((p) => {
|
|
190
190
|
n(p < 0 ? 0 : p);
|
|
191
191
|
}, [
|
|
192
192
|
n
|
|
@@ -203,7 +203,7 @@ const o = ({ children: e }) => {
|
|
|
203
203
|
isDisabled: r,
|
|
204
204
|
isReadOnly: c,
|
|
205
205
|
isInvalid: y,
|
|
206
|
-
"aria-label":
|
|
206
|
+
"aria-label": O,
|
|
207
207
|
className: e,
|
|
208
208
|
"data-hook": "product-quantity"
|
|
209
209
|
}, /* @__PURE__ */ t.createElement(Y, {
|
|
@@ -239,7 +239,7 @@ const Se = "_options_519is_1", Pe = "_option_519is_1", Ne = "_optionInput_519is_
|
|
|
239
239
|
content: e,
|
|
240
240
|
locale: a
|
|
241
241
|
}), ve = () => {
|
|
242
|
-
const e =
|
|
242
|
+
const e = Oe({
|
|
243
243
|
globalClasses: ce,
|
|
244
244
|
moduleClasses: Ie
|
|
245
245
|
});
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import a, { useRef as F, useState as V, useEffect as T, useCallback as B } from "react";
|
|
2
2
|
import { RadioGroup as H, RadioField as k, RadioButton as A, TextField as G, Input as P } from "react-aria-components";
|
|
3
|
-
import { bj as g, bg as $, bt as D, bl as x } from "./form-
|
|
3
|
+
import { bj as g, bg as $, bt as D, bl as x } from "./form-D7mq5tD5.js";
|
|
4
4
|
import { f as d, a as v } from "./find-child-C60k4CxG.js";
|
|
5
|
-
import { D as U, E as j } from "./field-error-headless-
|
|
6
|
-
import { L as M } from "./field-label-headless-
|
|
5
|
+
import { D as U, E as j } from "./field-error-headless-BCrv3sBa.js";
|
|
6
|
+
import { L as M } from "./field-label-headless-B54yFVkr.js";
|
|
7
7
|
import { S as w } from "./selection-indicator-XQ8MYHUQ.js";
|
|
8
8
|
const L = "Other", z = (e, t) => e == null ? void 0 : e.find((n) => (n.value ?? n.label) === t), S = (e, t) => !!t && !z(e, t), J = (e, t) => {
|
|
9
9
|
const l = t ? t.length + 2 : 0;
|
package/dist/component/{radio-group-field-rac-BifCDpE4.js → radio-group-field-rac-DiaR7RdY.js}
RENAMED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { RicosViewer as m } from "@wix/ricos/viewer";
|
|
2
2
|
import t from "classnames";
|
|
3
3
|
import e from "react";
|
|
4
|
-
import { a, s, R as n } from "./radio-button-module-classes-
|
|
4
|
+
import { a, s, R as n } from "./radio-button-module-classes-CokNolqR.js";
|
|
5
5
|
import { E as c } from "./error-icon-hZxQ6DEy.js";
|
|
6
6
|
import { s as r } from "./field-rac.module-DfEb7pBp.js";
|
|
7
|
-
import {
|
|
7
|
+
import { N as i, Y as E, T as p, U as O, G as R, u as _, V as I } from "./form-D7mq5tD5.js";
|
|
8
8
|
import { o as L } from "./options-rac.module-_THNq6Qq.js";
|
|
9
|
-
import { u } from "./use-element-state-class-name-
|
|
10
|
-
import { u
|
|
9
|
+
import { u as N } from "./use-element-state-class-name-CT3HIbmC.js";
|
|
10
|
+
import { u } from "./use-text-input-class-name-CO5G1Jx0.js";
|
|
11
11
|
const D = ({ content: o, locale: l }) => /* @__PURE__ */ e.createElement(m, {
|
|
12
12
|
content: o,
|
|
13
13
|
locale: l
|
|
14
14
|
}), G = () => {
|
|
15
|
-
const o =
|
|
15
|
+
const o = N({
|
|
16
16
|
globalClasses: I,
|
|
17
17
|
moduleClasses: n
|
|
18
|
-
}), l =
|
|
18
|
+
}), l = u();
|
|
19
19
|
return /* @__PURE__ */ e.createElement(a, null, /* @__PURE__ */ e.createElement(a.Label, {
|
|
20
20
|
className: t(i, r.label)
|
|
21
21
|
}, /* @__PURE__ */ e.createElement(a.Label.Required, {
|
package/dist/component/{rating-input-field-rac-Dg1T0DZW.js → rating-input-field-rac-DbyB_Esi.js}
RENAMED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { RicosViewer as
|
|
1
|
+
import { RicosViewer as N } from "@wix/ricos/viewer";
|
|
2
2
|
import u from "classnames";
|
|
3
|
-
import e, { useCallback as
|
|
4
|
-
import { bj as I, bg as v, bt as
|
|
3
|
+
import e, { useCallback as y, useState as O, useRef as A } from "react";
|
|
4
|
+
import { bj as I, bg as v, bt as T, N as H, Y as M, W as w, G as B, u as P, X as G } from "./form-D7mq5tD5.js";
|
|
5
5
|
import { RadioGroup as q, RadioField as k, RadioButton as x } from "react-aria-components";
|
|
6
6
|
import { f as E, a as U } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as j, E as z } from "./field-error-headless-
|
|
8
|
-
import { L as Q } from "./field-label-headless-
|
|
7
|
+
import { D as j, E as z } from "./field-error-headless-BCrv3sBa.js";
|
|
8
|
+
import { L as Q } from "./field-label-headless-B54yFVkr.js";
|
|
9
9
|
import { E as W } from "./error-icon-hZxQ6DEy.js";
|
|
10
10
|
import { s as g } from "./field-rac.module-DfEb7pBp.js";
|
|
11
|
-
import { u as X } from "./use-element-state-class-name-
|
|
11
|
+
import { u as X } from "./use-element-state-class-name-CT3HIbmC.js";
|
|
12
12
|
const t = ({ children: a }) => {
|
|
13
|
-
const { id: n, value: r, onChange: i, disabled: l, readOnly: m, required: d, hasError: c, onBlur: o, onFocus: C, FieldLayout: R } = I(), { labelId: _ } = v(), L =
|
|
13
|
+
const { id: n, value: r, onChange: i, disabled: l, readOnly: m, required: d, hasError: c, onBlur: o, onFocus: C, FieldLayout: R } = I(), { labelId: _ } = v(), L = y((D) => i(Number(D)), [
|
|
14
14
|
i
|
|
15
15
|
]), f = E(a, t.Label), s = E(a, t.Ratings), S = E(a, t.Description), h = E(a, t.Error);
|
|
16
16
|
return /* @__PURE__ */ e.createElement(R, {
|
|
@@ -103,7 +103,7 @@ const Z = (a) => /* @__PURE__ */ e.createElement("svg", {
|
|
|
103
103
|
rating: K,
|
|
104
104
|
ratingSelected: $,
|
|
105
105
|
ratingHover: V
|
|
106
|
-
}, ee = ({ content: a, locale: n }) => /* @__PURE__ */ e.createElement(
|
|
106
|
+
}, ee = ({ content: a, locale: n }) => /* @__PURE__ */ e.createElement(N, {
|
|
107
107
|
content: a,
|
|
108
108
|
locale: n
|
|
109
109
|
}), te = {
|
|
@@ -111,14 +111,14 @@ const Z = (a) => /* @__PURE__ */ e.createElement("svg", {
|
|
|
111
111
|
selected: p.ratingSelected,
|
|
112
112
|
hover: p.ratingHover
|
|
113
113
|
}, Ee = () => {
|
|
114
|
-
const { t: a } =
|
|
114
|
+
const { t: a } = T(), n = X({
|
|
115
115
|
globalClasses: G,
|
|
116
116
|
moduleClasses: te
|
|
117
117
|
});
|
|
118
118
|
return /* @__PURE__ */ e.createElement(t, null, /* @__PURE__ */ e.createElement(t.Label, {
|
|
119
|
-
className: u(
|
|
119
|
+
className: u(H, g.label)
|
|
120
120
|
}, /* @__PURE__ */ e.createElement(t.Label.Required, {
|
|
121
|
-
className: u(
|
|
121
|
+
className: u(M, g.requiredMark)
|
|
122
122
|
})), /* @__PURE__ */ e.createElement(t.Ratings, {
|
|
123
123
|
className: u(w, p.ratings),
|
|
124
124
|
getReactionLabel: (r) => a("rating-input.a11y.reaction-label", {
|
package/dist/component/{rich-content-rac.module-BehwBL3L.js → rich-content-rac.module-CDtZ3pmh.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import c, { useState as u } from "react";
|
|
2
|
-
import { bj as a, bb as i, bt as T } from "./form-
|
|
2
|
+
import { bj as a, bb as i, bt as T } from "./form-D7mq5tD5.js";
|
|
3
3
|
import { Button as d } from "react-aria-components";
|
|
4
4
|
import { D as r } from "./data-hooks-Dkw1pbRj.js";
|
|
5
5
|
import { truncateRichContent as _ } from "@wix/ricos/content";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import l from "classnames";
|
|
2
2
|
import e from "react";
|
|
3
|
-
import { bj as m, aw as i, ae as u, aW as R, aZ as T } from "./form-
|
|
4
|
-
import { u as C, R as d, s as g, T as p } from "./rich-content-rac.module-
|
|
3
|
+
import { bj as m, aw as i, ae as u, aW as R, aZ as T } from "./form-D7mq5tD5.js";
|
|
4
|
+
import { u as C, R as d, s as g, T as p } from "./rich-content-rac.module-CDtZ3pmh.js";
|
|
5
5
|
const h = {
|
|
6
6
|
colorPalette: T(),
|
|
7
7
|
customStyles: R()
|
package/dist/component/{service-dropdown-rac-68WLBlsa.js → service-dropdown-rac-rdwYVwGB.js}
RENAMED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import o, { useRef as b, useMemo as _, useCallback as C, useEffect as T } from "react";
|
|
2
2
|
import { RicosViewer as w } from "@wix/ricos/viewer";
|
|
3
3
|
import E from "classnames";
|
|
4
|
-
import { bf as P, bt as A, F as M, bj as y, bb as V, al as x,
|
|
5
|
-
import { u as W } from "./use-service-options-base-
|
|
6
|
-
import { D as u } from "./dropdown-field-headless-
|
|
4
|
+
import { bf as P, bt as A, F as M, bj as y, bb as V, al as x, N as H, Y as U, O as k, G as q, u as B } from "./form-D7mq5tD5.js";
|
|
5
|
+
import { u as W } from "./use-service-options-base-DMgeKnCC.js";
|
|
6
|
+
import { D as u } from "./dropdown-field-headless-B6i33cBH.js";
|
|
7
7
|
import { C as Y } from "./chevron-down-icon-CcpVm6B-.js";
|
|
8
8
|
import { E as j } from "./error-icon-hZxQ6DEy.js";
|
|
9
9
|
import { H as G } from "./custom-focus-class-_483Pkwp.js";
|
|
10
10
|
import { s as a } from "./field-rac.module-DfEb7pBp.js";
|
|
11
|
-
import { u as Q } from "./use-dropdown-option-class-name-
|
|
12
|
-
import { u as z } from "./use-dropdown-trigger-class-name-
|
|
11
|
+
import { u as Q } from "./use-dropdown-option-class-name-DNvaYrmm.js";
|
|
12
|
+
import { u as z } from "./use-dropdown-trigger-class-name-_gAS-eDg.js";
|
|
13
13
|
const J = "00000000-0000-0000-0000-000000000000", K = (e) => {
|
|
14
14
|
const { actions: t } = P(), { t: h } = A(), { addOther: n, addOtherLabel: p } = e, c = p || h("add-other.default-other-option-label"), i = b(!0), d = _(() => {
|
|
15
15
|
var s;
|
|
@@ -68,12 +68,12 @@ const J = "00000000-0000-0000-0000-000000000000", K = (e) => {
|
|
|
68
68
|
g,
|
|
69
69
|
e.isEditor
|
|
70
70
|
]);
|
|
71
|
-
const
|
|
71
|
+
const N = C(() => {
|
|
72
72
|
e.onFocus && e.onFocus(), i.current && R();
|
|
73
73
|
}, [
|
|
74
74
|
R,
|
|
75
75
|
e.onFocus
|
|
76
|
-
]),
|
|
76
|
+
]), v = C(
|
|
77
77
|
(s) => {
|
|
78
78
|
e.onChange && e.onChange(s), i.current = !0;
|
|
79
79
|
},
|
|
@@ -86,8 +86,8 @@ const J = "00000000-0000-0000-0000-000000000000", K = (e) => {
|
|
|
86
86
|
isLoading: f,
|
|
87
87
|
options: l,
|
|
88
88
|
isEmpty: S,
|
|
89
|
-
onFocus:
|
|
90
|
-
onChange:
|
|
89
|
+
onFocus: N,
|
|
90
|
+
onChange: v,
|
|
91
91
|
shouldRender: I
|
|
92
92
|
};
|
|
93
93
|
}, r = ({ children: e }) => {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import e, { useEffect as I, useMemo as L } from "react";
|
|
2
2
|
import { RicosViewer as S } from "@wix/ricos/viewer";
|
|
3
3
|
import a from "classnames";
|
|
4
|
-
import { F as R, bj as d, al as D,
|
|
5
|
-
import { u as v } from "./use-service-options-base-
|
|
6
|
-
import { C as i } from "./checkbox-group-field-headless-
|
|
4
|
+
import { F as R, bj as d, al as D, N, Y as F, o as f, q as h, G as b, u as M, p as A } from "./form-D7mq5tD5.js";
|
|
5
|
+
import { u as v } from "./use-service-options-base-DMgeKnCC.js";
|
|
6
|
+
import { C as i } from "./checkbox-group-field-headless-DdVXFUPC.js";
|
|
7
7
|
import { E as x } from "./error-icon-hZxQ6DEy.js";
|
|
8
8
|
import { C as P } from "./checkbox-indicator-module-classes-6173wvuW.js";
|
|
9
9
|
import { s as n } from "./field-rac.module-DfEb7pBp.js";
|
|
10
10
|
import { o as _ } from "./options-rac.module-_THNq6Qq.js";
|
|
11
|
-
import { u as T } from "./use-element-state-class-name-
|
|
12
|
-
import { u as k } from "./use-text-input-class-name-
|
|
11
|
+
import { u as T } from "./use-element-state-class-name-CT3HIbmC.js";
|
|
12
|
+
import { u as k } from "./use-text-input-class-name-CO5G1Jx0.js";
|
|
13
13
|
const y = (s) => {
|
|
14
14
|
var C;
|
|
15
15
|
const { isLoading: o, options: r, isEmpty: l, shouldRender: E, setOptions: c, setIsEmpty: m, setHasInitialDataLoaded: p } = v({
|
|
@@ -62,9 +62,9 @@ const B = ({ content: s, locale: o }) => /* @__PURE__ */ e.createElement(S, {
|
|
|
62
62
|
moduleClasses: P
|
|
63
63
|
}), o = k();
|
|
64
64
|
return /* @__PURE__ */ e.createElement(t, null, /* @__PURE__ */ e.createElement(t.Label, {
|
|
65
|
-
className: a(
|
|
65
|
+
className: a(N, n.label)
|
|
66
66
|
}, /* @__PURE__ */ e.createElement(t.Label.Required, {
|
|
67
|
-
className: a(
|
|
67
|
+
className: a(F, n.requiredMark)
|
|
68
68
|
})), /* @__PURE__ */ e.createElement(t.Options, {
|
|
69
69
|
className: a(f, _.options)
|
|
70
70
|
}, /* @__PURE__ */ e.createElement(t.Options.Option, null, /* @__PURE__ */ e.createElement(t.Options.Option.Checkbox, {
|
|
@@ -2,17 +2,17 @@ import s, { useRef as $, useContext as Ae, useMemo as be, useCallback as _, useS
|
|
|
2
2
|
import we from "@wix/editor-react-components/AnimatedIcon";
|
|
3
3
|
import { RicosViewer as xe } from "@wix/ricos/viewer";
|
|
4
4
|
import F from "classnames";
|
|
5
|
-
import { aN as Ue, bd as Te, ap as Be, F as Oe, bf as Pe, bb as Me, br as ye, E as me, af as oe, bj as x, bg as W, bl as Ce, bt as He, bc as We,
|
|
5
|
+
import { aN as Ue, bd as Te, ap as Be, F as Oe, bf as Pe, bb as Me, br as ye, E as me, af as oe, bj as x, bg as W, bl as Ce, bt as He, bc as We, N as Ye, Y as Ze, _ as ke, u as pe, b as Ge, a3 as Ve, a4 as fe, G as $e, Z as ze, a1 as Xe, $ as qe, a2 as je, f as ne, a0 as Je } from "./form-D7mq5tD5.js";
|
|
6
6
|
import { useHover as Ke, useFocusRing as Qe, mergeProps as et } from "react-aria";
|
|
7
7
|
import { RadioGroup as tt, Button as Ie, TextField as nt, DropZone as at, Input as ot, FileTrigger as rt, RadioField as st, RadioButton as lt } from "react-aria-components";
|
|
8
8
|
import _e from "signature_pad";
|
|
9
9
|
import { f as C, a as A } from "./find-child-C60k4CxG.js";
|
|
10
|
-
import { D as it, E as ct } from "./field-error-headless-
|
|
11
|
-
import { L as ut } from "./field-label-headless-
|
|
10
|
+
import { D as it, E as ct } from "./field-error-headless-BCrv3sBa.js";
|
|
11
|
+
import { L as ut } from "./field-label-headless-B54yFVkr.js";
|
|
12
12
|
import { D as dt } from "./data-hooks-Dkw1pbRj.js";
|
|
13
13
|
import { E as mt } from "./error-icon-hZxQ6DEy.js";
|
|
14
14
|
import { s as ae } from "./field-rac.module-DfEb7pBp.js";
|
|
15
|
-
import { u as X } from "./use-element-state-class-name-
|
|
15
|
+
import { u as X } from "./use-element-state-class-name-CT3HIbmC.js";
|
|
16
16
|
const pt = typeof s.useId == "function" ? s.useId : () => $(Ue()).current, ft = ({ properties: e }) => e.uploadEnabled === !0, Et = (e, t) => e.fieldType === Oe.SIGNATURE && !e.properties.hidden && !e.properties.disabled && !e.properties.readOnly && (t !== "upload" || ft(e)), gt = (e, t) => e.layout.row - t.layout.row || e.layout.column - t.layout.column, ht = (e) => {
|
|
17
17
|
var o;
|
|
18
18
|
const t = (o = Te().signatureContainer) == null ? void 0 : o.signatureMode, a = Ae(Be);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import t, { useRef as F, useCallback as P } from "react";
|
|
2
2
|
import j from "@wix/editor-react-components/AnimatedIcon";
|
|
3
3
|
import g from "classnames";
|
|
4
|
-
import { bj as B, bd as q, ai as A, b as R, ah as k, ad as y, ac as M, ag as U } from "./form-
|
|
4
|
+
import { bj as B, bd as q, ai as A, b as R, ah as k, ad as y, ac as M, ag as U } from "./form-D7mq5tD5.js";
|
|
5
5
|
import { ProgressBar as D, Button as N } from "react-aria-components";
|
|
6
6
|
import { f as m } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { u as f } from "./use-element-state-class-name-
|
|
7
|
+
import { u as f } from "./use-element-state-class-name-CT3HIbmC.js";
|
|
8
8
|
function W(e) {
|
|
9
9
|
const s = "calc(50% - 2px)";
|
|
10
10
|
return /* @__PURE__ */ t.createElement(D, {
|
|
@@ -2,15 +2,15 @@ import { RicosViewer as Y } from "@wix/ricos/viewer";
|
|
|
2
2
|
import F from "classnames";
|
|
3
3
|
import t, { useMemo as I, useState as w, useRef as N, useLayoutEffect as z, useCallback as k } from "react";
|
|
4
4
|
import { CheckboxGroup as B, TextField as J, Input as K, CheckboxField as X, CheckboxButton as Z } from "react-aria-components";
|
|
5
|
-
import { bj as D, bg as M, bt as S, bl as U,
|
|
5
|
+
import { bj as D, bg as M, bt as S, bl as U, N as ee, Y as te, a6 as ne, G as oe, u as ae, a7 as re } from "./form-D7mq5tD5.js";
|
|
6
6
|
import { f as O, a as x } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { E as W, D as H } from "./field-error-headless-
|
|
8
|
-
import { L as $ } from "./field-label-headless-
|
|
7
|
+
import { E as W, D as H } from "./field-error-headless-BCrv3sBa.js";
|
|
8
|
+
import { L as $ } from "./field-label-headless-B54yFVkr.js";
|
|
9
9
|
import { F as se } from "./fieldset-headless-CD3fds9J.js";
|
|
10
10
|
import { E as le } from "./error-icon-hZxQ6DEy.js";
|
|
11
11
|
import { s as y } from "./field-rac.module-DfEb7pBp.js";
|
|
12
|
-
import { u as ie } from "./use-element-state-class-name-
|
|
13
|
-
import { u as ce } from "./use-text-input-class-name-
|
|
12
|
+
import { u as ie } from "./use-element-state-class-name-CT3HIbmC.js";
|
|
13
|
+
import { u as ce } from "./use-text-input-class-name-CO5G1Jx0.js";
|
|
14
14
|
var ue = /* @__PURE__ */ (function(e) {
|
|
15
15
|
return e[e.FREE_FLOW = 0] = "FREE_FLOW", e[e.ONE = 1] = "ONE", e[e.TWO = 2] = "TWO", e[e.THREE = 3] = "THREE", e;
|
|
16
16
|
})({});
|
|
@@ -2,13 +2,13 @@ import { RicosViewer as N } from "@wix/ricos/viewer";
|
|
|
2
2
|
import o from "classnames";
|
|
3
3
|
import r, { useCallback as T, useRef as O } from "react";
|
|
4
4
|
import { TextField as S, TextArea as y } from "react-aria-components";
|
|
5
|
-
import { bj as p, bg as d, bl as x,
|
|
5
|
+
import { bj as p, bg as d, bl as x, N as g, Y as h, G as v, u as M } from "./form-D7mq5tD5.js";
|
|
6
6
|
import { f as i } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as q, E as B } from "./field-error-headless-
|
|
8
|
-
import { L as k } from "./field-label-headless-
|
|
7
|
+
import { D as q, E as B } from "./field-error-headless-BCrv3sBa.js";
|
|
8
|
+
import { L as k } from "./field-label-headless-B54yFVkr.js";
|
|
9
9
|
import { E as P } from "./error-icon-hZxQ6DEy.js";
|
|
10
10
|
import { s as c } from "./field-rac.module-DfEb7pBp.js";
|
|
11
|
-
import { u as V } from "./use-text-input-class-name-
|
|
11
|
+
import { u as V } from "./use-text-input-class-name-CO5G1Jx0.js";
|
|
12
12
|
const e = ({ children: t }) => {
|
|
13
13
|
const { id: a, value: m, onChange: s, disabled: u, required: n, readOnly: l, onBlur: E, onFocus: b, FieldLayout: I, hasError: f } = p(), { labelId: F } = d(), L = T((A) => {
|
|
14
14
|
s(A);
|
|
@@ -62,9 +62,9 @@ const w = "_input_ug5v8_1", G = {
|
|
|
62
62
|
})), /* @__PURE__ */ r.createElement(e.Input, {
|
|
63
63
|
className: t
|
|
64
64
|
}), /* @__PURE__ */ r.createElement(e.Error, {
|
|
65
|
-
className: o(
|
|
65
|
+
className: o(v, c.error)
|
|
66
66
|
}, /* @__PURE__ */ r.createElement(P, null), /* @__PURE__ */ r.createElement(e.Error.Text, null)), /* @__PURE__ */ r.createElement(e.Description, {
|
|
67
|
-
className: o(
|
|
67
|
+
className: o(M, c.description)
|
|
68
68
|
}, Q));
|
|
69
69
|
};
|
|
70
70
|
export {
|
package/dist/component/{text-input-field-rac-Dm-xU8Rg.js → text-input-field-rac-emy5LgNs.js}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { RicosViewer as l } from "@wix/ricos/viewer";
|
|
2
2
|
import t from "classnames";
|
|
3
3
|
import e from "react";
|
|
4
|
-
import { T as r } from "./text-input-headless-
|
|
4
|
+
import { T as r } from "./text-input-headless-BIgsm4yN.js";
|
|
5
5
|
import { E as o } from "./error-icon-hZxQ6DEy.js";
|
|
6
6
|
import { s as a } from "./field-rac.module-DfEb7pBp.js";
|
|
7
|
-
import {
|
|
8
|
-
import { u as p } from "./use-text-input-class-name-
|
|
7
|
+
import { N as n, Y as c, G as E, u as i } from "./form-D7mq5tD5.js";
|
|
8
|
+
import { u as p } from "./use-text-input-class-name-CO5G1Jx0.js";
|
|
9
9
|
const u = ({ content: s, locale: m }) => /* @__PURE__ */ e.createElement(l, {
|
|
10
10
|
content: s,
|
|
11
11
|
locale: m
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import t, { useRef as L } from "react";
|
|
2
2
|
import { TextField as R, Input as g } from "react-aria-components";
|
|
3
|
-
import { bj as d, bg as c, bl as v } from "./form-
|
|
3
|
+
import { bj as d, bg as c, bl as v } from "./form-D7mq5tD5.js";
|
|
4
4
|
import { f as s } from "./find-child-C60k4CxG.js";
|
|
5
|
-
import { D as T, E as h } from "./field-error-headless-
|
|
6
|
-
import { L as x } from "./field-label-headless-
|
|
5
|
+
import { D as T, E as h } from "./field-error-headless-BCrv3sBa.js";
|
|
6
|
+
import { L as x } from "./field-label-headless-B54yFVkr.js";
|
|
7
7
|
const e = ({ children: r }) => {
|
|
8
8
|
const { id: a, value: i, onChange: l, disabled: u, readOnly: n, required: o, hasError: p, onBlur: m, onFocus: b, FieldLayout: f } = d(), { labelId: E } = c(), I = s(r, e.Label), F = s(r, e.Input), y = s(r, e.Description), D = s(r, e.Error);
|
|
9
9
|
return /* @__PURE__ */ t.createElement(f, {
|
|
@@ -3,14 +3,14 @@ import { RicosViewer as x } from "@wix/ricos/viewer";
|
|
|
3
3
|
import m from "classnames";
|
|
4
4
|
import { parseTime as q } from "@internationalized/date";
|
|
5
5
|
import { TimeField as v, DateInput as z, DateSegment as _, TimeFieldStateContext as B } from "react-aria-components";
|
|
6
|
-
import { bj as p, bg as U, bt as S, bl as w,
|
|
6
|
+
import { bj as p, bg as U, bt as S, bl as w, N as G, Y as Q, G as Y, u as J } from "./form-D7mq5tD5.js";
|
|
7
7
|
import { f as u, a as F } from "./find-child-C60k4CxG.js";
|
|
8
|
-
import { D as K, E as W } from "./field-error-headless-
|
|
9
|
-
import { L as X } from "./field-label-headless-
|
|
8
|
+
import { D as K, E as W } from "./field-error-headless-BCrv3sBa.js";
|
|
9
|
+
import { L as X } from "./field-label-headless-B54yFVkr.js";
|
|
10
10
|
import { E as Z } from "./error-icon-hZxQ6DEy.js";
|
|
11
11
|
import { H as T } from "./custom-focus-class-_483Pkwp.js";
|
|
12
12
|
import { s as f } from "./field-rac.module-DfEb7pBp.js";
|
|
13
|
-
import { u as $ } from "./use-text-input-class-name-
|
|
13
|
+
import { u as $ } from "./use-text-input-class-name-CO5G1Jx0.js";
|
|
14
14
|
const r = ({ children: t }) => {
|
|
15
15
|
const { id: n, value: s, onChange: a, disabled: i, readOnly: o, required: c, onBlur: l, onFocus: E, use24HourFormat: b, FieldLayout: g, hasError: C } = p(), { inputId: I, ariaDescribedBy: D, labelId: L } = U(), R = H((M) => {
|
|
16
16
|
const k = ae(M);
|
|
@@ -2,14 +2,14 @@ import { RicosViewer as S } from "@wix/ricos/viewer";
|
|
|
2
2
|
import i from "classnames";
|
|
3
3
|
import r, { useCallback as h, useRef as O } from "react";
|
|
4
4
|
import { TextField as y, Input as A } from "react-aria-components";
|
|
5
|
-
import { bj as d, bg as E, bl as g,
|
|
5
|
+
import { bj as d, bg as E, bl as g, N as B, Y as T, G as k, u as v } from "./form-D7mq5tD5.js";
|
|
6
6
|
import { f as c } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as
|
|
8
|
-
import { L as q } from "./field-label-headless-
|
|
7
|
+
import { D as M, E as P } from "./field-error-headless-BCrv3sBa.js";
|
|
8
|
+
import { L as q } from "./field-label-headless-B54yFVkr.js";
|
|
9
9
|
import { u as x } from "./use-invoke-callback-UH73A_J3.js";
|
|
10
10
|
import { E as U } from "./error-icon-hZxQ6DEy.js";
|
|
11
11
|
import { s as u } from "./field-rac.module-DfEb7pBp.js";
|
|
12
|
-
import { u as w } from "./use-text-input-class-name-
|
|
12
|
+
import { u as w } from "./use-text-input-class-name-CO5G1Jx0.js";
|
|
13
13
|
const V = (t) => t ? `https://${String(t).replace(/^https?:\/\//, "")}` : "", e = ({ children: t }) => {
|
|
14
14
|
const { id: o, value: s, onChange: n, disabled: m, readOnly: l, required: a, hasError: I, onBlur: b, onFocus: f, FieldLayout: R } = d(), { labelId: F } = E(), p = x(b), L = c(t, e.Label), D = c(t, e.Input), C = c(t, e.Description), _ = c(t, e.Error), N = h(() => {
|
|
15
15
|
n(V(s)), p();
|
|
@@ -50,7 +50,7 @@ const V = (t) => t ? `https://${String(t).replace(/^https?:\/\//, "")}` : "", e
|
|
|
50
50
|
};
|
|
51
51
|
e.Label = q;
|
|
52
52
|
e.Input = W;
|
|
53
|
-
e.Description =
|
|
53
|
+
e.Description = M;
|
|
54
54
|
e.Error = P;
|
|
55
55
|
const $ = ({ content: t, locale: o }) => /* @__PURE__ */ r.createElement(S, {
|
|
56
56
|
content: t,
|
|
@@ -60,13 +60,13 @@ const $ = ({ content: t, locale: o }) => /* @__PURE__ */ r.createElement(S, {
|
|
|
60
60
|
return /* @__PURE__ */ r.createElement(e, null, /* @__PURE__ */ r.createElement(e.Label, {
|
|
61
61
|
className: i(B, u.label)
|
|
62
62
|
}, /* @__PURE__ */ r.createElement(e.Label.Required, {
|
|
63
|
-
className: i(
|
|
63
|
+
className: i(T, u.requiredMark)
|
|
64
64
|
})), /* @__PURE__ */ r.createElement(e.Input, {
|
|
65
65
|
className: t
|
|
66
66
|
}), /* @__PURE__ */ r.createElement(e.Error, {
|
|
67
|
-
className: i(
|
|
67
|
+
className: i(k, u.error)
|
|
68
68
|
}, /* @__PURE__ */ r.createElement(U, null), /* @__PURE__ */ r.createElement(e.Error.Text, null)), /* @__PURE__ */ r.createElement(e.Description, {
|
|
69
|
-
className: i(
|
|
69
|
+
className: i(v, u.description)
|
|
70
70
|
}, $));
|
|
71
71
|
};
|
|
72
72
|
export {
|
|
@@ -2,8 +2,8 @@ import d, { useContext as _, useRef as D, useState as m, Children as L, useLayou
|
|
|
2
2
|
import { CollectionRendererContext as g, DefaultCollectionRenderer as E, ListBox as N } from "react-aria-components";
|
|
3
3
|
import T from "classnames";
|
|
4
4
|
import { s as h } from "./field-rac.module-DfEb7pBp.js";
|
|
5
|
-
import { x as H } from "./form-
|
|
6
|
-
import { u as I } from "./use-element-state-class-name-
|
|
5
|
+
import { x as H } from "./form-D7mq5tD5.js";
|
|
6
|
+
import { u as I } from "./use-element-state-class-name-CT3HIbmC.js";
|
|
7
7
|
const R = 1 / 0, B = {
|
|
8
8
|
position: "absolute",
|
|
9
9
|
width: 0,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useContext as p, useMemo as T } from "react";
|
|
2
|
-
import { bd as a, ap as O, bb as _, F as s, y as i } from "./form-
|
|
3
|
-
import { u } from "./use-hoverable-input-class-name-
|
|
2
|
+
import { bd as a, ap as O, bb as _, F as s, y as i } from "./form-D7mq5tD5.js";
|
|
3
|
+
import { u } from "./use-hoverable-input-class-name-DMVtzjju.js";
|
|
4
4
|
const I = [
|
|
5
5
|
s.DROPDOWN,
|
|
6
6
|
s.DEXT_DROPDOWN,
|