@wix/form-elements 1.151.0 → 1.152.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-D5wp75zN.js → appointment-rac-CjDsESxp.js} +4 -4
- package/dist/component/{bookings-address-rac-CWtYXwpn.js → bookings-address-rac-BWDAieZC.js} +1 -1
- package/dist/component/{bookings-email-rac-BUpRXmbz.js → bookings-email-rac-DoMJ0Cq2.js} +1 -1
- package/dist/component/{bookings-first-name-rac-CnHSxXFN.js → bookings-first-name-rac-Bb0TrNKq.js} +1 -1
- package/dist/component/{bookings-header-rac-BcD45Kgs.js → bookings-header-rac-DvXXEmRp.js} +1 -1
- package/dist/component/{bookings-last-name-rac-VaqfK3bu.js → bookings-last-name-rac-q_zzV8ZS.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-Dv2quJRw.js → bookings-login-bar-rac-USocDYyR.js} +1 -1
- package/dist/component/{bookings-phone-rac-DVOu-9yX.js → bookings-phone-rac-D4JHCrYc.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-SfsoQKeI.js → bookings-rich-text-rac-D5ScrRTy.js} +1 -1
- package/dist/component/{checkbox-field-rac-BHGWuGcT.js → checkbox-field-rac-g9tefDjj.js} +4 -4
- package/dist/component/{checkbox-group-field-headless-KVBLbjKE.js → checkbox-group-field-headless-KeJlwm_s.js} +3 -3
- package/dist/component/{checkbox-group-field-rac-C-WNRuVW.js → checkbox-group-field-rac-C10zjFrB.js} +7 -7
- package/dist/component/{checkbox-group-rac-BMeqtM9H.js → checkbox-group-rac-xrqoPwH0.js} +1 -1
- package/dist/component/{checkbox-rac-WDBiwyvs.js → checkbox-rac-DnUqY4X0.js} +1 -1
- package/dist/component/{contacts-address-rac-CUjhR8Nq.js → contacts-address-rac-CrJJt8Lm.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-BurJLd1V.js → contacts-birthdate-rac-Dj0Z5Dq4.js} +1 -1
- package/dist/component/{contacts-company-rac-y94712hj.js → contacts-company-rac-CfAzWpsO.js} +1 -1
- package/dist/component/{contacts-email-rac-BYzv5pJt.js → contacts-email-rac-DEt_W-OY.js} +1 -1
- package/dist/component/{contacts-first-name-rac-AabYYZTr.js → contacts-first-name-rac-5cge4OTl.js} +1 -1
- package/dist/component/{contacts-last-name-rac-B6GTnMea.js → contacts-last-name-rac-WCJRmxoK.js} +1 -1
- package/dist/component/{contacts-phone-rac-BhGEdh5D.js → contacts-phone-rac-9cJ-XZYq.js} +1 -1
- package/dist/component/{contacts-position-rac-BmbLuomW.js → contacts-position-rac-CFoAC1v-.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-B7SELom1.js → contacts-subscribe-rac-CbqxvKnO.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-BewGatKM.js → contacts-tax-id-rac-Cpy8M_0G.js} +1 -1
- package/dist/component/{date-availability-Cpw7i5-L.js → date-availability-DpP0-dxh.js} +1 -1
- package/dist/component/{date-input-field-rac-JbWzxDzZ.js → date-input-field-rac-DNP0Db4K.js} +6 -6
- package/dist/component/{date-input-rac-v4pNWyuY.js → date-input-rac-5H7z1Sjy.js} +1 -1
- package/dist/component/{date-picker-field-rac-0eLcya58.js → date-picker-field-rac-DviFddKc.js} +6 -6
- package/dist/component/{date-picker-rac-BP4BRWn4.js → date-picker-rac-CxXpSPGD.js} +1 -1
- package/dist/component/{date-time-input-field-rac-Cj0RSJF9.js → date-time-input-field-rac-CRapaca2.js} +6 -6
- package/dist/component/{date-time-input-rac-DyD0SpMV.js → date-time-input-rac-DOMqIa4d.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-BE9fK7wx.js → dext-checkbox-group-rac-CQPyapQG.js} +2 -2
- package/dist/component/{dext-checkbox-rac-CpB-AVP1.js → dext-checkbox-rac-CW4wF36k.js} +1 -1
- package/dist/component/{dext-date-picker-rac-DkiWY5CE.js → dext-date-picker-rac-DFcrP0ZR.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-CyGIs4uD.js → dext-date-time-input-rac-Cs1Df2AX.js} +1 -1
- package/dist/component/{dext-dropdown-rac-C0GiCpWI.js → dext-dropdown-rac-D0ujCY8A.js} +1 -1
- package/dist/component/{dext-email-rac-Clngd9Lm.js → dext-email-rac-Bh86O-fJ.js} +1 -1
- package/dist/component/{dext-number-input-rac-Boshfkc5.js → dext-number-input-rac-CkPDXgxl.js} +1 -1
- package/dist/component/{dext-phone-rac-AX8R0fDx.js → dext-phone-rac-CGHDBW0d.js} +1 -1
- package/dist/component/{dext-radio-group-rac-VSwdnWPU.js → dext-radio-group-rac-qhuKzhbR.js} +2 -2
- package/dist/component/{dext-rating-input-rac-aspmLO_w.js → dext-rating-input-rac-05wft4wI.js} +1 -1
- package/dist/component/{dext-tags-rac-D4r4j1KZ.js → dext-tags-rac-Ch28_kSN.js} +2 -2
- package/dist/component/{dext-text-area-rac-D8vG4QTK.js → dext-text-area-rac-BpPh9q1K.js} +1 -1
- package/dist/component/{dext-text-input-rac-D19SJhDG.js → dext-text-input-rac-v7pE3sIs.js} +1 -1
- package/dist/component/{dext-url-input-rac-BUAWZX7n.js → dext-url-input-rac-BUyNTatI.js} +1 -1
- package/dist/component/{donation-rac-C4NdOTts.js → donation-rac-lw-dkvAY.js} +5 -5
- package/dist/component/{dropdown-field-headless-CtppkNv5.js → dropdown-field-headless-ttDyqdqW.js} +5 -5
- package/dist/component/{dropdown-field-rac-B6KCsR-j.js → dropdown-field-rac-D4Fvsn8C.js} +5 -5
- package/dist/component/{dropdown-rac-CkFLrcRV.js → dropdown-rac-BvNeMUaH.js} +1 -1
- package/dist/component/{ecom-address-rac-D6asF2b7.js → ecom-address-rac-CeBuZKF4.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-CFzMl_9G.js → ecom-subscription-checkbox-rac-DvLt1LmK.js} +2 -2
- package/dist/component/{email-input-field-rac-gCsspvxb.js → email-input-field-rac-Dl_USWLL.js} +3 -3
- package/dist/component/{events-repeater-rac-DSrjafwK.js → events-repeater-rac-QJ04thEZ.js} +4 -4
- package/dist/component/{events-rsvp-rac-CMQtNDqE.js → events-rsvp-rac-Ch4lfvZv.js} +3 -3
- package/dist/component/{field-error-headless-Bt2dslWu.js → field-error-headless-CgZAs65K.js} +1 -1
- package/dist/component/{field-label-headless-ZBAhq8nF.js → field-label-headless-CRYxe-vx.js} +1 -1
- package/dist/component/{file-upload-rac-MzPreLKz.js → file-upload-rac-BvjGAd5T.js} +30 -30
- package/dist/component/{fixed-payment-rac-CPWIOJSH.js → fixed-payment-rac-DWNNpt-4.js} +8 -8
- package/dist/component/{form-BrXx-2qp.js → form-DnpFCulG.js} +118 -118
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-5dkUDBLN.js → header-field-rac-WSnI3a0s.js} +2 -2
- package/dist/component/{header-rac-eXnz2eEI.js → header-rac-BLEwF0wr.js} +1 -1
- package/dist/component/{image-choice-rac-BxmirCog.js → image-choice-rac-CH_bPal9.js} +4 -4
- package/dist/component/{index-Be6_W-02.js → index-YBIt9TAJ.js} +2 -2
- package/dist/component/{index-CCz5mdOt.js → index-euOuJTY1.js} +4 -4
- package/dist/component/{isObjectLike-DhFZRIZ5.js → isObjectLike-YcoeiSLm.js} +1 -1
- package/dist/component/{multiline-address-field-rac-C3Rz-qFR.js → multiline-address-field-rac-CpmwYA8Q.js} +7 -7
- package/dist/component/{multiline-address-rac-BFvxiD8l.js → multiline-address-rac-dp2LSRyG.js} +1 -1
- package/dist/component/{number-input-field-rac-CAuoAgAm.js → number-input-field-rac-CfurrJkz.js} +9 -9
- package/dist/component/{number-input-rac-ZCBaL_D4.js → number-input-rac-BFMTZwmv.js} +1 -1
- package/dist/component/{password-rac-oAAB5Yek.js → password-rac-Wqs-85Q8.js} +6 -6
- package/dist/component/{payment-input-rac-BkVImcPM.js → payment-input-rac-DyY_Wj8U.js} +16 -16
- package/dist/component/{phone-input-field-rac-LReDQaEl.js → phone-input-field-rac-C7KFjyig.js} +202 -202
- package/dist/component/{phone-rac-B4Rv_q9_.js → phone-rac-Bhl7AZcj.js} +1 -1
- package/dist/component/{product-list-rac-CVoJPZH6.js → product-list-rac-B4oybHWH.js} +25 -25
- package/dist/component/{quiz-radio-group-rac-CHXOBaWQ.js → quiz-radio-group-rac-oDweLSYP.js} +1 -1
- package/dist/component/{radio-button-module-classes-G3CPOqV_.js → radio-button-module-classes-CUkou54P.js} +3 -3
- package/dist/component/{radio-group-field-rac-Di8f67l0.js → radio-group-field-rac-BmR0H0UO.js} +8 -8
- package/dist/component/{radio-group-rac-BP4EdSWA.js → radio-group-rac-DY2mnw30.js} +1 -1
- package/dist/component/{rating-input-field-rac-D6nHfXat.js → rating-input-field-rac-DRbFC_V7.js} +15 -15
- package/dist/component/{rating-input-rac-BpTVbrOY.js → rating-input-rac-MtNlX53V.js} +1 -1
- package/dist/component/{rich-content-rac.module-DfNKRJQl.js → rich-content-rac.module-B4fFSQ6R.js} +1 -1
- package/dist/component/{rich-text-field-rac-BZx7O1ln.js → rich-text-field-rac-Dew-awSN.js} +2 -2
- package/dist/component/{rich-text-rac-Bie0rehR.js → rich-text-rac-4G6WBtds.js} +1 -1
- package/dist/component/{service-dropdown-rac-DZgYoLs3.js → service-dropdown-rac-DrKwsL6p.js} +11 -11
- package/dist/component/{services-multi-choice-rac-os7W4s1g.js → services-multi-choice-rac-C5pN_Zck.js} +8 -8
- package/dist/component/{signature-rac-BMRvU0qg.js → signature-rac-8wj8b_im.js} +53 -53
- package/dist/component/{submit-button-rac-BkXQF3FL.js → submit-button-rac-C9tR2MGH.js} +2 -2
- package/dist/component/{tags-field-rac-5GL81x5S.js → tags-field-rac-CEKtxEMx.js} +17 -17
- package/dist/component/{tags-rac-BG4eu5vf.js → tags-rac-fGDFocqq.js} +1 -1
- package/dist/component/{text-area-field-rac-CGtt6YXJ.js → text-area-field-rac-dRdFY5LY.js} +12 -12
- package/dist/component/{text-area-rac-D6aJxM-f.js → text-area-rac-uv8JLQ3Z.js} +1 -1
- package/dist/component/{text-input-field-rac-BUuVi4gl.js → text-input-field-rac--VebbXxr.js} +5 -5
- package/dist/component/{text-input-headless-DG-jyTVD.js → text-input-headless-CtdPYLHv.js} +3 -3
- package/dist/component/{text-input-rac-LVE42SOJ.js → text-input-rac-Wa1Ou8a5.js} +1 -1
- package/dist/component/{time-input-rac-jZ9v7Azv.js → time-input-rac-KYSuxO5P.js} +16 -16
- package/dist/component/{url-input-field-rac-DQ9JerAM.js → url-input-field-rac-Bn6cCoo4.js} +7 -7
- package/dist/component/{url-input-rac-4k06IpF-.js → url-input-rac-BPtRMinM.js} +1 -1
- package/dist/component/{use-dropdown-trigger-class-name-CgNFe8Eg.js → use-dropdown-trigger-class-name-0AI0_olG.js} +3 -3
- package/dist/component/{use-element-state-class-name-B4a4SKmP.js → use-element-state-class-name-nqBrsuxl.js} +1 -1
- package/dist/component/{use-hoverable-input-class-name-DZVkGZvs.js → use-hoverable-input-class-name-KQp9yOph.js} +2 -2
- package/dist/component/{use-is-forced-open-dropdown-ClP9MSlU.js → use-is-forced-open-dropdown-xB31vrZi.js} +1 -1
- package/dist/component/{use-service-options-base-Ch2bF4mk.js → use-service-options-base-SETfl9JT.js} +1 -1
- package/dist/component/use-text-input-class-name-BwCLUlxr.js +6 -0
- package/package.json +3 -3
- package/dist/component/use-text-input-class-name-BQshbjqt.js +0 -6
package/dist/component/{email-input-field-rac-gCsspvxb.js → email-input-field-rac-Dl_USWLL.js}
RENAMED
|
@@ -2,7 +2,7 @@ import { RicosViewer as ie } from "@wix/ricos/viewer";
|
|
|
2
2
|
import D from "classnames";
|
|
3
3
|
import u, { createContext as z, useContext as Z, createElement as R, isValidElement as B, cloneElement as w, useState as le, useCallback as me, useEffect as ue } from "react";
|
|
4
4
|
import { TextField as pe } from "react-aria-components";
|
|
5
|
-
import { bl as fe, by as ge, bj as ve, d as ye, bo as Ee, bs as de, bm as be, ao as Se,
|
|
5
|
+
import { bl as fe, by as ge, bj as ve, d as ye, bo as Ee, bs as de, bm as be, ao as Se, R as Oe, a0 as he, H as Ie, v as Ne, a9 as Ae } from "./form-DnpFCulG.js";
|
|
6
6
|
import { f as C } from "./find-child-C60k4CxG.js";
|
|
7
7
|
import ee from "@babel/runtime/helpers/objectWithoutProperties";
|
|
8
8
|
import L from "@babel/runtime/helpers/typeof";
|
|
@@ -10,10 +10,10 @@ import Fe from "@babel/runtime/helpers/defineProperty";
|
|
|
10
10
|
import ke from "html-parse-stringify";
|
|
11
11
|
import Te from "@babel/runtime/helpers/classCallCheck";
|
|
12
12
|
import xe from "@babel/runtime/helpers/createClass";
|
|
13
|
-
import { T as U } from "./text-input-headless-
|
|
13
|
+
import { T as U } from "./text-input-headless-CtdPYLHv.js";
|
|
14
14
|
import { E as je } from "./error-icon-hZxQ6DEy.js";
|
|
15
15
|
import { s as H } from "./field-rac.module-DP0lkkEv.js";
|
|
16
|
-
import { u as De } from "./use-text-input-class-name-
|
|
16
|
+
import { u as De } from "./use-text-input-class-name-BwCLUlxr.js";
|
|
17
17
|
var Ce = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, Le = {
|
|
18
18
|
"&": "&",
|
|
19
19
|
"&": "&",
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import t, { useState as j, useMemo as h, useCallback as V, useRef as x } from "react";
|
|
2
2
|
import M from "classnames";
|
|
3
3
|
import { NumberField as z, CheckboxField as J, CheckboxButton as Q, Group as W, Input as Y, Button as w } from "react-aria-components";
|
|
4
|
-
import { bu as q, bv as H, bk as K, bp as P, aM as Z, bo as y, bl as X, bq as U, as as ee,
|
|
4
|
+
import { bu as q, bv as H, bk as K, bp as P, aM as Z, bo as y, bl as X, bq as U, as as ee, R as te, n as se, s as ne, r as oe } from "./form-DnpFCulG.js";
|
|
5
5
|
import { f as b, a as L } from "./find-child-C60k4CxG.js";
|
|
6
|
-
import { L as re } from "./field-label-headless-
|
|
6
|
+
import { L as re } from "./field-label-headless-CRYxe-vx.js";
|
|
7
7
|
import { S as ae } from "./selection-indicator-XQ8MYHUQ.js";
|
|
8
8
|
import { u as le } from "./use-invoke-callback-UH73A_J3.js";
|
|
9
9
|
import { C as k } from "./chevron-down-icon-CcpVm6B-.js";
|
|
10
10
|
import { C as ce } from "./checkbox-indicator-module-classes-akWZsZNn.js";
|
|
11
11
|
import { s as v } from "./field-rac.module-DP0lkkEv.js";
|
|
12
|
-
import { u as ue } from "./use-element-state-class-name-
|
|
13
|
-
import { u as me } from "./use-text-input-class-name-
|
|
12
|
+
import { u as ue } from "./use-element-state-class-name-nqBrsuxl.js";
|
|
13
|
+
import { u as me } from "./use-text-input-class-name-BwCLUlxr.js";
|
|
14
14
|
const ie = [], de = ({ id: e, fields: s, layout: a, value: o, onChange: n, errors: l = ie, validation: c }) => {
|
|
15
15
|
const [m, i] = j((o == null ? void 0 : o.length) || 0), u = h(() => o ?? [], [
|
|
16
16
|
o
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import t from "react";
|
|
2
2
|
import { RicosViewer as m } from "@wix/ricos/viewer";
|
|
3
3
|
import s from "classnames";
|
|
4
|
-
import { a, s as n, R as c } from "./radio-button-module-classes-
|
|
4
|
+
import { a, s as n, R as c } from "./radio-button-module-classes-CUkou54P.js";
|
|
5
5
|
import { E as i } from "./error-icon-hZxQ6DEy.js";
|
|
6
6
|
import { s as o } from "./field-rac.module-DP0lkkEv.js";
|
|
7
|
-
import {
|
|
7
|
+
import { R as E, a0 as p, X as R, Y as O, H as _, v as L, Z as D } from "./form-DnpFCulG.js";
|
|
8
8
|
import { o as I } from "./options-rac.module-_THNq6Qq.js";
|
|
9
|
-
import { u as S } from "./use-element-state-class-name-
|
|
9
|
+
import { u as S } from "./use-element-state-class-name-nqBrsuxl.js";
|
|
10
10
|
const e = ({ children: r, className: l }) => /* @__PURE__ */ t.createElement(a, {
|
|
11
11
|
className: l
|
|
12
12
|
}, r);
|
package/dist/component/{field-error-headless-Bt2dslWu.js → field-error-headless-CgZAs65K.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import t, { createContext as m, useContext as M } from "react";
|
|
2
|
-
import { bo as c, bl as i, bg as f, aZ as x, a_ as b } from "./form-
|
|
2
|
+
import { bo as c, bl as i, bg as f, aZ as x, a_ as b } from "./form-DnpFCulG.js";
|
|
3
3
|
const H = ({ className: r, children: e }) => {
|
|
4
4
|
const { description: s, target: o } = c(), { descriptionId: a } = i(), { language: n } = f();
|
|
5
5
|
return s ? /* @__PURE__ */ t.createElement("div", {
|
package/dist/component/{field-label-headless-ZBAhq8nF.js → field-label-headless-CRYxe-vx.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bo as m, aF as d, aG as p, bl as D, by as B } from "./form-
|
|
1
|
+
import { bo as m, aF as d, aG as p, bl as D, by as B } from "./form-DnpFCulG.js";
|
|
2
2
|
import l from "react";
|
|
3
3
|
import { f as L } from "./find-child-C60k4CxG.js";
|
|
4
4
|
import { sdk as g } from "@wix/image-kit";
|
|
@@ -2,14 +2,14 @@ import t, { useState as Y, useRef as k, useMemo as fe, useEffect as ne, useCallb
|
|
|
2
2
|
import Le from "@wix/editor-react-components/AnimatedIcon";
|
|
3
3
|
import { RicosViewer as xe } from "@wix/ricos/viewer";
|
|
4
4
|
import Z from "classnames";
|
|
5
|
-
import { bk as Ce, by as re, bt as ve, ar as Ne, bw as De, ak as ie, bx as
|
|
5
|
+
import { bk as Ce, by as re, bt as ve, ar as Ne, bw as De, ak as ie, bx as Te, bl as Ee, bo as V, bq as Se, bi as Be, bh as ye, R as Ie, a0 as Re, b as Ze, K as Ae, L as ce, v as ue, I as de, H as pe, J as Me, f as te } from "./form-DnpFCulG.js";
|
|
6
6
|
import { E as Oe } from "./error-icon-hZxQ6DEy.js";
|
|
7
7
|
import { s as $ } from "./field-rac.module-DP0lkkEv.js";
|
|
8
|
-
import { u as me } from "./use-element-state-class-name-
|
|
8
|
+
import { u as me } from "./use-element-state-class-name-nqBrsuxl.js";
|
|
9
9
|
import { DropZone as Ue, Text as we, FileTrigger as He, Button as Fe, ProgressBar as Pe, VisuallyHidden as ke } from "react-aria-components";
|
|
10
10
|
import { f as L, a as W } from "./find-child-C60k4CxG.js";
|
|
11
|
-
import { b as ze, a as Ve, D as qe, E as Ke } from "./field-error-headless-
|
|
12
|
-
import { L as je } from "./field-label-headless-
|
|
11
|
+
import { b as ze, a as Ve, D as qe, E as Ke } from "./field-error-headless-CgZAs65K.js";
|
|
12
|
+
import { L as je } from "./field-label-headless-CRYxe-vx.js";
|
|
13
13
|
const $e = {
|
|
14
14
|
Video: "video/*",
|
|
15
15
|
Image: "image/*",
|
|
@@ -27,7 +27,7 @@ const $e = {
|
|
|
27
27
|
formId: r,
|
|
28
28
|
uploadTarget: e
|
|
29
29
|
}).then((i) => {
|
|
30
|
-
const { id: C, displayName: p, url: m, isPrivate: c } = i,
|
|
30
|
+
const { id: C, displayName: p, url: m, isPrivate: c } = i, T = {
|
|
31
31
|
fileId: C,
|
|
32
32
|
displayName: p || o.name,
|
|
33
33
|
url: c ? void 0 : m,
|
|
@@ -35,8 +35,8 @@ const $e = {
|
|
|
35
35
|
};
|
|
36
36
|
return s({
|
|
37
37
|
file: o,
|
|
38
|
-
uploadedFile:
|
|
39
|
-
}),
|
|
38
|
+
uploadedFile: T
|
|
39
|
+
}), T;
|
|
40
40
|
}).catch((i) => {
|
|
41
41
|
d(i, o);
|
|
42
42
|
}));
|
|
@@ -44,7 +44,7 @@ const $e = {
|
|
|
44
44
|
};
|
|
45
45
|
};
|
|
46
46
|
function We({ valueSliderLimit: e, value: n, explanationText: r, target: l, onChange: s, uploadFileFormats: d, onBlur: E, onFilesCleared: x }) {
|
|
47
|
-
const [o, i] = Y(Je(n)), [C, p] = Y(n || []), [m, c] = Y(),
|
|
47
|
+
const [o, i] = Y(Je(n)), [C, p] = Y(n || []), [m, c] = Y(), T = Ye(l), { t: v } = re(), g = ve().includes(Ne.BUTTONS_HOVER), { setFormStatus: B } = De(), I = k(!1), y = k(s);
|
|
48
48
|
y.current = s;
|
|
49
49
|
const N = fe(() => o.some((f) => f.state === "uploading"), [
|
|
50
50
|
o
|
|
@@ -76,8 +76,8 @@ function We({ valueSliderLimit: e, value: n, explanationText: r, target: l, onCh
|
|
|
76
76
|
o,
|
|
77
77
|
r,
|
|
78
78
|
u
|
|
79
|
-
]),
|
|
80
|
-
await
|
|
79
|
+
]), S = M(async (h) => {
|
|
80
|
+
await T(h, ({ file: f, uploadedFile: _ }) => {
|
|
81
81
|
i((F) => F.map((b) => b.file === f ? {
|
|
82
82
|
file: f,
|
|
83
83
|
state: "uploaded"
|
|
@@ -96,7 +96,7 @@ function We({ valueSliderLimit: e, value: n, explanationText: r, target: l, onCh
|
|
|
96
96
|
} : b));
|
|
97
97
|
});
|
|
98
98
|
}, [
|
|
99
|
-
|
|
99
|
+
T,
|
|
100
100
|
v
|
|
101
101
|
]), K = async (h) => {
|
|
102
102
|
if (m && c(void 0), h) {
|
|
@@ -113,7 +113,7 @@ function We({ valueSliderLimit: e, value: n, explanationText: r, target: l, onCh
|
|
|
113
113
|
i([
|
|
114
114
|
...o,
|
|
115
115
|
...F
|
|
116
|
-
]), await
|
|
116
|
+
]), await S(F);
|
|
117
117
|
}
|
|
118
118
|
}, U = (h) => {
|
|
119
119
|
const f = o[h];
|
|
@@ -131,7 +131,7 @@ function We({ valueSliderLimit: e, value: n, explanationText: r, target: l, onCh
|
|
|
131
131
|
}, J = d.map((h) => $e[h]).join(), X = M(() => {
|
|
132
132
|
i([]), p([]);
|
|
133
133
|
}, []);
|
|
134
|
-
return
|
|
134
|
+
return Te(X), {
|
|
135
135
|
files: o,
|
|
136
136
|
limitError: m,
|
|
137
137
|
hover: g,
|
|
@@ -206,13 +206,13 @@ const z = ({ children: e, className: n }) => {
|
|
|
206
206
|
limitReached: r
|
|
207
207
|
}));
|
|
208
208
|
}, oe = ({ className: e, children: n, "aria-roledescription": r, onHoverStart: l, onHoverEnd: s, onFocusChange: d }) => {
|
|
209
|
-
const { ariaDescribedBy: E, inputId: x, labelId: o, errorId: i } = Ee(), { disabled: C, required: p, onFocus: m, hasError: c, errorMessage:
|
|
209
|
+
const { ariaDescribedBy: E, inputId: x, labelId: o, errorId: i } = Ee(), { disabled: C, required: p, onFocus: m, hasError: c, errorMessage: T } = V(), { handleFileChange: v, accept: O, multiple: g, buttonRef: B, handleBlur: I, limitError: y, files: N } = q(), u = (N == null ? void 0 : N.some((S) => S.errorMessage)) ?? !1, R = !!(c || T || y || u);
|
|
210
210
|
return /* @__PURE__ */ t.createElement(He, {
|
|
211
211
|
acceptedFileTypes: O ? O.split(",") : void 0,
|
|
212
212
|
allowsMultiple: g,
|
|
213
|
-
onSelect: (
|
|
214
|
-
if (
|
|
215
|
-
const K = Array.from(
|
|
213
|
+
onSelect: (S) => {
|
|
214
|
+
if (S) {
|
|
215
|
+
const K = Array.from(S), U = new DataTransfer();
|
|
216
216
|
K.forEach((j) => U.items.add(j)), v(U.files);
|
|
217
217
|
}
|
|
218
218
|
}
|
|
@@ -224,8 +224,8 @@ const z = ({ children: e, className: n }) => {
|
|
|
224
224
|
E,
|
|
225
225
|
i
|
|
226
226
|
].filter(Boolean).join(" "),
|
|
227
|
-
render: (
|
|
228
|
-
...
|
|
227
|
+
render: (S) => /* @__PURE__ */ t.createElement("button", {
|
|
228
|
+
...S,
|
|
229
229
|
"aria-roledescription": r,
|
|
230
230
|
"aria-invalid": R || void 0,
|
|
231
231
|
"aria-required": p
|
|
@@ -318,9 +318,9 @@ const le = ({ children: e, className: n }) => {
|
|
|
318
318
|
};
|
|
319
319
|
le.File = A;
|
|
320
320
|
const G = (e) => e.file.name, a = ({ children: e }) => {
|
|
321
|
-
const { t: n } = re(), { id: r, value: l, onChange: s, uploadFileFormats: d, valueSliderLimit: E, target: x, explanationText: o, onBlur: i, hasError: C, errorMessage: p, FieldLayout: m } = V(), c = k(null),
|
|
321
|
+
const { t: n } = re(), { id: r, value: l, onChange: s, uploadFileFormats: d, valueSliderLimit: E, target: x, explanationText: o, onBlur: i, hasError: C, errorMessage: p, FieldLayout: m } = V(), c = k(null), T = k({}), v = k(!1), O = M(() => {
|
|
322
322
|
c.current ? c.current.focus() : v.current = !0;
|
|
323
|
-
}, []), { files: g, limitError: B, hover: I, getExplanationText: y, getStatusText: N, handleBlur: u, handleChange: R, handleDelete:
|
|
323
|
+
}, []), { files: g, limitError: B, hover: I, getExplanationText: y, getStatusText: N, handleBlur: u, handleChange: R, handleDelete: S, accept: K } = We({
|
|
324
324
|
valueSliderLimit: E,
|
|
325
325
|
value: l,
|
|
326
326
|
explanationText: o,
|
|
@@ -332,9 +332,9 @@ const G = (e) => e.file.name, a = ({ children: e }) => {
|
|
|
332
332
|
}), U = M((H) => {
|
|
333
333
|
var se;
|
|
334
334
|
const Q = g[H], P = G(Q);
|
|
335
|
-
g.length > 1 && ((se = (g.filter((ee) => G(ee) !== P).map((ee) =>
|
|
335
|
+
g.length > 1 && ((se = (g.filter((ee) => G(ee) !== P).map((ee) => T.current[G(ee)]).find(Boolean) ?? c).current) == null || se.focus()), S(H);
|
|
336
336
|
}, [
|
|
337
|
-
|
|
337
|
+
S,
|
|
338
338
|
g
|
|
339
339
|
]);
|
|
340
340
|
ne(() => {
|
|
@@ -355,7 +355,7 @@ const G = (e) => e.file.name, a = ({ children: e }) => {
|
|
|
355
355
|
hover: I,
|
|
356
356
|
limitError: B,
|
|
357
357
|
buttonRef: c,
|
|
358
|
-
fileRemoveButtonRefs:
|
|
358
|
+
fileRemoveButtonRefs: T
|
|
359
359
|
}), [
|
|
360
360
|
R,
|
|
361
361
|
u,
|
|
@@ -369,7 +369,7 @@ const G = (e) => e.file.name, a = ({ children: e }) => {
|
|
|
369
369
|
I,
|
|
370
370
|
B
|
|
371
371
|
]), h = L(e, a.Label), f = L(e, a.DropZone), _ = L(e, a.Button), F = L(e, a.Explanation), b = L(e, a.Files), w = L(e, a.Description), ae = L(e, a.Error);
|
|
372
|
-
return
|
|
372
|
+
return Se(() => {
|
|
373
373
|
var H, Q;
|
|
374
374
|
if (c.current) {
|
|
375
375
|
c.current.focus({
|
|
@@ -377,7 +377,7 @@ const G = (e) => e.file.name, a = ({ children: e }) => {
|
|
|
377
377
|
});
|
|
378
378
|
return;
|
|
379
379
|
}
|
|
380
|
-
(Q = (H = g.map((P) =>
|
|
380
|
+
(Q = (H = g.map((P) => T.current[G(P)]).find((P) => P == null ? void 0 : P.current)) == null ? void 0 : H.current) == null || Q.focus({
|
|
381
381
|
preventScroll: !0
|
|
382
382
|
});
|
|
383
383
|
}, r), /* @__PURE__ */ t.createElement(be.Provider, {
|
|
@@ -501,7 +501,7 @@ const ot = (e) => /* @__PURE__ */ t.createElement("svg", {
|
|
|
501
501
|
base: D.button,
|
|
502
502
|
hover: D.buttonHover
|
|
503
503
|
}
|
|
504
|
-
}), E = (N = (y = (I = (B = Be().fileUpload) == null ? void 0 : B.elementProps) == null ? void 0 : I.uploadButton) == null ? void 0 : y.elementProps) == null ? void 0 : N.icon, { wix: x, className: o, ...i } = E ?? {}, C = ye(te.FILE_UPLOAD, te.UPLOAD_BUTTON, te.UPLOAD_BUTTON_LABEL), p = k(null), [m, c] = Y(!1), [
|
|
504
|
+
}), E = (N = (y = (I = (B = Be().fileUpload) == null ? void 0 : B.elementProps) == null ? void 0 : I.uploadButton) == null ? void 0 : y.elementProps) == null ? void 0 : N.icon, { wix: x, className: o, ...i } = E ?? {}, C = ye(te.FILE_UPLOAD, te.UPLOAD_BUTTON, te.UPLOAD_BUTTON_LABEL), p = k(null), [m, c] = Y(!1), [T, v] = Y(!1), O = M(() => {
|
|
505
505
|
var u;
|
|
506
506
|
c(!0), (u = p.current) == null || u.runAnimationForward();
|
|
507
507
|
}, []), g = M(() => {
|
|
@@ -513,9 +513,9 @@ const ot = (e) => /* @__PURE__ */ t.createElement("svg", {
|
|
|
513
513
|
}, /* @__PURE__ */ t.createElement(a.Label.Required, {
|
|
514
514
|
className: Z(Re, $.requiredMark)
|
|
515
515
|
})), /* @__PURE__ */ t.createElement(a.DropZone, {
|
|
516
|
-
className: ({ isHovered: u, isFocused: R, isDropTarget:
|
|
516
|
+
className: ({ isHovered: u, isFocused: R, isDropTarget: S }) => s({
|
|
517
517
|
isSelected: !1,
|
|
518
|
-
isHovered: u ||
|
|
518
|
+
isHovered: u || S,
|
|
519
519
|
isFocused: R,
|
|
520
520
|
isInteractive: l
|
|
521
521
|
})
|
|
@@ -540,7 +540,7 @@ const ot = (e) => /* @__PURE__ */ t.createElement("svg", {
|
|
|
540
540
|
className: Z(Ze, Ae, o)
|
|
541
541
|
}) : E ? null : /* @__PURE__ */ t.createElement(ot, null), /* @__PURE__ */ t.createElement(a.DropZone.Button.Text, {
|
|
542
542
|
className: Z(ce.base, D.buttonLabel, C, {
|
|
543
|
-
[ce.hover]: l && (m ||
|
|
543
|
+
[ce.hover]: l && (m || T)
|
|
544
544
|
})
|
|
545
545
|
}))), /* @__PURE__ */ t.createElement(a.Explanation, {
|
|
546
546
|
className: Z(ue, $.description, D.explanation),
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import t, { useMemo as _ } from "react";
|
|
2
2
|
import { RicosViewer as A } from "@wix/ricos/viewer";
|
|
3
3
|
import u from "classnames";
|
|
4
|
-
import { bo as C, bg as I, bl as P,
|
|
5
|
-
import { f as c, a as
|
|
4
|
+
import { bo as C, bg as I, bl as P, R, M as S, v as x } from "./form-DnpFCulG.js";
|
|
5
|
+
import { f as c, a as N } from "./find-child-C60k4CxG.js";
|
|
6
6
|
import { f as O } from "./format-currency-BwShJ9vM.js";
|
|
7
|
-
import { D as v, E as M } from "./field-error-headless-
|
|
8
|
-
import { L as g } from "./field-label-headless-
|
|
7
|
+
import { D as v, E as M } from "./field-error-headless-CgZAs65K.js";
|
|
8
|
+
import { L as g } from "./field-label-headless-CRYxe-vx.js";
|
|
9
9
|
import { s as F } from "./field-rac.module-DP0lkkEv.js";
|
|
10
10
|
const e = ({ children: r }) => {
|
|
11
11
|
var p;
|
|
@@ -18,7 +18,7 @@ const e = ({ children: r }) => {
|
|
|
18
18
|
return /* @__PURE__ */ t.createElement(l, {
|
|
19
19
|
fieldId: a,
|
|
20
20
|
renderLabel: () => y,
|
|
21
|
-
renderInput: () =>
|
|
21
|
+
renderInput: () => N(L, {
|
|
22
22
|
price: i,
|
|
23
23
|
currencyCode: o == null ? void 0 : o.code,
|
|
24
24
|
locale: m
|
|
@@ -50,11 +50,11 @@ const B = "_value_c7203_1", k = {
|
|
|
50
50
|
content: r,
|
|
51
51
|
locale: a
|
|
52
52
|
}), X = () => /* @__PURE__ */ t.createElement(e, null, /* @__PURE__ */ t.createElement(e.Label, {
|
|
53
|
-
className: u(
|
|
53
|
+
className: u(R, F.label)
|
|
54
54
|
}), /* @__PURE__ */ t.createElement(e.Amount, {
|
|
55
|
-
className: u(
|
|
55
|
+
className: u(S, k.value)
|
|
56
56
|
}), /* @__PURE__ */ t.createElement(e.Description, {
|
|
57
|
-
className: u(
|
|
57
|
+
className: u(x, F.description)
|
|
58
58
|
}, w)), Q = () => /* @__PURE__ */ t.createElement(X, null);
|
|
59
59
|
export {
|
|
60
60
|
Q as FixedPaymentRAC
|