@wix/form-elements 1.150.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-CeJ6tmgt.js → appointment-rac-CjDsESxp.js} +4 -4
- package/dist/component/{bookings-address-rac-CEObYEbj.js → bookings-address-rac-BWDAieZC.js} +1 -1
- package/dist/component/{bookings-email-rac-DmW99D5W.js → bookings-email-rac-DoMJ0Cq2.js} +1 -1
- package/dist/component/{bookings-first-name-rac-GmKet4hL.js → bookings-first-name-rac-Bb0TrNKq.js} +1 -1
- package/dist/component/{bookings-header-rac-C_J1YzAq.js → bookings-header-rac-DvXXEmRp.js} +1 -1
- package/dist/component/{bookings-last-name-rac-Bj-gwK0F.js → bookings-last-name-rac-q_zzV8ZS.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-ol4QLAP6.js → bookings-login-bar-rac-USocDYyR.js} +1 -1
- package/dist/component/{bookings-phone-rac-oaCG294y.js → bookings-phone-rac-D4JHCrYc.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-sMiikQgk.js → bookings-rich-text-rac-D5ScrRTy.js} +1 -1
- package/dist/component/{checkbox-field-rac-DxGaRbDj.js → checkbox-field-rac-g9tefDjj.js} +4 -4
- package/dist/component/{checkbox-group-field-headless-C3ZaCvQz.js → checkbox-group-field-headless-KeJlwm_s.js} +3 -3
- package/dist/component/{checkbox-group-field-rac-CMj-kfFN.js → checkbox-group-field-rac-C10zjFrB.js} +7 -7
- package/dist/component/{checkbox-group-rac-DpOT4H7g.js → checkbox-group-rac-xrqoPwH0.js} +1 -1
- package/dist/component/{checkbox-rac-CwdOkW8r.js → checkbox-rac-DnUqY4X0.js} +1 -1
- package/dist/component/{contacts-address-rac-CQvt1Epy.js → contacts-address-rac-CrJJt8Lm.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-VRGtjIMf.js → contacts-birthdate-rac-Dj0Z5Dq4.js} +1 -1
- package/dist/component/{contacts-company-rac-B_XDJTL9.js → contacts-company-rac-CfAzWpsO.js} +1 -1
- package/dist/component/{contacts-email-rac-BJ0EdzZo.js → contacts-email-rac-DEt_W-OY.js} +1 -1
- package/dist/component/{contacts-first-name-rac-DzBzJXj7.js → contacts-first-name-rac-5cge4OTl.js} +1 -1
- package/dist/component/{contacts-last-name-rac-DAHlHpW7.js → contacts-last-name-rac-WCJRmxoK.js} +1 -1
- package/dist/component/{contacts-phone-rac-C4D1TMqv.js → contacts-phone-rac-9cJ-XZYq.js} +1 -1
- package/dist/component/{contacts-position-rac-g0CJQJLc.js → contacts-position-rac-CFoAC1v-.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-C54jQIum.js → contacts-subscribe-rac-CbqxvKnO.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-D_JlmKJb.js → contacts-tax-id-rac-Cpy8M_0G.js} +1 -1
- package/dist/component/{date-availability-CFp_AHpE.js → date-availability-DpP0-dxh.js} +1 -1
- package/dist/component/{date-input-field-rac-CxOU5_P5.js → date-input-field-rac-DNP0Db4K.js} +6 -6
- package/dist/component/{date-input-rac-CEuyvgIp.js → date-input-rac-5H7z1Sjy.js} +1 -1
- package/dist/component/{date-picker-field-rac-DC8gw2Qe.js → date-picker-field-rac-DviFddKc.js} +6 -6
- package/dist/component/{date-picker-rac-B8prCy1F.js → date-picker-rac-CxXpSPGD.js} +1 -1
- package/dist/component/{date-time-input-field-rac-FwScqIVQ.js → date-time-input-field-rac-CRapaca2.js} +6 -6
- package/dist/component/{date-time-input-rac-gdstXM2G.js → date-time-input-rac-DOMqIa4d.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-DdEAXUYC.js → dext-checkbox-group-rac-CQPyapQG.js} +2 -2
- package/dist/component/{dext-checkbox-rac-DYgl82IR.js → dext-checkbox-rac-CW4wF36k.js} +1 -1
- package/dist/component/{dext-date-picker-rac-SaO61461.js → dext-date-picker-rac-DFcrP0ZR.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-CQ2klkyf.js → dext-date-time-input-rac-Cs1Df2AX.js} +1 -1
- package/dist/component/{dext-dropdown-rac-CYINWMm2.js → dext-dropdown-rac-D0ujCY8A.js} +1 -1
- package/dist/component/{dext-email-rac-7e49-L1S.js → dext-email-rac-Bh86O-fJ.js} +1 -1
- package/dist/component/{dext-number-input-rac-BxECUZaK.js → dext-number-input-rac-CkPDXgxl.js} +1 -1
- package/dist/component/{dext-phone-rac-BCUCWcrF.js → dext-phone-rac-CGHDBW0d.js} +1 -1
- package/dist/component/{dext-radio-group-rac-Bs_64hFW.js → dext-radio-group-rac-qhuKzhbR.js} +2 -2
- package/dist/component/{dext-rating-input-rac-Bl-MBjGQ.js → dext-rating-input-rac-05wft4wI.js} +1 -1
- package/dist/component/{dext-tags-rac-D98sEqwj.js → dext-tags-rac-Ch28_kSN.js} +2 -2
- package/dist/component/{dext-text-area-rac-Dsbsk2z4.js → dext-text-area-rac-BpPh9q1K.js} +1 -1
- package/dist/component/{dext-text-input-rac-vYtTnV5G.js → dext-text-input-rac-v7pE3sIs.js} +1 -1
- package/dist/component/{dext-url-input-rac-tJJZOvtn.js → dext-url-input-rac-BUyNTatI.js} +1 -1
- package/dist/component/{donation-rac-CPPSHRbF.js → donation-rac-lw-dkvAY.js} +5 -5
- package/dist/component/{dropdown-field-headless-BWbsB155.js → dropdown-field-headless-ttDyqdqW.js} +5 -5
- package/dist/component/{dropdown-field-rac-BYyLHTVV.js → dropdown-field-rac-D4Fvsn8C.js} +5 -5
- package/dist/component/{dropdown-rac-CyWVQHvW.js → dropdown-rac-BvNeMUaH.js} +1 -1
- package/dist/component/{ecom-address-rac-DLWEUZg7.js → ecom-address-rac-CeBuZKF4.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-DY-Vzmr5.js → ecom-subscription-checkbox-rac-DvLt1LmK.js} +2 -2
- package/dist/component/{email-input-field-rac-00Q0cH3p.js → email-input-field-rac-Dl_USWLL.js} +3 -3
- package/dist/component/{events-repeater-rac-C_TDB0VL.js → events-repeater-rac-QJ04thEZ.js} +4 -4
- package/dist/component/{events-rsvp-rac-Cly4TgEv.js → events-rsvp-rac-Ch4lfvZv.js} +3 -3
- package/dist/component/{field-error-headless-sUpR20_V.js → field-error-headless-CgZAs65K.js} +1 -1
- package/dist/component/{field-label-headless-xEHyxl62.js → field-label-headless-CRYxe-vx.js} +1 -1
- package/dist/component/{file-upload-rac-BLTYhgrR.js → file-upload-rac-BvjGAd5T.js} +30 -30
- package/dist/component/{fixed-payment-rac-BBSzAU8U.js → fixed-payment-rac-DWNNpt-4.js} +8 -8
- package/dist/component/{form-DbRjIc40.js → form-DnpFCulG.js} +378 -377
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-DdF0EtGw.js → header-field-rac-WSnI3a0s.js} +2 -2
- package/dist/component/{header-rac-CQzVj2se.js → header-rac-BLEwF0wr.js} +1 -1
- package/dist/component/{image-choice-rac-F4il5nrs.js → image-choice-rac-CH_bPal9.js} +4 -4
- package/dist/component/{index-3lV2ezGk.js → index-YBIt9TAJ.js} +2 -2
- package/dist/component/{index-ClGqqyFk.js → index-euOuJTY1.js} +4 -4
- package/dist/component/{isObjectLike-CbFuWC1b.js → isObjectLike-YcoeiSLm.js} +1 -1
- package/dist/component/{multiline-address-field-rac-Bhkmy-UH.js → multiline-address-field-rac-CpmwYA8Q.js} +7 -7
- package/dist/component/{multiline-address-rac-CH6ZAJ_l.js → multiline-address-rac-dp2LSRyG.js} +1 -1
- package/dist/component/{number-input-field-rac-DEBHQQqw.js → number-input-field-rac-CfurrJkz.js} +9 -9
- package/dist/component/{number-input-rac-DL3ReqMc.js → number-input-rac-BFMTZwmv.js} +1 -1
- package/dist/component/{password-rac-Bo7Va46-.js → password-rac-Wqs-85Q8.js} +6 -6
- package/dist/component/{payment-input-rac-CyT2kcLF.js → payment-input-rac-DyY_Wj8U.js} +16 -16
- package/dist/component/{phone-input-field-rac-CKCkS2mG.js → phone-input-field-rac-C7KFjyig.js} +202 -202
- package/dist/component/{phone-rac-BcW_3aA5.js → phone-rac-Bhl7AZcj.js} +1 -1
- package/dist/component/{product-list-rac-Cxu5KYQ1.js → product-list-rac-B4oybHWH.js} +25 -25
- package/dist/component/{quiz-radio-group-rac-Bam3nw3m.js → quiz-radio-group-rac-oDweLSYP.js} +1 -1
- package/dist/component/{radio-button-module-classes-D6cil49f.js → radio-button-module-classes-CUkou54P.js} +3 -3
- package/dist/component/{radio-group-field-rac-BgWnXO5Q.js → radio-group-field-rac-BmR0H0UO.js} +8 -8
- package/dist/component/{radio-group-rac-BMepx9xD.js → radio-group-rac-DY2mnw30.js} +1 -1
- package/dist/component/{rating-input-field-rac-BmdQzQ1t.js → rating-input-field-rac-DRbFC_V7.js} +15 -15
- package/dist/component/{rating-input-rac-BuNTgro2.js → rating-input-rac-MtNlX53V.js} +1 -1
- package/dist/component/{rich-content-rac.module-DIShgYK1.js → rich-content-rac.module-B4fFSQ6R.js} +1 -1
- package/dist/component/{rich-text-field-rac-CfcWsMcr.js → rich-text-field-rac-Dew-awSN.js} +2 -2
- package/dist/component/{rich-text-rac-CbpbC1i1.js → rich-text-rac-4G6WBtds.js} +1 -1
- package/dist/component/{service-dropdown-rac-_ph-8eMR.js → service-dropdown-rac-DrKwsL6p.js} +11 -11
- package/dist/component/{services-multi-choice-rac-VS-18f_N.js → services-multi-choice-rac-C5pN_Zck.js} +8 -8
- package/dist/component/{signature-rac-CgCdt4im.js → signature-rac-8wj8b_im.js} +53 -53
- package/dist/component/{submit-button-rac-CAnahSZG.js → submit-button-rac-C9tR2MGH.js} +2 -2
- package/dist/component/{tags-field-rac-TdxHJoT1.js → tags-field-rac-CEKtxEMx.js} +17 -17
- package/dist/component/{tags-rac-ivZy_kqq.js → tags-rac-fGDFocqq.js} +1 -1
- package/dist/component/{text-area-field-rac-C4dg7l8s.js → text-area-field-rac-dRdFY5LY.js} +12 -12
- package/dist/component/{text-area-rac-Dqcg7ApJ.js → text-area-rac-uv8JLQ3Z.js} +1 -1
- package/dist/component/{text-input-field-rac-C6VjmvWa.js → text-input-field-rac--VebbXxr.js} +5 -5
- package/dist/component/{text-input-headless-CUsCjQmX.js → text-input-headless-CtdPYLHv.js} +3 -3
- package/dist/component/{text-input-rac-CMFWBJKG.js → text-input-rac-Wa1Ou8a5.js} +1 -1
- package/dist/component/{time-input-rac-cbG7WRTS.js → time-input-rac-KYSuxO5P.js} +16 -16
- package/dist/component/{url-input-field-rac-7yh9eqH3.js → url-input-field-rac-Bn6cCoo4.js} +7 -7
- package/dist/component/{url-input-rac-D_rkLxU0.js → url-input-rac-BPtRMinM.js} +1 -1
- package/dist/component/{use-dropdown-trigger-class-name-B53A0SXh.js → use-dropdown-trigger-class-name-0AI0_olG.js} +3 -3
- package/dist/component/{use-element-state-class-name-glM9I1ZZ.js → use-element-state-class-name-nqBrsuxl.js} +1 -1
- package/dist/component/{use-hoverable-input-class-name-DpOCZ2hg.js → use-hoverable-input-class-name-KQp9yOph.js} +2 -2
- package/dist/component/{use-is-forced-open-dropdown-B0M0FaQ-.js → use-is-forced-open-dropdown-xB31vrZi.js} +1 -1
- package/dist/component/{use-service-options-base-CqZd8Yl3.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-DPUN9lls.js +0 -6
package/dist/component/form.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import m from "classnames";
|
|
2
2
|
import e from "react";
|
|
3
|
-
import { bo as u, b0 as i, a$ as C, b2 as R, aB as T, aj as d } from "./form-
|
|
4
|
-
import { u as g, R as p, s as S, T as h } from "./rich-content-rac.module-
|
|
3
|
+
import { bo as u, b0 as i, a$ as C, b2 as R, aB as T, aj as d } from "./form-DnpFCulG.js";
|
|
4
|
+
import { u as g, R as p, s as S, T as h } from "./rich-content-rac.module-B4fFSQ6R.js";
|
|
5
5
|
const y = ({ truncate: t = !0 } = {}) => {
|
|
6
6
|
const { content: a, maxShownParagraphs: s } = u(), n = e.useMemo(() => ({
|
|
7
7
|
colorPalette: R(),
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import e, { useMemo as y, useCallback as T, useRef as G } from "react";
|
|
2
2
|
import { RicosViewer as k } from "@wix/ricos/viewer";
|
|
3
3
|
import I from "classnames";
|
|
4
|
-
import { bo as b, bl as w, bq as P, bh as x,
|
|
4
|
+
import { bo as b, bl as w, bq as P, bh as x, R as B, a0 as q, N as U, P as V, H as z, v as K, O as Q, f } from "./form-DnpFCulG.js";
|
|
5
5
|
import { CheckboxGroup as Y, CheckboxField as $, CheckboxButton as j } from "react-aria-components";
|
|
6
6
|
import { f as m, a as F } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { L as J, g as W } from "./field-label-headless-
|
|
8
|
-
import { D as X, E as Z } from "./field-error-headless-
|
|
7
|
+
import { L as J, g as W } from "./field-label-headless-CRYxe-vx.js";
|
|
8
|
+
import { D as X, E as Z } from "./field-error-headless-CgZAs65K.js";
|
|
9
9
|
import { F as ee } from "./fieldset-headless-CD3fds9J.js";
|
|
10
10
|
import { E as te } from "./error-icon-hZxQ6DEy.js";
|
|
11
11
|
import { s as O } from "./field-rac.module-DP0lkkEv.js";
|
|
12
|
-
import { u as oe } from "./use-element-state-class-name-
|
|
12
|
+
import { u as oe } from "./use-element-state-class-name-nqBrsuxl.js";
|
|
13
13
|
const o = ({ children: t, className: n }) => {
|
|
14
14
|
const { id: s, value: a, onChange: i, disabled: l, readOnly: r, required: c, onBlur: u, onFocus: p, hasError: g, FieldLayout: C } = b(), { inputId: L, labelId: _, ariaDescribedBy: R } = w(), S = m(t, o.Label), A = m(t, o.Options), D = m(t, o.Description), h = m(t, o.Error), M = y(() => a || [], [
|
|
15
15
|
a
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b7 as n } from "./form-
|
|
2
|
-
import { A as S, a as p, C as N, aC as g, aT as q, aU as D, b9 as L } from "./form-
|
|
1
|
+
import { b7 as n } from "./form-DnpFCulG.js";
|
|
2
|
+
import { A as S, a as p, C as N, aC as g, aT as q, aU as D, b9 as L } from "./form-DnpFCulG.js";
|
|
3
3
|
const l = (e = !1) => ({
|
|
4
4
|
country: {
|
|
5
5
|
required: e
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { e as R, aJ as _, aY as de, aK as O, ap as Ge, B as Be, aD as qe, aw as He, av as I, aE as Ee, aN as re, aH as Fe, c as B, ax as M, b8 as Te, az as je, ay as he, aA as q } from "./form-
|
|
2
|
-
import { b3 as Mn } from "./form-
|
|
1
|
+
import { e as R, aJ as _, aY as de, aK as O, ap as Ge, B as Be, aD as qe, aw as He, av as I, aE as Ee, aN as re, aH as Fe, c as B, ax as M, b8 as Te, az as je, ay as he, aA as q } from "./form-DnpFCulG.js";
|
|
2
|
+
import { b3 as Mn } from "./form-DnpFCulG.js";
|
|
3
3
|
import Xe from "ajv";
|
|
4
4
|
import ke from "ajv-errors";
|
|
5
5
|
import We from "ajv-formats";
|
|
6
6
|
import Ke from "fast-deep-equal";
|
|
7
7
|
import { parsePhoneNumber as ze, parsePhoneNumberWithError as Ve, ParseError as Ze } from "libphonenumber-js/max";
|
|
8
8
|
import Je from "libphonenumber-js/metadata.max.json";
|
|
9
|
-
import { p as Qe, i as et } from "./date-availability-
|
|
10
|
-
import { a as Sn } from "./date-availability-
|
|
9
|
+
import { p as Qe, i as et } from "./date-availability-DpP0-dxh.js";
|
|
10
|
+
import { a as Sn } from "./date-availability-DpP0-dxh.js";
|
|
11
11
|
import { C as tt } from "./calling-country-codes-PyWuOTmF.js";
|
|
12
12
|
function rt(e) {
|
|
13
13
|
var t, r;
|
|
@@ -2,21 +2,21 @@ import { RicosViewer as G } from "@wix/ricos/viewer";
|
|
|
2
2
|
import L from "classnames";
|
|
3
3
|
import r, { useMemo as q, createContext as Ve, useContext as Ce, useState as be, useRef as x, useCallback as R, useEffect as _e } from "react";
|
|
4
4
|
import { UNSAFE_PortalProvider as _t } from "react-aria";
|
|
5
|
-
import { bj as ft, d as yt, be as Pt, bg as Ct, aT as Tt, aU as wt, aM as Mt, aS as W, F as K, by as Pe, b7 as lt, bo as P, bl as T, bq as ae, bk as It, aY as qt, C as Oe, b5 as xt, b9 as Bt, bv as kt, bp as $t, bu as Ut, bc as Vt, b1 as Wt, bb as Kt, br as Yt, as as Ht,
|
|
5
|
+
import { bj as ft, d as yt, be as Pt, bg as Ct, aT as Tt, aU as wt, aM as Mt, aS as W, F as K, by as Pe, b7 as lt, bo as P, bl as T, bq as ae, bk as It, aY as qt, C as Oe, b5 as xt, b9 as Bt, bv as kt, bp as $t, bu as Ut, bc as Vt, b1 as Wt, bb as Kt, br as Yt, as as Ht, R as z, a0 as Q, y as ge, H as Z, v as ee } from "./form-DnpFCulG.js";
|
|
6
6
|
import { f as E, a as F } from "./find-child-C60k4CxG.js";
|
|
7
7
|
import { F as jt, V as Jt } from "./headless-styles-CmcyA_pi.js";
|
|
8
|
-
import { a as Xt } from "./use-is-forced-open-dropdown-
|
|
8
|
+
import { a as Xt } from "./use-is-forced-open-dropdown-xB31vrZi.js";
|
|
9
9
|
import { TextField as fe, Input as le, ComboBoxStateContext as We, ComboBox as he, Popover as Se, ListBox as Te, ListBoxItem as De, Group as Lt, Button as Nt } from "react-aria-components";
|
|
10
|
-
import { D as ie, E as ce } from "./field-error-headless-
|
|
11
|
-
import { L as de } from "./field-label-headless-
|
|
12
|
-
import { e as Gt, c as zt, a as Qt, r as gt } from "./isObjectLike-
|
|
13
|
-
import { V as Zt, a as en, u as tn } from "./use-dropdown-trigger-class-name-
|
|
10
|
+
import { D as ie, E as ce } from "./field-error-headless-CgZAs65K.js";
|
|
11
|
+
import { L as de } from "./field-label-headless-CRYxe-vx.js";
|
|
12
|
+
import { e as Gt, c as zt, a as Qt, r as gt } from "./isObjectLike-YcoeiSLm.js";
|
|
13
|
+
import { V as Zt, a as en, u as tn } from "./use-dropdown-trigger-class-name-0AI0_olG.js";
|
|
14
14
|
import { u as nn } from "./use-invoke-callback-UH73A_J3.js";
|
|
15
15
|
import { C as it } from "./chevron-down-icon-CcpVm6B-.js";
|
|
16
16
|
import { E as te } from "./error-icon-hZxQ6DEy.js";
|
|
17
17
|
import { H as we } from "./custom-focus-class-_483Pkwp.js";
|
|
18
18
|
import { s as I } from "./field-rac.module-DP0lkkEv.js";
|
|
19
|
-
import { u as rn } from "./use-text-input-class-name-
|
|
19
|
+
import { u as rn } from "./use-text-input-class-name-BwCLUlxr.js";
|
|
20
20
|
const on = (e, t, o) => {
|
|
21
21
|
var a, l, i, s;
|
|
22
22
|
const n = (a = e.steps) == null ? void 0 : a.map((d) => {
|
package/dist/component/{number-input-field-rac-DEBHQQqw.js → number-input-field-rac-CfurrJkz.js}
RENAMED
|
@@ -2,18 +2,18 @@ import { RicosViewer as P } from "@wix/ricos/viewer";
|
|
|
2
2
|
import i from "classnames";
|
|
3
3
|
import r, { useState as H, useCallback as Q, useEffect as U, useRef as $ } from "react";
|
|
4
4
|
import { NumberField as j, Input as z } from "react-aria-components";
|
|
5
|
-
import { bo as
|
|
5
|
+
import { bo as _, bl as S, by as G, bq as J, R as K, a0 as W, H as X, v as Y } from "./form-DnpFCulG.js";
|
|
6
6
|
import { f as c } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as Z, E as w } from "./field-error-headless-
|
|
8
|
-
import { L as ee } from "./field-label-headless-
|
|
7
|
+
import { D as Z, E as w } from "./field-error-headless-CgZAs65K.js";
|
|
8
|
+
import { L as ee } from "./field-label-headless-CRYxe-vx.js";
|
|
9
9
|
import { g as re, c as te } from "./numeric-input-utils-CuBMi4-a.js";
|
|
10
10
|
import { u as ne } from "./use-invoke-callback-UH73A_J3.js";
|
|
11
11
|
import { E as ae } from "./error-icon-hZxQ6DEy.js";
|
|
12
12
|
import { s as p } from "./field-rac.module-DP0lkkEv.js";
|
|
13
|
-
import { u as se } from "./use-text-input-class-name-
|
|
13
|
+
import { u as se } from "./use-text-input-class-name-BwCLUlxr.js";
|
|
14
14
|
const e = ({ children: t }) => {
|
|
15
|
-
var F,
|
|
16
|
-
const { id: a, value: s, onChange: l, disabled: d, required: b, readOnly: o, onBlur: E, onFocus: f, FieldLayout: m, hasError: u, validation: n } =
|
|
15
|
+
var F, R, L;
|
|
16
|
+
const { id: a, value: s, onChange: l, disabled: d, required: b, readOnly: o, onBlur: E, onFocus: f, FieldLayout: m, hasError: u, validation: n } = _(), { labelId: y } = S(), D = ((F = n == null ? void 0 : n.number) == null ? void 0 : F.multipleOf) || 1, A = (R = n == null ? void 0 : n.number) == null ? void 0 : R.maximum, g = (L = n == null ? void 0 : n.number) == null ? void 0 : L.minimum, q = O(s), [x, I] = H(q), T = ne(E), V = c(t, e.Label), h = c(t, e.Input), M = c(t, e.Description), k = c(t, e.Error), B = Q((N) => {
|
|
17
17
|
if (N === void 0 || Number.isNaN(N)) {
|
|
18
18
|
l(""), I(NaN);
|
|
19
19
|
return;
|
|
@@ -48,7 +48,7 @@ const e = ({ children: t }) => {
|
|
|
48
48
|
});
|
|
49
49
|
}, le = ({ className: t }) => {
|
|
50
50
|
var u;
|
|
51
|
-
const { t: a } = G(), { inputId: s, ariaDescribedBy: l } =
|
|
51
|
+
const { t: a } = G(), { inputId: s, ariaDescribedBy: l } = S(), { id: d, placeholder: b, validation: o, label: E, required: f } = _();
|
|
52
52
|
(u = o == null ? void 0 : o.number) != null && u.multipleOf;
|
|
53
53
|
const m = $(null);
|
|
54
54
|
return J(() => {
|
|
@@ -75,7 +75,7 @@ e.Error = w;
|
|
|
75
75
|
const O = (t) => te(t) ?? NaN, oe = ({ content: t, locale: a }) => /* @__PURE__ */ r.createElement(P, {
|
|
76
76
|
content: t,
|
|
77
77
|
locale: a
|
|
78
|
-
}),
|
|
78
|
+
}), Re = () => {
|
|
79
79
|
const t = se();
|
|
80
80
|
return /* @__PURE__ */ r.createElement(e, null, /* @__PURE__ */ r.createElement(e.Label, {
|
|
81
81
|
className: i(K, p.label)
|
|
@@ -90,5 +90,5 @@ const O = (t) => te(t) ?? NaN, oe = ({ content: t, locale: a }) => /* @__PURE__
|
|
|
90
90
|
}, oe));
|
|
91
91
|
};
|
|
92
92
|
export {
|
|
93
|
-
|
|
93
|
+
Re as N
|
|
94
94
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import e, { useState as N, useRef as x } from "react";
|
|
2
2
|
import { RicosViewer as O } from "@wix/ricos/viewer";
|
|
3
3
|
import d from "classnames";
|
|
4
|
-
import { bo as E, bl as I, bq as v, by as A,
|
|
4
|
+
import { bo as E, bl as I, bq as v, by as A, R as B, a0 as V, H as P, v as M } from "./form-DnpFCulG.js";
|
|
5
5
|
import { TextField as k, Group as q, Input as H, Button as U } from "react-aria-components";
|
|
6
6
|
import { f as u, a as b } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as j, E as W } from "./field-error-headless-
|
|
8
|
-
import { L as Z } from "./field-label-headless-
|
|
7
|
+
import { D as j, E as W } from "./field-error-headless-CgZAs65K.js";
|
|
8
|
+
import { L as Z } from "./field-label-headless-CRYxe-vx.js";
|
|
9
9
|
import { E as G } from "./error-icon-hZxQ6DEy.js";
|
|
10
10
|
import { H as Q } from "./custom-focus-class-_483Pkwp.js";
|
|
11
11
|
import { s as p } from "./field-rac.module-DP0lkkEv.js";
|
|
12
|
-
import { u as $ } from "./use-text-input-class-name-
|
|
12
|
+
import { u as $ } from "./use-text-input-class-name-BwCLUlxr.js";
|
|
13
13
|
const t = ({ children: o, className: r }) => {
|
|
14
|
-
const { id: l, value: s, onChange: c, disabled: n, readOnly: m, required: a, hasError: i, onBlur: f, onFocus: C, autoComplete: y, FieldLayout: _ } = E(), { labelId: R } = I(), [D, F] = N(!1), L = u(o, t.Label), T = u(o, t.Control),
|
|
14
|
+
const { id: l, value: s, onChange: c, disabled: n, readOnly: m, required: a, hasError: i, onBlur: f, onFocus: C, autoComplete: y, FieldLayout: _ } = E(), { labelId: R } = I(), [D, F] = N(!1), L = u(o, t.Label), T = u(o, t.Control), w = u(o, t.Description), S = u(o, t.Error);
|
|
15
15
|
return /* @__PURE__ */ e.createElement(_, {
|
|
16
16
|
fieldId: l,
|
|
17
17
|
renderLabel: () => L,
|
|
@@ -31,7 +31,7 @@ const t = ({ children: o, className: r }) => {
|
|
|
31
31
|
isVisible: D,
|
|
32
32
|
onToggleVisibility: () => F((h) => !h)
|
|
33
33
|
})),
|
|
34
|
-
renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null,
|
|
34
|
+
renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, w, S)
|
|
35
35
|
});
|
|
36
36
|
}, z = ({ children: o, className: r, ...l }) => {
|
|
37
37
|
const { isVisible: s, onToggleVisibility: c } = l, { disabled: n, hasError: m } = E(), a = u(o, t.Input), i = u(o, t.Toggle);
|
|
@@ -2,16 +2,16 @@ import r, { useCallback as P, useRef as j } from "react";
|
|
|
2
2
|
import { RicosViewer as w } from "@wix/ricos/viewer";
|
|
3
3
|
import p from "classnames";
|
|
4
4
|
import { TextField as z, Group as J, Input as K } from "react-aria-components";
|
|
5
|
-
import { bo as
|
|
5
|
+
import { bo as N, bl as D, bg as T, by as W, bq as X, R as Y, a0 as Z, H as ee, v as re } from "./form-DnpFCulG.js";
|
|
6
6
|
import { f as i } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as te, E as ne } from "./field-error-headless-
|
|
8
|
-
import { L as ae } from "./field-label-headless-
|
|
9
|
-
import { f as
|
|
7
|
+
import { D as te, E as ne } from "./field-error-headless-CgZAs65K.js";
|
|
8
|
+
import { L as ae } from "./field-label-headless-CRYxe-vx.js";
|
|
9
|
+
import { f as L, g as se } from "./payment-field-utils-DobiK5Xh.js";
|
|
10
10
|
import { u as oe } from "./use-synced-display-value-DcAxdn3M.js";
|
|
11
11
|
import { E as le } from "./error-icon-hZxQ6DEy.js";
|
|
12
12
|
import { H as ce } from "./custom-focus-class-_483Pkwp.js";
|
|
13
13
|
import { s as d } from "./field-rac.module-DP0lkkEv.js";
|
|
14
|
-
import { u as ie } from "./use-text-input-class-name-
|
|
14
|
+
import { u as ie } from "./use-text-input-class-name-BwCLUlxr.js";
|
|
15
15
|
function ue(e, t) {
|
|
16
16
|
return {
|
|
17
17
|
productId: e.id,
|
|
@@ -27,12 +27,12 @@ function h(e) {
|
|
|
27
27
|
}
|
|
28
28
|
const n = ({ children: e }) => {
|
|
29
29
|
var O, g, A, V;
|
|
30
|
-
const { id: t, value: a, onChange: s, disabled: u, readOnly: m, required: I, hasError: y, onBlur: o, onFocus: E, FieldLayout: M, validation: C } =
|
|
30
|
+
const { id: t, value: a, onChange: s, disabled: u, readOnly: m, required: I, hasError: y, onBlur: o, onFocus: E, FieldLayout: M, validation: C } = N(), { labelId: q, prefixId: G } = D(), { regionalFormat: c } = T(), S = (A = (g = (O = C == null ? void 0 : C.predefined) == null ? void 0 : O.paymentOptions) == null ? void 0 : g.products) == null ? void 0 : A[0], _ = (V = a == null ? void 0 : a.at(0)) == null ? void 0 : V.price, [F, b] = oe({
|
|
31
31
|
sourceValue: _,
|
|
32
|
-
format: (l) =>
|
|
32
|
+
format: (l) => L(String(l ?? ""), c),
|
|
33
33
|
regionalFormat: c
|
|
34
34
|
}), $ = P(() => {
|
|
35
|
-
const l =
|
|
35
|
+
const l = L(F, c);
|
|
36
36
|
b(l || ""), o == null || o();
|
|
37
37
|
}, [
|
|
38
38
|
F,
|
|
@@ -41,19 +41,19 @@ const n = ({ children: e }) => {
|
|
|
41
41
|
b
|
|
42
42
|
]), v = P((l) => {
|
|
43
43
|
b(l);
|
|
44
|
-
const
|
|
45
|
-
if (
|
|
46
|
-
if (
|
|
44
|
+
const R = h(L(l, c)), Q = h(_);
|
|
45
|
+
if (R !== Q) {
|
|
46
|
+
if (R === void 0) {
|
|
47
47
|
s(null);
|
|
48
48
|
return;
|
|
49
49
|
}
|
|
50
50
|
s([
|
|
51
|
-
ue(
|
|
51
|
+
ue(S, R)
|
|
52
52
|
]);
|
|
53
53
|
}
|
|
54
54
|
}, [
|
|
55
55
|
s,
|
|
56
|
-
|
|
56
|
+
S,
|
|
57
57
|
c,
|
|
58
58
|
_,
|
|
59
59
|
b
|
|
@@ -75,14 +75,14 @@ const n = ({ children: e }) => {
|
|
|
75
75
|
renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, k, U)
|
|
76
76
|
});
|
|
77
77
|
}, f = ({ children: e, className: t }) => {
|
|
78
|
-
const { disabled: a, hasError: s } =
|
|
78
|
+
const { disabled: a, hasError: s } = N(), u = i(e, f.Currency), m = i(e, f.Value);
|
|
79
79
|
return /* @__PURE__ */ r.createElement(J, {
|
|
80
80
|
className: t,
|
|
81
81
|
isDisabled: a,
|
|
82
82
|
isInvalid: s
|
|
83
83
|
}, u, m);
|
|
84
84
|
}, me = ({ className: e }) => {
|
|
85
|
-
const { currency: t } = T(), { t: a } = W(), { prefixId: s } =
|
|
85
|
+
const { currency: t } = T(), { t: a } = W(), { prefixId: s } = D();
|
|
86
86
|
return t ? /* @__PURE__ */ r.createElement("span", {
|
|
87
87
|
id: s,
|
|
88
88
|
"aria-hidden": !1,
|
|
@@ -90,7 +90,7 @@ const n = ({ children: e }) => {
|
|
|
90
90
|
className: e
|
|
91
91
|
}, t.sign || t.code) : null;
|
|
92
92
|
}, pe = ({ className: e }) => {
|
|
93
|
-
const { id: t, placeholder: a, label: s } =
|
|
93
|
+
const { id: t, placeholder: a, label: s } = N(), { inputId: u, labelId: m, prefixId: I, ariaDescribedBy: y } = D(), o = j(null);
|
|
94
94
|
return X(() => {
|
|
95
95
|
var E;
|
|
96
96
|
(E = o.current) == null || E.focus({
|