@wix/form-elements 1.144.0 → 1.146.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-BxrHjvGM.js → appointment-rac-scUix9QX.js} +4 -4
- package/dist/component/{bookings-address-rac-CLWQa4ND.js → bookings-address-rac-CKemkJOO.js} +1 -1
- package/dist/component/{bookings-email-rac-DZemUnFy.js → bookings-email-rac-CDqdhPAB.js} +1 -1
- package/dist/component/{bookings-first-name-rac-DyGMqRWi.js → bookings-first-name-rac-DEy_7Hjb.js} +1 -1
- package/dist/component/{bookings-header-rac-DmUeRhWl.js → bookings-header-rac-Bl4xy9lB.js} +1 -1
- package/dist/component/{bookings-last-name-rac-DOuCYe0Q.js → bookings-last-name-rac-CsL9xQ1W.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-BnmS1sak.js → bookings-login-bar-rac-DkHYQ4No.js} +1 -1
- package/dist/component/{bookings-phone-rac-F5YJaXHy.js → bookings-phone-rac-BoBiFwbV.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-DAuqLM8j.js → bookings-rich-text-rac-DZZnPKWA.js} +1 -1
- package/dist/component/{checkbox-field-rac-DsQrwgzd.js → checkbox-field-rac-UgLmJxB-.js} +4 -4
- package/dist/component/{checkbox-group-field-headless-oPw2miey.js → checkbox-group-field-headless-C809nB0Q.js} +3 -3
- package/dist/component/{checkbox-group-field-rac-hPscGPkW.js → checkbox-group-field-rac-u4i4wG21.js} +4 -4
- package/dist/component/{checkbox-group-rac-DuIn-RKl.js → checkbox-group-rac-DBAQhSo3.js} +1 -1
- package/dist/component/{checkbox-rac-C_-b9_8s.js → checkbox-rac-FDQVsI5-.js} +1 -1
- package/dist/component/{contacts-address-rac-CbIN1ubI.js → contacts-address-rac-DnArylPa.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-B-ek4Puf.js → contacts-birthdate-rac-C19jhGEO.js} +1 -1
- package/dist/component/{contacts-company-rac-D2xGgOC0.js → contacts-company-rac-Dxs0hs_i.js} +1 -1
- package/dist/component/{contacts-email-rac-CpbAyHUl.js → contacts-email-rac-D-H43L8r.js} +1 -1
- package/dist/component/{contacts-first-name-rac-DM0Uki6x.js → contacts-first-name-rac-DwV5NESk.js} +1 -1
- package/dist/component/{contacts-last-name-rac-DV9wrigX.js → contacts-last-name-rac-C5v2xurf.js} +1 -1
- package/dist/component/{contacts-phone-rac-mIYYC0y2.js → contacts-phone-rac-D9a5x-xl.js} +1 -1
- package/dist/component/{contacts-position-rac-fYTx4IXC.js → contacts-position-rac-DfsgOv-k.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-nm5CFJHt.js → contacts-subscribe-rac-B-Hho0Kb.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-D4RFJf-S.js → contacts-tax-id-rac-q6TQkB4b.js} +1 -1
- package/dist/component/{date-availability-DKQ4Swlg.js → date-availability-CMDvf5VU.js} +1 -1
- package/dist/component/date-input-field-rac-C1WLUct3.js +297 -0
- package/dist/component/{date-input-rac-BbpWo9w0.js → date-input-rac-cNQ-nr4D.js} +1 -1
- package/dist/component/{date-picker-field-rac-Bza70SYg.js → date-picker-field-rac-mx11z-MO.js} +5 -5
- package/dist/component/{date-picker-rac-Ck7bd17y.js → date-picker-rac-DeTz17zC.js} +1 -1
- package/dist/component/{date-time-input-field-rac-DpAx183s.js → date-time-input-field-rac-feQ2E1eU.js} +6 -6
- package/dist/component/{date-time-input-rac-CAL-qDqR.js → date-time-input-rac-G0s0xP4v.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-DLk1zE8Z.js → dext-checkbox-group-rac-BcTN1nJb.js} +2 -2
- package/dist/component/{dext-checkbox-rac-K0JY8ypt.js → dext-checkbox-rac-DX0TOrCO.js} +1 -1
- package/dist/component/{dext-date-picker-rac-BIkqhNQ0.js → dext-date-picker-rac-CpDp11oa.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-heYLj9qT.js → dext-date-time-input-rac-BRvO8izU.js} +1 -1
- package/dist/component/{dext-dropdown-rac-CE-hsE0g.js → dext-dropdown-rac-DGZ4Yi_X.js} +1 -1
- package/dist/component/{dext-email-rac-Djui3aGr.js → dext-email-rac-B9YCFHB4.js} +1 -1
- package/dist/component/{dext-number-input-rac-Up-zsZwY.js → dext-number-input-rac-D890dBZf.js} +1 -1
- package/dist/component/{dext-phone-rac-BnBq1KKf.js → dext-phone-rac-BAQftbXo.js} +1 -1
- package/dist/component/{dext-radio-group-rac-D8EsvhLV.js → dext-radio-group-rac-CtEjnu_X.js} +2 -2
- package/dist/component/{dext-rating-input-rac-BW6NPU1S.js → dext-rating-input-rac-BqQKVaHo.js} +1 -1
- package/dist/component/{dext-tags-rac--c_tiq-o.js → dext-tags-rac-zxxKcNUe.js} +2 -2
- package/dist/component/{dext-text-area-rac-CKFhfgDq.js → dext-text-area-rac-Ctp9SwPg.js} +1 -1
- package/dist/component/{dext-text-input-rac-CEcBfKSe.js → dext-text-input-rac-c_QMlyjr.js} +1 -1
- package/dist/component/{dext-url-input-rac-C4tT1NeS.js → dext-url-input-rac-96pv15aC.js} +1 -1
- package/dist/component/{donation-rac-Bqo7AUci.js → donation-rac-GEWKSLJY.js} +5 -5
- package/dist/component/{dropdown-field-headless-DMQSalL1.js → dropdown-field-headless-C3OxMhLE.js} +5 -5
- package/dist/component/{dropdown-field-rac-C31YjVhV.js → dropdown-field-rac-CCXfBmSc.js} +4 -4
- package/dist/component/{dropdown-rac-B6AZlzZ8.js → dropdown-rac-CR7hswXE.js} +1 -1
- package/dist/component/{ecom-address-rac-3pW-jse0.js → ecom-address-rac-khMuxEFD.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-Ms4JDivZ.js → ecom-subscription-checkbox-rac-CAi_AHpb.js} +2 -2
- package/dist/component/{email-input-field-rac-UJOSd8si.js → email-input-field-rac-B83mY2lg.js} +5 -3
- package/dist/component/{events-repeater-rac-fs9cQREp.js → events-repeater-rac-ClEwXgmb.js} +4 -4
- package/dist/component/{events-rsvp-rac-DRLspNfK.js → events-rsvp-rac-BJ5q2SVR.js} +3 -3
- package/dist/component/{field-error-headless-CyoNrDMA.js → field-error-headless-CsYQCsiT.js} +1 -1
- package/dist/component/{field-label-headless-vs578Vt6.js → field-label-headless-Yg_1PMSg.js} +1 -1
- package/dist/component/{file-upload-rac-DDAMgm1b.js → file-upload-rac-DJsuI_lR.js} +4 -4
- package/dist/component/{fixed-payment-rac-DRs5yPZ8.js → fixed-payment-rac-BMFe9wxU.js} +3 -3
- package/dist/component/{form-D-pcluMZ.js → form-Bed4Kfz8.js} +4033 -4059
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-BtLFBccj.js → header-field-rac-DPQTrOSZ.js} +2 -2
- package/dist/component/{header-rac-CNx4qpAR.js → header-rac-CzXsuLmE.js} +1 -1
- package/dist/component/{image-choice-rac-D-PsWyfU.js → image-choice-rac-R_4pbOSr.js} +4 -4
- package/dist/component/{index-B7rRv0cm.js → index-DZxHlvzt.js} +4 -4
- package/dist/component/{index-D4Jdw7jg.js → index-qSZCe_WC.js} +2 -2
- package/dist/component/{isObjectLike-DyNk-Hsj.js → isObjectLike-B-a5uaU-.js} +1 -1
- package/dist/component/{multiline-address-field-rac-CowUg4Dk.js → multiline-address-field-rac-rv4IZZy_.js} +15 -7
- package/dist/component/{multiline-address-rac-CHLN9iqR.js → multiline-address-rac-DZ7cYtgn.js} +1 -1
- package/dist/component/{number-input-field-rac-Clow9sWB.js → number-input-field-rac-CL9iXKIf.js} +4 -4
- package/dist/component/{number-input-rac-CeUW4WGL.js → number-input-rac-BeGn6qJR.js} +1 -1
- package/dist/component/{password-rac-_FBw3XON.js → password-rac-DfvhdsKG.js} +51 -50
- package/dist/component/{payment-input-rac-CmeiCGKm.js → payment-input-rac-BmMfi5rf.js} +18 -17
- package/dist/component/{phone-input-field-rac-PIpEcS6h.js → phone-input-field-rac-DW0a1pXs.js} +7 -6
- package/dist/component/{phone-rac-D-RF_Dc1.js → phone-rac-quZjJ08H.js} +1 -1
- package/dist/component/{product-list-rac-CveI0FCQ.js → product-list-rac-Ci0KB7sN.js} +4 -4
- package/dist/component/{quiz-radio-group-rac-DmL5sv4m.js → quiz-radio-group-rac--UUtGx2t.js} +1 -1
- package/dist/component/{radio-button-module-classes-D6eJdPov.js → radio-button-module-classes-CqdBGknT.js} +3 -3
- package/dist/component/{radio-group-field-rac-CuTxslBP.js → radio-group-field-rac-w8fHpFKJ.js} +4 -4
- package/dist/component/{radio-group-rac-D1N9mKdI.js → radio-group-rac-jO8aghii.js} +1 -1
- package/dist/component/{rating-input-field-rac-tPHYwerw.js → rating-input-field-rac-BRc2PtqE.js} +4 -4
- package/dist/component/{rating-input-rac-BoYlGaYG.js → rating-input-rac-D9zs06xR.js} +1 -1
- package/dist/component/{rich-content-rac.module-BEpM1wGw.js → rich-content-rac.module-Cv3ZmD00.js} +1 -1
- package/dist/component/{rich-text-field-rac-DIBDp9fN.js → rich-text-field-rac-BmWuIfA8.js} +2 -2
- package/dist/component/{rich-text-rac-QNvqlXOl.js → rich-text-rac-BnqnrvB1.js} +1 -1
- package/dist/component/{service-dropdown-rac-BUka_sF2.js → service-dropdown-rac-Cl81KfJU.js} +5 -5
- package/dist/component/{services-multi-choice-rac-Dsy5tWby.js → services-multi-choice-rac-sQ1NF9hY.js} +5 -5
- package/dist/component/{signature-rac-K1d_jHlU.js → signature-rac-Huairu7V.js} +4 -4
- package/dist/component/{submit-button-rac-BRJtuej2.js → submit-button-rac-Dpg7N0TG.js} +2 -2
- package/dist/component/{tags-field-rac-BaBbtHcw.js → tags-field-rac-BQ8TEqXH.js} +5 -5
- package/dist/component/{tags-rac-DDg6W18e.js → tags-rac-CFOmyCCc.js} +1 -1
- package/dist/component/{text-area-field-rac-CB97Y6o1.js → text-area-field-rac-DNiMa7d3.js} +4 -4
- package/dist/component/{text-area-rac-E091fvmB.js → text-area-rac-kLFe-KbZ.js} +1 -1
- package/dist/component/{text-input-field-rac-BiSQ4pDp.js → text-input-field-rac-CqENSUUX.js} +3 -3
- package/dist/component/text-input-headless-BdPkEeK2.js +45 -0
- package/dist/component/{text-input-rac-N2D8bqU4.js → text-input-rac-uYQEfOtE.js} +1 -1
- package/dist/component/{time-input-rac-CMVYeoxi.js → time-input-rac-BYoojlJ9.js} +4 -4
- package/dist/component/{url-input-field-rac-BWpn4TfK.js → url-input-field-rac-BioH7kuz.js} +20 -19
- package/dist/component/{url-input-rac-U19lGKwd.js → url-input-rac-D2VSSyqW.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-DK1HCEOC.js → use-dropdown-option-class-name-BEmvU-Gg.js} +2 -2
- package/dist/component/{use-dropdown-trigger-class-name-XS469pt3.js → use-dropdown-trigger-class-name-qj9skLWZ.js} +2 -2
- package/dist/component/{use-element-state-class-name-BdjEjAk1.js → use-element-state-class-name-oiKCauK-.js} +1 -1
- package/dist/component/{use-hoverable-input-class-name-7nSuBlNd.js → use-hoverable-input-class-name-BW3nCyhG.js} +2 -2
- package/dist/component/{use-service-options-base-Bxw3_pyC.js → use-service-options-base-DXG60hA5.js} +1 -1
- package/dist/component/use-text-input-class-name-BhQFcXYH.js +6 -0
- package/package.json +2 -2
- package/dist/component/date-input-field-rac-DKZ-7UN1.js +0 -290
- package/dist/component/text-input-headless-BKxooAsH.js +0 -44
- package/dist/component/use-text-input-class-name-BB5fT5S6.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 { bn as u, a$ as i, a_ as C, b1 as R, aA as T, ai as d } from "./form-
|
|
4
|
-
import { u as g, R as p, s as A, T as S } from "./rich-content-rac.module-
|
|
3
|
+
import { bn as u, a$ as i, a_ as C, b1 as R, aA as T, ai as d } from "./form-Bed4Kfz8.js";
|
|
4
|
+
import { u as g, R as p, s as A, T as S } from "./rich-content-rac.module-Cv3ZmD00.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 { bn as b, bk as x, bp as P, bg as B, R as q, $ as U, M as w, O as V, G as $, u as z, N as K, f } from "./form-
|
|
4
|
+
import { bn as b, bk as x, bp as P, bg as B, R as q, $ as U, M as w, O as V, G as $, u as z, N as K, f } from "./form-Bed4Kfz8.js";
|
|
5
5
|
import { CheckboxGroup as Q, CheckboxField as Y, 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-Yg_1PMSg.js";
|
|
8
|
+
import { D as X, E as Z } from "./field-error-headless-CsYQCsiT.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-DfEb7pBp.js";
|
|
12
|
-
import { u as oe } from "./use-element-state-class-name-
|
|
12
|
+
import { u as oe } from "./use-element-state-class-name-oiKCauK-.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: C, FieldLayout: L } = b(), { inputId: g, labelId: _, ariaDescribedBy: R } = x(), S = m(t, o.Label), A = m(t, o.Options), D = m(t, o.Description), M = m(t, o.Error), h = H(() => a || [], [
|
|
15
15
|
a
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { e as R, aI as _, aX as de, aJ as O, ao as Ge, B as Be, aC as qe, av as He, au as A, aD as Ee, aM as re, aG as Fe, c as B, aw as M, b7 as Te, ay as je, ax as he, az as q } from "./form-
|
|
2
|
-
import { b2 as Mn } from "./form-
|
|
1
|
+
import { e as R, aI as _, aX as de, aJ as O, ao as Ge, B as Be, aC as qe, av as He, au as A, aD as Ee, aM as re, aG as Fe, c as B, aw as M, b7 as Te, ay as je, ax as he, az as q } from "./form-Bed4Kfz8.js";
|
|
2
|
+
import { b2 as Mn } from "./form-Bed4Kfz8.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-CMDvf5VU.js";
|
|
10
|
+
import { a as Sn } from "./date-availability-CMDvf5VU.js";
|
|
11
11
|
import { C as tt } from "./calling-country-codes-PyWuOTmF.js";
|
|
12
12
|
function rt(e) {
|
|
13
13
|
var t, r;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b6 as n } from "./form-
|
|
2
|
-
import { A as S, a as p, C as N, aB as g, aS as q, aT as D, b8 as L } from "./form-
|
|
1
|
+
import { b6 as n } from "./form-Bed4Kfz8.js";
|
|
2
|
+
import { A as S, a as p, C as N, aB as g, aS as q, aT as D, b8 as L } from "./form-Bed4Kfz8.js";
|
|
3
3
|
const l = (e = !1) => ({
|
|
4
4
|
country: {
|
|
5
5
|
required: e
|
|
@@ -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 We, 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 { bi as ft, d as yt, bd as Pt, bf as Ct, aS as Tt, aT as wt, aL as Mt, aR as U, F as K, bx as Pe, b6 as lt, bn as P, bk as T, bp as ae, bj as It, aX as qt, C as Oe, b4 as xt, b8 as Bt, bu as kt, bo as $t, bt as Vt, bb as Wt, b0 as Ut, ba as Kt, bq as Yt, ar as Ht, R as z, $ as Q, x as ge, G as Z, u as ee } from "./form-
|
|
5
|
+
import { bi as ft, d as yt, bd as Pt, bf as Ct, aS as Tt, aT as wt, aL as Mt, aR as U, F as K, bx as Pe, b6 as lt, bn as P, bk as T, bp as ae, bj as It, aX as qt, C as Oe, b4 as xt, b8 as Bt, bu as kt, bo as $t, bt as Vt, bb as Wt, b0 as Ut, ba as Kt, bq as Yt, ar as Ht, R as z, $ as Q, x as ge, G as Z, u as ee } from "./form-Bed4Kfz8.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-qj9skLWZ.js";
|
|
9
9
|
import { TextField as fe, Input as le, ComboBoxStateContext as Ue, 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-CsYQCsiT.js";
|
|
11
|
+
import { L as de } from "./field-label-headless-Yg_1PMSg.js";
|
|
12
|
+
import { e as zt, c as Qt, a as Zt, r as gt } from "./isObjectLike-B-a5uaU-.js";
|
|
13
|
+
import { V as en, u as tn } from "./use-dropdown-option-class-name-BEmvU-Gg.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-DfEb7pBp.js";
|
|
19
|
-
import { u as rn } from "./use-text-input-class-name-
|
|
19
|
+
import { u as rn } from "./use-text-input-class-name-BhQFcXYH.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) => {
|
|
@@ -273,6 +273,7 @@ const ne = ({ children: e }) => {
|
|
|
273
273
|
}, t), /* @__PURE__ */ r.createElement(le, {
|
|
274
274
|
ref: l,
|
|
275
275
|
id: n,
|
|
276
|
+
autoComplete: "address-line2",
|
|
276
277
|
"aria-describedby": a,
|
|
277
278
|
className: e,
|
|
278
279
|
placeholder: o
|
|
@@ -609,6 +610,7 @@ const Sn = /* @__PURE__ */ qt(Dn), Rn = (e, t, o = 200) => {
|
|
|
609
610
|
}, o), /* @__PURE__ */ r.createElement(le, {
|
|
610
611
|
ref: s,
|
|
611
612
|
id: a,
|
|
613
|
+
autoComplete: "address-line1",
|
|
612
614
|
"aria-describedby": l,
|
|
613
615
|
className: e,
|
|
614
616
|
placeholder: n,
|
|
@@ -668,6 +670,7 @@ const re = ({ children: e }) => {
|
|
|
668
670
|
}, t), /* @__PURE__ */ r.createElement(le, {
|
|
669
671
|
ref: l,
|
|
670
672
|
id: n,
|
|
673
|
+
autoComplete: "address-line2",
|
|
671
674
|
"aria-describedby": a,
|
|
672
675
|
className: e,
|
|
673
676
|
placeholder: o
|
|
@@ -705,6 +708,7 @@ const oe = ({ children: e }) => {
|
|
|
705
708
|
}, t), /* @__PURE__ */ r.createElement(le, {
|
|
706
709
|
ref: l,
|
|
707
710
|
id: n,
|
|
711
|
+
autoComplete: "address-level2",
|
|
708
712
|
"aria-describedby": a,
|
|
709
713
|
className: e,
|
|
710
714
|
placeholder: o
|
|
@@ -837,6 +841,7 @@ const qn = ({ isOpen: e }) => {
|
|
|
837
841
|
}, o), /* @__PURE__ */ r.createElement(le, {
|
|
838
842
|
ref: m,
|
|
839
843
|
id: i,
|
|
844
|
+
autoComplete: "country-name",
|
|
840
845
|
"aria-describedby": s,
|
|
841
846
|
className: e,
|
|
842
847
|
placeholder: n,
|
|
@@ -1019,6 +1024,7 @@ const $ = ({ children: e }) => {
|
|
|
1019
1024
|
}, o), /* @__PURE__ */ r.createElement(le, {
|
|
1020
1025
|
ref: s,
|
|
1021
1026
|
id: a,
|
|
1027
|
+
autoComplete: "postal-code",
|
|
1022
1028
|
"aria-describedby": l,
|
|
1023
1029
|
className: e,
|
|
1024
1030
|
placeholder: n,
|
|
@@ -1159,6 +1165,7 @@ const V = ({ children: e }) => {
|
|
|
1159
1165
|
}, o), /* @__PURE__ */ r.createElement(le, {
|
|
1160
1166
|
ref: s,
|
|
1161
1167
|
id: a,
|
|
1168
|
+
autoComplete: "address-line1",
|
|
1162
1169
|
"aria-describedby": l,
|
|
1163
1170
|
className: e,
|
|
1164
1171
|
placeholder: n,
|
|
@@ -1288,6 +1295,7 @@ const H = ({ children: e }) => {
|
|
|
1288
1295
|
}, o), /* @__PURE__ */ r.createElement(le, {
|
|
1289
1296
|
ref: m,
|
|
1290
1297
|
id: i,
|
|
1298
|
+
autoComplete: "address-level1",
|
|
1291
1299
|
"aria-describedby": s,
|
|
1292
1300
|
className: e,
|
|
1293
1301
|
placeholder: n,
|
package/dist/component/{number-input-field-rac-Clow9sWB.js → number-input-field-rac-CL9iXKIf.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 $, useCallback as G, useEffect as Q, useRef as U } from "react";
|
|
4
4
|
import { NumberField as j, Input as z } from "react-aria-components";
|
|
5
|
-
import { bn as _, bk as S, bx as H, bp as J, R as K, $ as W, G as X, u as Y } from "./form-
|
|
5
|
+
import { bn as _, bk as S, bx as H, bp as J, R as K, $ as W, G as X, u as Y } from "./form-Bed4Kfz8.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-CsYQCsiT.js";
|
|
8
|
+
import { L as ee } from "./field-label-headless-Yg_1PMSg.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-DfEb7pBp.js";
|
|
13
|
-
import { u as se } from "./use-text-input-class-name-
|
|
13
|
+
import { u as se } from "./use-text-input-class-name-BhQFcXYH.js";
|
|
14
14
|
const e = ({ children: t }) => {
|
|
15
15
|
var F, R, L;
|
|
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: x } = S(), D = ((F = n == null ? void 0 : n.number) == null ? void 0 : F.multipleOf) || 1, y = (R = n == null ? void 0 : n.number) == null ? void 0 : R.maximum, A = (L = n == null ? void 0 : n.number) == null ? void 0 : L.minimum, g = O(s), [T, I] = $(g), V = ne(E), h = c(t, e.Label), k = c(t, e.Input), q = c(t, e.Description), M = c(t, e.Error), B = G((N) => {
|
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
import e, { useState as
|
|
2
|
-
import { RicosViewer as
|
|
1
|
+
import e, { useState as S, useRef as x } from "react";
|
|
2
|
+
import { RicosViewer as O } from "@wix/ricos/viewer";
|
|
3
3
|
import d from "classnames";
|
|
4
|
-
import { bn as E, bk as I, bp as
|
|
5
|
-
import { TextField as
|
|
4
|
+
import { bn as E, bk as I, bp as A, bx as B, R as V, $ as v, G as P, u as M } from "./form-Bed4Kfz8.js";
|
|
5
|
+
import { TextField as k, Group as q, Input as U, Button as j } from "react-aria-components";
|
|
6
6
|
import { f as u, a as b } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as
|
|
8
|
-
import { L as
|
|
9
|
-
import { E as
|
|
10
|
-
import { H as
|
|
7
|
+
import { D as G, E as H } from "./field-error-headless-CsYQCsiT.js";
|
|
8
|
+
import { L as W } from "./field-label-headless-Yg_1PMSg.js";
|
|
9
|
+
import { E as Z } from "./error-icon-hZxQ6DEy.js";
|
|
10
|
+
import { H as $ } from "./custom-focus-class-_483Pkwp.js";
|
|
11
11
|
import { s as p } from "./field-rac.module-DfEb7pBp.js";
|
|
12
|
-
import { u as
|
|
12
|
+
import { u as Q } from "./use-text-input-class-name-BhQFcXYH.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,
|
|
15
|
-
return /* @__PURE__ */ e.createElement(
|
|
14
|
+
const { id: l, value: s, onChange: c, disabled: n, readOnly: m, required: a, hasError: i, onBlur: f, onFocus: C, autoComplete: _, FieldLayout: y } = E(), { labelId: R } = I(), [D, F] = S(!1), L = u(o, t.Label), T = u(o, t.Control), w = u(o, t.Description), h = u(o, t.Error);
|
|
15
|
+
return /* @__PURE__ */ e.createElement(y, {
|
|
16
16
|
fieldId: l,
|
|
17
|
-
renderLabel: () =>
|
|
18
|
-
renderInput: () => /* @__PURE__ */ e.createElement(
|
|
19
|
-
|
|
17
|
+
renderLabel: () => L,
|
|
18
|
+
renderInput: () => /* @__PURE__ */ e.createElement(k, {
|
|
19
|
+
autoComplete: _,
|
|
20
|
+
"aria-labelledby": R,
|
|
20
21
|
value: s ?? "",
|
|
21
22
|
onChange: c,
|
|
22
23
|
isDisabled: n,
|
|
@@ -26,15 +27,15 @@ const t = ({ children: o, className: r }) => {
|
|
|
26
27
|
onBlur: f,
|
|
27
28
|
onFocus: C,
|
|
28
29
|
className: r
|
|
29
|
-
}, b(
|
|
30
|
-
isVisible:
|
|
31
|
-
onToggleVisibility: () =>
|
|
30
|
+
}, b(T, {
|
|
31
|
+
isVisible: D,
|
|
32
|
+
onToggleVisibility: () => F((N) => !N)
|
|
32
33
|
})),
|
|
33
|
-
renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null,
|
|
34
|
+
renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, w, h)
|
|
34
35
|
});
|
|
35
|
-
},
|
|
36
|
+
}, z = ({ children: o, className: r, ...l }) => {
|
|
36
37
|
const { isVisible: s, onToggleVisibility: c } = l, { disabled: n, hasError: m } = E(), a = u(o, t.Input), i = u(o, t.Toggle);
|
|
37
|
-
return /* @__PURE__ */ e.createElement(
|
|
38
|
+
return /* @__PURE__ */ e.createElement(q, {
|
|
38
39
|
className: r,
|
|
39
40
|
isDisabled: n,
|
|
40
41
|
isInvalid: m
|
|
@@ -44,12 +45,12 @@ const t = ({ children: o, className: r }) => {
|
|
|
44
45
|
isVisible: s,
|
|
45
46
|
onToggleVisibility: c
|
|
46
47
|
}));
|
|
47
|
-
},
|
|
48
|
-
const { isVisible: l } = r, { id: s, placeholder: c } = E(), { inputId: n, ariaDescribedBy: m } = I(), a =
|
|
49
|
-
return
|
|
48
|
+
}, J = ({ className: o, ...r }) => {
|
|
49
|
+
const { isVisible: l } = r, { id: s, placeholder: c } = E(), { inputId: n, ariaDescribedBy: m } = I(), a = x(null);
|
|
50
|
+
return A(() => {
|
|
50
51
|
var i;
|
|
51
52
|
(i = a.current) == null || i.focus();
|
|
52
|
-
}, s), /* @__PURE__ */ e.createElement(
|
|
53
|
+
}, s), /* @__PURE__ */ e.createElement(U, {
|
|
53
54
|
ref: a,
|
|
54
55
|
id: n,
|
|
55
56
|
type: l ? "text" : "password",
|
|
@@ -57,9 +58,9 @@ const t = ({ children: o, className: r }) => {
|
|
|
57
58
|
className: o,
|
|
58
59
|
placeholder: c
|
|
59
60
|
});
|
|
60
|
-
},
|
|
61
|
+
}, K = ({ className: o, showPasswordTooltipText: r, hidePasswordTooltipText: l, children: s, ...c }) => {
|
|
61
62
|
const { isVisible: n, onToggleVisibility: m } = c, { disabled: a } = E(), i = n ? l : r;
|
|
62
|
-
return /* @__PURE__ */ e.createElement(
|
|
63
|
+
return /* @__PURE__ */ e.createElement(j, {
|
|
63
64
|
type: "button",
|
|
64
65
|
isDisabled: a,
|
|
65
66
|
onPress: m,
|
|
@@ -70,13 +71,13 @@ const t = ({ children: o, className: r }) => {
|
|
|
70
71
|
isVisible: n
|
|
71
72
|
}));
|
|
72
73
|
};
|
|
73
|
-
t.Label =
|
|
74
|
-
t.Control =
|
|
75
|
-
t.Input =
|
|
76
|
-
t.Toggle =
|
|
77
|
-
t.Description =
|
|
78
|
-
t.Error =
|
|
79
|
-
const
|
|
74
|
+
t.Label = W;
|
|
75
|
+
t.Control = z;
|
|
76
|
+
t.Input = J;
|
|
77
|
+
t.Toggle = K;
|
|
78
|
+
t.Description = G;
|
|
79
|
+
t.Error = H;
|
|
80
|
+
const X = (o) => /* @__PURE__ */ e.createElement("svg", {
|
|
80
81
|
viewBox: "0 0 24 24",
|
|
81
82
|
width: "20",
|
|
82
83
|
height: "20",
|
|
@@ -91,7 +92,7 @@ const K = (o) => /* @__PURE__ */ e.createElement("svg", {
|
|
|
91
92
|
cx: "12",
|
|
92
93
|
cy: "12",
|
|
93
94
|
r: "3"
|
|
94
|
-
})),
|
|
95
|
+
})), Y = (o) => /* @__PURE__ */ e.createElement("svg", {
|
|
95
96
|
viewBox: "0 0 24 24",
|
|
96
97
|
width: "20",
|
|
97
98
|
height: "20",
|
|
@@ -111,32 +112,32 @@ const K = (o) => /* @__PURE__ */ e.createElement("svg", {
|
|
|
111
112
|
y1: "21",
|
|
112
113
|
x2: "21",
|
|
113
114
|
y2: "3"
|
|
114
|
-
})),
|
|
115
|
-
control:
|
|
116
|
-
toggleButton:
|
|
117
|
-
},
|
|
115
|
+
})), ee = "_control_1malj_1", te = "_toggleButton_1malj_15", g = {
|
|
116
|
+
control: ee,
|
|
117
|
+
toggleButton: te
|
|
118
|
+
}, oe = ({ content: o, locale: r }) => /* @__PURE__ */ e.createElement(O, {
|
|
118
119
|
content: o,
|
|
119
120
|
locale: r
|
|
120
|
-
}),
|
|
121
|
-
const { t: o } =
|
|
121
|
+
}), re = () => {
|
|
122
|
+
const { t: o } = B(), r = Q(g.control);
|
|
122
123
|
return /* @__PURE__ */ e.createElement(t, null, /* @__PURE__ */ e.createElement(t.Label, {
|
|
123
|
-
className: d(
|
|
124
|
+
className: d(V, p.label)
|
|
124
125
|
}, /* @__PURE__ */ e.createElement(t.Label.Required, {
|
|
125
|
-
className: d(
|
|
126
|
+
className: d(v, p.requiredMark)
|
|
126
127
|
})), /* @__PURE__ */ e.createElement(t.Control, {
|
|
127
128
|
className: r
|
|
128
129
|
}, /* @__PURE__ */ e.createElement(t.Input, {
|
|
129
|
-
className: d(p.innerInput,
|
|
130
|
+
className: d(p.innerInput, $)
|
|
130
131
|
}), /* @__PURE__ */ e.createElement(t.Toggle, {
|
|
131
132
|
className: g.toggleButton,
|
|
132
133
|
showPasswordTooltipText: o("forms.widget.modals.show-password-tooltip"),
|
|
133
134
|
hidePasswordTooltipText: o("forms.widget.modals.hide-password-tooltip")
|
|
134
|
-
}, ({ isVisible: l }) => l ? /* @__PURE__ */ e.createElement(
|
|
135
|
-
className: d(
|
|
136
|
-
}, /* @__PURE__ */ e.createElement(
|
|
137
|
-
className: d(
|
|
138
|
-
},
|
|
139
|
-
},
|
|
135
|
+
}, ({ isVisible: l }) => l ? /* @__PURE__ */ e.createElement(Y, null) : /* @__PURE__ */ e.createElement(X, null))), /* @__PURE__ */ e.createElement(t.Error, {
|
|
136
|
+
className: d(P, p.error)
|
|
137
|
+
}, /* @__PURE__ */ e.createElement(Z, null), /* @__PURE__ */ e.createElement(t.Error.Text, null)), /* @__PURE__ */ e.createElement(t.Description, {
|
|
138
|
+
className: d(M, p.description)
|
|
139
|
+
}, oe));
|
|
140
|
+
}, ge = () => /* @__PURE__ */ e.createElement(re, null);
|
|
140
141
|
export {
|
|
141
|
-
|
|
142
|
+
ge as PasswordRAC
|
|
142
143
|
};
|
|
@@ -2,17 +2,17 @@ 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 { bn as N, bk as D, bf as T, bx as W, bp as X, R as Y, $ as Z, G as ee, u as re } from "./form-
|
|
6
|
-
import { f as
|
|
7
|
-
import { D as te, E as ne } from "./field-error-headless-
|
|
8
|
-
import { L as ae } from "./field-label-headless-
|
|
5
|
+
import { bn as N, bk as D, bf as T, bx as W, bp as X, R as Y, $ as Z, G as ee, u as re } from "./form-Bed4Kfz8.js";
|
|
6
|
+
import { f as i } from "./find-child-C60k4CxG.js";
|
|
7
|
+
import { D as te, E as ne } from "./field-error-headless-CsYQCsiT.js";
|
|
8
|
+
import { L as ae } from "./field-label-headless-Yg_1PMSg.js";
|
|
9
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-DfEb7pBp.js";
|
|
14
|
-
import { u as
|
|
15
|
-
function
|
|
14
|
+
import { u as ie } from "./use-text-input-class-name-BhQFcXYH.js";
|
|
15
|
+
function ue(e, t) {
|
|
16
16
|
return {
|
|
17
17
|
productId: e.id,
|
|
18
18
|
price: t,
|
|
@@ -27,7 +27,7 @@ function x(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:
|
|
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: G, prefixId: $ } = 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
32
|
format: (l) => L(String(l ?? ""), c),
|
|
33
33
|
regionalFormat: c
|
|
@@ -48,7 +48,7 @@ const n = ({ children: e }) => {
|
|
|
48
48
|
return;
|
|
49
49
|
}
|
|
50
50
|
s([
|
|
51
|
-
|
|
51
|
+
ue(S, R)
|
|
52
52
|
]);
|
|
53
53
|
}
|
|
54
54
|
}, [
|
|
@@ -57,15 +57,15 @@ const n = ({ children: e }) => {
|
|
|
57
57
|
c,
|
|
58
58
|
_,
|
|
59
59
|
b
|
|
60
|
-
]), B =
|
|
61
|
-
return /* @__PURE__ */ r.createElement(
|
|
60
|
+
]), B = i(e, n.Label), U = i(e, n.Input), v = i(e, n.Description), H = i(e, n.Error);
|
|
61
|
+
return /* @__PURE__ */ r.createElement(M, {
|
|
62
62
|
fieldId: t,
|
|
63
63
|
renderLabel: () => B,
|
|
64
64
|
renderInput: () => /* @__PURE__ */ r.createElement(z, {
|
|
65
|
-
"aria-labelledby": `${
|
|
65
|
+
"aria-labelledby": `${G} ${$}`,
|
|
66
66
|
value: a ? F : "",
|
|
67
67
|
onChange: k,
|
|
68
|
-
isDisabled:
|
|
68
|
+
isDisabled: u,
|
|
69
69
|
isReadOnly: m,
|
|
70
70
|
isRequired: I,
|
|
71
71
|
isInvalid: y,
|
|
@@ -75,12 +75,12 @@ const n = ({ children: e }) => {
|
|
|
75
75
|
renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, H, v)
|
|
76
76
|
});
|
|
77
77
|
}, f = ({ children: e, className: t }) => {
|
|
78
|
-
const { disabled: a, hasError: s } = N(),
|
|
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
85
|
const { currency: t } = T(), { t: a } = W(), { prefixId: s } = D();
|
|
86
86
|
return t ? /* @__PURE__ */ r.createElement("span", {
|
|
@@ -90,18 +90,19 @@ 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 } = N(), { inputId:
|
|
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();
|
|
97
97
|
}, t), /* @__PURE__ */ r.createElement(K, {
|
|
98
98
|
ref: o,
|
|
99
|
-
id:
|
|
99
|
+
id: u,
|
|
100
100
|
className: e,
|
|
101
101
|
placeholder: a,
|
|
102
102
|
"aria-label": s,
|
|
103
103
|
"aria-labelledby": `${m} ${I}`,
|
|
104
104
|
"aria-describedby": y,
|
|
105
|
+
inputMode: "decimal",
|
|
105
106
|
autoComplete: "off"
|
|
106
107
|
});
|
|
107
108
|
};
|
|
@@ -118,7 +119,7 @@ const de = "_inputGroup_vuy4u_1", fe = "_currency_vuy4u_14", h = {
|
|
|
118
119
|
content: e,
|
|
119
120
|
locale: t
|
|
120
121
|
}), be = () => {
|
|
121
|
-
const e =
|
|
122
|
+
const e = ie(h.inputGroup);
|
|
122
123
|
return /* @__PURE__ */ r.createElement(n, null, /* @__PURE__ */ r.createElement(n.Label, {
|
|
123
124
|
className: p(Y, d.label)
|
|
124
125
|
}, /* @__PURE__ */ r.createElement(n.Label.Required, {
|
package/dist/component/{phone-input-field-rac-PIpEcS6h.js → phone-input-field-rac-DW0a1pXs.js}
RENAMED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { RicosViewer as Ce } from "@wix/ricos/viewer";
|
|
2
2
|
import h from "classnames";
|
|
3
3
|
import t, { useMemo as $, useState as j, useRef as F, useEffect as k, useCallback as Q, createContext as ee, useContext as G, useId as de } from "react";
|
|
4
|
-
import { b6 as ye, bx as w, bf as te, bw as Ee, bn as D, bk as ne, bp as fe, R as ge, $ as he, Q as be, x as Oe, G as _e, u as Ne } from "./form-
|
|
4
|
+
import { b6 as ye, bx as w, bf as te, bw as Ee, bn as D, bk as ne, bp as fe, R as ge, $ as he, Q as be, x as Oe, G as _e, u as Ne } from "./form-Bed4Kfz8.js";
|
|
5
5
|
import { UNSAFE_PortalProvider as Se } from "react-aria";
|
|
6
6
|
import { Dialog as oe, OverlayTriggerStateContext as Le, ModalOverlay as Ie, Modal as ve, SearchField as Pe, Group as q, ListBoxItem as Fe, DialogTrigger as we, Select as De, Input as re, Autocomplete as Be } from "react-aria-components";
|
|
7
7
|
import { f as g, a as I } from "./find-child-C60k4CxG.js";
|
|
8
|
-
import { D as Re, E as xe } from "./field-error-headless-
|
|
9
|
-
import { L as Me } from "./field-label-headless-
|
|
8
|
+
import { D as Re, E as xe } from "./field-error-headless-CsYQCsiT.js";
|
|
9
|
+
import { L as Me } from "./field-label-headless-Yg_1PMSg.js";
|
|
10
10
|
import { N as Te, S as $e } from "./non-modal-popover-D-u13tmp.js";
|
|
11
11
|
import { u as je } from "./use-invoke-callback-UH73A_J3.js";
|
|
12
|
-
import { a as Ae, u as ke } from "./use-dropdown-trigger-class-name-
|
|
13
|
-
import { V as Ue, u as Ve } from "./use-dropdown-option-class-name-
|
|
12
|
+
import { a as Ae, u as ke } from "./use-dropdown-trigger-class-name-qj9skLWZ.js";
|
|
13
|
+
import { V as Ue, u as Ve } from "./use-dropdown-option-class-name-BEmvU-Gg.js";
|
|
14
14
|
import ae, { AsYouType as qe, isValidPhoneNumber as Ge, isSupportedCountry as He } from "libphonenumber-js";
|
|
15
15
|
import "libphonenumber-js/metadata.min.json";
|
|
16
16
|
import { C as W } 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 ze } from "./error-icon-hZxQ6DEy.js";
|
|
19
19
|
import { H as Z } from "./custom-focus-class-_483Pkwp.js";
|
|
20
20
|
import { s as O } from "./field-rac.module-DfEb7pBp.js";
|
|
21
|
-
import { u as Ke } from "./use-text-input-class-name-
|
|
21
|
+
import { u as Ke } from "./use-text-input-class-name-BhQFcXYH.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)
|
|
@@ -334,6 +334,7 @@ const rt = ({ className: e }) => {
|
|
|
334
334
|
ref: f,
|
|
335
335
|
id: r,
|
|
336
336
|
type: "tel",
|
|
337
|
+
autoComplete: "tel",
|
|
337
338
|
value: d,
|
|
338
339
|
onChange: (y) => p(y.target.value),
|
|
339
340
|
disabled: l,
|
|
@@ -2,11 +2,11 @@ import t, { useMemo as H, useCallback as M, useRef as U } from "react";
|
|
|
2
2
|
import { RicosViewer as K } from "@wix/ricos/viewer";
|
|
3
3
|
import _ from "classnames";
|
|
4
4
|
import { CheckboxField as z, CheckboxButton as X, NumberField as j, Group as J, Button as Q, Input as W } from "react-aria-components";
|
|
5
|
-
import { bn as x, bk as Y, bf as w, bx as Z, bp as ee, R as te, $ as ne, S as ae, V as oe, U as re, Q as se, G as le, u as ie, T as ce } from "./form-
|
|
5
|
+
import { bn as x, bk as Y, bf as w, bx as Z, bp as ee, R as te, $ as ne, S as ae, V as oe, U as re, Q as se, G as le, u as ie, T as ce } from "./form-Bed4Kfz8.js";
|
|
6
6
|
import { f as I, a as b } 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-Yg_1PMSg.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-CsYQCsiT.js";
|
|
10
10
|
import { F as ye } from "./fieldset-headless-CD3fds9J.js";
|
|
11
11
|
import { g as fe } from "./payment-field-utils-DobiK5Xh.js";
|
|
12
12
|
import { S as _e } from "./selection-indicator-XQ8MYHUQ.js";
|
|
@@ -14,7 +14,7 @@ import { E as be } from "./error-icon-hZxQ6DEy.js";
|
|
|
14
14
|
import { C as Ie } from "./checkbox-indicator-module-classes-6173wvuW.js";
|
|
15
15
|
import { s as q } from "./field-rac.module-DfEb7pBp.js";
|
|
16
16
|
import { o as V } 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-oiKCauK-.js";
|
|
18
18
|
var Le = /* @__PURE__ */ (function(e) {
|
|
19
19
|
return e.crop = "CROP", e.fit = "FIT", e;
|
|
20
20
|
})({}), k = /* @__PURE__ */ (function(e) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import a, { useRef as F, useState as V, useEffect as T, useCallback as B } from "react";
|
|
2
2
|
import { RadioGroup as H, RadioField as k, RadioButton as x, TextField as A, Input as G } from "react-aria-components";
|
|
3
|
-
import { bn as g, bk as P, bx as D, bp as $ } from "./form-
|
|
3
|
+
import { bn as g, bk as P, bx as D, bp as $ } from "./form-Bed4Kfz8.js";
|
|
4
4
|
import { f as d, a as v } from "./find-child-C60k4CxG.js";
|
|
5
|
-
import { D as U, E as M } from "./field-error-headless-
|
|
6
|
-
import { L as j } from "./field-label-headless-
|
|
5
|
+
import { D as U, E as M } from "./field-error-headless-CsYQCsiT.js";
|
|
6
|
+
import { L as j } from "./field-label-headless-Yg_1PMSg.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), S = (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-CuTxslBP.js → radio-group-field-rac-w8fHpFKJ.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-CqdBGknT.js";
|
|
5
5
|
import { E as c } from "./error-icon-hZxQ6DEy.js";
|
|
6
6
|
import { s as r } from "./field-rac.module-DfEb7pBp.js";
|
|
7
|
-
import { R as i, $ as E, W as p, X as R, G as O, u as _, Y as I } from "./form-
|
|
7
|
+
import { R as i, $ as E, W as p, X as R, G as O, u as _, Y as I } from "./form-Bed4Kfz8.js";
|
|
8
8
|
import { o as L } from "./options-rac.module-_THNq6Qq.js";
|
|
9
|
-
import { u } from "./use-element-state-class-name-
|
|
10
|
-
import { u as N } from "./use-text-input-class-name-
|
|
9
|
+
import { u } from "./use-element-state-class-name-oiKCauK-.js";
|
|
10
|
+
import { u as N } from "./use-text-input-class-name-BhQFcXYH.js";
|
|
11
11
|
const D = ({ content: o, locale: l }) => /* @__PURE__ */ e.createElement(m, {
|
|
12
12
|
content: o,
|
|
13
13
|
locale: l
|