@wix/form-elements 1.151.0 → 1.153.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-D2bigw_H.js} +4 -4
- package/dist/component/{bookings-address-rac-CWtYXwpn.js → bookings-address-rac-Cf05RpIZ.js} +1 -1
- package/dist/component/{bookings-email-rac-BUpRXmbz.js → bookings-email-rac-CT-Kud-p.js} +1 -1
- package/dist/component/{bookings-first-name-rac-CnHSxXFN.js → bookings-first-name-rac-Bs5OyaHY.js} +1 -1
- package/dist/component/{bookings-header-rac-BcD45Kgs.js → bookings-header-rac-Ru9_r2xR.js} +1 -1
- package/dist/component/{bookings-last-name-rac-VaqfK3bu.js → bookings-last-name-rac-DXMPd2Ps.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-Dv2quJRw.js → bookings-login-bar-rac-DnrhCv8K.js} +1 -1
- package/dist/component/{bookings-phone-rac-DVOu-9yX.js → bookings-phone-rac-EGAH9Sj5.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-SfsoQKeI.js → bookings-rich-text-rac-wvJv1HLp.js} +1 -1
- package/dist/component/{checkbox-field-rac-BHGWuGcT.js → checkbox-field-rac-LA2ynBpW.js} +4 -4
- package/dist/component/{checkbox-group-field-headless-KVBLbjKE.js → checkbox-group-field-headless-Be3rHuBy.js} +3 -3
- package/dist/component/{checkbox-group-field-rac-C-WNRuVW.js → checkbox-group-field-rac-cKVBp2Od.js} +7 -7
- package/dist/component/{checkbox-group-rac-BMeqtM9H.js → checkbox-group-rac-DSdh3fge.js} +1 -1
- package/dist/component/{checkbox-rac-WDBiwyvs.js → checkbox-rac-DMSneG1p.js} +1 -1
- package/dist/component/{contacts-address-rac-CUjhR8Nq.js → contacts-address-rac-BqzNSCJr.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-BurJLd1V.js → contacts-birthdate-rac-CNPCgWV_.js} +1 -1
- package/dist/component/{contacts-company-rac-y94712hj.js → contacts-company-rac-DNLgFugB.js} +1 -1
- package/dist/component/{contacts-email-rac-BYzv5pJt.js → contacts-email-rac-DzYtj6U7.js} +1 -1
- package/dist/component/{contacts-first-name-rac-AabYYZTr.js → contacts-first-name-rac-_w-NCWhj.js} +1 -1
- package/dist/component/{contacts-last-name-rac-B6GTnMea.js → contacts-last-name-rac-MO5nwQUf.js} +1 -1
- package/dist/component/{contacts-phone-rac-BhGEdh5D.js → contacts-phone-rac-vp0CnlDj.js} +1 -1
- package/dist/component/{contacts-position-rac-BmbLuomW.js → contacts-position-rac-CNcaPpV5.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-B7SELom1.js → contacts-subscribe-rac-ChNW2GDr.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-BewGatKM.js → contacts-tax-id-rac-BpxH95CB.js} +1 -1
- package/dist/component/{date-availability-Cpw7i5-L.js → date-availability-ZWzqCMNY.js} +1 -1
- package/dist/component/{date-input-field-rac-JbWzxDzZ.js → date-input-field-rac-Dd9a7PaB.js} +6 -6
- package/dist/component/{date-input-rac-v4pNWyuY.js → date-input-rac-InYREYth.js} +1 -1
- package/dist/component/{date-picker-field-rac-0eLcya58.js → date-picker-field-rac-unQuEVfi.js} +6 -6
- package/dist/component/{date-picker-rac-BP4BRWn4.js → date-picker-rac-DlLt-suC.js} +1 -1
- package/dist/component/{date-time-input-field-rac-Cj0RSJF9.js → date-time-input-field-rac-DN6FmYST.js} +6 -6
- package/dist/component/{date-time-input-rac-DyD0SpMV.js → date-time-input-rac-BM90MGg0.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-BE9fK7wx.js → dext-checkbox-group-rac-BUMKcxmc.js} +2 -2
- package/dist/component/{dext-checkbox-rac-CpB-AVP1.js → dext-checkbox-rac-DGanqYnB.js} +1 -1
- package/dist/component/{dext-date-picker-rac-DkiWY5CE.js → dext-date-picker-rac-Vm5LqGKJ.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-CyGIs4uD.js → dext-date-time-input-rac-DPXuw9dZ.js} +1 -1
- package/dist/component/{dext-dropdown-rac-C0GiCpWI.js → dext-dropdown-rac-Cofyuyfi.js} +1 -1
- package/dist/component/{dext-email-rac-Clngd9Lm.js → dext-email-rac-_y8wS7KV.js} +1 -1
- package/dist/component/{dext-number-input-rac-Boshfkc5.js → dext-number-input-rac-ZytCGJrW.js} +1 -1
- package/dist/component/{dext-phone-rac-AX8R0fDx.js → dext-phone-rac-C55xMFUD.js} +1 -1
- package/dist/component/{dext-radio-group-rac-VSwdnWPU.js → dext-radio-group-rac-BBPDyfmw.js} +2 -2
- package/dist/component/{dext-rating-input-rac-aspmLO_w.js → dext-rating-input-rac-BhdcK-GH.js} +1 -1
- package/dist/component/{dext-tags-rac-D4r4j1KZ.js → dext-tags-rac-CI2Xc03w.js} +2 -2
- package/dist/component/{dext-text-area-rac-D8vG4QTK.js → dext-text-area-rac-RuSovGlp.js} +1 -1
- package/dist/component/{dext-text-input-rac-D19SJhDG.js → dext-text-input-rac-DQd00cll.js} +1 -1
- package/dist/component/{dext-url-input-rac-BUAWZX7n.js → dext-url-input-rac-Bn2-Qudo.js} +1 -1
- package/dist/component/{donation-rac-C4NdOTts.js → donation-rac-XB0arMGx.js} +5 -5
- package/dist/component/{dropdown-field-headless-CtppkNv5.js → dropdown-field-headless-D0QHnQvI.js} +5 -5
- package/dist/component/{dropdown-field-rac-B6KCsR-j.js → dropdown-field-rac-Bwe73KgJ.js} +5 -5
- package/dist/component/{dropdown-rac-CkFLrcRV.js → dropdown-rac-CChdbmVW.js} +1 -1
- package/dist/component/{ecom-address-rac-D6asF2b7.js → ecom-address-rac-U0zYzmAk.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-CFzMl_9G.js → ecom-subscription-checkbox-rac-Cd4fKnVJ.js} +2 -2
- package/dist/component/{email-input-field-rac-gCsspvxb.js → email-input-field-rac-FRlbfWr0.js} +3 -3
- package/dist/component/{events-repeater-rac-DSrjafwK.js → events-repeater-rac-CBjqu0d6.js} +4 -4
- package/dist/component/{events-rsvp-rac-CMQtNDqE.js → events-rsvp-rac-Ciezamm0.js} +3 -3
- package/dist/component/{field-error-headless-Bt2dslWu.js → field-error-headless-Bkstr7c4.js} +1 -1
- package/dist/component/{field-label-headless-ZBAhq8nF.js → field-label-headless-BQdzL3qy.js} +1 -1
- package/dist/component/{file-upload-rac-MzPreLKz.js → file-upload-rac-BKE1ducj.js} +30 -30
- package/dist/component/{fixed-payment-rac-CPWIOJSH.js → fixed-payment-rac-B01pKLTi.js} +8 -8
- package/dist/component/{form-BrXx-2qp.js → form-BBasotzg.js} +291 -294
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-5dkUDBLN.js → header-field-rac-CrhHOqXZ.js} +2 -2
- package/dist/component/{header-rac-eXnz2eEI.js → header-rac-Dp3WTqgX.js} +1 -1
- package/dist/component/{image-choice-rac-BxmirCog.js → image-choice-rac-DJxTewda.js} +4 -4
- package/dist/component/{index-CCz5mdOt.js → index-BQvyEQWT.js} +4 -4
- package/dist/component/{index-Be6_W-02.js → index-n_nFGyIF.js} +2 -2
- package/dist/component/{isObjectLike-DhFZRIZ5.js → isObjectLike-BVuF_W7V.js} +1 -1
- package/dist/component/{multiline-address-field-rac-C3Rz-qFR.js → multiline-address-field-rac-D8d0OxHJ.js} +7 -7
- package/dist/component/{multiline-address-rac-BFvxiD8l.js → multiline-address-rac-BVfMe6L4.js} +1 -1
- package/dist/component/{number-input-field-rac-CAuoAgAm.js → number-input-field-rac-CxEmmXKN.js} +9 -9
- package/dist/component/{number-input-rac-ZCBaL_D4.js → number-input-rac-QYnTwzd-.js} +1 -1
- package/dist/component/{password-rac-oAAB5Yek.js → password-rac-C-qGzwyr.js} +6 -6
- package/dist/component/{payment-input-rac-BkVImcPM.js → payment-input-rac-DmrwVntr.js} +16 -16
- package/dist/component/{phone-input-field-rac-LReDQaEl.js → phone-input-field-rac-COIVTDiA.js} +202 -202
- package/dist/component/{phone-rac-B4Rv_q9_.js → phone-rac-DKQE4q0-.js} +1 -1
- package/dist/component/{product-list-rac-CVoJPZH6.js → product-list-rac-MP1iV-ki.js} +25 -25
- package/dist/component/{quiz-radio-group-rac-CHXOBaWQ.js → quiz-radio-group-rac-D5SWxzie.js} +1 -1
- package/dist/component/{radio-button-module-classes-G3CPOqV_.js → radio-button-module-classes-DHbL55H_.js} +3 -3
- package/dist/component/{radio-group-field-rac-Di8f67l0.js → radio-group-field-rac-BgtFPmlJ.js} +8 -8
- package/dist/component/{radio-group-rac-BP4EdSWA.js → radio-group-rac-Ct-3Dxt9.js} +1 -1
- package/dist/component/{rating-input-field-rac-D6nHfXat.js → rating-input-field-rac-D2UWtvZ5.js} +15 -15
- package/dist/component/{rating-input-rac-BpTVbrOY.js → rating-input-rac-D31uJ5fp.js} +1 -1
- package/dist/component/{rich-content-rac.module-DfNKRJQl.js → rich-content-rac.module-CaJq2hem.js} +1 -1
- package/dist/component/{rich-text-field-rac-BZx7O1ln.js → rich-text-field-rac-Cozr8cKE.js} +2 -2
- package/dist/component/{rich-text-rac-Bie0rehR.js → rich-text-rac-BPDbHGDS.js} +1 -1
- package/dist/component/{service-dropdown-rac-DZgYoLs3.js → service-dropdown-rac-BmRx6WJk.js} +11 -11
- package/dist/component/{services-multi-choice-rac-os7W4s1g.js → services-multi-choice-rac-BWd7EnKj.js} +8 -8
- package/dist/component/{signature-rac-BMRvU0qg.js → signature-rac-GWN393X6.js} +53 -53
- package/dist/component/{submit-button-rac-BkXQF3FL.js → submit-button-rac-DkcJAQz4.js} +2 -2
- package/dist/component/{tags-field-rac-5GL81x5S.js → tags-field-rac-Crj2KkXI.js} +17 -17
- package/dist/component/{tags-rac-BG4eu5vf.js → tags-rac-BqTLqg6-.js} +1 -1
- package/dist/component/{text-area-field-rac-CGtt6YXJ.js → text-area-field-rac-DDNzZb6-.js} +12 -12
- package/dist/component/{text-area-rac-D6aJxM-f.js → text-area-rac-_GZpfhob.js} +1 -1
- package/dist/component/{text-input-field-rac-BUuVi4gl.js → text-input-field-rac-C8Oy01fr.js} +5 -5
- package/dist/component/{text-input-headless-DG-jyTVD.js → text-input-headless-CeUccQB2.js} +3 -3
- package/dist/component/{text-input-rac-LVE42SOJ.js → text-input-rac-quKzZGuN.js} +1 -1
- package/dist/component/{time-input-rac-jZ9v7Azv.js → time-input-rac-Cs6v7FWy.js} +16 -16
- package/dist/component/{url-input-field-rac-DQ9JerAM.js → url-input-field-rac-XKB-01MY.js} +7 -7
- package/dist/component/{url-input-rac-4k06IpF-.js → url-input-rac-CLy5V0JB.js} +1 -1
- package/dist/component/{use-dropdown-trigger-class-name-CgNFe8Eg.js → use-dropdown-trigger-class-name-BnXNxOw5.js} +3 -3
- package/dist/component/{use-element-state-class-name-B4a4SKmP.js → use-element-state-class-name-DXp0miT9.js} +1 -1
- package/dist/component/{use-hoverable-input-class-name-DZVkGZvs.js → use-hoverable-input-class-name-D2Y08f_R.js} +2 -2
- package/dist/component/{use-is-forced-open-dropdown-ClP9MSlU.js → use-is-forced-open-dropdown-BG5bt8En.js} +1 -1
- package/dist/component/{use-service-options-base-Ch2bF4mk.js → use-service-options-base--io114bM.js} +1 -1
- package/dist/component/use-text-input-class-name-DGOkD9xM.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-FRlbfWr0.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-BBasotzg.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-CeUccQB2.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-DGOkD9xM.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-BBasotzg.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-BQdzL3qy.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-DXp0miT9.js";
|
|
13
|
+
import { u as me } from "./use-text-input-class-name-DGOkD9xM.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-DHbL55H_.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-BBasotzg.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-DXp0miT9.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-Bkstr7c4.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-BBasotzg.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-BQdzL3qy.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-BBasotzg.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-BBasotzg.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-DXp0miT9.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-Bkstr7c4.js";
|
|
12
|
+
import { L as je } from "./field-label-headless-BQdzL3qy.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-BBasotzg.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-Bkstr7c4.js";
|
|
8
|
+
import { L as g } from "./field-label-headless-BQdzL3qy.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
|