@wix/form-elements 1.145.0 → 1.147.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-De-uH9rz.js → appointment-rac-BG5-bIZU.js} +98 -98
- package/dist/component/{bookings-address-rac-DB6QCMQJ.js → bookings-address-rac-8e8PqKsp.js} +1 -1
- package/dist/component/{bookings-email-rac-g6ZdB_BO.js → bookings-email-rac-CtlnU8ws.js} +1 -1
- package/dist/component/{bookings-first-name-rac-DQgL_VHl.js → bookings-first-name-rac-CrivNlXM.js} +1 -1
- package/dist/component/{bookings-header-rac-DAnIm-Oq.js → bookings-header-rac-DWDAjfqq.js} +1 -1
- package/dist/component/{bookings-last-name-rac-D62jNdDb.js → bookings-last-name-rac-qAthWem2.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-5z8HfBhU.js → bookings-login-bar-rac-BNyUDqlM.js} +6 -6
- package/dist/component/{bookings-phone-rac-D0gu-_wy.js → bookings-phone-rac-Tc39XLr7.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-b4J1HcdI.js → bookings-rich-text-rac-CPNaPtFK.js} +1 -1
- package/dist/component/{checkbox-field-rac-CmRRc9Dz.js → checkbox-field-rac-DEa78Tpf.js} +4 -4
- package/dist/component/{checkbox-group-field-headless-CB8yAfMe.js → checkbox-group-field-headless-BxBaMg29.js} +68 -68
- package/dist/component/{checkbox-group-field-rac-C5gRZRTd.js → checkbox-group-field-rac-CRRP03Qk.js} +7 -7
- package/dist/component/{checkbox-group-rac-DNDF1Irh.js → checkbox-group-rac-TOofMGl3.js} +1 -1
- package/dist/component/{checkbox-rac-B9vztGBU.js → checkbox-rac-CHMHr8Ry.js} +1 -1
- package/dist/component/{contacts-address-rac-CKZeSncj.js → contacts-address-rac-Bc5yDvTL.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-BbpNNQgF.js → contacts-birthdate-rac-Ubtg5ncv.js} +1 -1
- package/dist/component/{contacts-company-rac-BX2KT201.js → contacts-company-rac-BksH9IoV.js} +1 -1
- package/dist/component/{contacts-email-rac-5Irzx1mA.js → contacts-email-rac-DDPEtMAm.js} +1 -1
- package/dist/component/{contacts-first-name-rac-CxKp8_2u.js → contacts-first-name-rac-DUlCvEdx.js} +1 -1
- package/dist/component/{contacts-last-name-rac-BDCbSv5I.js → contacts-last-name-rac-BikqNgUr.js} +1 -1
- package/dist/component/{contacts-phone-rac-BM_PV_uH.js → contacts-phone-rac-B4OEgM_8.js} +1 -1
- package/dist/component/{contacts-position-rac-1aqthQSi.js → contacts-position-rac-BfybzySV.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-CdqXs4kp.js → contacts-subscribe-rac-CMHb33v1.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-BKHpcDb6.js → contacts-tax-id-rac-C-qEqwO5.js} +1 -1
- package/dist/component/{date-availability-DmFFTX8p.js → date-availability-DZ3J3LLm.js} +1 -1
- package/dist/component/date-input-field-rac-DeL5vuE7.js +297 -0
- package/dist/component/{date-input-rac-BB6qZ16w.js → date-input-rac-Di6TQvFf.js} +1 -1
- package/dist/component/{date-picker-field-rac-Ckwu2vD6.js → date-picker-field-rac-BcdpTkjV.js} +107 -103
- package/dist/component/{date-picker-rac-DSqzUAaH.js → date-picker-rac-Brne65gr.js} +1 -1
- package/dist/component/{date-time-input-field-rac-DO-iRdkW.js → date-time-input-field-rac-BtQfAxRp.js} +49 -49
- package/dist/component/{date-time-input-rac-smVCCxdY.js → date-time-input-rac-DM_HXiqV.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-B8bx3rT2.js → dext-checkbox-group-rac-WTVwhGG0.js} +2 -2
- package/dist/component/{dext-checkbox-rac-x8VLGRbc.js → dext-checkbox-rac-BR5YwmLQ.js} +1 -1
- package/dist/component/{dext-date-picker-rac-D2a9NXap.js → dext-date-picker-rac-DvDuRGYi.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-Cp5XjpGv.js → dext-date-time-input-rac-C6RgbaVv.js} +1 -1
- package/dist/component/{dext-dropdown-rac-nWgEvyxt.js → dext-dropdown-rac-CWjSdcZx.js} +1 -1
- package/dist/component/{dext-email-rac-CkX6ya8p.js → dext-email-rac-D-C1gVTq.js} +1 -1
- package/dist/component/{dext-number-input-rac-CKT0MS1x.js → dext-number-input-rac-YKzZS2ZG.js} +1 -1
- package/dist/component/{dext-phone-rac-DM2E7zW_.js → dext-phone-rac-CFZlEH2a.js} +1 -1
- package/dist/component/dext-radio-group-rac-DiH0wIIl.js +18 -0
- package/dist/component/{dext-rating-input-rac-CKWNpFuu.js → dext-rating-input-rac-D0s-i0qO.js} +1 -1
- package/dist/component/{dext-tags-rac-6AskGGTp.js → dext-tags-rac-Br48OQQ5.js} +2 -2
- package/dist/component/{dext-text-area-rac-ClGLD7sD.js → dext-text-area-rac-6jG8gJ7i.js} +1 -1
- package/dist/component/{dext-text-input-rac-Blbk53d4.js → dext-text-input-rac-FAJTCXuf.js} +1 -1
- package/dist/component/{dext-url-input-rac-BuitmJU0.js → dext-url-input-rac-BoMP8sQB.js} +1 -1
- package/dist/component/{donation-rac-DOifFCD7.js → donation-rac-DNi4p-v5.js} +69 -69
- package/dist/component/{dropdown-field-headless-m2P6s7X5.js → dropdown-field-headless-7SCC-xOC.js} +27 -27
- package/dist/component/{dropdown-field-rac-5e6wWJBl.js → dropdown-field-rac-CMzZh6J6.js} +8 -9
- package/dist/component/{dropdown-rac-BGxE9pJB.js → dropdown-rac-qeugpHXY.js} +1 -1
- package/dist/component/{ecom-address-rac-kbD9qW5Y.js → ecom-address-rac-D8b_L5md.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-CE-Yixnj.js → ecom-subscription-checkbox-rac-BnAuR9La.js} +5 -5
- package/dist/component/{email-input-field-rac-CbwcB33o.js → email-input-field-rac-CunXRyc5.js} +64 -62
- package/dist/component/{events-repeater-rac-CGhUscBr.js → events-repeater-rac-DMjyIOkB.js} +17 -17
- package/dist/component/{events-rsvp-rac-AQ33zPTe.js → events-rsvp-rac-BsuDPq2K.js} +8 -8
- package/dist/component/{field-error-headless-ClPQ03Jc.js → field-error-headless-E8WjFr_n.js} +6 -6
- package/dist/component/{field-label-headless-DhN8Lkuq.js → field-label-headless-BakLOu5E.js} +15 -15
- package/dist/component/{file-upload-rac-yTx1ZRhZ.js → file-upload-rac-Clu_c--0.js} +43 -43
- package/dist/component/{fixed-payment-rac-nlyxa9nB.js → fixed-payment-rac-CzAXxsb-.js} +12 -12
- package/dist/component/{form-D3iU18lh.js → form-DHAKwnLt.js} +3850 -3872
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +2 -2
- package/dist/component/{header-field-rac-DAEzcleV.js → header-field-rac-CwmVpz3r.js} +4 -4
- package/dist/component/{header-rac-CJZ4qMFg.js → header-rac-ahkGRjSy.js} +1 -1
- package/dist/component/{image-choice-rac-BFAMHwPh.js → image-choice-rac-BwxkkdUu.js} +17 -17
- package/dist/component/{index-DQW26cnX.js → index-BFi_n6B7.js} +2 -2
- package/dist/component/{index-W7GOFnq8.js → index-BQf23zZi.js} +91 -91
- package/dist/component/{isObjectLike-CE8eaxSI.js → isObjectLike-DHcMRYYH.js} +15 -15
- package/dist/component/{multiline-address-field-rac-FbJO0HFf.js → multiline-address-field-rac-C6xaqNOk.js} +68 -60
- package/dist/component/{multiline-address-rac-CI-vt6Pm.js → multiline-address-rac-DF4TFuDx.js} +1 -1
- package/dist/component/{number-input-field-rac-BRVAr7LL.js → number-input-field-rac-uVJ3SBv2.js} +27 -27
- package/dist/component/{number-input-rac-C8hCiJiu.js → number-input-rac-D6ERhrSM.js} +1 -1
- package/dist/component/{password-rac-Baslr6Ga.js → password-rac-CAiC0ZKl.js} +47 -46
- package/dist/component/{payment-input-rac-CfJSKxYz.js → payment-input-rac-Bu25xvby.js} +33 -32
- package/dist/component/{phone-input-field-rac-Dqh4CXdC.js → phone-input-field-rac-32qUvCsC.js} +46 -45
- package/dist/component/{phone-rac-DaLuGuxd.js → phone-rac-mNrpj30q.js} +1 -1
- package/dist/component/{product-list-rac-PNMwRBtL.js → product-list-rac-zHdM9rHw.js} +53 -53
- package/dist/component/{quiz-radio-group-rac-DN8vY-oM.js → quiz-radio-group-rac-BaSlT8w3.js} +1 -1
- package/dist/component/{radio-button-module-classes-DlJi9a2f.js → radio-button-module-classes-BdWjkBlX.js} +9 -9
- package/dist/component/{radio-group-field-rac-C0tLXhl5.js → radio-group-field-rac-DI0UgTBr.js} +12 -12
- package/dist/component/{radio-group-rac-FAk7PYgP.js → radio-group-rac-D2ESG8J4.js} +1 -1
- package/dist/component/{rating-input-field-rac-Cl1kH_uu.js → rating-input-field-rac-BYT2XqOK.js} +26 -26
- package/dist/component/{rating-input-rac-D9p-0pkI.js → rating-input-rac-D-5CmVAX.js} +1 -1
- package/dist/component/{rich-content-rac.module-Dkr46kPC.js → rich-content-rac.module-Dp9Advo9.js} +8 -8
- package/dist/component/{rich-text-field-rac-DthhTvTp.js → rich-text-field-rac-COEUwoXQ.js} +4 -4
- package/dist/component/{rich-text-rac-DqZX4NeB.js → rich-text-rac-CQZLjBQ0.js} +1 -1
- package/dist/component/{service-dropdown-rac-BMOGLU2Z.js → service-dropdown-rac-BTtJVFv8.js} +44 -45
- package/dist/component/{services-multi-choice-rac-DcdUewzJ.js → services-multi-choice-rac-hbY3g0Kb.js} +11 -11
- package/dist/component/{signature-rac-BRvN6kUW.js → signature-rac-CTCNclwL.js} +67 -67
- package/dist/component/{submit-button-rac-B70UC8eS.js → submit-button-rac-kKGeVgsG.js} +25 -25
- package/dist/component/{tags-field-rac-NpYyV8X4.js → tags-field-rac-CVf7oQr_.js} +35 -35
- package/dist/component/{tags-rac-BMEbpJ-z.js → tags-rac-DiX1_nTT.js} +1 -1
- package/dist/component/{text-area-field-rac-BLSrNwJ6.js → text-area-field-rac-IhBNXiDl.js} +22 -22
- package/dist/component/{text-area-rac-Cm7aAfIz.js → text-area-rac-DHevCtFF.js} +1 -1
- package/dist/component/{text-input-field-rac-BDqV7s0M.js → text-input-field-rac-Da3_wTdh.js} +5 -5
- package/dist/component/text-input-headless-DcZRRXCp.js +45 -0
- package/dist/component/{text-input-rac-Cc_SkCCS.js → text-input-rac-564LIZ1_.js} +1 -1
- package/dist/component/{time-input-rac-DDCiAFe2.js → time-input-rac-p-Nnsxp_.js} +54 -54
- package/dist/component/{url-input-field-rac-jen6pbz7.js → url-input-field-rac-DjrcpRtm.js} +27 -26
- package/dist/component/{url-input-rac-BWh6udtS.js → url-input-rac-B3brpyop.js} +1 -1
- package/dist/component/use-dropdown-trigger-class-name-BWTT7ltv.js +117 -0
- package/dist/component/{use-element-state-class-name-B1r_nXW1.js → use-element-state-class-name-CUZuhFvZ.js} +3 -3
- package/dist/component/{use-hoverable-input-class-name-B-FhrcyQ.js → use-hoverable-input-class-name-ugX8-g4E.js} +6 -6
- package/dist/component/use-is-forced-open-dropdown-DUZMvWpk.js +48 -0
- package/dist/component/{use-service-options-base-CTA_43F3.js → use-service-options-base-hqO9Ev38.js} +6 -6
- package/dist/component/use-text-input-class-name-wp9dzpEy.js +6 -0
- package/dist/form.d.ts +5 -0
- package/package.json +2 -2
- package/dist/component/date-input-field-rac-BnlAOn12.js +0 -290
- package/dist/component/dext-radio-group-rac-Czr5yY3K.js +0 -18
- package/dist/component/text-input-headless-B0jcwDev.js +0 -44
- package/dist/component/use-dropdown-option-class-name-OD8brKoy.js +0 -115
- package/dist/component/use-dropdown-trigger-class-name-BrkmG0ad.js +0 -40
- package/dist/component/use-text-input-class-name-BXuk3TK7.js +0 -6
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aL as c } from "./form-DHAKwnLt.js";
|
|
2
2
|
var b, d;
|
|
3
|
-
function
|
|
3
|
+
function L() {
|
|
4
4
|
if (d) return b;
|
|
5
5
|
d = 1;
|
|
6
6
|
var r = typeof c == "object" && c && c.Object === Object && c;
|
|
7
7
|
return b = r, b;
|
|
8
8
|
}
|
|
9
9
|
var f, S;
|
|
10
|
-
function
|
|
10
|
+
function k() {
|
|
11
11
|
if (S) return f;
|
|
12
12
|
S = 1;
|
|
13
|
-
var r =
|
|
13
|
+
var r = L(), e = typeof self == "object" && self && self.Object === Object && self, t = r || e || Function("return this")();
|
|
14
14
|
return f = t, f;
|
|
15
15
|
}
|
|
16
16
|
var s, O;
|
|
17
17
|
function R() {
|
|
18
18
|
if (O) return s;
|
|
19
19
|
O = 1;
|
|
20
|
-
var r =
|
|
20
|
+
var r = k(), e = r.Symbol;
|
|
21
21
|
return s = e, s;
|
|
22
22
|
}
|
|
23
23
|
var g, _;
|
|
24
|
-
function
|
|
24
|
+
function I() {
|
|
25
25
|
if (_) return g;
|
|
26
26
|
_ = 1;
|
|
27
27
|
var r = R(), e = Object.prototype, t = e.hasOwnProperty, i = e.toString, o = r ? r.toStringTag : void 0;
|
|
@@ -48,17 +48,17 @@ function P() {
|
|
|
48
48
|
return l = t, l;
|
|
49
49
|
}
|
|
50
50
|
var j, q;
|
|
51
|
-
function
|
|
51
|
+
function N() {
|
|
52
52
|
if (q) return j;
|
|
53
53
|
q = 1;
|
|
54
|
-
var r = R(), e =
|
|
54
|
+
var r = R(), e = I(), t = P(), i = "[object Null]", o = "[object Undefined]", u = r ? r.toStringTag : void 0;
|
|
55
55
|
function n(a) {
|
|
56
56
|
return a == null ? a === void 0 ? o : i : u && u in Object(a) ? e(a) : t(a);
|
|
57
57
|
}
|
|
58
58
|
return j = n, j;
|
|
59
59
|
}
|
|
60
60
|
var v, m;
|
|
61
|
-
function
|
|
61
|
+
function U() {
|
|
62
62
|
if (m) return v;
|
|
63
63
|
m = 1;
|
|
64
64
|
function r(e) {
|
|
@@ -68,7 +68,7 @@ function N() {
|
|
|
68
68
|
return v = r, v;
|
|
69
69
|
}
|
|
70
70
|
var T, p;
|
|
71
|
-
function
|
|
71
|
+
function z() {
|
|
72
72
|
if (p) return T;
|
|
73
73
|
p = 1;
|
|
74
74
|
function r(e) {
|
|
@@ -77,10 +77,10 @@ function U() {
|
|
|
77
77
|
return T = r, T;
|
|
78
78
|
}
|
|
79
79
|
export {
|
|
80
|
-
|
|
80
|
+
z as a,
|
|
81
81
|
R as b,
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
82
|
+
N as c,
|
|
83
|
+
L as d,
|
|
84
|
+
k as e,
|
|
85
|
+
U as r
|
|
86
86
|
};
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { RicosViewer as G } from "@wix/ricos/viewer";
|
|
2
2
|
import L from "classnames";
|
|
3
|
-
import r, { useMemo as q, createContext as
|
|
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 {
|
|
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, S as z, a0 as Q, y as ge, H as Z, v as ee } from "./form-DHAKwnLt.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
|
|
9
|
-
import { TextField as fe, Input as le, ComboBoxStateContext as
|
|
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
|
|
13
|
-
import { V as en, u as tn } from "./use-dropdown-
|
|
8
|
+
import { a as Xt } from "./use-is-forced-open-dropdown-DUZMvWpk.js";
|
|
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-E8WjFr_n.js";
|
|
11
|
+
import { L as de } from "./field-label-headless-BakLOu5E.js";
|
|
12
|
+
import { e as Gt, c as zt, a as Qt, r as gt } from "./isObjectLike-DHcMRYYH.js";
|
|
13
|
+
import { V as Zt, a as en, u as tn } from "./use-dropdown-trigger-class-name-BWTT7ltv.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-wp9dzpEy.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) => {
|
|
@@ -51,7 +51,7 @@ function sn(e, t, o = !1) {
|
|
|
51
51
|
const { country: n, subdivision: a, city: l, addressLine: i, streetAddress: s, addressLine2: d, postalCode: m } = e, u = {};
|
|
52
52
|
return t ? (n && (u.country = n), a && (u.subdivision = a), l && (u.city = l), i ? u.addressLine = i : s != null && s.formattedAddressLine && (u.addressLine = s == null ? void 0 : s.formattedAddressLine), d && (u.addressLine = d), m && (u.postalCode = m), s != null && s.apt && (u.apartment = s == null ? void 0 : s.apt), s != null && s.name ? u.streetName = s == null ? void 0 : s.name : o && (s != null && s.formattedAddressLine) && (u.streetName = s == null ? void 0 : s.formattedAddressLine), s != null && s.number && (u.streetNumber = s.number)) : (n && (u.country = n), a && (u.subdivision = a), l && (u.city = l), i ? u.address_line = i : s != null && s.formattedAddressLine && (u.address_line = s == null ? void 0 : s.formattedAddressLine), d && (u.address_line = d), m && (u.postal_code = m), s != null && s.apt && (u.apartment = s == null ? void 0 : s.apt), s != null && s.name ? u.street_name = s == null ? void 0 : s.name : o && (s != null && s.formattedAddressLine) && (u.street_name = s == null ? void 0 : s.formattedAddressLine), s != null && s.number && (u.street_number = s.number)), u;
|
|
53
53
|
}
|
|
54
|
-
const Ot = /* @__PURE__ */
|
|
54
|
+
const Ot = /* @__PURE__ */ Ve({
|
|
55
55
|
onAddressSelect: () => {
|
|
56
56
|
}
|
|
57
57
|
}), an = ({ children: e, onAddressSelect: t, autocompleteEnabled: o }) => {
|
|
@@ -69,7 +69,7 @@ const Ot = /* @__PURE__ */ We({
|
|
|
69
69
|
function Ie() {
|
|
70
70
|
return Ce(Ot);
|
|
71
71
|
}
|
|
72
|
-
const vt = /* @__PURE__ */
|
|
72
|
+
const vt = /* @__PURE__ */ Ve(void 0), ln = ({ children: e, countryCode: t }) => {
|
|
73
73
|
const o = q(() => ({
|
|
74
74
|
countryCode: t
|
|
75
75
|
}), [
|
|
@@ -167,15 +167,15 @@ const dn = (e, t) => e.map((o) => ({
|
|
|
167
167
|
fields: i
|
|
168
168
|
};
|
|
169
169
|
}, yn = () => ({
|
|
170
|
-
country:
|
|
171
|
-
subdivision:
|
|
172
|
-
city:
|
|
173
|
-
address_line:
|
|
174
|
-
address_line_2:
|
|
175
|
-
postal_code:
|
|
176
|
-
street_name:
|
|
177
|
-
street_number:
|
|
178
|
-
apartment:
|
|
170
|
+
country: W(),
|
|
171
|
+
subdivision: W(),
|
|
172
|
+
city: W(),
|
|
173
|
+
address_line: W(),
|
|
174
|
+
address_line_2: W(),
|
|
175
|
+
postal_code: W(),
|
|
176
|
+
street_name: W(),
|
|
177
|
+
street_number: W(),
|
|
178
|
+
apartment: W()
|
|
179
179
|
}), Cn = ({ id: e, target: t, fieldType: o, form: n, country: a, fieldSettings: l, validation: i, required: s }) => {
|
|
180
180
|
const [d] = be(yn), { isExperimentEnabled: m } = ft(), u = m(yt.USE_FIELDS_V2), { getCountryAddressForm: y } = Pt(), { isMobile: C, breakpoint: b } = Ct(), p = y(a), f = o === K.MULTILINE_ADDRESS || o === K.BOOKINGS_ADDRESS, N = q(() => {
|
|
181
181
|
var O;
|
|
@@ -225,7 +225,7 @@ const dn = (e, t) => e.map((o) => ({
|
|
|
225
225
|
]),
|
|
226
226
|
isMultilineAddressField: f
|
|
227
227
|
};
|
|
228
|
-
}, ht = /* @__PURE__ */
|
|
228
|
+
}, ht = /* @__PURE__ */ Ve(void 0), In = ({ children: e, fields: t }) => {
|
|
229
229
|
const o = q(() => ({
|
|
230
230
|
fields: t
|
|
231
231
|
}), [
|
|
@@ -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
|
|
@@ -283,7 +284,7 @@ ne.Input = Ln;
|
|
|
283
284
|
ne.Description = ie;
|
|
284
285
|
ne.Error = ce;
|
|
285
286
|
const Ke = ({ enabled: e }) => {
|
|
286
|
-
const { actions: t } = It(), [o, n] = be(
|
|
287
|
+
const { actions: t } = It(), [o, n] = be(W()), a = R(() => n(W()), []);
|
|
287
288
|
return q(() => {
|
|
288
289
|
const { predict: l, getPlace: i, searchByPostalCode: s } = t ?? {};
|
|
289
290
|
if (!(!e || !l || !i || !s))
|
|
@@ -313,7 +314,7 @@ var qe, ct;
|
|
|
313
314
|
function Nn() {
|
|
314
315
|
if (ct) return qe;
|
|
315
316
|
ct = 1;
|
|
316
|
-
var e =
|
|
317
|
+
var e = Gt(), t = function() {
|
|
317
318
|
return e.Date.now();
|
|
318
319
|
};
|
|
319
320
|
return qe = t, qe;
|
|
@@ -344,7 +345,7 @@ var ke, mt;
|
|
|
344
345
|
function vn() {
|
|
345
346
|
if (mt) return ke;
|
|
346
347
|
mt = 1;
|
|
347
|
-
var e =
|
|
348
|
+
var e = zt(), t = Qt(), o = "[object Symbol]";
|
|
348
349
|
function n(a) {
|
|
349
350
|
return typeof a == "symbol" || t(a) && e(a) == o;
|
|
350
351
|
}
|
|
@@ -372,9 +373,9 @@ function Fn() {
|
|
|
372
373
|
}
|
|
373
374
|
return $e = d, $e;
|
|
374
375
|
}
|
|
375
|
-
var
|
|
376
|
+
var Ue, Et;
|
|
376
377
|
function hn() {
|
|
377
|
-
if (Et) return
|
|
378
|
+
if (Et) return Ue;
|
|
378
379
|
Et = 1;
|
|
379
380
|
var e = gt(), t = Nn(), o = Fn(), n = "Expected a function", a = Math.max, l = Math.min;
|
|
380
381
|
function i(s, d, m) {
|
|
@@ -424,7 +425,7 @@ function hn() {
|
|
|
424
425
|
}
|
|
425
426
|
return M.cancel = j, M.flush = B, M;
|
|
426
427
|
}
|
|
427
|
-
return
|
|
428
|
+
return Ue = i, Ue;
|
|
428
429
|
}
|
|
429
430
|
var Dn = hn();
|
|
430
431
|
const Sn = /* @__PURE__ */ qt(Dn), Rn = (e, t, o = 200) => {
|
|
@@ -489,7 +490,7 @@ const Sn = /* @__PURE__ */ qt(Dn), Rn = (e, t, o = 200) => {
|
|
|
489
490
|
clearPredictions: d
|
|
490
491
|
};
|
|
491
492
|
}, Ye = ({ optionCount: e }) => {
|
|
492
|
-
const t = Ce(
|
|
493
|
+
const t = Ce(We), o = x(t);
|
|
493
494
|
o.current = t;
|
|
494
495
|
const n = x(e);
|
|
495
496
|
return _e(() => {
|
|
@@ -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
|
|
@@ -715,7 +719,7 @@ oe.Input = Mn;
|
|
|
715
719
|
oe.Description = ie;
|
|
716
720
|
oe.Error = ce;
|
|
717
721
|
const qn = ({ isOpen: e }) => {
|
|
718
|
-
const t = Ce(
|
|
722
|
+
const t = Ce(We), o = x(!1);
|
|
719
723
|
return _e(() => {
|
|
720
724
|
e && t && !t.isOpen && t.open(null, "manual"), e && (t == null ? void 0 : t.selectionManager.focusedKey) != null && t.selectionManager.setFocusedKey(null), !e && o.current && (t == null || t.close()), o.current = e;
|
|
721
725
|
}, [
|
|
@@ -723,7 +727,7 @@ const qn = ({ isOpen: e }) => {
|
|
|
723
727
|
t
|
|
724
728
|
]), null;
|
|
725
729
|
}, St = ({ readOnly: e, disabled: t } = {}) => {
|
|
726
|
-
const o = Ce(
|
|
730
|
+
const o = Ce(We);
|
|
727
731
|
return R(() => {
|
|
728
732
|
!o || o.isOpen || e || t || o.open(null, "manual");
|
|
729
733
|
}, [
|
|
@@ -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,
|
|
@@ -854,7 +859,7 @@ const je = ({ children: e, className: t, ...o }) => {
|
|
|
854
859
|
className: t,
|
|
855
860
|
containerPadding: 0,
|
|
856
861
|
offset: 0
|
|
857
|
-
}, /* @__PURE__ */ r.createElement(
|
|
862
|
+
}, /* @__PURE__ */ r.createElement(Zt, {
|
|
858
863
|
isForcedOpen: a
|
|
859
864
|
}, n.map((i) => F(l, {
|
|
860
865
|
key: i.value,
|
|
@@ -875,12 +880,12 @@ Y.Control = ve;
|
|
|
875
880
|
Y.Options = je;
|
|
876
881
|
Y.Description = ie;
|
|
877
882
|
Y.Error = ce;
|
|
878
|
-
const
|
|
879
|
-
function
|
|
883
|
+
const Un = /(\d{7})|(\d{3}-\d{4})/;
|
|
884
|
+
function Vn(e) {
|
|
880
885
|
var t;
|
|
881
|
-
return (t = e.match(
|
|
886
|
+
return (t = e.match(Un)) == null ? void 0 : t[0];
|
|
882
887
|
}
|
|
883
|
-
function
|
|
888
|
+
function Wn({ isAutocompleteEnabled: e }) {
|
|
884
889
|
const t = x({
|
|
885
890
|
hasAddress: !1
|
|
886
891
|
}), o = Ke({
|
|
@@ -888,7 +893,7 @@ function Un({ isAutocompleteEnabled: e }) {
|
|
|
888
893
|
});
|
|
889
894
|
return {
|
|
890
895
|
searchByPostalCode: R(async (a) => {
|
|
891
|
-
const l =
|
|
896
|
+
const l = Vn(a);
|
|
892
897
|
if (l) {
|
|
893
898
|
if (t.current.postalCode === l && t.current.hasAddress)
|
|
894
899
|
return t.current.address;
|
|
@@ -949,11 +954,11 @@ const $ = ({ children: e }) => {
|
|
|
949
954
|
renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, _, w)
|
|
950
955
|
});
|
|
951
956
|
}, Kn = ({ children: e, value: t, onChange: o, disabled: n, readOnly: a, required: l, hasError: i, onBlur: s, onFocus: d }) => {
|
|
952
|
-
const { labelId: m } = T(), { onAddressSelect: u } = Ie(), [y, C] = be(!1), { searchByPostalCode: b } =
|
|
957
|
+
const { labelId: m } = T(), { onAddressSelect: u } = Ie(), [y, C] = be(!1), { searchByPostalCode: b } = Wn({
|
|
953
958
|
isAutocompleteEnabled: y
|
|
954
959
|
}), [p, f] = be(), N = q(() => p ? [
|
|
955
960
|
{
|
|
956
|
-
id:
|
|
961
|
+
id: W(),
|
|
957
962
|
label: p.formattedAddress || ""
|
|
958
963
|
}
|
|
959
964
|
] : [], [
|
|
@@ -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,
|
|
@@ -1051,8 +1057,8 @@ $.Control = Je;
|
|
|
1051
1057
|
$.Options = Xe;
|
|
1052
1058
|
$.Description = ie;
|
|
1053
1059
|
$.Error = ce;
|
|
1054
|
-
const
|
|
1055
|
-
const { id: t, value: o, onChange: n, disabled: a, readOnly: l, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u, autocomplete: y } = P(), { labelId: C } = T(), { autocompleteEnabled: b } = Ie(), p = y || b, f = pe("streetName"), N = E(e,
|
|
1060
|
+
const U = ({ children: e }) => {
|
|
1061
|
+
const { id: t, value: o, onChange: n, disabled: a, readOnly: l, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u, autocomplete: y } = P(), { labelId: C } = T(), { autocompleteEnabled: b } = Ie(), p = y || b, f = pe("streetName"), N = E(e, U.Label), S = E(e, U.Input), h = E(e, U.Options), O = E(e, U.Description), A = E(e, U.Error);
|
|
1056
1062
|
return p ? /* @__PURE__ */ r.createElement(u, {
|
|
1057
1063
|
fieldId: t,
|
|
1058
1064
|
renderLabel: () => F(N, {
|
|
@@ -1092,7 +1098,7 @@ const V = ({ children: e }) => {
|
|
|
1092
1098
|
enabled: !0
|
|
1093
1099
|
}), { predictions: b, updatePredictions: p, clearPredictions: f } = Dt({
|
|
1094
1100
|
atlas: C
|
|
1095
|
-
}), N = E(e,
|
|
1101
|
+
}), N = E(e, U.Input), S = E(e, U.Options), h = q(() => b.reduce((g, v) => (v.searchId && v.description && g.push({
|
|
1096
1102
|
id: v.searchId,
|
|
1097
1103
|
label: v.description
|
|
1098
1104
|
}), g), []), [
|
|
@@ -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,
|
|
@@ -1185,11 +1192,11 @@ const V = ({ children: e }) => {
|
|
|
1185
1192
|
}, n);
|
|
1186
1193
|
};
|
|
1187
1194
|
Ge.Option = Xn;
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1195
|
+
U.Label = de;
|
|
1196
|
+
U.Input = Jn;
|
|
1197
|
+
U.Options = Ge;
|
|
1198
|
+
U.Description = ie;
|
|
1199
|
+
U.Error = ce;
|
|
1193
1200
|
const se = ({ children: e }) => {
|
|
1194
1201
|
const { id: t, value: o, onChange: n, disabled: a, readOnly: l, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u } = P(), { labelId: y } = T(), C = pe("streetNumber"), b = E(e, se.Label), p = E(e, se.Input), f = E(e, se.Description), N = E(e, se.Error);
|
|
1195
1202
|
return /* @__PURE__ */ r.createElement(u, {
|
|
@@ -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,
|
|
@@ -1340,12 +1348,12 @@ const er = () => ue("country"), tr = () => ue("subdivision"), nr = () => ue("cit
|
|
|
1340
1348
|
...cr
|
|
1341
1349
|
}), [
|
|
1342
1350
|
h
|
|
1343
|
-
]), { isExperimentEnabled: A } = ft(), w = A(yt.STREETLESS_LOCALITY_FALLBACK), { validateFields: _ } = $t(), g =
|
|
1351
|
+
]), { isExperimentEnabled: A } = ft(), w = A(yt.STREETLESS_LOCALITY_FALLBACK), { validateFields: _ } = $t(), g = Ut(), v = It(), me = q(() => ({
|
|
1344
1352
|
...v,
|
|
1345
1353
|
actions: {
|
|
1346
1354
|
predict: Kt,
|
|
1347
|
-
getPlace:
|
|
1348
|
-
searchByPostalCode:
|
|
1355
|
+
getPlace: Wt,
|
|
1356
|
+
searchByPostalCode: Vt,
|
|
1349
1357
|
...v.actions
|
|
1350
1358
|
}
|
|
1351
1359
|
}), [
|
|
@@ -1359,10 +1367,10 @@ const er = () => ue("country"), tr = () => ue("subdivision"), nr = () => ue("cit
|
|
|
1359
1367
|
fieldSettings: m,
|
|
1360
1368
|
validation: y,
|
|
1361
1369
|
required: p
|
|
1362
|
-
}), M = R((
|
|
1370
|
+
}), M = R((V) => {
|
|
1363
1371
|
if (!n)
|
|
1364
1372
|
return;
|
|
1365
|
-
const X = sn(
|
|
1373
|
+
const X = sn(V, B, w), Re = {
|
|
1366
1374
|
...X,
|
|
1367
1375
|
[ye.COUNTRY]: X[ye.COUNTRY] ?? n[ye.COUNTRY]
|
|
1368
1376
|
};
|
|
@@ -1372,8 +1380,8 @@ const er = () => ue("country"), tr = () => ue("subdivision"), nr = () => ue("cit
|
|
|
1372
1380
|
n,
|
|
1373
1381
|
B,
|
|
1374
1382
|
w
|
|
1375
|
-
]), D = R((
|
|
1376
|
-
if (B &&
|
|
1383
|
+
]), D = R((V, X) => {
|
|
1384
|
+
if (B && V === ye.COUNTRY && (n == null ? void 0 : n[V]) !== X) {
|
|
1377
1385
|
a == null || a({
|
|
1378
1386
|
[ye.COUNTRY]: X
|
|
1379
1387
|
});
|
|
@@ -1381,19 +1389,19 @@ const er = () => ue("country"), tr = () => ue("subdivision"), nr = () => ue("cit
|
|
|
1381
1389
|
}
|
|
1382
1390
|
a == null || a({
|
|
1383
1391
|
...n,
|
|
1384
|
-
[
|
|
1392
|
+
[V]: X
|
|
1385
1393
|
});
|
|
1386
1394
|
}, [
|
|
1387
1395
|
a,
|
|
1388
1396
|
n,
|
|
1389
1397
|
B
|
|
1390
|
-
]), J = R(async (
|
|
1391
|
-
...
|
|
1398
|
+
]), J = R(async (V) => _(B ? [
|
|
1399
|
+
...V,
|
|
1392
1400
|
{
|
|
1393
1401
|
path: `${C}/${ye.COUNTRY}`,
|
|
1394
1402
|
value: n == null ? void 0 : n.country
|
|
1395
1403
|
}
|
|
1396
|
-
] :
|
|
1404
|
+
] : V), [
|
|
1397
1405
|
n,
|
|
1398
1406
|
C,
|
|
1399
1407
|
_,
|
|
@@ -1401,7 +1409,7 @@ const er = () => ue("country"), tr = () => ue("subdivision"), nr = () => ue("cit
|
|
|
1401
1409
|
]);
|
|
1402
1410
|
Yt(t, () => {
|
|
1403
1411
|
var Re;
|
|
1404
|
-
const
|
|
1412
|
+
const V = s == null ? void 0 : s[0], X = (Re = j == null ? void 0 : j.fields) == null ? void 0 : Re.find((at) => "target" in at && at.target === (V == null ? void 0 : V.errorPath));
|
|
1405
1413
|
return X == null ? void 0 : X.id;
|
|
1406
1414
|
});
|
|
1407
1415
|
const Ee = Xt(t), Ne = F(E(e, c.Country), {
|
|
@@ -1466,7 +1474,7 @@ c.City = oe;
|
|
|
1466
1474
|
c.AddressLine = k;
|
|
1467
1475
|
c.AddressLine2 = ne;
|
|
1468
1476
|
c.PostalCode = $;
|
|
1469
|
-
c.StreetName =
|
|
1477
|
+
c.StreetName = U;
|
|
1470
1478
|
c.StreetNumber = se;
|
|
1471
1479
|
c.Apartment = re;
|
|
1472
1480
|
const mr = "_postalCodeControl_1tire_1", pr = "_comboControl_1tire_5", Er = "_comboTrigger_1tire_19", Ae = {
|
|
@@ -1474,7 +1482,7 @@ const mr = "_postalCodeControl_1tire_1", pr = "_comboControl_1tire_5", Er = "_co
|
|
|
1474
1482
|
comboControl: pr,
|
|
1475
1483
|
comboTrigger: Er
|
|
1476
1484
|
}, wr = () => {
|
|
1477
|
-
const e =
|
|
1485
|
+
const e = en(Ae.comboControl), t = rn(), o = tn(we);
|
|
1478
1486
|
return /* @__PURE__ */ r.createElement(c, null, /* @__PURE__ */ r.createElement(c.Country, null, /* @__PURE__ */ r.createElement(c.Country.Label, {
|
|
1479
1487
|
className: L(z, I.label)
|
|
1480
1488
|
}, /* @__PURE__ */ r.createElement(c.Country.Label.Required, {
|
package/dist/component/{number-input-field-rac-BRVAr7LL.js → number-input-field-rac-uVJ3SBv2.js}
RENAMED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { RicosViewer as P } from "@wix/ricos/viewer";
|
|
2
2
|
import i from "classnames";
|
|
3
|
-
import r, { useState as
|
|
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 {
|
|
5
|
+
import { bo as _, bl as S, by as G, bq as J, S as K, a0 as W, H as X, v as Y } from "./form-DHAKwnLt.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-E8WjFr_n.js";
|
|
8
|
+
import { L as ee } from "./field-label-headless-BakLOu5E.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
|
-
import { s as
|
|
13
|
-
import { u as se } from "./use-text-input-class-name-
|
|
12
|
+
import { s as d } from "./field-rac.module-DfEb7pBp.js";
|
|
13
|
+
import { u as se } from "./use-text-input-class-name-wp9dzpEy.js";
|
|
14
14
|
const e = ({ children: t }) => {
|
|
15
|
-
var F,
|
|
16
|
-
const { id: a, value: s, onChange: l, disabled:
|
|
15
|
+
var F, L, R;
|
|
16
|
+
const { id: a, value: s, onChange: l, disabled: p, 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, 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;
|
|
@@ -24,37 +24,37 @@ const e = ({ children: t }) => {
|
|
|
24
24
|
D,
|
|
25
25
|
l
|
|
26
26
|
]);
|
|
27
|
-
return
|
|
27
|
+
return U(() => {
|
|
28
28
|
I(O(s));
|
|
29
29
|
}, [
|
|
30
30
|
s
|
|
31
31
|
]), /* @__PURE__ */ r.createElement(m, {
|
|
32
32
|
fieldId: a,
|
|
33
|
-
renderLabel: () =>
|
|
33
|
+
renderLabel: () => V,
|
|
34
34
|
renderInput: () => /* @__PURE__ */ r.createElement(j, {
|
|
35
|
-
"aria-labelledby":
|
|
36
|
-
value:
|
|
35
|
+
"aria-labelledby": y,
|
|
36
|
+
value: x,
|
|
37
37
|
onChange: B,
|
|
38
|
-
isDisabled:
|
|
38
|
+
isDisabled: p,
|
|
39
39
|
isRequired: b,
|
|
40
40
|
isReadOnly: o,
|
|
41
41
|
isInvalid: u,
|
|
42
|
-
onBlur:
|
|
42
|
+
onBlur: T,
|
|
43
43
|
onFocus: f,
|
|
44
|
-
minValue:
|
|
45
|
-
maxValue:
|
|
46
|
-
},
|
|
47
|
-
renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null,
|
|
44
|
+
minValue: g ?? void 0,
|
|
45
|
+
maxValue: A ?? void 0
|
|
46
|
+
}, h),
|
|
47
|
+
renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, k, M)
|
|
48
48
|
});
|
|
49
49
|
}, le = ({ className: t }) => {
|
|
50
50
|
var u;
|
|
51
|
-
const { t: a } =
|
|
51
|
+
const { t: a } = G(), { inputId: s, ariaDescribedBy: l } = S(), { id: p, placeholder: b, validation: o, label: E, required: f } = _();
|
|
52
52
|
(u = o == null ? void 0 : o.number) != null && u.multipleOf;
|
|
53
|
-
const m =
|
|
53
|
+
const m = $(null);
|
|
54
54
|
return J(() => {
|
|
55
55
|
var n;
|
|
56
56
|
(n = m.current) == null || n.focus();
|
|
57
|
-
},
|
|
57
|
+
}, p), /* @__PURE__ */ r.createElement(z, {
|
|
58
58
|
ref: m,
|
|
59
59
|
id: s,
|
|
60
60
|
"aria-describedby": l,
|
|
@@ -73,20 +73,20 @@ e.Error = w;
|
|
|
73
73
|
const O = (t) => te(t) ?? NaN, oe = ({ content: t, locale: a }) => /* @__PURE__ */ r.createElement(P, {
|
|
74
74
|
content: t,
|
|
75
75
|
locale: a
|
|
76
|
-
}),
|
|
76
|
+
}), Le = () => {
|
|
77
77
|
const t = se();
|
|
78
78
|
return /* @__PURE__ */ r.createElement(e, null, /* @__PURE__ */ r.createElement(e.Label, {
|
|
79
|
-
className: i(K,
|
|
79
|
+
className: i(K, d.label)
|
|
80
80
|
}, /* @__PURE__ */ r.createElement(e.Label.Required, {
|
|
81
|
-
className: i(W,
|
|
81
|
+
className: i(W, d.requiredMark)
|
|
82
82
|
})), /* @__PURE__ */ r.createElement(e.Input, {
|
|
83
83
|
className: t
|
|
84
84
|
}), /* @__PURE__ */ r.createElement(e.Error, {
|
|
85
|
-
className: i(X,
|
|
85
|
+
className: i(X, d.error)
|
|
86
86
|
}, /* @__PURE__ */ r.createElement(ae, null), /* @__PURE__ */ r.createElement(e.Error.Text, null)), /* @__PURE__ */ r.createElement(e.Description, {
|
|
87
|
-
className: i(Y,
|
|
87
|
+
className: i(Y, d.description)
|
|
88
88
|
}, oe));
|
|
89
89
|
};
|
|
90
90
|
export {
|
|
91
|
-
|
|
91
|
+
Le as N
|
|
92
92
|
};
|