@wix/form-elements 1.131.0 → 1.132.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-BpZGi0ra.js → appointment-rac-DMYXIOL3.js} +4 -4
- package/dist/component/{bookings-address-rac-IU28SJy5.js → bookings-address-rac-D6Ot6vm7.js} +1 -1
- package/dist/component/{bookings-email-rac-BkhnLFKC.js → bookings-email-rac-CkPflUxK.js} +1 -1
- package/dist/component/{bookings-first-name-rac-CwMmkICM.js → bookings-first-name-rac-BbDv4BQw.js} +1 -1
- package/dist/component/{bookings-header-rac-BtGNPfsP.js → bookings-header-rac-DJodBCf4.js} +1 -1
- package/dist/component/{bookings-last-name-rac-BmloqxX9.js → bookings-last-name-rac-C4PRt2XO.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-QHUQz0Do.js → bookings-login-bar-rac-MPcFtzUB.js} +1 -1
- package/dist/component/{bookings-phone-rac-CBKcGM_o.js → bookings-phone-rac-BnaiOxWV.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-DnazNxHe.js → bookings-rich-text-rac-Cwp6pBC_.js} +1 -1
- package/dist/component/{checkbox-field-rac-BSiNWGvO.js → checkbox-field-rac-BA-67OHo.js} +4 -4
- package/dist/component/{checkbox-group-field-headless-Bl_gIm5X.js → checkbox-group-field-headless-B20gxYEt.js} +3 -3
- package/dist/component/{checkbox-group-field-rac-_cpM6zrw.js → checkbox-group-field-rac--uloIFS6.js} +4 -4
- package/dist/component/{checkbox-group-rac-mZwI2tQ7.js → checkbox-group-rac-CYt86YIr.js} +1 -1
- package/dist/component/{checkbox-rac-rfO8Kefs.js → checkbox-rac-4FLDh24V.js} +1 -1
- package/dist/component/{contacts-address-rac-CHthblox.js → contacts-address-rac-BU2H0MEF.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-CuvwylkU.js → contacts-birthdate-rac-DXITbTMA.js} +1 -1
- package/dist/component/{contacts-company-rac-D546Lq1s.js → contacts-company-rac-D_BKjGc8.js} +1 -1
- package/dist/component/{contacts-email-rac-DwXQ_wWS.js → contacts-email-rac-CfYSUKJ3.js} +1 -1
- package/dist/component/{contacts-first-name-rac-C7bQDK9N.js → contacts-first-name-rac-DYZUgWsB.js} +1 -1
- package/dist/component/{contacts-last-name-rac-CQTkOyHY.js → contacts-last-name-rac-m-zqIpMB.js} +1 -1
- package/dist/component/{contacts-phone-rac-5_KC_NgQ.js → contacts-phone-rac-nJDsO_Y8.js} +1 -1
- package/dist/component/{contacts-position-rac-Y467YbGC.js → contacts-position-rac-CAGdJXSW.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-By3IlB_r.js → contacts-subscribe-rac-jwP65ngO.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-Cz7LLBFg.js → contacts-tax-id-rac-DUOQlZ3c.js} +1 -1
- package/dist/component/{date-availability-2VUtbyz1.js → date-availability-EbJKjV1U.js} +1 -1
- package/dist/component/{date-input-field-rac-C0YZZ7d1.js → date-input-field-rac-CZRcW-0J.js} +6 -6
- package/dist/component/{date-input-rac-BIlIrfkK.js → date-input-rac-CasoMjfj.js} +1 -1
- package/dist/component/{date-picker-field-rac-D96wqSQ2.js → date-picker-field-rac-V9MRWrj-.js} +5 -5
- package/dist/component/{date-picker-rac-CgVftEAJ.js → date-picker-rac-Cu5wTh1_.js} +1 -1
- package/dist/component/{date-time-input-field-rac-C4uP9wLp.js → date-time-input-field-rac-YGqLIle1.js} +6 -6
- package/dist/component/{date-time-input-rac-BgHUANTP.js → date-time-input-rac-DCEyREJI.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-DjiWZ293.js → dext-checkbox-group-rac-DLB5mAwB.js} +2 -2
- package/dist/component/{dext-checkbox-rac-BmUjJHD_.js → dext-checkbox-rac-DFV7ixAO.js} +1 -1
- package/dist/component/{dext-date-picker-rac-BlrV70R7.js → dext-date-picker-rac-CEL2X1ID.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-JkFxwGgu.js → dext-date-time-input-rac-yLdCLDbQ.js} +1 -1
- package/dist/component/{dext-dropdown-rac-Xbczi-Z0.js → dext-dropdown-rac-ti_P0L_X.js} +1 -1
- package/dist/component/{dext-email-rac-DkMdn4ps.js → dext-email-rac-CnvdVz-J.js} +1 -1
- package/dist/component/{dext-number-input-rac-CNMiNuNi.js → dext-number-input-rac-CmGt691Y.js} +1 -1
- package/dist/component/{dext-phone-rac-C8c-RKQv.js → dext-phone-rac-JEZkz4gZ.js} +1 -1
- package/dist/component/{dext-radio-group-rac-BAJJSIKu.js → dext-radio-group-rac-CUk6wUPl.js} +2 -2
- package/dist/component/{dext-rating-input-rac-BdnfHwl1.js → dext-rating-input-rac-Q1J5oqhZ.js} +1 -1
- package/dist/component/{dext-tags-rac-BjsYYa9X.js → dext-tags-rac-DU9FLeGu.js} +2 -2
- package/dist/component/{dext-text-area-rac-Aatrs0NK.js → dext-text-area-rac-D1FOCK6O.js} +1 -1
- package/dist/component/{dext-text-input-rac-DgUfidRi.js → dext-text-input-rac-Dzb5lQjK.js} +1 -1
- package/dist/component/{dext-url-input-rac-DQbUHNX7.js → dext-url-input-rac-cRLFpiNR.js} +1 -1
- package/dist/component/{donation-rac-BEbw90qi.js → donation-rac-CV-PnK1D.js} +5 -5
- package/dist/component/{dropdown-field-headless-Cg-_dZP4.js → dropdown-field-headless-D1e2XbNj.js} +5 -5
- package/dist/component/{dropdown-field-rac-EjA-abC8.js → dropdown-field-rac-DkeVkP9c.js} +4 -4
- package/dist/component/{dropdown-rac-zDidZ7dx.js → dropdown-rac-ChlsWwyp.js} +1 -1
- package/dist/component/{ecom-address-rac-Df9TvxEv.js → ecom-address-rac-DvHJ4Ym-.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-B6ztLCEK.js → ecom-subscription-checkbox-rac-D3LX7FVx.js} +2 -2
- package/dist/component/{email-input-field-rac-CpPKmeC5.js → email-input-field-rac-B8OCp4L9.js} +3 -3
- package/dist/component/{events-repeater-rac-C5VWlWG-.js → events-repeater-rac-BO0-VcV3.js} +4 -4
- package/dist/component/{events-rsvp-rac-CLTyr98o.js → events-rsvp-rac-CnULPDrG.js} +3 -3
- package/dist/component/{field-error-headless-Dgx4BHo5.js → field-error-headless-DwlihJqC.js} +1 -1
- package/dist/component/{field-label-headless-CsqtNbNm.js → field-label-headless-C_cMy8vP.js} +1 -1
- package/dist/component/{file-upload-rac-1SX9-51k.js → file-upload-rac-CjBKgUCk.js} +4 -4
- package/dist/component/{fixed-payment-rac-C_zIu17t.js → fixed-payment-rac-ameH1syZ.js} +3 -3
- package/dist/component/{form-BoHpaLjl.js → form-GcotNutn.js} +69 -69
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-DBw1TpEG.js → header-field-rac-D2fpKxIz.js} +2 -2
- package/dist/component/{header-rac-DAnTKW4z.js → header-rac-DdWMo2xZ.js} +1 -1
- package/dist/component/{image-choice-rac-CqnAnKbc.js → image-choice-rac-CBaUQX8m.js} +4 -4
- package/dist/component/{index-Rqkz8Lrx.js → index-CAktfVsx.js} +2 -2
- package/dist/component/{index-g0wVTJHp.js → index-nOv_Pf2O.js} +4 -4
- package/dist/component/{isObjectLike-Dt08IFKQ.js → isObjectLike-t9SwprFt.js} +1 -1
- package/dist/component/{multiline-address-field-rac-1zdTMnWs.js → multiline-address-field-rac-DpMPlfjM.js} +7 -7
- package/dist/component/{multiline-address-rac-DI_2qWao.js → multiline-address-rac-D1XtQuAy.js} +1 -1
- package/dist/component/{number-input-field-rac-1EfxOkZP.js → number-input-field-rac-CFFU1JrK.js} +4 -4
- package/dist/component/{number-input-rac-AG8ecaT6.js → number-input-rac-BDs3ngbf.js} +1 -1
- package/dist/component/{password-rac-CGu6cCp2.js → password-rac-jRXGfQn_.js} +4 -4
- package/dist/component/{payment-input-rac-CRMqRcWZ.js → payment-input-rac-BAkJqSyU.js} +4 -4
- package/dist/component/{phone-input-field-rac-Bpk1kirr.js → phone-input-field-rac-D_1jDl7O.js} +60 -60
- package/dist/component/{phone-rac-w7Kiv6ru.js → phone-rac-DyinFMYS.js} +1 -1
- package/dist/component/{product-list-rac-WIshqJ3F.js → product-list-rac-BkUvhZMi.js} +4 -4
- package/dist/component/{quiz-radio-group-rac-BkB4fikl.js → quiz-radio-group-rac-Cha9jkTD.js} +1 -1
- package/dist/component/{radio-button-module-classes-D78goUwl.js → radio-button-module-classes-WQaDTnal.js} +3 -3
- package/dist/component/{radio-group-field-rac-Cx2nvCDW.js → radio-group-field-rac-Cr35UXlg.js} +4 -4
- package/dist/component/{radio-group-rac-46JW3dAH.js → radio-group-rac-BGRYJcwQ.js} +1 -1
- package/dist/component/{rating-input-field-rac-D05VBUGw.js → rating-input-field-rac-C_X51vxl.js} +4 -4
- package/dist/component/{rating-input-rac-DtnpPnnU.js → rating-input-rac-B-usRVpy.js} +1 -1
- package/dist/component/{rich-content-rac.module-W8U6Eupl.js → rich-content-rac.module-Bed3DsK7.js} +1 -1
- package/dist/component/{rich-text-field-rac-BKMs8NOQ.js → rich-text-field-rac-SHHiInVy.js} +2 -2
- package/dist/component/{rich-text-rac-BJ4Jii81.js → rich-text-rac-CND63R3E.js} +1 -1
- package/dist/component/{service-dropdown-rac-CEDqWqhg.js → service-dropdown-rac-BdfxJ1Zq.js} +5 -5
- package/dist/component/{services-multi-choice-rac-9qwSAT5T.js → services-multi-choice-rac-D6BdQ2xE.js} +5 -5
- package/dist/component/{signature-rac-D6BMpTFh.js → signature-rac-xuYTsTUB.js} +4 -4
- package/dist/component/{submit-button-rac-Bj3iEONs.js → submit-button-rac-7YwnpPtu.js} +2 -2
- package/dist/component/{tags-field-rac-DMD53JR4.js → tags-field-rac-ChzPiPvQ.js} +5 -5
- package/dist/component/{tags-rac-BNL4fHg-.js → tags-rac-BScWp3da.js} +1 -1
- package/dist/component/{text-area-field-rac-CHJzdEBE.js → text-area-field-rac-CDEJUPgV.js} +4 -4
- package/dist/component/{text-area-rac-CgoEe9Qh.js → text-area-rac-CwiF24AW.js} +1 -1
- package/dist/component/{text-input-field-rac-DewYQNfK.js → text-input-field-rac-vg2b_7it.js} +3 -3
- package/dist/component/{text-input-headless-OayaIOMS.js → text-input-headless-BdD-dAx2.js} +3 -3
- package/dist/component/{text-input-rac-4SxpOILY.js → text-input-rac-yX6rdvri.js} +1 -1
- package/dist/component/{time-input-rac-CivcOPuU.js → time-input-rac-B_kYmOwq.js} +4 -4
- package/dist/component/{url-input-field-rac-BK3WIP-A.js → url-input-field-rac-NJqyqxLi.js} +4 -4
- package/dist/component/{url-input-rac-Dgn9n6w1.js → url-input-rac-BqIKc9nY.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-BZu-Fese.js → use-dropdown-option-class-name-DFW55r3E.js} +2 -2
- package/dist/component/{use-dropdown-trigger-class-name-Dpk8_xn2.js → use-dropdown-trigger-class-name-Df-nqoeG.js} +2 -2
- package/dist/component/{use-element-state-class-name-Cby7DA2T.js → use-element-state-class-name-D008EeZn.js} +1 -1
- package/dist/component/{use-hoverable-input-class-name-CKBvA8Gx.js → use-hoverable-input-class-name-CVtF0FGy.js} +2 -2
- package/dist/component/{use-service-options-base-Px-Ey93X.js → use-service-options-base-B64QpFwc.js} +1 -1
- package/dist/component/use-text-input-class-name-BSDU7QEO.js +6 -0
- package/package.json +2 -2
- package/dist/component/use-text-input-class-name-D30YesHa.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 { bh as u, aV as i, aU as C, aX as R, au as T, ac as d } from "./form-
|
|
4
|
-
import { u as g, R as p, s as h, T as S } from "./rich-content-rac.module-
|
|
3
|
+
import { bh as u, aV as i, aU as C, aX as R, au as T, ac as d } from "./form-GcotNutn.js";
|
|
4
|
+
import { u as g, R as p, s as h, T as S } from "./rich-content-rac.module-Bed3DsK7.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 H, 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 { bh as b, be as x, bj as P, ba as B, I as q, U, w, y as V, v as j, p as z, x as K, f as g } from "./form-
|
|
4
|
+
import { bh as b, be as x, bj as P, ba as B, I as q, U, w, y as V, v as j, p as z, x as K, f as g } from "./form-GcotNutn.js";
|
|
5
5
|
import { CheckboxGroup as Q, CheckboxField as Y, CheckboxButton as $ } 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-C_cMy8vP.js";
|
|
8
|
+
import { D as X, E as Z } from "./field-error-headless-DwlihJqC.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-BIBNQEOK.js";
|
|
12
|
-
import { u as oe } from "./use-element-state-class-name-
|
|
12
|
+
import { u as oe } from "./use-element-state-class-name-D008EeZn.js";
|
|
13
13
|
const o = ({ children: t, className: s }) => {
|
|
14
14
|
const { id: n, value: a, onChange: i, disabled: l, readOnly: r, required: c, onBlur: u, onFocus: p, hasError: C, FieldLayout: L } = b(), { inputId: f, labelId: _, ariaDescribedBy: R } = x(), S = m(t, o.Label), A = m(t, o.Options), D = m(t, o.Description), h = m(t, o.Error), M = H(() => a || [], [
|
|
15
15
|
a
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b0 as n } from "./form-
|
|
2
|
-
import { A as N, a as S, C as p, av as g, aM as q, aN as D, b2 as L } from "./form-
|
|
1
|
+
import { b0 as n } from "./form-GcotNutn.js";
|
|
2
|
+
import { A as N, a as S, C as p, av as g, aM as q, aN as D, b2 as L } from "./form-GcotNutn.js";
|
|
3
3
|
const l = (e = !1) => ({
|
|
4
4
|
country: {
|
|
5
5
|
required: e
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { e as R, aC as _, aR as de, aD as O, ai as Ge, B as Be, aw as qe, ap as He, ao as I, ax as Ee, aG as re, aA as Fe, c as B, aq as M, b1 as Te, as as je, ar as he, at as q } from "./form-
|
|
2
|
-
import { aY as Mn } from "./form-
|
|
1
|
+
import { e as R, aC as _, aR as de, aD as O, ai as Ge, B as Be, aw as qe, ap as He, ao as I, ax as Ee, aG as re, aA as Fe, c as B, aq as M, b1 as Te, as as je, ar as he, at as q } from "./form-GcotNutn.js";
|
|
2
|
+
import { aY as Mn } from "./form-GcotNutn.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-EbJKjV1U.js";
|
|
10
|
+
import { a as Sn } from "./date-availability-EbJKjV1U.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 { bc as ft, d as yt, b7 as Pt, b9 as Ct, aM as Tt, aN as wt, aF as Mt, aL as W, F as K, br as Pe, b0 as lt, bh as P, be as T, bj as ae, bd as It, aR as qt, C as Oe, a_ as xt, b2 as Bt, bo as kt, bi as $t, bn as Ut, b5 as Vt, aW as Wt, b4 as Kt, bk as Yt, al as Ht, I as z, U as Q, K as ge, v as Z, p as ee } from "./form-
|
|
5
|
+
import { bc as ft, d as yt, b7 as Pt, b9 as Ct, aM as Tt, aN as wt, aF as Mt, aL as W, F as K, br as Pe, b0 as lt, bh as P, be as T, bj as ae, bd as It, aR as qt, C as Oe, a_ as xt, b2 as Bt, bo as kt, bi as $t, bn as Ut, b5 as Vt, aW as Wt, b4 as Kt, bk as Yt, al as Ht, I as z, U as Q, K as ge, v as Z, p as ee } from "./form-GcotNutn.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, u as Gt } from "./use-dropdown-trigger-class-name-
|
|
8
|
+
import { a as Xt, u as Gt } from "./use-dropdown-trigger-class-name-Df-nqoeG.js";
|
|
9
9
|
import { TextField as fe, Input as le, ComboBoxStateContext as We, ComboBox as he, Popover as De, ListBox as Te, ListBoxItem as Se, 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 zt, c as Qt, a as Zt, r as gt } from "./isObjectLike-
|
|
13
|
-
import { V as en, u as tn } from "./use-dropdown-option-class-name-
|
|
10
|
+
import { D as ie, E as ce } from "./field-error-headless-DwlihJqC.js";
|
|
11
|
+
import { L as de } from "./field-label-headless-C_cMy8vP.js";
|
|
12
|
+
import { e as zt, c as Qt, a as Zt, r as gt } from "./isObjectLike-t9SwprFt.js";
|
|
13
|
+
import { V as en, u as tn } from "./use-dropdown-option-class-name-DFW55r3E.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-BIBNQEOK.js";
|
|
19
|
-
import { u as rn } from "./use-text-input-class-name-
|
|
19
|
+
import { u as rn } from "./use-text-input-class-name-BSDU7QEO.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-1EfxOkZP.js → number-input-field-rac-CFFU1JrK.js}
RENAMED
|
@@ -2,15 +2,15 @@ import { RicosViewer as P } from "@wix/ricos/viewer";
|
|
|
2
2
|
import i from "classnames";
|
|
3
3
|
import r, { useState as U, useCallback as j, useEffect as Q, useRef as $ } from "react";
|
|
4
4
|
import { NumberField as z, Input as G } from "react-aria-components";
|
|
5
|
-
import { bh as _, be as S, br as H, bj as J, I as K, U as W, v as X, p as Y } from "./form-
|
|
5
|
+
import { bh as _, be as S, br as H, bj as J, I as K, U as W, v as X, p as Y } from "./form-GcotNutn.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-DwlihJqC.js";
|
|
8
|
+
import { L as ee } from "./field-label-headless-C_cMy8vP.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-BIBNQEOK.js";
|
|
13
|
-
import { u as se } from "./use-text-input-class-name-
|
|
13
|
+
import { u as se } from "./use-text-input-class-name-BSDU7QEO.js";
|
|
14
14
|
const e = ({ children: t }) => {
|
|
15
15
|
var F, L, R;
|
|
16
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 = (L = n == null ? void 0 : n.number) == null ? void 0 : L.maximum, g = (R = n == null ? void 0 : n.number) == null ? void 0 : R.minimum, h = O(s), [x, I] = U(h), T = ne(E), V = c(t, e.Label), q = c(t, e.Input), M = c(t, e.Description), k = c(t, e.Error), B = j((N) => {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import e, { useState as N, useRef as S } from "react";
|
|
2
2
|
import { RicosViewer as x } from "@wix/ricos/viewer";
|
|
3
3
|
import d from "classnames";
|
|
4
|
-
import { bh as E, be as I, bj as O, br as A, I as B, U as v, v as V, p as P } from "./form-
|
|
4
|
+
import { bh as E, be as I, bj as O, br as A, I as B, U as v, v as V, p as P } from "./form-GcotNutn.js";
|
|
5
5
|
import { TextField as M, Group as k, Input as q, 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 H } from "./field-error-headless-
|
|
8
|
-
import { L as W } from "./field-label-headless-
|
|
7
|
+
import { D as j, E as H } from "./field-error-headless-DwlihJqC.js";
|
|
8
|
+
import { L as W } from "./field-label-headless-C_cMy8vP.js";
|
|
9
9
|
import { E as Z } from "./error-icon-hZxQ6DEy.js";
|
|
10
10
|
import { H as G } from "./custom-focus-class-_483Pkwp.js";
|
|
11
11
|
import { s as p } from "./field-rac.module-BIBNQEOK.js";
|
|
12
|
-
import { u as Q } from "./use-text-input-class-name-
|
|
12
|
+
import { u as Q } from "./use-text-input-class-name-BSDU7QEO.js";
|
|
13
13
|
const t = ({ children: r, className: o }) => {
|
|
14
14
|
const { id: l, value: s, onChange: c, disabled: n, readOnly: m, required: a, hasError: i, onBlur: f, onFocus: C, FieldLayout: _ } = E(), { labelId: y } = I(), [R, D] = N(!1), F = u(r, t.Label), L = u(r, t.Control), T = u(r, t.Description), h = u(r, t.Error);
|
|
15
15
|
return /* @__PURE__ */ e.createElement(_, {
|
|
@@ -2,16 +2,16 @@ import r, { useCallback as P, useRef as Q } 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 { bh as R, be as D, b9 as T, br as W, bj as X, I as Y, U as Z, v as ee, p as re } from "./form-
|
|
5
|
+
import { bh as R, be as D, b9 as T, br as W, bj as X, I as Y, U as Z, v as ee, p as re } from "./form-GcotNutn.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-
|
|
7
|
+
import { D as te, E as ne } from "./field-error-headless-DwlihJqC.js";
|
|
8
|
+
import { L as ae } from "./field-label-headless-C_cMy8vP.js";
|
|
9
9
|
import { f as N, 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-BIBNQEOK.js";
|
|
14
|
-
import { u as ie } from "./use-text-input-class-name-
|
|
14
|
+
import { u as ie } from "./use-text-input-class-name-BSDU7QEO.js";
|
|
15
15
|
function ue(e, t) {
|
|
16
16
|
return {
|
|
17
17
|
productId: e.id,
|
package/dist/component/{phone-input-field-rac-Bpk1kirr.js → phone-input-field-rac-D_1jDl7O.js}
RENAMED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { RicosViewer as Ce } from "@wix/ricos/viewer";
|
|
2
2
|
import g from "classnames";
|
|
3
|
-
import t, { useMemo as
|
|
4
|
-
import { b0 as ye, br as
|
|
3
|
+
import t, { useMemo as T, useState as A, useRef as x, useEffect as k, useCallback as Z, createContext as ee, useContext as G, useId as de } from "react";
|
|
4
|
+
import { b0 as ye, br as F, b9 as te, bq as Ee, bh as D, be as ne, bj as fe, I as he, U as ge, H as be, K as Oe, v as _e, p as Ne } from "./form-GcotNutn.js";
|
|
5
5
|
import { UNSAFE_PortalProvider as Se } from "react-aria";
|
|
6
|
-
import { Dialog as oe, OverlayTriggerStateContext as Le, ModalOverlay as Ie, Modal as ve, SearchField as Pe, Group as H, ListBoxItem as
|
|
6
|
+
import { Dialog as oe, OverlayTriggerStateContext as Le, ModalOverlay as Ie, Modal as ve, SearchField as Pe, Group as H, ListBoxItem as xe, DialogTrigger as Fe, Select as De, Input as re, Autocomplete as Be } from "react-aria-components";
|
|
7
7
|
import { f as h, a as L } from "./find-child-C60k4CxG.js";
|
|
8
|
-
import { D as
|
|
9
|
-
import { L as
|
|
10
|
-
import { N as
|
|
11
|
-
import { u as
|
|
12
|
-
import { a as
|
|
13
|
-
import { V as
|
|
8
|
+
import { D as Re, E as we } from "./field-error-headless-DwlihJqC.js";
|
|
9
|
+
import { L as qe } from "./field-label-headless-C_cMy8vP.js";
|
|
10
|
+
import { N as Me, S as Te } from "./non-modal-popover-D-u13tmp.js";
|
|
11
|
+
import { u as Ae } from "./use-invoke-callback-UH73A_J3.js";
|
|
12
|
+
import { a as $e, u as ke } from "./use-dropdown-trigger-class-name-Df-nqoeG.js";
|
|
13
|
+
import { V as Ue, u as Ve } from "./use-dropdown-option-class-name-DFW55r3E.js";
|
|
14
14
|
import ae, { AsYouType as He, isValidPhoneNumber as Ge, isSupportedCountry as Ke } from "libphonenumber-js";
|
|
15
15
|
import "libphonenumber-js/metadata.min.json";
|
|
16
16
|
import { C as Q } from "./calling-country-codes-PyWuOTmF.js";
|
|
@@ -18,7 +18,7 @@ import { C as Ye } from "./chevron-down-icon-CcpVm6B-.js";
|
|
|
18
18
|
import { E as je } from "./error-icon-hZxQ6DEy.js";
|
|
19
19
|
import { H as W } from "./custom-focus-class-_483Pkwp.js";
|
|
20
20
|
import { s as O } from "./field-rac.module-BIBNQEOK.js";
|
|
21
|
-
import { u as ze } from "./use-text-input-class-name-
|
|
21
|
+
import { u as ze } from "./use-text-input-class-name-BSDU7QEO.js";
|
|
22
22
|
function J(e) {
|
|
23
23
|
const n = e ? ae(e) : void 0, r = n == null ? void 0 : n.country;
|
|
24
24
|
if (r)
|
|
@@ -30,7 +30,7 @@ function K(e) {
|
|
|
30
30
|
var n;
|
|
31
31
|
return e && ((n = ye.getCountryByKey(e)) == null ? void 0 : n.dialCode);
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function U(e) {
|
|
34
34
|
return e === null ? null : e.replace(/[^0-9+]/g, "") || e;
|
|
35
35
|
}
|
|
36
36
|
function X(e, n) {
|
|
@@ -44,8 +44,8 @@ function X(e, n) {
|
|
|
44
44
|
return e;
|
|
45
45
|
}
|
|
46
46
|
function Ze() {
|
|
47
|
-
const { t: e } =
|
|
48
|
-
return
|
|
47
|
+
const { t: e } = F(), { language: n } = te();
|
|
48
|
+
return T(() => Object.keys(Q).reduce((o, a) => {
|
|
49
49
|
const c = Q[a], l = K(c), i = e(`locale-dataset.countries.${c.toUpperCase()}`);
|
|
50
50
|
return l && Ke(a) && o.push({
|
|
51
51
|
countryName: i,
|
|
@@ -63,30 +63,30 @@ function Qe(e, n) {
|
|
|
63
63
|
}
|
|
64
64
|
function We(e, n) {
|
|
65
65
|
const { countryName: r, callingCode: o, shortCountryCode: a } = e;
|
|
66
|
-
return !!(
|
|
66
|
+
return !!(V(r, n) || V(o, n) || V(a, n));
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function V(e, n) {
|
|
69
69
|
return e.toLowerCase().includes(n.toLowerCase());
|
|
70
70
|
}
|
|
71
71
|
function Je({ value: e, defaultCountryCode: n, allowedCountryCodes: r, onChange: o }) {
|
|
72
|
-
const [a, c] =
|
|
72
|
+
const [a, c] = A(e || ""), l = x(U(e ?? null) ?? ""), [i, u] = A(n);
|
|
73
73
|
Ee(() => {
|
|
74
74
|
c(""), l.current = "", u(n), o("");
|
|
75
75
|
});
|
|
76
|
-
const m =
|
|
76
|
+
const m = T(() => J(a), [
|
|
77
77
|
a
|
|
78
78
|
]);
|
|
79
|
-
|
|
79
|
+
k(() => {
|
|
80
80
|
const p = e ?? "";
|
|
81
81
|
p !== l.current && (c(p), l.current = p);
|
|
82
82
|
}, [
|
|
83
83
|
e
|
|
84
|
-
]),
|
|
84
|
+
]), k(() => {
|
|
85
85
|
n && !i && u(n);
|
|
86
86
|
}, [
|
|
87
87
|
n,
|
|
88
88
|
i
|
|
89
|
-
]),
|
|
89
|
+
]), k(() => {
|
|
90
90
|
u(n ?? m);
|
|
91
91
|
}, [
|
|
92
92
|
m,
|
|
@@ -99,7 +99,7 @@ function Je({ value: e, defaultCountryCode: n, allowedCountryCodes: r, onChange:
|
|
|
99
99
|
}
|
|
100
100
|
const f = J(p);
|
|
101
101
|
u((d) => {
|
|
102
|
-
const S = f || d || ((r == null ? void 0 : r.length) === 1 ? r[0] : void 0), N =
|
|
102
|
+
const S = f || d || ((r == null ? void 0 : r.length) === 1 ? r[0] : void 0), N = U(X(p, S));
|
|
103
103
|
return l.current = N ?? "", o(N), f || d;
|
|
104
104
|
});
|
|
105
105
|
}, [
|
|
@@ -107,7 +107,7 @@ function Je({ value: e, defaultCountryCode: n, allowedCountryCodes: r, onChange:
|
|
|
107
107
|
o
|
|
108
108
|
]), E = Z((p) => {
|
|
109
109
|
u(p), c((f) => {
|
|
110
|
-
const d =
|
|
110
|
+
const d = U(X(f, p));
|
|
111
111
|
return l.current = d ?? "", o(d), f;
|
|
112
112
|
});
|
|
113
113
|
}, [
|
|
@@ -146,17 +146,17 @@ const se = /* @__PURE__ */ ee(null), _ = () => {
|
|
|
146
146
|
});
|
|
147
147
|
}, s = ({ children: e }) => {
|
|
148
148
|
var v, P;
|
|
149
|
-
const { id: n, value: r, onChange: o, FieldLayout: a, defaultCountry: c, validation: l } =
|
|
149
|
+
const { id: n, value: r, onChange: o, FieldLayout: a, defaultCountry: c, validation: l } = D(), [i, u] = A(null), m = (P = (v = l == null ? void 0 : l.string) == null ? void 0 : v.phoneOptions) == null ? void 0 : P.allowedCountryCodes, C = Ze(), E = T(() => Qe(C, m), [
|
|
150
150
|
C,
|
|
151
151
|
m
|
|
152
|
-
]), p =
|
|
152
|
+
]), p = T(() => E.map((M) => M.shortCountryCode), [
|
|
153
153
|
E
|
|
154
154
|
]), { currentValue: f, selectedCountryCode: d, handlePhoneChange: S, handleCountryCodeChange: N } = Je({
|
|
155
155
|
value: r,
|
|
156
156
|
defaultCountryCode: c,
|
|
157
157
|
allowedCountryCodes: p,
|
|
158
158
|
onChange: o
|
|
159
|
-
}),
|
|
159
|
+
}), B = h(e, s.Label), R = h(e, s.Control), w = h(e, s.Description), q = h(e, s.Error), I = {
|
|
160
160
|
currentValue: f,
|
|
161
161
|
selectedCountryCode: d,
|
|
162
162
|
handlePhoneChange: S,
|
|
@@ -169,18 +169,18 @@ const se = /* @__PURE__ */ ee(null), _ = () => {
|
|
|
169
169
|
value: I
|
|
170
170
|
}, /* @__PURE__ */ t.createElement(a, {
|
|
171
171
|
fieldId: n,
|
|
172
|
-
renderLabel: () =>
|
|
172
|
+
renderLabel: () => B,
|
|
173
173
|
renderInput: () => /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("div", {
|
|
174
174
|
ref: u,
|
|
175
175
|
style: {
|
|
176
176
|
display: "contents"
|
|
177
177
|
}
|
|
178
|
-
}),
|
|
179
|
-
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null,
|
|
178
|
+
}), R),
|
|
179
|
+
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, q, w)
|
|
180
180
|
}));
|
|
181
181
|
}, z = ({ children: e, className: n }) => {
|
|
182
|
-
const { labelId: r } = ne(), { hasError: o, disabled: a, readOnly: c } =
|
|
183
|
-
return /* @__PURE__ */ t.createElement(
|
|
182
|
+
const { labelId: r } = ne(), { hasError: o, disabled: a, readOnly: c } = D(), { t: l } = F(), { selectedCountryCode: i, countries: u } = _(), m = de(), C = i ? u.find((d) => d.shortCountryCode === i) : void 0, E = C && K(C.longCountryCode) || "", p = l("field.phone.country-code.aria-label"), f = C ? `${p}, ${C.countryName}, ${E}` : p;
|
|
183
|
+
return /* @__PURE__ */ t.createElement(Te, {
|
|
184
184
|
isDisabled: a || c,
|
|
185
185
|
id: m,
|
|
186
186
|
"aria-label": f,
|
|
@@ -211,7 +211,7 @@ const b = ({ children: e, className: n, "aria-label": r, placement: o, offset: a
|
|
|
211
211
|
}, e);
|
|
212
212
|
return /* @__PURE__ */ t.createElement(Se, {
|
|
213
213
|
getContainer: () => C
|
|
214
|
-
}, /* @__PURE__ */ t.createElement(
|
|
214
|
+
}, /* @__PURE__ */ t.createElement(Me, {
|
|
215
215
|
ref: i,
|
|
216
216
|
triggerRef: l,
|
|
217
217
|
className: n,
|
|
@@ -244,7 +244,7 @@ const b = ({ children: e, className: n, "aria-label": r, placement: o, offset: a
|
|
|
244
244
|
}
|
|
245
245
|
}, e)))));
|
|
246
246
|
}, le = ({ children: e, listBoxProps: n, isForcedOpen: r }) => {
|
|
247
|
-
const { countries: o } = _(), a = h(e, b.Option), c = h(e, b.Search), l = h(e, b.EmptyState), i = /* @__PURE__ */ t.createElement(
|
|
247
|
+
const { countries: o } = _(), a = h(e, b.Option), c = h(e, b.Search), l = h(e, b.EmptyState), i = /* @__PURE__ */ t.createElement(Ue, {
|
|
248
248
|
isForcedOpen: r === !0,
|
|
249
249
|
...n,
|
|
250
250
|
renderEmptyState: l ? () => l : void 0
|
|
@@ -258,7 +258,7 @@ const b = ({ children: e, className: n, "aria-label": r, placement: o, offset: a
|
|
|
258
258
|
longCountryCode: u.longCountryCode
|
|
259
259
|
});
|
|
260
260
|
}));
|
|
261
|
-
return c ? /* @__PURE__ */ t.createElement(
|
|
261
|
+
return c ? /* @__PURE__ */ t.createElement(Be, {
|
|
262
262
|
filter: (u, m, C) => {
|
|
263
263
|
const E = o.find((p) => p.shortCountryCode === C.key);
|
|
264
264
|
return !!E && We(E, m);
|
|
@@ -287,14 +287,14 @@ const ot = ({ children: e, className: n }) => /* @__PURE__ */ t.createElement("d
|
|
|
287
287
|
className: n
|
|
288
288
|
}, e);
|
|
289
289
|
b.EmptyState = ot;
|
|
290
|
-
const
|
|
290
|
+
const $ = ({ children: e, className: n, ...r }) => {
|
|
291
291
|
const { countryCode: o, dialingCode: a, countryName: c, longCountryCode: l } = r, i = {
|
|
292
292
|
countryCode: o,
|
|
293
293
|
dialingCode: a,
|
|
294
294
|
countryName: c,
|
|
295
295
|
longCountryCode: l
|
|
296
296
|
}, u = e || /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement(ie, null), /* @__PURE__ */ t.createElement(me, null), /* @__PURE__ */ t.createElement(pe, null));
|
|
297
|
-
return /* @__PURE__ */ t.createElement(
|
|
297
|
+
return /* @__PURE__ */ t.createElement(xe, {
|
|
298
298
|
className: n,
|
|
299
299
|
id: o,
|
|
300
300
|
textValue: `${c} ${a}`
|
|
@@ -318,12 +318,12 @@ const k = ({ children: e, className: n, ...r }) => {
|
|
|
318
318
|
className: e
|
|
319
319
|
}, n);
|
|
320
320
|
};
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
b.Option =
|
|
321
|
+
$.Flag = ie;
|
|
322
|
+
$.Name = me;
|
|
323
|
+
$.Code = pe;
|
|
324
|
+
b.Option = $;
|
|
325
325
|
const rt = ({ className: e }) => {
|
|
326
|
-
const { t: n } =
|
|
326
|
+
const { t: n } = F(), { inputId: r, ariaDescribedBy: o } = ne(), { id: a, placeholder: c, disabled: l, readOnly: i, required: u, label: m, hasError: C } = D(), { currentValue: E, handlePhoneChange: p } = _(), f = x(null);
|
|
327
327
|
return fe(() => {
|
|
328
328
|
var d;
|
|
329
329
|
(d = f.current) == null || d.focus({
|
|
@@ -345,8 +345,8 @@ const rt = ({ className: e }) => {
|
|
|
345
345
|
className: e
|
|
346
346
|
});
|
|
347
347
|
}, at = ({ children: e, ...n }) => {
|
|
348
|
-
const r = n, { isForcedOpen: o } = r, { disabled: a, readOnly: c, required: l, hasError: i } =
|
|
349
|
-
return /* @__PURE__ */ t.createElement(
|
|
348
|
+
const r = n, { isForcedOpen: o } = r, { disabled: a, readOnly: c, required: l, hasError: i } = D(), [u, m] = A(!1), { t: C } = F(), { selectedCountryCode: E, handleCountryCodeChange: p } = _(), f = o || u && !a && !c;
|
|
349
|
+
return /* @__PURE__ */ t.createElement(De, {
|
|
350
350
|
"aria-label": C("field.phone.country-code.aria-label"),
|
|
351
351
|
value: E ?? null,
|
|
352
352
|
onChange: (d) => p(d),
|
|
@@ -363,49 +363,49 @@ const rt = ({ className: e }) => {
|
|
|
363
363
|
}));
|
|
364
364
|
}, st = ({ children: e, ...n }) => {
|
|
365
365
|
const r = n;
|
|
366
|
-
return /* @__PURE__ */ t.createElement(
|
|
366
|
+
return /* @__PURE__ */ t.createElement(Fe, null, h(e, s.CountryButton), L(h(e, s.CountryOptions.Modal), r));
|
|
367
367
|
}, ct = ({ children: e, className: n }) => {
|
|
368
|
-
const r =
|
|
368
|
+
const r = x(null), o = x(null), a = x(!1), { id: c, disabled: l, hasError: i, showFlag: u, onFocus: m, onBlur: C } = D(), E = Ae(C), { countries: p } = _(), f = h(e, s.CountryDrawer), d = h(e, s.CountryPopover), S = h(e, s.PhoneNumber), N = p.length > 1, B = $e(c) && !!d && N, R = typeof n == "function" ? ({ isHovered: I }) => n({
|
|
369
369
|
hasCountryOptions: N,
|
|
370
370
|
isHovered: I
|
|
371
371
|
}) : n, w = {
|
|
372
372
|
triggerRef: r,
|
|
373
373
|
optionsRef: o,
|
|
374
|
-
isForcedOpen:
|
|
375
|
-
},
|
|
374
|
+
isForcedOpen: B
|
|
375
|
+
}, q = {
|
|
376
376
|
onFocus: () => {
|
|
377
377
|
a.current || (a.current = !0, m == null || m());
|
|
378
378
|
},
|
|
379
379
|
onBlur: (I) => {
|
|
380
|
-
var P,
|
|
380
|
+
var P, M;
|
|
381
381
|
const v = I.relatedTarget;
|
|
382
|
-
!((P = r.current) != null && P.contains(v)) && !((
|
|
382
|
+
!((P = r.current) != null && P.contains(v)) && !((M = o.current) != null && M.contains(v)) && (a.current = !1, E());
|
|
383
383
|
}
|
|
384
384
|
};
|
|
385
385
|
return p.length === 1 ? /* @__PURE__ */ t.createElement(H, {
|
|
386
386
|
ref: r,
|
|
387
|
-
className:
|
|
387
|
+
className: R,
|
|
388
388
|
isDisabled: l,
|
|
389
389
|
isInvalid: i,
|
|
390
|
-
...
|
|
390
|
+
...q
|
|
391
391
|
}, u && /* @__PURE__ */ t.createElement(j, {
|
|
392
392
|
longCountryCode: p[0].longCountryCode
|
|
393
393
|
}), S) : /* @__PURE__ */ t.createElement(H, {
|
|
394
394
|
ref: r,
|
|
395
|
-
className:
|
|
395
|
+
className: R,
|
|
396
396
|
isDisabled: l,
|
|
397
397
|
isInvalid: i,
|
|
398
|
-
...
|
|
399
|
-
}, !
|
|
398
|
+
...q
|
|
399
|
+
}, !B && L(f, w), L(d, w), S);
|
|
400
400
|
};
|
|
401
|
-
s.Label =
|
|
401
|
+
s.Label = qe;
|
|
402
402
|
s.Control = ct;
|
|
403
403
|
s.CountryButton = z;
|
|
404
404
|
s.CountryDrawer = st;
|
|
405
405
|
s.CountryPopover = at;
|
|
406
406
|
s.CountryOptions = b;
|
|
407
407
|
s.PhoneNumber = rt;
|
|
408
|
-
s.Description =
|
|
408
|
+
s.Description = Re;
|
|
409
409
|
s.Error = we;
|
|
410
410
|
const lt = (e) => /* @__PURE__ */ t.createElement("svg", {
|
|
411
411
|
width: 24,
|
|
@@ -427,7 +427,7 @@ const lt = (e) => /* @__PURE__ */ t.createElement("svg", {
|
|
|
427
427
|
}, /* @__PURE__ */ t.createElement("path", {
|
|
428
428
|
fillRule: "evenodd",
|
|
429
429
|
d: "M6.6108,14.3887 C5.5718,13.3497 4.9998,11.9687 4.9998,10.4997 C4.9998,9.0317 5.5718,7.6507 6.6108,6.6117 C7.6498,5.5727 9.0308,4.9997 10.4998,4.9997 C11.9688,4.9997 13.3498,5.5727 14.3888,6.6117 C15.4278,7.6507 15.9998,9.0317 15.9998,10.4997 C15.9998,11.9687 15.4278,13.3497 14.3888,14.3887 C13.3498,15.4277 11.9688,15.9997 10.4998,15.9997 C9.0308,15.9997 7.6498,15.4277 6.6108,14.3887 L6.6108,14.3887 Z M20.0028,19.2957 L15.4328,14.7247 C16.4438,13.5477 16.9998,12.0687 16.9998,10.4997 C16.9998,8.7637 16.3238,7.1317 15.0958,5.9047 C13.8688,4.6767 12.2358,3.9997 10.4998,3.9997 C8.7638,3.9997 7.1318,4.6767 5.9038,5.9047 C4.6758,7.1317 3.9998,8.7637 3.9998,10.4997 C3.9998,12.2367 4.6758,13.8677 5.9038,15.0957 C7.1318,16.3237 8.7638,16.9997 10.4998,16.9997 C12.0688,16.9997 13.5478,16.4437 14.7258,15.4317 L19.2958,20.0027 L20.0028,19.2957 Z"
|
|
430
|
-
})), it = "
|
|
430
|
+
})), it = "_control_5ixq0_1", mt = "_countryButton_5ixq0_9", pt = "_drawerButton_5ixq0_25", Ct = "_popoverButton_5ixq0_34", dt = "_chevron_5ixq0_39", yt = "_globeIcon_5ixq0_48", Et = "_searchIcon_5ixq0_56", ft = "_flag_5ixq0_61", ht = "_option_5ixq0_67", gt = "_phoneNumber_5ixq0_80", bt = "_countryOptions_5ixq0_106", Ot = "_countrySearch_5ixq0_123", _t = "_mobileDrawer_5ixq0_131", Nt = "_name_5ixq0_140", St = "_code_5ixq0_144", Lt = "_mobileOverlay_5ixq0_161", y = {
|
|
431
431
|
control: it,
|
|
432
432
|
countryButton: mt,
|
|
433
433
|
drawerButton: pt,
|
|
@@ -436,9 +436,9 @@ const lt = (e) => /* @__PURE__ */ t.createElement("svg", {
|
|
|
436
436
|
globeIcon: yt,
|
|
437
437
|
searchIcon: Et,
|
|
438
438
|
flag: ft,
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
439
|
+
option: ht,
|
|
440
|
+
phoneNumber: gt,
|
|
441
|
+
countryOptions: bt,
|
|
442
442
|
countrySearch: Ot,
|
|
443
443
|
mobileDrawer: _t,
|
|
444
444
|
name: Nt,
|
|
@@ -451,7 +451,7 @@ const lt = (e) => /* @__PURE__ */ t.createElement("svg", {
|
|
|
451
451
|
className: y.chevron,
|
|
452
452
|
"aria-hidden": "true"
|
|
453
453
|
}, /* @__PURE__ */ t.createElement(Ye, null)), Zt = () => {
|
|
454
|
-
const e =
|
|
454
|
+
const e = Ve(O.selectOptionWithoutFocusRing, y.option, W), n = ke(y.control), r = ze(y.countrySearch), { t: o } = F(), { PortalContainer: a } = te(), c = /* @__PURE__ */ t.createElement(s.CountryOptions.Search, {
|
|
455
455
|
className: r,
|
|
456
456
|
"aria-label": o("field.phone.country-search-input.aria-label")
|
|
457
457
|
}, /* @__PURE__ */ t.createElement(ut, {
|
|
@@ -2,11 +2,11 @@ import t, { useMemo as $, useCallback as M, useRef as B } from "react";
|
|
|
2
2
|
import { RicosViewer as z } from "@wix/ricos/viewer";
|
|
3
3
|
import b from "classnames";
|
|
4
4
|
import { CheckboxField as G, CheckboxButton as j, NumberField as X, Group as J, Button as U, Input as W } from "react-aria-components";
|
|
5
|
-
import { bh as k, be as Y, b9 as w, br as Z, bj as ee, I as te, U as ne, L as ae, O as oe, N as re, H as le, v as se, p as ie, M as ce } from "./form-
|
|
5
|
+
import { bh as k, be as Y, b9 as w, br as Z, bj as ee, I as te, U as ne, L as ae, O as oe, N as re, H as le, v as se, p as ie, M as ce } from "./form-GcotNutn.js";
|
|
6
6
|
import { f as I, a as f } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { L as ue, g as me } from "./field-label-headless-
|
|
7
|
+
import { L as ue, g as me } from "./field-label-headless-C_cMy8vP.js";
|
|
8
8
|
import { f as pe } from "./format-currency-BwShJ9vM.js";
|
|
9
|
-
import { D as de, E as Ee } from "./field-error-headless-
|
|
9
|
+
import { D as de, E as Ee } from "./field-error-headless-DwlihJqC.js";
|
|
10
10
|
import { F as ye } from "./fieldset-headless-CD3fds9J.js";
|
|
11
11
|
import { g as _e } from "./payment-field-utils-DobiK5Xh.js";
|
|
12
12
|
import { S as be } from "./selection-indicator-XQ8MYHUQ.js";
|
|
@@ -14,7 +14,7 @@ import { E as fe } from "./error-icon-hZxQ6DEy.js";
|
|
|
14
14
|
import { C as Ie } from "./checkbox-indicator-module-classes-Bqo0QILF.js";
|
|
15
15
|
import { s as T } from "./field-rac.module-BIBNQEOK.js";
|
|
16
16
|
import { o as Q } from "./options-rac.module-_THNq6Qq.js";
|
|
17
|
-
import { u as Oe } from "./use-element-state-class-name-
|
|
17
|
+
import { u as Oe } from "./use-element-state-class-name-D008EeZn.js";
|
|
18
18
|
var Le = /* @__PURE__ */ (function(e) {
|
|
19
19
|
return e.crop = "CROP", e.fit = "FIT", e;
|
|
20
20
|
})({}), x = /* @__PURE__ */ (function(e) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import a, { useRef as S, useState as V, useEffect as T, useCallback as B } from "react";
|
|
2
2
|
import { RadioGroup as H, RadioField as k, RadioButton as A, TextField as G, Input as P } from "react-aria-components";
|
|
3
|
-
import { bh as g, be as $, br as F, bj as x } from "./form-
|
|
3
|
+
import { bh as g, be as $, br as F, bj as x } from "./form-GcotNutn.js";
|
|
4
4
|
import { f as d, a as v } from "./find-child-C60k4CxG.js";
|
|
5
|
-
import { D as U, E as j } from "./field-error-headless-
|
|
6
|
-
import { L as M } from "./field-label-headless-
|
|
5
|
+
import { D as U, E as j } from "./field-error-headless-DwlihJqC.js";
|
|
6
|
+
import { L as M } from "./field-label-headless-C_cMy8vP.js";
|
|
7
7
|
import { S as w } from "./selection-indicator-XQ8MYHUQ.js";
|
|
8
8
|
const L = "Other", z = (e, t) => e == null ? void 0 : e.find((n) => (n.value ?? n.label) === t), y = (e, t) => !!t && !z(e, t), J = (e, t) => {
|
|
9
9
|
const l = t ? t.length + 2 : 0;
|
package/dist/component/{radio-group-field-rac-Cx2nvCDW.js → radio-group-field-rac-Cr35UXlg.js}
RENAMED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { RicosViewer as m } from "@wix/ricos/viewer";
|
|
2
2
|
import t from "classnames";
|
|
3
3
|
import e from "react";
|
|
4
|
-
import { a, s, R as n } from "./radio-button-module-classes-
|
|
4
|
+
import { a, s, R as n } from "./radio-button-module-classes-WQaDTnal.js";
|
|
5
5
|
import { E as c } from "./error-icon-hZxQ6DEy.js";
|
|
6
6
|
import { s as r } from "./field-rac.module-BIBNQEOK.js";
|
|
7
|
-
import { I as i, U as E, P as p, Q as R, v as O, p as _, R as I } from "./form-
|
|
7
|
+
import { I as i, U as E, P as p, Q as R, v as O, p as _, R as I } from "./form-GcotNutn.js";
|
|
8
8
|
import { o as L } from "./options-rac.module-_THNq6Qq.js";
|
|
9
|
-
import { u as N } from "./use-element-state-class-name-
|
|
10
|
-
import { u } from "./use-text-input-class-name-
|
|
9
|
+
import { u as N } from "./use-element-state-class-name-D008EeZn.js";
|
|
10
|
+
import { u } from "./use-text-input-class-name-BSDU7QEO.js";
|
|
11
11
|
const D = ({ content: o, locale: l }) => /* @__PURE__ */ e.createElement(m, {
|
|
12
12
|
content: o,
|
|
13
13
|
locale: l
|
package/dist/component/{rating-input-field-rac-D05VBUGw.js → rating-input-field-rac-C_X51vxl.js}
RENAMED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { RicosViewer as y } from "@wix/ricos/viewer";
|
|
2
2
|
import m from "classnames";
|
|
3
3
|
import e, { useCallback as N, useState as O, useRef as A } from "react";
|
|
4
|
-
import { bh as I, be as v, br as T, I as H, U as M, S as w, v as B, p as P, T as q } from "./form-
|
|
4
|
+
import { bh as I, be as v, br as T, I as H, U as M, S as w, v as B, p as P, T as q } from "./form-GcotNutn.js";
|
|
5
5
|
import { RadioGroup as G, RadioField as k, RadioButton as x } from "react-aria-components";
|
|
6
6
|
import { f as u, a as U } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as z, E as Q } from "./field-error-headless-
|
|
8
|
-
import { L as Z } from "./field-label-headless-
|
|
7
|
+
import { D as z, E as Q } from "./field-error-headless-DwlihJqC.js";
|
|
8
|
+
import { L as Z } from "./field-label-headless-C_cMy8vP.js";
|
|
9
9
|
import { E as j } from "./error-icon-hZxQ6DEy.js";
|
|
10
10
|
import { s as g } from "./field-rac.module-BIBNQEOK.js";
|
|
11
|
-
import { u as J } from "./use-element-state-class-name-
|
|
11
|
+
import { u as J } from "./use-element-state-class-name-D008EeZn.js";
|
|
12
12
|
const t = ({ children: a }) => {
|
|
13
13
|
const { id: n, value: r, onChange: o, disabled: l, readOnly: d, required: c, hasError: i, onBlur: E, onFocus: C, FieldLayout: R } = I(), { labelId: _ } = v(), L = N((D) => o(Number(D)), [
|
|
14
14
|
o
|