@wix/form-elements 1.82.0 → 1.83.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-DmwbqZse.js → appointment-rac-ky2cE6hE.js} +6 -6
- package/dist/component/{bookings-address-rac-RCzVU87c.js → bookings-address-rac-Bxc6H9Pb.js} +1 -1
- package/dist/component/{bookings-email-rac-Df_Wte1_.js → bookings-email-rac-Dw1Xttdx.js} +1 -1
- package/dist/component/{bookings-first-name-rac-BmdRGYxF.js → bookings-first-name-rac-dgHOrJaJ.js} +1 -1
- package/dist/component/{bookings-header-rac-DewQWtkZ.js → bookings-header-rac-Bl9RYGWo.js} +1 -1
- package/dist/component/{bookings-last-name-rac-DmmNBuqy.js → bookings-last-name-rac-BeqYpbZq.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-QskvFo0C.js → bookings-login-bar-rac-C1k6o0A5.js} +2 -2
- package/dist/component/{bookings-phone-rac-7wn8IXna.js → bookings-phone-rac-ByhaJrwE.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-B5nk0BlD.js → bookings-rich-text-rac-Mw5-ZiIn.js} +1 -1
- package/dist/component/{checkbox-field-rac-BnVNfYWL.js → checkbox-field-rac-CMEI5t4Y.js} +7 -7
- package/dist/component/{checkbox-group-field-headless-Bx5Y-RMP.js → checkbox-group-field-headless-CP21R7_s.js} +3 -3
- package/dist/component/checkbox-group-field-rac-DGOZjSIY.js +42 -0
- package/dist/component/{checkbox-group-rac-B20t8dTB.js → checkbox-group-rac-CEGtshrl.js} +1 -1
- package/dist/component/{checkbox-indicator-module-classes-DqzGZQRQ.js → checkbox-indicator-module-classes-Bb3xB1ve.js} +1 -1
- package/dist/component/{checkbox-rac-ifC6qSE8.js → checkbox-rac-DCnRh1WF.js} +1 -1
- package/dist/component/{contacts-address-rac-XJRKvPlp.js → contacts-address-rac-CZb_5N5o.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-CKYESrPO.js → contacts-birthdate-rac-DZlwSyp5.js} +1 -1
- package/dist/component/{contacts-company-rac-BXwEeb0p.js → contacts-company-rac-BNEF6LjB.js} +1 -1
- package/dist/component/{contacts-email-rac-D8Yspo_m.js → contacts-email-rac-CAgk_zfN.js} +1 -1
- package/dist/component/{contacts-first-name-rac-mvCGP1LJ.js → contacts-first-name-rac-DyTVcmrX.js} +1 -1
- package/dist/component/{contacts-last-name-rac-Clg9RXal.js → contacts-last-name-rac-DrFcDcGr.js} +1 -1
- package/dist/component/{contacts-phone-rac-qEwjhByI.js → contacts-phone-rac-UAPALlFx.js} +1 -1
- package/dist/component/{contacts-position-rac-Bh8fvf2M.js → contacts-position-rac-CJ1M4kJJ.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-DEQ2XkZo.js → contacts-subscribe-rac-1cEd5s1l.js} +2 -2
- package/dist/component/{contacts-tax-id-rac-0DUZ4tJz.js → contacts-tax-id-rac-CqnO__fd.js} +1 -1
- package/dist/component/{date-availability-2ek2RtXx.js → date-availability-COM2EaRy.js} +1 -1
- package/dist/component/{date-input-field-rac-Bp4SQB-t.js → date-input-field-rac-CuuWbw42.js} +80 -79
- package/dist/component/{date-input-rac-CYsJcMe5.js → date-input-rac-DfVmj9Gc.js} +1 -1
- package/dist/component/{date-picker-field-rac-BGQvnSYI.js → date-picker-field-rac-BFCZik9T.js} +6 -6
- package/dist/component/{date-picker-rac-BVncggYR.js → date-picker-rac-C2vajJpb.js} +1 -1
- package/dist/component/{date-time-input-field-rac-B1mggelc.js → date-time-input-field-rac-B7ne2emo.js} +127 -126
- package/dist/component/{date-time-input-rac-DzdCno0L.js → date-time-input-rac-D4FEieQz.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-CNCpeolD.js → dext-checkbox-group-rac-BDBBTNNo.js} +2 -2
- package/dist/component/{dext-checkbox-rac-BYDQ58Mo.js → dext-checkbox-rac-DAAhNboR.js} +1 -1
- package/dist/component/{dext-date-picker-rac-aYYk8Nrl.js → dext-date-picker-rac-me7XbR5z.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-v2v974p5.js → dext-date-time-input-rac-DLsUl2Eg.js} +1 -1
- package/dist/component/{dext-dropdown-rac-C846KZCe.js → dext-dropdown-rac-C3vVIRir.js} +1 -1
- package/dist/component/{dext-email-rac-izjbfME9.js → dext-email-rac-a8qXYTLP.js} +1 -1
- package/dist/component/{dext-number-input-rac-CnOFsD7l.js → dext-number-input-rac-DdDnL_fX.js} +1 -1
- package/dist/component/{dext-phone-rac-D8GMXD88.js → dext-phone-rac-ByaxbHpO.js} +1 -1
- package/dist/component/{dext-radio-group-rac-BtiyGCRh.js → dext-radio-group-rac-Bzubt7Uy.js} +2 -2
- package/dist/component/{dext-rating-input-rac-BHJ1kitb.js → dext-rating-input-rac-BZ1EvOkG.js} +1 -1
- package/dist/component/{dext-tags-rac-CvNjwS5R.js → dext-tags-rac-C_R89noV.js} +2 -2
- package/dist/component/{dext-text-area-rac-X5L0Q3sC.js → dext-text-area-rac-DRpYeQ-K.js} +1 -1
- package/dist/component/{dext-text-input-rac-swkyAJqC.js → dext-text-input-rac-D_RtbQQ-.js} +1 -1
- package/dist/component/{dext-url-input-rac-BYlXOAkz.js → dext-url-input-rac-BSSjSbIo.js} +1 -1
- package/dist/component/{donation-rac-CDWLBZZM.js → donation-rac-De0KyyGR.js} +92 -91
- package/dist/component/{dropdown-field-headless-JJzbZvps.js → dropdown-field-headless-DNhnTDlD.js} +3 -3
- package/dist/component/{dropdown-field-rac-BodpIQ9Q.js → dropdown-field-rac-Bq_FNv9a.js} +3 -3
- package/dist/component/{dropdown-rac-Bfbxxx9k.js → dropdown-rac-0UIyqF15.js} +1 -1
- package/dist/component/{ecom-address-rac-BCnsL5tr.js → ecom-address-rac-7IVbvs3J.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-CNSdI_ty.js → ecom-subscription-checkbox-rac-DilgIpiG.js} +3 -3
- package/dist/component/{email-input-field-rac-Btaa4O5T.js → email-input-field-rac-CHJ6RSGy.js} +83 -79
- package/dist/component/{events-repeater-rac-xBwqJddt.js → events-repeater-rac-v18FFLC7.js} +6 -6
- package/dist/component/{events-rsvp-rac-D90PwkHd.js → events-rsvp-rac-BpGLrxsf.js} +4 -4
- package/dist/component/{field-error-headless-BErhh9GG.js → field-error-headless-DAy-1oAQ.js} +1 -1
- package/dist/component/{field-label-headless-BGyK-5xW.js → field-label-headless-BWxHmO0c.js} +1 -1
- package/dist/component/field-rac.module-D06m9T9x.js +24 -0
- package/dist/component/{file-upload-rac-MxH3CVml.js → file-upload-rac-BfWN27JT.js} +5 -5
- package/dist/component/{fixed-payment-rac-DpBA9irF.js → fixed-payment-rac-Bha61SB4.js} +5 -5
- package/dist/component/{form-f0tqdMye.js → form-D0eeH0lX.js} +69 -69
- package/dist/component/{form-element-classes-jC8D0LnK.js → form-element-classes-Ct1UaxuQ.js} +38 -32
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-BXxFqu9u.js → header-field-rac-uNzfDMbv.js} +3 -3
- package/dist/component/{header-rac-BN70esac.js → header-rac-B91q4fHl.js} +1 -1
- package/dist/component/{image-choice-rac-DLBGIBXL.js → image-choice-rac-BKcnNGPp.js} +6 -6
- package/dist/component/{index-BvB-uE1H.js → index-BWHymomM.js} +2 -2
- package/dist/component/{index-DXLEHYlA.js → index-BvzLLTKc.js} +4 -4
- package/dist/component/{isObjectLike-BYOX5XY4.js → isObjectLike-D7Mkqoju.js} +1 -1
- package/dist/component/multiline-address-field-rac-Avd9Vlv1.js +1617 -0
- package/dist/component/{multiline-address-rac-D82Gbj3n.js → multiline-address-rac-BwQOoejw.js} +1 -1
- package/dist/component/number-input-field-rac-CRqPXDl0.js +93 -0
- package/dist/component/{number-input-rac-Bnsvb-SO.js → number-input-rac-0Y8K4e6K.js} +1 -1
- package/dist/component/password-rac-C7F6sEB3.js +143 -0
- package/dist/component/payment-input-rac-CTJr4QTK.js +141 -0
- package/dist/component/{phone-input-field-rac-Ce_wuE46.js → phone-input-field-rac-jjSmYCI1.js} +5 -5
- package/dist/component/{phone-rac-DslINtcH.js → phone-rac-BwSnmgYF.js} +1 -1
- package/dist/component/{product-list-rac-C4P_SOyG.js → product-list-rac-CTN2wvHE.js} +7 -7
- package/dist/component/{quiz-radio-group-rac-noy4fmD8.js → quiz-radio-group-rac-CZHEDJxr.js} +2 -2
- package/dist/component/{radio-button-module-classes-DXQ1UlmI.js → radio-button-module-classes-DCz6XS1X.js} +3 -3
- package/dist/component/radio-group-field-rac-60MF_9DO.js +48 -0
- package/dist/component/{radio-group-rac-CGHQFyJY.js → radio-group-rac-Dqo-Earp.js} +1 -1
- package/dist/component/{rating-input-field-rac-elaferlI.js → rating-input-field-rac-CzWTwWT8.js} +6 -6
- package/dist/component/{rating-input-rac-fnOtTKN8.js → rating-input-rac-Nq4tll2Z.js} +1 -1
- package/dist/component/{rich-content-rac.module-DbwuwQeo.js → rich-content-rac.module-sUUSbcSy.js} +1 -1
- package/dist/component/{rich-text-field-rac-DtcQC8zU.js → rich-text-field-rac-BvLfS4I5.js} +3 -3
- package/dist/component/{rich-text-rac-CuT97sby.js → rich-text-rac-BWkTbWk3.js} +1 -1
- package/dist/component/{service-dropdown-rac-rk2tzikX.js → service-dropdown-rac-DZ3USe7_.js} +5 -5
- package/dist/component/{services-multi-choice-rac-BMQyF_xs.js → services-multi-choice-rac-D-og7fMo.js} +7 -7
- package/dist/component/{signature-rac-DeV9C6ta.js → signature-rac-D3c4fnvN.js} +5 -5
- package/dist/component/{submit-button-rac-BpN-FYtM.js → submit-button-rac-Dn_BGt1n.js} +2 -2
- package/dist/component/tags-field-rac-DXmZBcpO.js +218 -0
- package/dist/component/{tags-rac-Dabz4jHd.js → tags-rac-CoXWx42D.js} +1 -1
- package/dist/component/text-area-field-rac-Cy0Mr29Z.js +73 -0
- package/dist/component/{text-area-rac-CDLF-_56.js → text-area-rac-C3Mjmgpa.js} +1 -1
- package/dist/component/text-input-field-rac-D1TB9B_M.js +28 -0
- package/dist/component/{text-input-headless-BwVLU9cp.js → text-input-headless-BUa59Rgn.js} +3 -3
- package/dist/component/{text-input-rac-CoGTzfo1.js → text-input-rac-BQ3Z9ws4.js} +1 -1
- package/dist/component/{time-input-rac-DQDupKTA.js → time-input-rac-Wi0oD5YF.js} +5 -5
- package/dist/component/url-input-field-rac-DINXfZdf.js +75 -0
- package/dist/component/{url-input-rac-_d6XRdKX.js → url-input-rac-Ch9eTIF_.js} +1 -1
- package/dist/component/use-element-state-class-name-j8W1zbdG.js +20 -0
- package/dist/component/{use-service-options-base-CRgxxz7b.js → use-service-options-base-BJZhzDyO.js} +1 -1
- package/dist/component/use-text-input-class-name-8gMUWeCb.js +24 -0
- package/package.json +2 -2
- package/dist/component/checkbox-group-field-rac-CZW28rj5.js +0 -41
- package/dist/component/field-rac.module-ColNPUt0.js +0 -23
- package/dist/component/multiline-address-field-rac-fcQYnPlO.js +0 -1613
- package/dist/component/number-input-field-rac-B0-4Rz3w.js +0 -89
- package/dist/component/password-rac-BdBjFa8y.js +0 -142
- package/dist/component/payment-input-rac-DkAGOvaF.js +0 -137
- package/dist/component/radio-group-field-rac-CYBDq7R1.js +0 -47
- package/dist/component/tags-field-rac-ByC9DnyH.js +0 -217
- package/dist/component/text-area-field-rac-CtSa8XW_.js +0 -69
- package/dist/component/text-input-field-rac-C6fQYKhI.js +0 -24
- package/dist/component/url-input-field-rac-4T8gcMHH.js +0 -71
- package/dist/component/use-element-state-class-name-BqmaTba3.js +0 -15
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import o, { useRef as J, useState as j, useEffect as H, createContext as $e, useContext as Ge, useMemo as P, useCallback as ie } from "react";
|
|
2
2
|
import { RicosViewer as it } from "@wix/ricos/viewer";
|
|
3
3
|
import M from "classnames";
|
|
4
|
-
import { ab as ce, aa as lt, ae as ve, ad as ct, c as mt, as as ut, ar as dt, ai as me, af as Se, ak as ft, ah as Dt, F as Et } from "./form-
|
|
4
|
+
import { ab as ce, aa as lt, ae as ve, ad as ct, c as mt, as as ut, ar as dt, ai as me, af as Se, ak as ft, ah as Dt, F as Et } from "./form-D0eeH0lX.js";
|
|
5
5
|
import { C as Ce } from "./chevron-down-icon-CcpVm6B-.js";
|
|
6
6
|
import { E as St } from "./error-icon-hZxQ6DEy.js";
|
|
7
7
|
import { H as fe } from "./custom-focus-class-_483Pkwp.js";
|
|
8
|
-
import { s as De } from "./field-rac.module-
|
|
9
|
-
import { y as pt, O as _t, a as yt, w as We, h as Lt, V as Nt, o as At, i as bt,
|
|
10
|
-
import { u as It } from "./use-element-state-class-name-
|
|
8
|
+
import { s as De } from "./field-rac.module-D06m9T9x.js";
|
|
9
|
+
import { y as pt, O as _t, a as yt, w as We, h as Lt, V as Nt, o as At, i as bt, a1 as Ot } from "./form-element-classes-Ct1UaxuQ.js";
|
|
10
|
+
import { u as It } from "./use-element-state-class-name-j8W1zbdG.js";
|
|
11
11
|
import { ListBox as gt, Button as ke, ListBoxItem as Tt, RadioGroup as vt, RadioField as kt, RadioButton as Rt } from "react-aria-components";
|
|
12
12
|
import { f as T, a as le } from "./find-child-C60k4CxG.js";
|
|
13
|
-
import { D as wt, E as Mt } from "./field-error-headless-
|
|
14
|
-
import { L as Ft } from "./field-label-headless-
|
|
13
|
+
import { D as wt, E as Mt } from "./field-error-headless-DAy-1oAQ.js";
|
|
14
|
+
import { L as Ft } from "./field-label-headless-BWxHmO0c.js";
|
|
15
15
|
import { F as ht } from "./fieldset-headless-CD3fds9J.js";
|
|
16
16
|
import { g as Ct } from "./get-first-day-of-the-week-DvnsxYhQ.js";
|
|
17
17
|
import "date-fns";
|
package/dist/component/{bookings-login-bar-rac-QskvFo0C.js → bookings-login-bar-rac-C1k6o0A5.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import o from "react";
|
|
2
2
|
import E from "classnames";
|
|
3
|
-
import { ai as d, as as B, ab as f, ae as p } from "./form-
|
|
3
|
+
import { ai as d, as as B, ab as f, ae as p } from "./form-D0eeH0lX.js";
|
|
4
4
|
import { Button as L } from "react-aria-components";
|
|
5
5
|
import { a as i, f as g } from "./find-child-C60k4CxG.js";
|
|
6
|
-
import { v as _ } from "./form-element-classes-
|
|
6
|
+
import { v as _ } from "./form-element-classes-Ct1UaxuQ.js";
|
|
7
7
|
const a = ({ children: n }) => {
|
|
8
8
|
const { id: r, FieldLayout: t } = d();
|
|
9
9
|
return /* @__PURE__ */ o.createElement(t, {
|
|
@@ -2,17 +2,17 @@ import { RicosViewer as $n } from "@wix/ricos/viewer";
|
|
|
2
2
|
import U from "classnames";
|
|
3
3
|
import b, { useMemo as Xn, useRef as Jn, useCallback as Yn } from "react";
|
|
4
4
|
import { CheckboxField as Qn, CheckboxButton as Zn } from "react-aria-components";
|
|
5
|
-
import { Q as ei, ai as Zr, q as Qr, R as fn, as as ri, ab as ti, $ as ai, af as ni, ak as ii, L as si } from "./form-
|
|
5
|
+
import { Q as ei, ai as Zr, q as Qr, R as fn, as as ri, ab as ti, $ as ai, af as ni, ak as ii, L as si } from "./form-D0eeH0lX.js";
|
|
6
6
|
import { f as W, a as oi } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as ui, E as ci } from "./field-error-headless-
|
|
7
|
+
import { D as ui, E as ci } from "./field-error-headless-DAy-1oAQ.js";
|
|
8
8
|
import { Node_Type as fi } from "@wix/ricos/schema";
|
|
9
|
-
import { c as re, r as X, e as R, a as J, d as li, b as _i } from "./isObjectLike-
|
|
9
|
+
import { c as re, r as X, e as R, a as J, d as li, b as _i } from "./isObjectLike-D7Mkqoju.js";
|
|
10
10
|
import { S as vi } from "./selection-indicator-XQ8MYHUQ.js";
|
|
11
11
|
import { E as hi } from "./error-icon-hZxQ6DEy.js";
|
|
12
|
-
import { C as pi } from "./checkbox-indicator-module-classes-
|
|
13
|
-
import { s as oe } from "./field-rac.module-
|
|
14
|
-
import { f as di, g as yi, b as bi, O as gi, o as qi, i as Ci } from "./form-element-classes-
|
|
15
|
-
import { u as Ai } from "./use-element-state-class-name-
|
|
12
|
+
import { C as pi } from "./checkbox-indicator-module-classes-Bb3xB1ve.js";
|
|
13
|
+
import { s as oe } from "./field-rac.module-D06m9T9x.js";
|
|
14
|
+
import { f as di, g as yi, b as bi, O as gi, o as qi, i as Ci } from "./form-element-classes-Ct1UaxuQ.js";
|
|
15
|
+
import { u as Ai } from "./use-element-state-class-name-j8W1zbdG.js";
|
|
16
16
|
var ue, dt;
|
|
17
17
|
function mi() {
|
|
18
18
|
if (dt) return ue;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import i, { useMemo as F, useCallback as _, useRef as P, useState as w, useEffect as U } from "react";
|
|
2
2
|
import { CheckboxGroup as W, CheckboxField as A, CheckboxButton as j, TextField as z, Input as J } from "react-aria-components";
|
|
3
3
|
import { debounce as K } from "ts-debounce";
|
|
4
|
-
import { ai as N, af as Q, as as X, ab as Y, ak as Z } from "./form-
|
|
4
|
+
import { ai as N, af as Q, as as X, ab as Y, ak as Z } from "./form-D0eeH0lX.js";
|
|
5
5
|
import { f as L, a as k } from "./find-child-C60k4CxG.js";
|
|
6
|
-
import { D as ee, E as te } from "./field-error-headless-
|
|
7
|
-
import { L as ae } from "./field-label-headless-
|
|
6
|
+
import { D as ee, E as te } from "./field-error-headless-DAy-1oAQ.js";
|
|
7
|
+
import { L as ae } from "./field-label-headless-BWxHmO0c.js";
|
|
8
8
|
import { F as ne } from "./fieldset-headless-CD3fds9J.js";
|
|
9
9
|
import { N as se } from "./options-layout-constants-DEfIEJWD.js";
|
|
10
10
|
import { S as le } from "./selection-indicator-XQ8MYHUQ.js";
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { RicosViewer as m } from "@wix/ricos/viewer";
|
|
2
|
+
import a from "classnames";
|
|
3
|
+
import e from "react";
|
|
4
|
+
import { C as t } from "./checkbox-group-field-headless-CP21R7_s.js";
|
|
5
|
+
import { E as n } from "./error-icon-hZxQ6DEy.js";
|
|
6
|
+
import { C as c } from "./checkbox-indicator-module-classes-Bb3xB1ve.js";
|
|
7
|
+
import { s } from "./field-rac.module-D06m9T9x.js";
|
|
8
|
+
import { y as i, O as E, c as p, e as O, o as C, i as _, d as I } from "./form-element-classes-Ct1UaxuQ.js";
|
|
9
|
+
import { o as l } from "./options-rac.module-KM-VT_KY.js";
|
|
10
|
+
import { u as L } from "./use-element-state-class-name-j8W1zbdG.js";
|
|
11
|
+
import { u as R } from "./use-text-input-class-name-8gMUWeCb.js";
|
|
12
|
+
const u = ({ content: o, locale: r }) => /* @__PURE__ */ e.createElement(m, {
|
|
13
|
+
content: o,
|
|
14
|
+
locale: r
|
|
15
|
+
}), k = () => {
|
|
16
|
+
const o = L({
|
|
17
|
+
globalClasses: I,
|
|
18
|
+
moduleClasses: c
|
|
19
|
+
}), r = R();
|
|
20
|
+
return /* @__PURE__ */ e.createElement(t, null, /* @__PURE__ */ e.createElement(t.Label, {
|
|
21
|
+
className: a(i, s.label)
|
|
22
|
+
}, /* @__PURE__ */ e.createElement(t.Label.Required, {
|
|
23
|
+
className: a(E, s.requiredMark)
|
|
24
|
+
})), /* @__PURE__ */ e.createElement(t.Options, {
|
|
25
|
+
className: a(p, l.options)
|
|
26
|
+
}, /* @__PURE__ */ e.createElement(t.Options.Option, null, /* @__PURE__ */ e.createElement(t.Options.Option.Checkbox, {
|
|
27
|
+
className: s.checkbox
|
|
28
|
+
}, /* @__PURE__ */ e.createElement(t.Options.Option.Checkbox.Input, {
|
|
29
|
+
className: o
|
|
30
|
+
}), /* @__PURE__ */ e.createElement(t.Options.Option.Checkbox.Label, {
|
|
31
|
+
className: a(O, l.optionLabel)
|
|
32
|
+
})), /* @__PURE__ */ e.createElement(t.Options.Option.OtherInput, {
|
|
33
|
+
inputClassName: r
|
|
34
|
+
}))), /* @__PURE__ */ e.createElement(t.Error, {
|
|
35
|
+
className: a(C, s.error)
|
|
36
|
+
}, /* @__PURE__ */ e.createElement(n, null), /* @__PURE__ */ e.createElement(t.Error.Text, null)), /* @__PURE__ */ e.createElement(t.Description, {
|
|
37
|
+
className: a(_, s.description)
|
|
38
|
+
}, u));
|
|
39
|
+
};
|
|
40
|
+
export {
|
|
41
|
+
k as C
|
|
42
|
+
};
|
package/dist/component/{contacts-subscribe-rac-DEQ2XkZo.js → contacts-subscribe-rac-1cEd5s1l.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import C from "react";
|
|
2
|
-
import { C as e } from "./checkbox-field-rac-
|
|
3
|
-
import { X as r, Y as t, W as _ } from "./form-element-classes-
|
|
2
|
+
import { C as e } from "./checkbox-field-rac-CMEI5t4Y.js";
|
|
3
|
+
import { X as r, Y as t, W as _ } from "./form-element-classes-Ct1UaxuQ.js";
|
|
4
4
|
const S = () => /* @__PURE__ */ C.createElement(e, {
|
|
5
5
|
classes: {
|
|
6
6
|
container: _,
|
package/dist/component/{date-input-field-rac-Bp4SQB-t.js → date-input-field-rac-CuuWbw42.js}
RENAMED
|
@@ -1,31 +1,32 @@
|
|
|
1
1
|
import { RicosViewer as X } from "@wix/ricos/viewer";
|
|
2
|
-
import
|
|
3
|
-
import t, { useMemo as
|
|
4
|
-
import { ai as D, af as k, ab as S, J as U, a1 as $, r as i, as as P, x as Z, K as ee, a8 as te, ak as
|
|
2
|
+
import b from "classnames";
|
|
3
|
+
import t, { useMemo as _, useState as j, useCallback as x, useRef as B } from "react";
|
|
4
|
+
import { ai as D, af as k, ab as S, J as U, a1 as $, r as i, as as P, x as Z, K as ee, a8 as te, ak as H } from "./form-D0eeH0lX.js";
|
|
5
5
|
import { UNSAFE_PortalProvider as ae } from "react-aria";
|
|
6
6
|
import { ListBoxItem as ne, ListBox as re, Select as oe, TextField as q, SelectValue as se, Input as z } from "react-aria-components";
|
|
7
|
-
import { f as
|
|
7
|
+
import { f as u, a as K } from "./find-child-C60k4CxG.js";
|
|
8
8
|
import { g as le } from "./helpers-HmkkXrh2.js";
|
|
9
|
-
import { D as ce, E as ie } from "./field-error-headless-
|
|
10
|
-
import { L as me } from "./field-label-headless-
|
|
9
|
+
import { D as ce, E as ie } from "./field-error-headless-DAy-1oAQ.js";
|
|
10
|
+
import { L as me } from "./field-label-headless-BWxHmO0c.js";
|
|
11
11
|
import { F as de } from "./fieldset-headless-CD3fds9J.js";
|
|
12
12
|
import { N as ue, S as pe } from "./non-modal-popover-DtIMXHbe.js";
|
|
13
13
|
import { C as Ee } from "./chevron-down-icon-CcpVm6B-.js";
|
|
14
14
|
import { E as be } from "./error-icon-hZxQ6DEy.js";
|
|
15
15
|
import { H as fe } from "./custom-focus-class-_483Pkwp.js";
|
|
16
|
-
import { s as
|
|
17
|
-
import { y as R, O as he, x as
|
|
16
|
+
import { s as p } from "./field-rac.module-D06m9T9x.js";
|
|
17
|
+
import { y as R, O as he, x as Ie, A as De, o as ye, i as ge } from "./form-element-classes-Ct1UaxuQ.js";
|
|
18
|
+
import { u as w } from "./use-text-input-class-name-8gMUWeCb.js";
|
|
18
19
|
const n = ({ children: e, className: a }) => {
|
|
19
|
-
const { id: r, required: o, onBlur: s, onFocus: c, FieldLayout: l } = D(), { inputId: d, labelId: m, ariaDescribedBy: f } = k(), { regionalFormat:
|
|
20
|
-
|
|
21
|
-
]),
|
|
22
|
-
[i.MONTH]:
|
|
23
|
-
[i.DAY]:
|
|
24
|
-
[i.YEAR]:
|
|
20
|
+
const { id: r, required: o, onBlur: s, onFocus: c, FieldLayout: l } = D(), { inputId: d, labelId: m, ariaDescribedBy: f } = k(), { regionalFormat: E } = S(), I = _(() => U(E).filter($).map((v) => v.toUpperCase()), [
|
|
21
|
+
E
|
|
22
|
+
]), O = u(e, n.Label), T = u(e, n.Description), Y = u(e, n.Error), L = {
|
|
23
|
+
[i.MONTH]: u(e, n.Month),
|
|
24
|
+
[i.DAY]: u(e, n.Day),
|
|
25
|
+
[i.YEAR]: u(e, n.Year)
|
|
25
26
|
};
|
|
26
27
|
return /* @__PURE__ */ t.createElement(l, {
|
|
27
28
|
fieldId: r,
|
|
28
|
-
renderLabel: () => K(
|
|
29
|
+
renderLabel: () => K(O, {
|
|
29
30
|
as: "div"
|
|
30
31
|
}),
|
|
31
32
|
renderInput: () => /* @__PURE__ */ t.createElement(de, {
|
|
@@ -36,20 +37,20 @@ const n = ({ children: e, className: a }) => {
|
|
|
36
37
|
onBlur: s,
|
|
37
38
|
onFocus: c,
|
|
38
39
|
className: a
|
|
39
|
-
},
|
|
40
|
+
}, L[I[0]], L[I[1]], L[I[2]]),
|
|
40
41
|
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, Y, T)
|
|
41
42
|
});
|
|
42
43
|
}, y = ({ children: e, className: a }) => {
|
|
43
|
-
const { disabled: r, readOnly: o, showDateLabels: s, hidePlaceholder: c } = D(), { labelId: l } =
|
|
44
|
+
const { disabled: r, readOnly: o, showDateLabels: s, hidePlaceholder: c } = D(), { labelId: l } = g(i.MONTH), { partValue: d, partError: m, onPartChange: f } = N(i.MONTH), { t: E } = P(), [I, O] = j(!1), [T, Y] = j(null), L = c ? void 0 : E("field.date.placeholder.month"), v = x((M) => {
|
|
44
45
|
o || f(typeof M == "string" ? M : "");
|
|
45
46
|
}, [
|
|
46
47
|
f,
|
|
47
48
|
o
|
|
48
|
-
]), J =
|
|
49
|
-
|
|
49
|
+
]), J = x((M) => {
|
|
50
|
+
O(M && !o);
|
|
50
51
|
}, [
|
|
51
52
|
o
|
|
52
|
-
]), Q =
|
|
53
|
+
]), Q = u(e, y.Label), G = u(e, y.Trigger), W = u(e, y.Options);
|
|
53
54
|
return /* @__PURE__ */ t.createElement("div", {
|
|
54
55
|
className: a,
|
|
55
56
|
"data-date-field": !0
|
|
@@ -66,16 +67,16 @@ const n = ({ children: e, className: a }) => {
|
|
|
66
67
|
onChange: v,
|
|
67
68
|
isDisabled: r,
|
|
68
69
|
isInvalid: m,
|
|
69
|
-
placeholder:
|
|
70
|
+
placeholder: L,
|
|
70
71
|
isOpen: I,
|
|
71
72
|
onOpenChange: J
|
|
72
73
|
}, G, W)));
|
|
73
|
-
}, _e = ({ className: e }) => /* @__PURE__ */ t.createElement(
|
|
74
|
+
}, _e = ({ className: e }) => /* @__PURE__ */ t.createElement(V, {
|
|
74
75
|
datePart: i.MONTH,
|
|
75
76
|
className: e
|
|
76
|
-
}),
|
|
77
|
-
const { id: r, readOnly: o } = D(), { inputId: s } =
|
|
78
|
-
return
|
|
77
|
+
}), Ne = ({ children: e, className: a }) => {
|
|
78
|
+
const { id: r, readOnly: o } = D(), { inputId: s } = g(i.MONTH), { partError: c, isFirstPart: l } = N(i.MONTH), d = B(null);
|
|
79
|
+
return H(() => {
|
|
79
80
|
var m;
|
|
80
81
|
l && ((m = d.current) == null || m.focus());
|
|
81
82
|
}, r), /* @__PURE__ */ t.createElement(pe, {
|
|
@@ -87,9 +88,9 @@ const n = ({ children: e, className: a }) => {
|
|
|
87
88
|
"data-readonly": o || void 0
|
|
88
89
|
}, /* @__PURE__ */ t.createElement(se, null), e);
|
|
89
90
|
}, A = ({ children: e, className: a }) => {
|
|
90
|
-
const { language: r } = S(), o =
|
|
91
|
+
const { language: r } = S(), o = _(() => le(r), [
|
|
91
92
|
r
|
|
92
|
-
]), s =
|
|
93
|
+
]), s = u(e, A.Option) ?? /* @__PURE__ */ t.createElement(A.Option, null);
|
|
93
94
|
return /* @__PURE__ */ t.createElement(ue, {
|
|
94
95
|
className: a,
|
|
95
96
|
containerPadding: 0,
|
|
@@ -108,11 +109,11 @@ const n = ({ children: e, className: a }) => {
|
|
|
108
109
|
}, o);
|
|
109
110
|
};
|
|
110
111
|
y.Label = _e;
|
|
111
|
-
y.Trigger =
|
|
112
|
+
y.Trigger = Ne;
|
|
112
113
|
y.Options = A;
|
|
113
114
|
A.Option = Oe;
|
|
114
115
|
const F = ({ children: e, className: a }) => {
|
|
115
|
-
const { disabled: r, readOnly: o, showDateLabels: s } = D(), { labelId: c } =
|
|
116
|
+
const { disabled: r, readOnly: o, showDateLabels: s } = D(), { labelId: c } = g(i.DAY), { partValue: l, partError: d, onPartChange: m } = N(i.DAY), f = u(e, F.Label), E = u(e, F.Input);
|
|
116
117
|
return /* @__PURE__ */ t.createElement("div", {
|
|
117
118
|
className: a,
|
|
118
119
|
"data-date-field": !0
|
|
@@ -123,13 +124,13 @@ const F = ({ children: e, className: a }) => {
|
|
|
123
124
|
isDisabled: r,
|
|
124
125
|
isReadOnly: o,
|
|
125
126
|
isInvalid: d
|
|
126
|
-
},
|
|
127
|
-
}, Le = ({ className: e }) => /* @__PURE__ */ t.createElement(
|
|
127
|
+
}, E));
|
|
128
|
+
}, Le = ({ className: e }) => /* @__PURE__ */ t.createElement(V, {
|
|
128
129
|
datePart: i.DAY,
|
|
129
130
|
className: e
|
|
130
|
-
}),
|
|
131
|
-
const { id: a, hidePlaceholder: r } = D(), { inputId: o } =
|
|
132
|
-
return
|
|
131
|
+
}), Fe = ({ className: e }) => {
|
|
132
|
+
const { id: a, hidePlaceholder: r } = D(), { inputId: o } = g(i.DAY), { isFirstPart: s } = N(i.DAY), { t: c } = P(), l = B(null), d = r ? void 0 : c("field.date.placeholder.day");
|
|
133
|
+
return H(() => {
|
|
133
134
|
var m;
|
|
134
135
|
s && ((m = l.current) == null || m.focus());
|
|
135
136
|
}, a), /* @__PURE__ */ t.createElement(z, {
|
|
@@ -143,9 +144,9 @@ const F = ({ children: e, className: a }) => {
|
|
|
143
144
|
});
|
|
144
145
|
};
|
|
145
146
|
F.Label = Le;
|
|
146
|
-
F.Input =
|
|
147
|
+
F.Input = Fe;
|
|
147
148
|
const C = ({ children: e, className: a }) => {
|
|
148
|
-
const { disabled: r, readOnly: o, showDateLabels: s } = D(), { labelId: c } =
|
|
149
|
+
const { disabled: r, readOnly: o, showDateLabels: s } = D(), { labelId: c } = g(i.YEAR), { partValue: l, partError: d, onPartChange: m } = N(i.YEAR), f = u(e, C.Label), E = u(e, C.Input);
|
|
149
150
|
return /* @__PURE__ */ t.createElement("div", {
|
|
150
151
|
className: a,
|
|
151
152
|
"data-date-field": !0
|
|
@@ -156,13 +157,13 @@ const C = ({ children: e, className: a }) => {
|
|
|
156
157
|
isDisabled: r,
|
|
157
158
|
isReadOnly: o,
|
|
158
159
|
isInvalid: d
|
|
159
|
-
},
|
|
160
|
-
},
|
|
160
|
+
}, E));
|
|
161
|
+
}, Ce = ({ className: e }) => /* @__PURE__ */ t.createElement(V, {
|
|
161
162
|
datePart: i.YEAR,
|
|
162
163
|
className: e
|
|
163
|
-
}),
|
|
164
|
-
const { id: a, hidePlaceholder: r } = D(), { inputId: o } =
|
|
165
|
-
return
|
|
164
|
+
}), Me = ({ className: e }) => {
|
|
165
|
+
const { id: a, hidePlaceholder: r } = D(), { inputId: o } = g(i.YEAR), { isFirstPart: s } = N(i.YEAR), { t: c } = P(), l = B(null), d = r ? void 0 : c("field.date.placeholder.year");
|
|
166
|
+
return H(() => {
|
|
166
167
|
var m;
|
|
167
168
|
s && ((m = l.current) == null || m.focus());
|
|
168
169
|
}, a), /* @__PURE__ */ t.createElement(z, {
|
|
@@ -175,17 +176,17 @@ const C = ({ children: e, className: a }) => {
|
|
|
175
176
|
"data-hook": i.YEAR
|
|
176
177
|
});
|
|
177
178
|
};
|
|
178
|
-
C.Label =
|
|
179
|
-
C.Input =
|
|
179
|
+
C.Label = Ce;
|
|
180
|
+
C.Input = Me;
|
|
180
181
|
n.Label = me;
|
|
181
182
|
n.Month = y;
|
|
182
183
|
n.Day = F;
|
|
183
184
|
n.Year = C;
|
|
184
185
|
n.Description = ce;
|
|
185
186
|
n.Error = ie;
|
|
186
|
-
function
|
|
187
|
+
function g(e) {
|
|
187
188
|
const { inputId: a } = k();
|
|
188
|
-
return
|
|
189
|
+
return _(() => {
|
|
189
190
|
const r = e.toLowerCase();
|
|
190
191
|
return {
|
|
191
192
|
inputId: `${a}-${r}-input`,
|
|
@@ -196,20 +197,20 @@ function _(e) {
|
|
|
196
197
|
e
|
|
197
198
|
]);
|
|
198
199
|
}
|
|
199
|
-
function
|
|
200
|
-
const { value: a, onChange: r, hasError: o = !1 } = D(), { regionalFormat: s } = S(), c =
|
|
200
|
+
function N(e) {
|
|
201
|
+
const { value: a, onChange: r, hasError: o = !1 } = D(), { regionalFormat: s } = S(), c = _(() => Z(a ?? ""), [
|
|
201
202
|
a
|
|
202
|
-
]), l =
|
|
203
|
+
]), l = _(() => ee(o, a ?? ""), [
|
|
203
204
|
a,
|
|
204
205
|
o
|
|
205
|
-
]), d = c[e] || "", m =
|
|
206
|
-
const I = te(
|
|
206
|
+
]), d = c[e] || "", m = x((E) => {
|
|
207
|
+
const I = te(E, e, c);
|
|
207
208
|
r(I);
|
|
208
209
|
}, [
|
|
209
210
|
r,
|
|
210
211
|
c,
|
|
211
212
|
e
|
|
212
|
-
]), f =
|
|
213
|
+
]), f = _(() => U(s).filter($).map((O) => O.toUpperCase())[0] === e, [
|
|
213
214
|
s,
|
|
214
215
|
e
|
|
215
216
|
]);
|
|
@@ -220,67 +221,67 @@ function O(e) {
|
|
|
220
221
|
isFirstPart: f
|
|
221
222
|
};
|
|
222
223
|
}
|
|
223
|
-
function
|
|
224
|
-
const { inputId: r, labelId: o } =
|
|
224
|
+
function V({ datePart: e, className: a }) {
|
|
225
|
+
const { inputId: r, labelId: o } = g(e), { t: s } = P(), c = `field.date.label.${e.toLowerCase()}`, l = s(c);
|
|
225
226
|
return /* @__PURE__ */ t.createElement("label", {
|
|
226
227
|
id: o,
|
|
227
228
|
htmlFor: r,
|
|
228
229
|
className: a
|
|
229
230
|
}, l);
|
|
230
231
|
}
|
|
231
|
-
const
|
|
232
|
-
fields:
|
|
233
|
-
month:
|
|
234
|
-
day:
|
|
235
|
-
year:
|
|
236
|
-
mobile:
|
|
237
|
-
dayInput:
|
|
238
|
-
yearInput:
|
|
239
|
-
monthTrigger:
|
|
232
|
+
const Re = "_fields_12ojb_1", Ae = "_month_12ojb_9", Se = "_day_12ojb_10", Pe = "_year_12ojb_11", Te = "_mobile_12ojb_25", Ye = "_dayInput_12ojb_37", ve = "_yearInput_12ojb_38", xe = "_monthTrigger_12ojb_42", Be = "_monthOption_12ojb_62", h = {
|
|
233
|
+
fields: Re,
|
|
234
|
+
month: Ae,
|
|
235
|
+
day: Se,
|
|
236
|
+
year: Pe,
|
|
237
|
+
mobile: Te,
|
|
238
|
+
dayInput: Ye,
|
|
239
|
+
yearInput: ve,
|
|
240
|
+
monthTrigger: xe,
|
|
240
241
|
monthOption: Be
|
|
241
242
|
}, He = ({ content: e, locale: a }) => /* @__PURE__ */ t.createElement(X, {
|
|
242
243
|
content: e,
|
|
243
244
|
locale: a
|
|
244
|
-
}),
|
|
245
|
-
const { isMobile: e } = S();
|
|
245
|
+
}), nt = () => {
|
|
246
|
+
const { isMobile: e } = S(), a = w(h.dayInput), r = w(h.yearInput);
|
|
246
247
|
return /* @__PURE__ */ t.createElement(n, {
|
|
247
|
-
className:
|
|
248
|
+
className: b(h.fields, {
|
|
248
249
|
[h.mobile]: e
|
|
249
250
|
})
|
|
250
251
|
}, /* @__PURE__ */ t.createElement(n.Label, {
|
|
251
|
-
className:
|
|
252
|
+
className: b(R, p.label)
|
|
252
253
|
}, /* @__PURE__ */ t.createElement(n.Label.Required, {
|
|
253
|
-
className:
|
|
254
|
+
className: b(he, p.requiredMark)
|
|
254
255
|
})), /* @__PURE__ */ t.createElement(n.Month, {
|
|
255
256
|
className: h.month
|
|
256
257
|
}, /* @__PURE__ */ t.createElement(n.Month.Label, {
|
|
257
|
-
className:
|
|
258
|
+
className: b(R, p.label)
|
|
258
259
|
}), /* @__PURE__ */ t.createElement(n.Month.Trigger, {
|
|
259
|
-
className:
|
|
260
|
+
className: b(Ie, p.input, h.monthTrigger)
|
|
260
261
|
}, /* @__PURE__ */ t.createElement(Ee, {
|
|
261
|
-
className:
|
|
262
|
+
className: p.dropdownIcon
|
|
262
263
|
})), /* @__PURE__ */ t.createElement(n.Month.Options, {
|
|
263
|
-
className:
|
|
264
|
+
className: b(De, p.selectPopover, p.dropdownPopover)
|
|
264
265
|
}, /* @__PURE__ */ t.createElement(n.Month.Options.Option, {
|
|
265
|
-
className:
|
|
266
|
+
className: b(p.selectOption, h.monthOption, fe)
|
|
266
267
|
}))), /* @__PURE__ */ t.createElement(n.Day, {
|
|
267
268
|
className: h.day
|
|
268
269
|
}, /* @__PURE__ */ t.createElement(n.Day.Label, {
|
|
269
|
-
className:
|
|
270
|
+
className: b(R, p.label)
|
|
270
271
|
}), /* @__PURE__ */ t.createElement(n.Day.Input, {
|
|
271
|
-
className:
|
|
272
|
+
className: a
|
|
272
273
|
})), /* @__PURE__ */ t.createElement(n.Year, {
|
|
273
274
|
className: h.year
|
|
274
275
|
}, /* @__PURE__ */ t.createElement(n.Year.Label, {
|
|
275
|
-
className:
|
|
276
|
+
className: b(R, p.label)
|
|
276
277
|
}), /* @__PURE__ */ t.createElement(n.Year.Input, {
|
|
277
|
-
className:
|
|
278
|
+
className: r
|
|
278
279
|
})), /* @__PURE__ */ t.createElement(n.Error, {
|
|
279
|
-
className:
|
|
280
|
+
className: b(ye, p.error)
|
|
280
281
|
}, /* @__PURE__ */ t.createElement(be, null), /* @__PURE__ */ t.createElement(n.Error.Text, null)), /* @__PURE__ */ t.createElement(n.Description, {
|
|
281
|
-
className:
|
|
282
|
+
className: b(ge, p.description)
|
|
282
283
|
}, He));
|
|
283
284
|
};
|
|
284
285
|
export {
|
|
285
|
-
|
|
286
|
+
nt as D
|
|
286
287
|
};
|