@wix/form-elements 1.174.0 → 1.176.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-DIV9zgmZ.js → appointment-rac-BAJYXMTI.js} +5 -5
- package/dist/component/{bookings-address-rac-C5cT4gkX.js → bookings-address-rac-2lId37AV.js} +1 -1
- package/dist/component/{bookings-email-rac-CQEhRS7N.js → bookings-email-rac-CGv8_DCR.js} +1 -1
- package/dist/component/{bookings-first-name-rac-BwdasJXd.js → bookings-first-name-rac-X0Fkx2HW.js} +1 -1
- package/dist/component/{bookings-header-rac-CWzKq3yr.js → bookings-header-rac-B0m7b03Y.js} +1 -1
- package/dist/component/{bookings-last-name-rac-CoVWqEy5.js → bookings-last-name-rac-BOTKQnp3.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-DwoI-iRQ.js → bookings-login-bar-rac-Bh-gXHxF.js} +1 -1
- package/dist/component/{bookings-phone-rac-WAZU-1kD.js → bookings-phone-rac-D3uORVqg.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-I5Uo-q87.js → bookings-rich-text-rac-CTzDqYdf.js} +1 -1
- package/dist/component/{checkbox-field-rac-CKbKBNcQ.js → checkbox-field-rac-CABu1DWe.js} +6 -6
- package/dist/component/{checkbox-group-field-headless-7PMj-zW6.js → checkbox-group-field-headless-PFQoRdu-.js} +3 -3
- package/dist/component/{checkbox-group-field-rac-BZ-YgEYR.js → checkbox-group-field-rac-DcnWE0rf.js} +6 -6
- package/dist/component/{checkbox-group-rac-CED8h4qI.js → checkbox-group-rac-gK9Smwho.js} +1 -1
- package/dist/component/{checkbox-indicator-module-classes-DUTR4mcg.js → checkbox-indicator-module-classes-DOxE4UQg.js} +1 -1
- package/dist/component/{checkbox-rac-CbpEXMBz.js → checkbox-rac-ODOiCqwN.js} +1 -1
- package/dist/component/{contacts-address-rac-F3Ui7iJu.js → contacts-address-rac-9invJuye.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-CcxRV3RQ.js → contacts-birthdate-rac-Crmp9zZO.js} +1 -1
- package/dist/component/{contacts-company-rac-mDY20HzW.js → contacts-company-rac-GA6XC4nF.js} +1 -1
- package/dist/component/{contacts-email-rac-CoBPNuCj.js → contacts-email-rac-Bkka5Vu8.js} +1 -1
- package/dist/component/{contacts-first-name-rac-DzbpBmNm.js → contacts-first-name-rac-CYogWkC0.js} +1 -1
- package/dist/component/{contacts-last-name-rac-DEmV-MNE.js → contacts-last-name-rac-19NcOJvu.js} +1 -1
- package/dist/component/{contacts-phone-rac-BlEpatWP.js → contacts-phone-rac-ZSQgk9UI.js} +1 -1
- package/dist/component/{contacts-position-rac-DlZahRQc.js → contacts-position-rac-Bu_Z7yMZ.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-LXCEPvXl.js → contacts-subscribe-rac-P3zOrOax.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-DS0SDAtC.js → contacts-tax-id-rac-BSgXRk6v.js} +1 -1
- package/dist/component/{date-availability-DTFyrU8J.js → date-availability-CJqU3LIt.js} +1 -1
- package/dist/component/{date-input-field-rac-D7Pv-hqW.js → date-input-field-rac-QqiSZnXZ.js} +7 -7
- package/dist/component/{date-input-rac-BEsh54Gz.js → date-input-rac-BZFXvBvI.js} +1 -1
- package/dist/component/{date-picker-field-rac-DJirD93a.js → date-picker-field-rac-5dktkwOd.js} +7 -7
- package/dist/component/{date-picker-rac-B1fUqj_w.js → date-picker-rac-CKSxXfzL.js} +1 -1
- package/dist/component/{date-time-input-field-rac-CPFaQUXF.js → date-time-input-field-rac-DEmzbAaR.js} +7 -7
- package/dist/component/{date-time-input-rac-CAozBO0e.js → date-time-input-rac-BVtsQ3Vd.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-B0yqJoj8.js → dext-checkbox-group-rac-BubQ0slS.js} +2 -2
- package/dist/component/{dext-checkbox-rac-yZaUdHz1.js → dext-checkbox-rac-BhLjzcsZ.js} +1 -1
- package/dist/component/{dext-date-picker-rac-AJ7XIW-h.js → dext-date-picker-rac-DVBPmxp7.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-CPs79sUY.js → dext-date-time-input-rac-D4c_jenI.js} +1 -1
- package/dist/component/{dext-dropdown-rac-W2QzqPG4.js → dext-dropdown-rac-B1zJAMKN.js} +1 -1
- package/dist/component/{dext-email-rac-CCW1Dk1m.js → dext-email-rac-Ccm5STO4.js} +1 -1
- package/dist/component/{dext-number-input-rac-BAInaxoF.js → dext-number-input-rac-x6vxbCXa.js} +1 -1
- package/dist/component/{dext-phone-rac-CYYgZiFW.js → dext-phone-rac-Shd3BfP-.js} +1 -1
- package/dist/component/{dext-radio-group-rac-Dqvmxoai.js → dext-radio-group-rac-Dlb_nBO2.js} +2 -2
- package/dist/component/{dext-rating-input-rac-CWl7X0zW.js → dext-rating-input-rac-CaZbRWJC.js} +1 -1
- package/dist/component/{dext-tags-rac-BpAfPh55.js → dext-tags-rac-C55Dq-1l.js} +2 -2
- package/dist/component/{dext-text-area-rac-CLTg8XXH.js → dext-text-area-rac-9Ge8zXWS.js} +1 -1
- package/dist/component/{dext-text-input-rac-BV-F-ZsP.js → dext-text-input-rac-C0JVOKkk.js} +1 -1
- package/dist/component/{dext-url-input-rac-B9wHRaZr.js → dext-url-input-rac-CzT1EVwq.js} +1 -1
- package/dist/component/{donation-rac-Be4swKWD.js → donation-rac-u4w-aXl6.js} +6 -6
- package/dist/component/{dropdown-field-rac-BFEB_WuX.js → dropdown-field-rac-DhLD7sSS.js} +4 -4
- package/dist/component/{dropdown-rac-Dz7QtFVB.js → dropdown-rac-b5WH0y-k.js} +1 -1
- package/dist/component/{ecom-address-rac-Bu6msDgo.js → ecom-address-rac-C5A1WmAj.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-BRovQqrM.js → ecom-subscription-checkbox-rac-xW_rmIl_.js} +2 -2
- package/dist/component/{email-input-field-rac-EERVxm6G.js → email-input-field-rac-J_FteAiD.js} +4 -4
- package/dist/component/{events-repeater-rac-xs0pooBs.js → events-repeater-rac-BP1Wyc53.js} +6 -6
- package/dist/component/{events-rsvp-rac-CMi-8EqK.js → events-rsvp-rac-6K_VCmX-.js} +4 -4
- package/dist/component/{field-error-headless-DbFXeaud.js → field-error-headless-Coipxm8r.js} +1 -1
- package/dist/component/{field-label-headless-CWOYHPsb.js → field-label-headless-Td5R2D2v.js} +1 -1
- package/dist/component/field-rac.module-DcyJyi2B.js +25 -0
- package/dist/component/{file-upload-rac-vbMTIdDc.js → file-upload-rac-QvjsWUE6.js} +5 -5
- package/dist/component/{fixed-payment-rac-BRk7ams_.js → fixed-payment-rac-BHdwt3Li.js} +4 -4
- package/dist/component/{form-BjeODFzx.js → form-j_yRqg3t.js} +70 -70
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-CQexwZn7.js → header-field-rac-Bzpmnjft.js} +2 -2
- package/dist/component/{header-rac-CYbPDl4_.js → header-rac-Cyl7efBn.js} +1 -1
- package/dist/component/{image-choice-rac-DDvlaK6K.js → image-choice-rac-DwkOsp1k.js} +5 -5
- package/dist/component/{index-B6wFpWpe.js → index-DHLtT8Mx.js} +4 -4
- package/dist/component/{index-Bs9ypEe2.js → index-DebSQu51.js} +2 -2
- package/dist/component/{isObjectLike-Xcw2hQQ6.js → isObjectLike-Dmd5RpxA.js} +1 -1
- package/dist/component/{multiline-address-field-rac-CYJR-MUz.js → multiline-address-field-rac-Ds1zs5ln.js} +8 -8
- package/dist/component/{multiline-address-rac-DO1j_w6S.js → multiline-address-rac-DttcRYnL.js} +1 -1
- package/dist/component/{number-input-field-rac-C-qvd8v9.js → number-input-field-rac-Dn1AUGV2.js} +5 -5
- package/dist/component/{number-input-rac-CQSaifZE.js → number-input-rac-CFx61qYd.js} +1 -1
- package/dist/component/{password-rac-CqnbZtR_.js → password-rac-DJuStTWa.js} +5 -5
- package/dist/component/{payment-input-rac-CbOcztkp.js → payment-input-rac-BIIX_P6A.js} +5 -5
- package/dist/component/{phone-input-field-rac-BQ187I2C.js → phone-input-field-rac-C1InbJor.js} +7 -7
- package/dist/component/{phone-rac-CbA2xqF3.js → phone-rac-B6ubdBf6.js} +1 -1
- package/dist/component/{product-list-rac-MxB9tRiE.js → product-list-rac-BaB63jJu.js} +6 -6
- package/dist/component/{quiz-radio-group-rac-IViaDVRW.js → quiz-radio-group-rac-CrGIv3cN.js} +1 -1
- package/dist/component/{radio-button-module-classes-jtnooKMO.js → radio-button-module-classes-zZg9SOqG.js} +3 -3
- package/dist/component/{radio-group-field-rac-g3SQGJPp.js → radio-group-field-rac-C_Aui1YW.js} +5 -5
- package/dist/component/{radio-group-rac-D8wmzlbu.js → radio-group-rac-Bt3QthZ5.js} +1 -1
- package/dist/component/{rating-input-field-rac-BqPXKKdi.js → rating-input-field-rac-CdaHNKcZ.js} +5 -5
- package/dist/component/{rating-input-rac-CeZIpOmm.js → rating-input-rac-DmCouDpG.js} +1 -1
- package/dist/component/{rich-content-rac.module-BLgdpRh_.js → rich-content-rac.module-wyBdhZhG.js} +1 -1
- package/dist/component/{rich-text-field-rac-BpSVobCQ.js → rich-text-field-rac-BuvLBbnl.js} +2 -2
- package/dist/component/{rich-text-rac-DqpaqbFH.js → rich-text-rac-BXMlorQ2.js} +1 -1
- package/dist/component/{service-dropdown-rac-DKgtga1t.js → service-dropdown-rac-xgk-rFIY.js} +5 -5
- package/dist/component/{services-multi-choice-rac-CAyB0b4q.js → services-multi-choice-rac-D3ZwzsmG.js} +7 -7
- package/dist/component/{signature-rac-DC20YN4f.js → signature-rac-D8hEZGjF.js} +64 -64
- package/dist/component/{submit-button-rac-ClWtqIkR.js → submit-button-rac-DHm3YV4U.js} +2 -2
- package/dist/component/{tags-field-rac-DHM9k8uf.js → tags-field-rac-Cm4SnACy.js} +6 -6
- package/dist/component/{tags-rac-Clg50jwY.js → tags-rac-7nZ3O67I.js} +1 -1
- package/dist/component/{text-area-field-rac-B2qJZ6wR.js → text-area-field-rac-BEGUVGQL.js} +5 -5
- package/dist/component/{text-area-rac-BwsVk7u7.js → text-area-rac-BrhvUcqn.js} +1 -1
- package/dist/component/{text-input-field-rac-BQbo-3Ly.js → text-input-field-rac-CZn2Flyb.js} +4 -4
- package/dist/component/{text-input-headless-WICGIHcN.js → text-input-headless-DTDZC4x7.js} +3 -3
- package/dist/component/{text-input-rac-D7BRYDZr.js → text-input-rac-DIjGSUZo.js} +1 -1
- package/dist/component/{time-input-rac-Dnp-0_Js.js → time-input-rac-17FRariH.js} +5 -5
- package/dist/component/{url-input-field-rac-MC13zKST.js → url-input-field-rac-DYAXRURP.js} +5 -5
- package/dist/component/{url-input-rac-DfAtTmKv.js → url-input-rac-6IWE13av.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-CVUEosg4.js → use-dropdown-option-class-name-teYH9uf4.js} +3 -3
- package/dist/component/{use-dropdown-trigger-class-name-BHLG7EB-.js → use-dropdown-trigger-class-name-BpJezVOE.js} +6 -6
- package/dist/component/{use-element-state-class-name-BVJylHPn.js → use-element-state-class-name-CcW9uY2w.js} +1 -1
- package/dist/component/{use-hoverable-input-class-name-DO9ctJ81.js → use-hoverable-input-class-name-B9Ps5WPu.js} +3 -3
- package/dist/component/{use-is-forced-open-dropdown-Czuo32Nq.js → use-is-forced-open-dropdown-CUekpH1u.js} +1 -1
- package/dist/component/{use-service-options-base-DUuGIm38.js → use-service-options-base-DXhuk0gs.js} +1 -1
- package/dist/component/use-text-input-class-name-BIu78phH.js +6 -0
- package/package.json +2 -2
- package/dist/component/field-rac.module-ts2t4WUO.js +0 -25
- package/dist/component/use-text-input-class-name-LEnNGX0a.js +0 -6
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import r, { useRef as
|
|
1
|
+
import r, { useRef as $, useContext as Se, useMemo as he, useCallback as y, useState as q, useEffect as le, Children as Ne, isValidElement as be } from "react";
|
|
2
2
|
import Fe from "@wix/editor-react-components/AnimatedIcon";
|
|
3
3
|
import { RicosViewer as we } from "@wix/ricos/viewer";
|
|
4
4
|
import F from "classnames";
|
|
5
|
-
import { bd as xe, bF as Le, aR as Ue, F as Be, bH as Oe, bD as Pe, bT as Te, E as me, aH as oe, bL as x, bI as W, bN as Ie, bV as Me, bE as He, X as We, am as
|
|
5
|
+
import { bd as xe, bF as Le, aR as Ue, F as Be, bH as Oe, bD as Pe, bT as Te, E as me, aH as oe, bL as x, bI as W, bN as Ie, bV as Me, bE as He, X as We, am as Ye, an as Ze, ao as Ge, b as ke, au as Ve, av as pe, M as $e, I as ze, ap as Xe, as as qe, aq as je, at as Je, f as ne, ar as Ke } from "./form-j_yRqg3t.js";
|
|
6
6
|
import { useHover as Qe, useFocusRing as et, mergeProps as tt } from "react-aria";
|
|
7
7
|
import { RadioGroup as nt, Button as Ce, TextField as at, DropZone as ot, Input as st, FileTrigger as rt, RadioField as lt, RadioButton as it } from "react-aria-components";
|
|
8
8
|
import _e from "signature_pad";
|
|
9
9
|
import { f as C, a as N } from "./find-child-C60k4CxG.js";
|
|
10
|
-
import { D as ct, E as ut } from "./field-error-headless-
|
|
11
|
-
import { L as dt } from "./field-label-headless-
|
|
10
|
+
import { D as ct, E as ut } from "./field-error-headless-Coipxm8r.js";
|
|
11
|
+
import { L as dt } from "./field-label-headless-Td5R2D2v.js";
|
|
12
12
|
import { D as mt } from "./data-hooks-Dkw1pbRj.js";
|
|
13
13
|
import { E as pt } from "./error-icon-hZxQ6DEy.js";
|
|
14
|
-
import { s as ae } from "./field-rac.module-
|
|
15
|
-
import { u as X } from "./use-element-state-class-name-
|
|
16
|
-
const ft = typeof r.useId == "function" ? r.useId : () =>
|
|
14
|
+
import { s as ae } from "./field-rac.module-DcyJyi2B.js";
|
|
15
|
+
import { u as X } from "./use-element-state-class-name-CcW9uY2w.js";
|
|
16
|
+
const ft = typeof r.useId == "function" ? r.useId : () => $(xe()).current, Et = ({ properties: e }) => e.uploadEnabled === !0, gt = (e, t) => e.fieldType === Be.SIGNATURE && !e.properties.hidden && !e.properties.disabled && !e.properties.readOnly && (t !== "upload" || Et(e)), ht = (e, t) => e.layout.row - t.layout.row || e.layout.column - t.layout.column, bt = (e) => {
|
|
17
17
|
var o;
|
|
18
18
|
const t = (o = Le().signature) == null ? void 0 : o.signatureMode, a = Se(Ue);
|
|
19
19
|
return he(() => {
|
|
@@ -112,11 +112,11 @@ function Ee(e, t) {
|
|
|
112
112
|
const a = e.getContext("2d"), n = e.offsetWidth, o = e.offsetHeight, s = Math.max(window.devicePixelRatio || 1, 1), l = n * s, i = o * s;
|
|
113
113
|
return (e.width !== l || e.height !== i) && a ? (e.width = l, e.height = i, a.scale(s, s), t == null || t.redraw(), !0) : !1;
|
|
114
114
|
}
|
|
115
|
-
const
|
|
115
|
+
const V = 480, yt = (e) => Ae({
|
|
116
116
|
data: JSON.stringify(e),
|
|
117
117
|
mimeType: R.POINTS
|
|
118
118
|
}), ye = (e) => {
|
|
119
|
-
const t =
|
|
119
|
+
const t = Y(e);
|
|
120
120
|
if ((t == null ? void 0 : t.mimeType) === R.POINTS)
|
|
121
121
|
try {
|
|
122
122
|
return JSON.parse(t.data);
|
|
@@ -151,7 +151,7 @@ const Re = /^data:([^;,]+)(?:;([^,]+))?,(.+)$/;
|
|
|
151
151
|
function Rt(e) {
|
|
152
152
|
return Re.test(e);
|
|
153
153
|
}
|
|
154
|
-
function
|
|
154
|
+
function Y(e) {
|
|
155
155
|
if (!e)
|
|
156
156
|
return;
|
|
157
157
|
const t = e.match(Re);
|
|
@@ -169,7 +169,7 @@ function Ae({ data: e, mimeType: t, encoding: a = "text" }) {
|
|
|
169
169
|
return `data:${a === "base64" ? `${t};base64` : t},${n}`;
|
|
170
170
|
}
|
|
171
171
|
function At(e, t) {
|
|
172
|
-
const a =
|
|
172
|
+
const a = Y(e);
|
|
173
173
|
if (!a)
|
|
174
174
|
return;
|
|
175
175
|
let n = a.data.length;
|
|
@@ -184,7 +184,7 @@ function At(e, t) {
|
|
|
184
184
|
});
|
|
185
185
|
}
|
|
186
186
|
function ie(e, t = "temp") {
|
|
187
|
-
const a =
|
|
187
|
+
const a = Y(e);
|
|
188
188
|
return {
|
|
189
189
|
fileId: "temp",
|
|
190
190
|
displayName: t,
|
|
@@ -193,12 +193,12 @@ function ie(e, t = "temp") {
|
|
|
193
193
|
};
|
|
194
194
|
}
|
|
195
195
|
async function St(e, t) {
|
|
196
|
-
const a =
|
|
196
|
+
const a = Y(e);
|
|
197
197
|
if (!a)
|
|
198
198
|
return e;
|
|
199
199
|
const n = a.mimeType;
|
|
200
200
|
if (n === R.TEXT) {
|
|
201
|
-
const o = j(
|
|
201
|
+
const o = j(V * 20, V, 1);
|
|
202
202
|
Dt(o, a.data, "black", t, "white");
|
|
203
203
|
const s = re(o, "white");
|
|
204
204
|
return (s == null ? void 0 : s.toDataURL("image/jpeg", 0.7)) ?? null;
|
|
@@ -210,14 +210,14 @@ async function St(e, t) {
|
|
|
210
210
|
const s = o.map((d) => ({
|
|
211
211
|
...d,
|
|
212
212
|
penColor: "black"
|
|
213
|
-
})), l = j(
|
|
213
|
+
})), l = j(V * 20, V, Math.max(window.devicePixelRatio || 1, 1));
|
|
214
214
|
new _e(l).fromData(s);
|
|
215
215
|
const c = re(l);
|
|
216
|
-
return c ? fe(c, void 0,
|
|
216
|
+
return c ? fe(c, void 0, V, "white").toDataURL("image/jpeg", 0.7) : null;
|
|
217
217
|
}
|
|
218
218
|
if (n != null && n.startsWith("image/")) {
|
|
219
219
|
const o = await _t(e), s = re(o);
|
|
220
|
-
return s ? fe(s, void 0,
|
|
220
|
+
return s ? fe(s, void 0, V).toDataURL("image/jpeg", 0.7) : null;
|
|
221
221
|
}
|
|
222
222
|
return e;
|
|
223
223
|
}
|
|
@@ -227,7 +227,7 @@ async function Nt(e, t) {
|
|
|
227
227
|
return At(a, "signature");
|
|
228
228
|
}
|
|
229
229
|
const Ft = ({ value: e, onChange: t, target: a }) => {
|
|
230
|
-
const [n, o] = q(e), { isRTL: s } = Pe(), l = Lt(a), { setFormStatus: i } = Te(), c =
|
|
230
|
+
const [n, o] = q(e), { isRTL: s } = Pe(), l = Lt(a), { setFormStatus: i } = Te(), c = $();
|
|
231
231
|
le(() => {
|
|
232
232
|
e === me && o(me);
|
|
233
233
|
}, [
|
|
@@ -235,7 +235,7 @@ const Ft = ({ value: e, onChange: t, target: a }) => {
|
|
|
235
235
|
]);
|
|
236
236
|
const u = y(() => {
|
|
237
237
|
c.current && (clearTimeout(c.current), c.current = null);
|
|
238
|
-
}, []), d = n == null ? void 0 : n[0], f = d != null && d.url ?
|
|
238
|
+
}, []), d = n == null ? void 0 : n[0], f = d != null && d.url ? Y(d.url) : void 0, m = y(async (h) => {
|
|
239
239
|
try {
|
|
240
240
|
const p = (h == null ? void 0 : h.url) ?? "";
|
|
241
241
|
if (Rt(p)) {
|
|
@@ -339,7 +339,7 @@ function Ut(e, t, a) {
|
|
|
339
339
|
return t && xt[e](a) ? t : void 0;
|
|
340
340
|
}
|
|
341
341
|
const Bt = (e) => {
|
|
342
|
-
const t = e.url ?
|
|
342
|
+
const t = e.url ? Y(e.url) : void 0;
|
|
343
343
|
return t ? t.mimeType !== R.POINTS && t.mimeType !== R.TEXT : !0;
|
|
344
344
|
}, ce = () => {
|
|
345
345
|
const { hoverProps: e, isHovered: t } = Qe({}), { focusProps: a, isFocused: n, isFocusVisible: o } = et({
|
|
@@ -437,7 +437,7 @@ const Bt = (e) => {
|
|
|
437
437
|
}), Wt = (e) => /* @__PURE__ */ r.createElement(ue, {
|
|
438
438
|
...e,
|
|
439
439
|
mode: I.UPLOAD
|
|
440
|
-
}),
|
|
440
|
+
}), Yt = ({ children: e, className: t, "aria-label": a, ...n }) => {
|
|
441
441
|
const { handleClear: o } = n, { disabled: s, target: l } = x(), { inputId: i } = W();
|
|
442
442
|
return /* @__PURE__ */ r.createElement(Ce, {
|
|
443
443
|
onPress: o,
|
|
@@ -480,8 +480,8 @@ const Bt = (e) => {
|
|
|
480
480
|
onBlur: u,
|
|
481
481
|
onFocus: d
|
|
482
482
|
}));
|
|
483
|
-
},
|
|
484
|
-
const { value: o, onChange: s, onBeforeChange: l, disabled: i, readOnly: c, onBlur: u, onFocus: d } = n, { id: f } = x(), { inputId: m, ariaDescribedBy: L } = W(), h = ce(), p =
|
|
483
|
+
}, Zt = ({ className: e, emptyLabel: t, signedLabel: a, ...n }) => {
|
|
484
|
+
const { value: o, onChange: s, onBeforeChange: l, disabled: i, readOnly: c, onBlur: u, onFocus: d } = n, { id: f } = x(), { inputId: m, ariaDescribedBy: L } = W(), h = ce(), p = $(), g = $(), E = $(null), S = o == null ? void 0 : o.url, [Z, P] = q(!1);
|
|
485
485
|
Ie(() => {
|
|
486
486
|
var _;
|
|
487
487
|
(_ = g.current) == null || _.focus({
|
|
@@ -500,14 +500,14 @@ const Bt = (e) => {
|
|
|
500
500
|
return "";
|
|
501
501
|
const _ = (U = p.current) == null ? void 0 : U.toData();
|
|
502
502
|
return _ ? yt(_) : ((B = p.current) == null ? void 0 : B.toDataURL()) ?? "";
|
|
503
|
-
}, []),
|
|
503
|
+
}, []), z = y(() => {
|
|
504
504
|
var w;
|
|
505
505
|
const _ = (w = p.current) == null ? void 0 : w.isEmpty();
|
|
506
506
|
P(!_), s(ie(ee()));
|
|
507
507
|
}, [
|
|
508
508
|
ee,
|
|
509
509
|
s
|
|
510
|
-
]),
|
|
510
|
+
]), G = y(() => {
|
|
511
511
|
l == null || l();
|
|
512
512
|
}, [
|
|
513
513
|
l
|
|
@@ -518,20 +518,20 @@ const Bt = (e) => {
|
|
|
518
518
|
...v,
|
|
519
519
|
penColor: getComputedStyle(_).color || void 0
|
|
520
520
|
}), Ee(g.current, p.current), S) {
|
|
521
|
-
const
|
|
522
|
-
|
|
521
|
+
const k = ye(S);
|
|
522
|
+
k && (p.current.fromData(k), P(!0));
|
|
523
523
|
} else
|
|
524
524
|
p.current.clear(), P(!1);
|
|
525
|
-
p.current.addEventListener("beginStroke",
|
|
525
|
+
p.current.addEventListener("beginStroke", G), p.current.addEventListener("endStroke", z), typeof ResizeObserver < "u" && !E.current && (E.current = new ResizeObserver(() => {
|
|
526
526
|
g.current && Ee(g.current, p == null ? void 0 : p.current);
|
|
527
527
|
})), (U = E.current) == null || U.observe(_);
|
|
528
528
|
} else
|
|
529
|
-
(B = E.current) == null || B.disconnect(), (D = p.current) == null || D.removeEventListener("endStroke",
|
|
529
|
+
(B = E.current) == null || B.disconnect(), (D = p.current) == null || D.removeEventListener("endStroke", z), (O = p.current) == null || O.removeEventListener("beginStroke", G);
|
|
530
530
|
}, [
|
|
531
531
|
v,
|
|
532
532
|
S,
|
|
533
|
-
|
|
534
|
-
|
|
533
|
+
G,
|
|
534
|
+
z
|
|
535
535
|
]);
|
|
536
536
|
return le(() => {
|
|
537
537
|
p.current && (c || i ? p.current.off() : p.current.on());
|
|
@@ -550,11 +550,11 @@ const Bt = (e) => {
|
|
|
550
550
|
onFocus: d,
|
|
551
551
|
onBlur: u,
|
|
552
552
|
role: "img",
|
|
553
|
-
"aria-label":
|
|
553
|
+
"aria-label": Z ? a : t,
|
|
554
554
|
"aria-describedby": L
|
|
555
555
|
}));
|
|
556
556
|
}, de = ({ children: e, className: t, ...a }) => {
|
|
557
|
-
const { value: n, onChange: o, onBeforeChange: s, disabled: l, readOnly: i, onBlur: c, onFocus: u } = a, { id: d, required: f, hasError: m } = x(), { inputId: L, ariaDescribedBy: h, labelId: p } = W(), g = ce(), E = n != null && n.url ?
|
|
557
|
+
const { value: n, onChange: o, onBeforeChange: s, disabled: l, readOnly: i, onBlur: c, onFocus: u } = a, { id: d, required: f, hasError: m } = x(), { inputId: L, ariaDescribedBy: h, labelId: p } = W(), g = ce(), E = n != null && n.url ? Y(n.url) : void 0, { data: S = "" } = E ?? {
|
|
558
558
|
data: ""
|
|
559
559
|
};
|
|
560
560
|
Ie(() => {
|
|
@@ -571,7 +571,7 @@ const Bt = (e) => {
|
|
|
571
571
|
n,
|
|
572
572
|
L
|
|
573
573
|
]);
|
|
574
|
-
const
|
|
574
|
+
const Z = y((v) => {
|
|
575
575
|
s == null || s(), v.trim() ? o(ie(Ae({
|
|
576
576
|
data: v,
|
|
577
577
|
mimeType: R.TEXT
|
|
@@ -583,7 +583,7 @@ const Bt = (e) => {
|
|
|
583
583
|
return /* @__PURE__ */ r.createElement(at, {
|
|
584
584
|
"aria-labelledby": p,
|
|
585
585
|
value: S,
|
|
586
|
-
onChange:
|
|
586
|
+
onChange: Z,
|
|
587
587
|
onBlur: c,
|
|
588
588
|
onFocus: u,
|
|
589
589
|
isDisabled: l,
|
|
@@ -598,7 +598,7 @@ const Bt = (e) => {
|
|
|
598
598
|
inputId: L,
|
|
599
599
|
ariaDescribedBy: h
|
|
600
600
|
})));
|
|
601
|
-
},
|
|
601
|
+
}, Gt = ({ className: e, placeholder: t, ...a }) => {
|
|
602
602
|
const { inputId: n, ariaDescribedBy: o } = a;
|
|
603
603
|
return /* @__PURE__ */ r.createElement(st, {
|
|
604
604
|
id: n,
|
|
@@ -648,7 +648,7 @@ const Bt = (e) => {
|
|
|
648
648
|
onBlur: i,
|
|
649
649
|
onFocus: c
|
|
650
650
|
}));
|
|
651
|
-
},
|
|
651
|
+
}, kt = ({ className: e, imageAlt: t, ...a }) => {
|
|
652
652
|
const { value: n } = a, { inputId: o } = W(), s = ce();
|
|
653
653
|
return /* @__PURE__ */ r.createElement("div", {
|
|
654
654
|
className: e,
|
|
@@ -689,7 +689,7 @@ const Bt = (e) => {
|
|
|
689
689
|
onHoverEnd: n,
|
|
690
690
|
onFocusChange: o
|
|
691
691
|
}, g));
|
|
692
|
-
},
|
|
692
|
+
}, Vt = ({ children: e, className: t, ...a }) => {
|
|
693
693
|
const { textId: n } = a;
|
|
694
694
|
return /* @__PURE__ */ r.createElement("span", {
|
|
695
695
|
id: n,
|
|
@@ -703,18 +703,18 @@ b.Error = ut;
|
|
|
703
703
|
J.Header = K;
|
|
704
704
|
J.Value = H;
|
|
705
705
|
K.Tabs = M;
|
|
706
|
-
K.Clear =
|
|
706
|
+
K.Clear = Yt;
|
|
707
707
|
M.Draw = Mt;
|
|
708
708
|
M.Type = Ht;
|
|
709
709
|
M.Upload = Wt;
|
|
710
|
-
H.Canvas =
|
|
710
|
+
H.Canvas = Zt;
|
|
711
711
|
H.Type = de;
|
|
712
712
|
H.Upload = Q;
|
|
713
|
-
de.Value =
|
|
714
|
-
Q.Preview =
|
|
713
|
+
de.Value = Gt;
|
|
714
|
+
Q.Preview = kt;
|
|
715
715
|
Q.Button = se;
|
|
716
|
-
se.Text =
|
|
717
|
-
const
|
|
716
|
+
se.Text = Vt;
|
|
717
|
+
const $t = () => {
|
|
718
718
|
const { t: e } = Me();
|
|
719
719
|
return {
|
|
720
720
|
drawLabel: e("field.signature.mode.draw.label"),
|
|
@@ -730,7 +730,7 @@ const Vt = () => {
|
|
|
730
730
|
imageAlt: e("field.signature.a11y.state.signed"),
|
|
731
731
|
uploadLabel: e("field.signature.settings.upload-button.label")
|
|
732
732
|
};
|
|
733
|
-
},
|
|
733
|
+
}, zt = (e) => /* @__PURE__ */ r.createElement("svg", {
|
|
734
734
|
viewBox: "0 0 24 24",
|
|
735
735
|
width: 24,
|
|
736
736
|
height: 24,
|
|
@@ -770,7 +770,7 @@ const Vt = () => {
|
|
|
770
770
|
}, /* @__PURE__ */ r.createElement("path", {
|
|
771
771
|
fillRule: "evenodd",
|
|
772
772
|
d: "M12,4 L12,5 L8,5 L8,16 L7,16 L7,5 L3,5 L3,4 L12,4 Z M18,8 L18,9 L15,9 L15,16 L14,16 L14,9 L11,9 L11,8 L18,8 Z"
|
|
773
|
-
})), Jt = "
|
|
773
|
+
})), Jt = "_container_13c54_1", Kt = "_header_13c54_7", Qt = "_tabs_13c54_13", en = "_tab_13c54_13", tn = "_tabHover_13c54_43", nn = "_tabSelected_13c54_48", an = "_tabIcon_13c54_78", on = "_uploadButton_13c54_85", sn = "_uploadButtonHover_13c54_138", rn = "_uploadButtonLabel_13c54_155", ln = "_clear_13c54_159", cn = "_value_13c54_191", un = "_box_13c54_196", dn = "_uploadBox_13c54_197", mn = "_dropZone_13c54_228", pn = "_dropZoneHover_13c54_243", fn = "_boxHover_13c54_280", En = "_typeInput_13c54_335", T = {
|
|
774
774
|
container: Jt,
|
|
775
775
|
header: Kt,
|
|
776
776
|
tabs: Qt,
|
|
@@ -793,18 +793,18 @@ const Vt = () => {
|
|
|
793
793
|
content: e,
|
|
794
794
|
locale: t
|
|
795
795
|
}), hn = () => {
|
|
796
|
-
var
|
|
797
|
-
const e =
|
|
796
|
+
var G, te, _, w, U, B;
|
|
797
|
+
const e = $t(), { disabled: t, readOnly: a } = x(), n = !t && !a, o = X({
|
|
798
798
|
globalClasses: Ke,
|
|
799
799
|
moduleClasses: {
|
|
800
800
|
base: T.tab,
|
|
801
801
|
hover: T.tabHover,
|
|
802
802
|
selected: T.tabSelected
|
|
803
803
|
}
|
|
804
|
-
}), s = ({ isSelected: D, isHovered: O, isFocused:
|
|
804
|
+
}), s = ({ isSelected: D, isHovered: O, isFocused: k }) => o({
|
|
805
805
|
isSelected: D,
|
|
806
806
|
isHovered: O,
|
|
807
|
-
isFocused:
|
|
807
|
+
isFocused: k,
|
|
808
808
|
isInteractive: n
|
|
809
809
|
}), i = X({
|
|
810
810
|
globalClasses: Xe,
|
|
@@ -838,19 +838,19 @@ const Vt = () => {
|
|
|
838
838
|
base: T.uploadButton,
|
|
839
839
|
hover: T.uploadButtonHover
|
|
840
840
|
}
|
|
841
|
-
}), m = (B = (U = (w = (_ = (te = (
|
|
841
|
+
}), m = (B = (U = (w = (_ = (te = (G = Le().signature) == null ? void 0 : G.elementProps) == null ? void 0 : te.dropZone) == null ? void 0 : _.elementProps) == null ? void 0 : w.uploadButton) == null ? void 0 : U.elementProps) == null ? void 0 : B.icon, { wix: L, className: h, ...p } = m ?? {}, g = He(ne.SIGNATURE, ne.SIGNATURE_DROP_ZONE, ne.SIGNATURE_UPLOAD_BUTTON, ne.UPLOAD_BUTTON_LABEL), E = $(null), [S, Z] = q(!1), [P, v] = q(!1), ee = y(() => {
|
|
842
842
|
var D;
|
|
843
|
-
|
|
844
|
-
}, []),
|
|
843
|
+
Z(!0), (D = E.current) == null || D.runAnimationForward();
|
|
844
|
+
}, []), z = y(() => {
|
|
845
845
|
var D;
|
|
846
|
-
|
|
846
|
+
Z(!1), (D = E.current) == null || D.runAnimationBackward();
|
|
847
847
|
}, []);
|
|
848
848
|
return /* @__PURE__ */ r.createElement(b, null, /* @__PURE__ */ r.createElement(b.Label, {
|
|
849
849
|
className: F(We, ae.label)
|
|
850
850
|
}, /* @__PURE__ */ r.createElement(b.Label.Required, {
|
|
851
|
-
className: F(
|
|
851
|
+
className: F(Ye, ae.requiredMark)
|
|
852
852
|
})), /* @__PURE__ */ r.createElement(b.Input, {
|
|
853
|
-
className: F(
|
|
853
|
+
className: F(Ze, T.container)
|
|
854
854
|
}, /* @__PURE__ */ r.createElement(b.Input.Header, {
|
|
855
855
|
className: T.header
|
|
856
856
|
}, /* @__PURE__ */ r.createElement(b.Input.Header.Tabs, {
|
|
@@ -874,9 +874,9 @@ const Vt = () => {
|
|
|
874
874
|
}, /* @__PURE__ */ r.createElement(Xt, {
|
|
875
875
|
className: T.tabIcon
|
|
876
876
|
}))), /* @__PURE__ */ r.createElement(b.Input.Header.Clear, {
|
|
877
|
-
className: F(
|
|
877
|
+
className: F(Ge, T.clear),
|
|
878
878
|
"aria-label": e.clearLabel
|
|
879
|
-
}, /* @__PURE__ */ r.createElement(
|
|
879
|
+
}, /* @__PURE__ */ r.createElement(zt, null))), /* @__PURE__ */ r.createElement(b.Input.Value, {
|
|
880
880
|
className: T.value
|
|
881
881
|
}, /* @__PURE__ */ r.createElement(b.Input.Value.Canvas, {
|
|
882
882
|
className: i,
|
|
@@ -888,9 +888,9 @@ const Vt = () => {
|
|
|
888
888
|
className: T.typeInput,
|
|
889
889
|
placeholder: e.placeholder
|
|
890
890
|
})), /* @__PURE__ */ r.createElement(b.Input.Value.Upload, {
|
|
891
|
-
className: ({ isHovered: D, isFocused: O, isDropTarget:
|
|
891
|
+
className: ({ isHovered: D, isFocused: O, isDropTarget: k }) => F(T.uploadBox, d({
|
|
892
892
|
isSelected: !1,
|
|
893
|
-
isHovered: D ||
|
|
893
|
+
isHovered: D || k,
|
|
894
894
|
isFocused: O,
|
|
895
895
|
isInteractive: n
|
|
896
896
|
}))
|
|
@@ -905,20 +905,20 @@ const Vt = () => {
|
|
|
905
905
|
isInteractive: n
|
|
906
906
|
}),
|
|
907
907
|
onHoverStart: ee,
|
|
908
|
-
onHoverEnd:
|
|
908
|
+
onHoverEnd: z,
|
|
909
909
|
onFocusChange: v
|
|
910
910
|
}, p.svg ? /* @__PURE__ */ r.createElement(Fe, {
|
|
911
911
|
...p,
|
|
912
912
|
ref: E,
|
|
913
|
-
className: F(
|
|
913
|
+
className: F(ke, Ve, h)
|
|
914
914
|
}) : null, /* @__PURE__ */ r.createElement(b.Input.Value.Upload.Button.Text, {
|
|
915
915
|
className: F(pe.base, T.uploadButtonLabel, g, {
|
|
916
916
|
[pe.hover]: n && (S || P)
|
|
917
917
|
})
|
|
918
918
|
}, e.uploadLabel))))), /* @__PURE__ */ r.createElement(b.Error, {
|
|
919
|
-
className: F(
|
|
919
|
+
className: F($e, ae.error)
|
|
920
920
|
}, /* @__PURE__ */ r.createElement(pt, null), /* @__PURE__ */ r.createElement(b.Error.Text, null)), /* @__PURE__ */ r.createElement(b.Description, {
|
|
921
|
-
className: F(
|
|
921
|
+
className: F(ze, ae.description)
|
|
922
922
|
}, gn));
|
|
923
923
|
}, xn = () => /* @__PURE__ */ r.createElement(hn, null);
|
|
924
924
|
export {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import t, { useRef as X, useCallback as y } from "react";
|
|
2
2
|
import J from "@wix/editor-react-components/AnimatedIcon";
|
|
3
3
|
import p from "classnames";
|
|
4
|
-
import { bL as b, bF as K, aF as $, aE as j, aC as q, aB as z, aK as G, aJ as Q, aD as Y, b as Z, aA as tt, aI as et } from "./form-
|
|
4
|
+
import { bL as b, bF as K, aF as $, aE as j, aC as q, aB as z, aK as G, aJ as Q, aD as Y, b as Z, aA as tt, aI as et } from "./form-j_yRqg3t.js";
|
|
5
5
|
import { ProgressBar as nt, Button as w } from "react-aria-components";
|
|
6
6
|
import { f as c } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { u as x } from "./use-element-state-class-name-
|
|
7
|
+
import { u as x } from "./use-element-state-class-name-CcW9uY2w.js";
|
|
8
8
|
function ot(e) {
|
|
9
9
|
const s = "calc(50% - 2px)";
|
|
10
10
|
return /* @__PURE__ */ t.createElement(nt, {
|
|
@@ -2,15 +2,15 @@ import { RicosViewer as j } from "@wix/ricos/viewer";
|
|
|
2
2
|
import F from "classnames";
|
|
3
3
|
import t, { useMemo as I, useState as w, useRef as A, useLayoutEffect as z, useCallback as N } from "react";
|
|
4
4
|
import { CheckboxGroup as B, TextField as J, Input as K, CheckboxField as Y, CheckboxButton as Z } from "react-aria-components";
|
|
5
|
-
import { bL as D, bI as M, bV as S, bN as U, X as ee, am as te, ax as oe, M as ne, I as ae, ay as re } from "./form-
|
|
5
|
+
import { bL as D, bI as M, bV as S, bN as U, X as ee, am as te, ax as oe, M as ne, I as ae, ay as re } from "./form-j_yRqg3t.js";
|
|
6
6
|
import { f as O, a as k } 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-Coipxm8r.js";
|
|
8
|
+
import { L as $ } from "./field-label-headless-Td5R2D2v.js";
|
|
9
9
|
import { F as se } from "./fieldset-headless-CD3fds9J.js";
|
|
10
10
|
import { E as le } from "./error-icon-hZxQ6DEy.js";
|
|
11
|
-
import { s as y } from "./field-rac.module-
|
|
12
|
-
import { u as ie } from "./use-element-state-class-name-
|
|
13
|
-
import { u as ce } from "./use-text-input-class-name-
|
|
11
|
+
import { s as y } from "./field-rac.module-DcyJyi2B.js";
|
|
12
|
+
import { u as ie } from "./use-element-state-class-name-CcW9uY2w.js";
|
|
13
|
+
import { u as ce } from "./use-text-input-class-name-BIu78phH.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 S, useRef as T } from "react";
|
|
4
4
|
import { TextField as O, TextArea as y } from "react-aria-components";
|
|
5
|
-
import { bL as p, bI as d, bN as x, X as g, am as h, M as v, I as M } from "./form-
|
|
5
|
+
import { bL as p, bI as d, bN as x, X as g, am as h, M as v, I as M } from "./form-j_yRqg3t.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-Coipxm8r.js";
|
|
8
|
+
import { L as k } from "./field-label-headless-Td5R2D2v.js";
|
|
9
9
|
import { E as P } from "./error-icon-hZxQ6DEy.js";
|
|
10
|
-
import { s as c } from "./field-rac.module-
|
|
11
|
-
import { u as V } from "./use-text-input-class-name-
|
|
10
|
+
import { s as c } from "./field-rac.module-DcyJyi2B.js";
|
|
11
|
+
import { u as V } from "./use-text-input-class-name-BIu78phH.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: I, FieldLayout: b, hasError: f } = p(), { labelId: L } = d(), F = S((A) => {
|
|
14
14
|
s(A);
|
package/dist/component/{text-input-field-rac-BQbo-3Ly.js → text-input-field-rac-CZn2Flyb.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-DTDZC4x7.js";
|
|
5
5
|
import { E as o } from "./error-icon-hZxQ6DEy.js";
|
|
6
|
-
import { s as a } from "./field-rac.module-
|
|
7
|
-
import { X as n, am as c, M as E, I as i } from "./form-
|
|
8
|
-
import { u as p } from "./use-text-input-class-name-
|
|
6
|
+
import { s as a } from "./field-rac.module-DcyJyi2B.js";
|
|
7
|
+
import { X as n, am as c, M as E, I as i } from "./form-j_yRqg3t.js";
|
|
8
|
+
import { u as p } from "./use-text-input-class-name-BIu78phH.js";
|
|
9
9
|
const I = ({ 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 v } from "react";
|
|
2
2
|
import { TextField as C, Input as R } from "react-aria-components";
|
|
3
|
-
import { bL as c, bI as d, bN as T } from "./form-
|
|
3
|
+
import { bL as c, bI as d, bN as T } from "./form-j_yRqg3t.js";
|
|
4
4
|
import { f as s } from "./find-child-C60k4CxG.js";
|
|
5
|
-
import { D as g, E as h } from "./field-error-headless-
|
|
6
|
-
import { L as x } from "./field-label-headless-
|
|
5
|
+
import { D as g, E as h } from "./field-error-headless-Coipxm8r.js";
|
|
6
|
+
import { L as x } from "./field-label-headless-Td5R2D2v.js";
|
|
7
7
|
const e = ({ children: r }) => {
|
|
8
8
|
const { id: a, value: l, onChange: i, disabled: u, readOnly: n, required: o, hasError: p, onBlur: m, onFocus: b, autoComplete: f, FieldLayout: E } = c(), { labelId: I } = d(), F = s(r, e.Label), y = s(r, e.Input), D = s(r, e.Description), L = s(r, e.Error);
|
|
9
9
|
return /* @__PURE__ */ t.createElement(E, {
|
|
@@ -3,14 +3,14 @@ import { RicosViewer as q } from "@wix/ricos/viewer";
|
|
|
3
3
|
import m from "classnames";
|
|
4
4
|
import { parseTime as B } from "@internationalized/date";
|
|
5
5
|
import { TimeField as k, DateInput as U, DateSegment as _, TimeFieldStateContext as w } from "react-aria-components";
|
|
6
|
-
import { bL as p, bI as j, bV as T, bN as Q, X, am as z, M as G, I as J } from "./form-
|
|
6
|
+
import { bL as p, bI as j, bV as T, bN as Q, X, am as z, M as G, I as J } from "./form-j_yRqg3t.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 Y } from "./field-label-headless-
|
|
8
|
+
import { D as K, E as W } from "./field-error-headless-Coipxm8r.js";
|
|
9
|
+
import { L as Y } from "./field-label-headless-Td5R2D2v.js";
|
|
10
10
|
import { E as Z } from "./error-icon-hZxQ6DEy.js";
|
|
11
11
|
import { H as S } from "./custom-focus-class-_483Pkwp.js";
|
|
12
|
-
import { s as f } from "./field-rac.module-
|
|
13
|
-
import { u as $ } from "./use-text-input-class-name-
|
|
12
|
+
import { s as f } from "./field-rac.module-DcyJyi2B.js";
|
|
13
|
+
import { u as $ } from "./use-text-input-class-name-BIu78phH.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: I, FieldLayout: b, hasError: C } = p(), { inputId: g, ariaDescribedBy: L, labelId: D } = j(), R = V((M) => {
|
|
16
16
|
const H = 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 { bL as d, bI as E, bN as v, X as B, am as M, M as T, I as g } from "./form-
|
|
5
|
+
import { bL as d, bI as E, bN as v, X as B, am as M, M as T, I as g } from "./form-j_yRqg3t.js";
|
|
6
6
|
import { f as c } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as k, E as P } from "./field-error-headless-
|
|
8
|
-
import { L as q } from "./field-label-headless-
|
|
7
|
+
import { D as k, E as P } from "./field-error-headless-Coipxm8r.js";
|
|
8
|
+
import { L as q } from "./field-label-headless-Td5R2D2v.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
|
-
import { s as u } from "./field-rac.module-
|
|
12
|
-
import { u as w } from "./use-text-input-class-name-
|
|
11
|
+
import { s as u } from "./field-rac.module-DcyJyi2B.js";
|
|
12
|
+
import { u as w } from "./use-text-input-class-name-BIu78phH.js";
|
|
13
13
|
const V = (t) => t ? `https://${String(t).replace(/^https?:\/\//, "")}` : "", e = ({ children: t }) => {
|
|
14
14
|
const { id: o, value: l, onChange: n, disabled: m, readOnly: s, required: a, hasError: I, onBlur: b, onFocus: f, FieldLayout: L } = d(), { labelId: R } = E(), p = x(b), F = c(t, e.Label), D = c(t, e.Input), C = c(t, e.Description), _ = c(t, e.Error), N = h(() => {
|
|
15
15
|
n(V(l)), p();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import d, { useContext as _, useRef as L, useState as m, Children as N, useLayoutEffect as p, useMemo as D } from "react";
|
|
2
2
|
import { CollectionRendererContext as g, DefaultCollectionRenderer as E, ListBox as M } from "react-aria-components";
|
|
3
3
|
import P from "classnames";
|
|
4
|
-
import { s as h } from "./field-rac.module-
|
|
5
|
-
import { K as T } from "./form-
|
|
6
|
-
import { u as H } from "./use-element-state-class-name-
|
|
4
|
+
import { s as h } from "./field-rac.module-DcyJyi2B.js";
|
|
5
|
+
import { K as T } from "./form-j_yRqg3t.js";
|
|
6
|
+
import { u as H } from "./use-element-state-class-name-CcW9uY2w.js";
|
|
7
7
|
const R = 1 / 0, I = {
|
|
8
8
|
position: "absolute",
|
|
9
9
|
width: 0,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import e, { useState as F, useCallback as L, useRef as M } from "react";
|
|
2
2
|
import { UNSAFE_PortalProvider as $ } from "react-aria";
|
|
3
3
|
import { VisuallyHidden as k, Select as G, SelectValue as U, ListBoxItem as W } from "react-aria-components";
|
|
4
|
-
import { bL as b, bI as v, bV as Y, bN as j, L as z } from "./form-
|
|
4
|
+
import { bL as b, bI as v, bV as Y, bN as j, L as z } from "./form-j_yRqg3t.js";
|
|
5
5
|
import { f as d, a as D } from "./find-child-C60k4CxG.js";
|
|
6
|
-
import { D as J, E as K } from "./field-error-headless-
|
|
7
|
-
import { L as Q } from "./field-label-headless-
|
|
6
|
+
import { D as J, E as K } from "./field-error-headless-Coipxm8r.js";
|
|
7
|
+
import { L as Q } from "./field-label-headless-Td5R2D2v.js";
|
|
8
8
|
import { E as X, S as Z, N as ee } from "./non-modal-popover-D-u13tmp.js";
|
|
9
|
-
import { b as te } from "./use-is-forced-open-dropdown-
|
|
10
|
-
import { V as ne } from "./use-dropdown-option-class-name-
|
|
11
|
-
import { u as re } from "./use-hoverable-input-class-name-
|
|
9
|
+
import { b as te } from "./use-is-forced-open-dropdown-CUekpH1u.js";
|
|
10
|
+
import { V as ne } from "./use-dropdown-option-class-name-teYH9uf4.js";
|
|
11
|
+
import { u as re } from "./use-hoverable-input-class-name-B9Ps5WPu.js";
|
|
12
12
|
const r = ({ children: t }) => {
|
|
13
13
|
const { id: l, value: a, defaultValue: s, options: u = [], readOnly: o, onChange: n, placeholder: m, disabled: i, required: p, onBlur: I, onFocus: C, FieldLayout: y, hasError: N } = b(), [T, P] = F(!1), E = te(l), [R, h] = F(null), S = a && u.some((c) => (c.value ?? c.label) === a) ? a : s || null, { labelId: f } = v(), { t: V } = Y(), O = `${f}-required`, B = L((c) => {
|
|
14
14
|
o || n(typeof c == "string" ? c : null);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import i from "classnames";
|
|
2
|
-
import { bE as s, bb as v } from "./form-
|
|
2
|
+
import { bE as s, bb as v } from "./form-j_yRqg3t.js";
|
|
3
3
|
const x = ({ globalClasses: e, moduleClasses: r }) => {
|
|
4
4
|
var d;
|
|
5
5
|
const c = ((d = s(...v(e))) == null ? void 0 : d.split(/\s+/)) ?? [], o = [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { bL as n } from "./form-
|
|
2
|
-
import { s as e } from "./field-rac.module-
|
|
3
|
-
import { u } from "./use-element-state-class-name-
|
|
1
|
+
import { bL as n } from "./form-j_yRqg3t.js";
|
|
2
|
+
import { s as e } from "./field-rac.module-DcyJyi2B.js";
|
|
3
|
+
import { u } from "./use-element-state-class-name-CcW9uY2w.js";
|
|
4
4
|
const b = (s, a) => {
|
|
5
5
|
const { disabled: t, readOnly: o } = n(), r = u({
|
|
6
6
|
globalClasses: s,
|
package/dist/component/{use-service-options-base-DUuGIm38.js → use-service-options-base-DXhuk0gs.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useState as o, useCallback as y, useEffect as m, useMemo as D } from "react";
|
|
2
|
-
import { bK as v } from "./form-
|
|
2
|
+
import { bK as v } from "./form-j_yRqg3t.js";
|
|
3
3
|
const k = (I) => {
|
|
4
4
|
const { fieldType: L, isEditor: t = !1, postProcessOptions: i, customFetchLogic: a, onInitialDataLoaded: n } = I, [O, h] = o(!1), [g, p] = o([]), [E, u] = o(!1), [c, f] = o(!1), s = v(L), r = y((e) => {
|
|
5
5
|
let d = e.map((l) => ({
|