@wix/form-elements 1.90.0 → 1.92.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-DtPa-JZ9.js → appointment-rac-bw0pvoxP.js} +4 -4
- package/dist/component/{bookings-address-rac-4l8kqoLi.js → bookings-address-rac-DECq7eWR.js} +1 -1
- package/dist/component/{bookings-email-rac-76vUcGtU.js → bookings-email-rac-DTLjh6Zw.js} +1 -1
- package/dist/component/{bookings-first-name-rac-IS7LUMxg.js → bookings-first-name-rac-DObRe-Gq.js} +1 -1
- package/dist/component/{bookings-header-rac-2wTzY64_.js → bookings-header-rac-DjpmYRJG.js} +1 -1
- package/dist/component/{bookings-last-name-rac-nxA75igv.js → bookings-last-name-rac-Ds3o0ABM.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-CRi1nntD.js → bookings-login-bar-rac-DPUL2jWj.js} +1 -1
- package/dist/component/{bookings-phone-rac-DZjvHly0.js → bookings-phone-rac-DIIHPxEP.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-CYn1wwYQ.js → bookings-rich-text-rac-BrcQO9xx.js} +1 -1
- package/dist/component/{checkbox-field-rac-DAcFLQNT.js → checkbox-field-rac-CD1MP1LT.js} +4 -4
- package/dist/component/{checkbox-group-field-headless-BJmS0Ce5.js → checkbox-group-field-headless-C0V6zq0u.js} +3 -3
- package/dist/component/{checkbox-group-field-rac-CeFUt2Nr.js → checkbox-group-field-rac-B-MYpz53.js} +3 -3
- package/dist/component/{checkbox-group-rac-eDChVoVP.js → checkbox-group-rac-BejQjiO2.js} +1 -1
- package/dist/component/{checkbox-rac-DGmZdPnl.js → checkbox-rac-B0YgCj29.js} +1 -1
- package/dist/component/{contacts-address-rac-CGS83PMu.js → contacts-address-rac-B1QNl3Lb.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-DkP-7tZ9.js → contacts-birthdate-rac-Cp-gh3P-.js} +1 -1
- package/dist/component/{contacts-company-rac-D_KYvkYe.js → contacts-company-rac-CSCU7JGm.js} +1 -1
- package/dist/component/{contacts-email-rac-4lGD56E8.js → contacts-email-rac-B1Oov6-3.js} +1 -1
- package/dist/component/{contacts-first-name-rac-C5L3U9QV.js → contacts-first-name-rac-rsHIOcjr.js} +1 -1
- package/dist/component/{contacts-last-name-rac-SL3FSAhE.js → contacts-last-name-rac-Csgq53Wm.js} +1 -1
- package/dist/component/{contacts-phone-rac-DkUwJ56_.js → contacts-phone-rac-r9SwjDZ4.js} +1 -1
- package/dist/component/{contacts-position-rac-CeKJ5oJh.js → contacts-position-rac-D7VcCM7v.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-Bjldz7ed.js → contacts-subscribe-rac-8Nu9ncZW.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-D8QxyDiU.js → contacts-tax-id-rac-CL_JSl_W.js} +1 -1
- package/dist/component/{date-availability-DdMI-zNj.js → date-availability-DLOKY9C4.js} +1 -1
- package/dist/component/date-input-field-rac-D23Al-Mr.js +292 -0
- package/dist/component/{date-input-rac-tlmhXr4A.js → date-input-rac-B6zgkw-L.js} +1 -1
- package/dist/component/{date-picker-field-rac-ClNfMoR1.js → date-picker-field-rac-BqdzPPzK.js} +4 -4
- package/dist/component/{date-picker-rac-BV3TGjsx.js → date-picker-rac-C7g6aceb.js} +1 -1
- package/dist/component/date-time-input-field-rac-BENzf6gc.js +428 -0
- package/dist/component/{date-time-input-rac-DQk2ylbE.js → date-time-input-rac-CVpK3mgw.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-CBj9Y7Tp.js → dext-checkbox-group-rac-CbEFDD3H.js} +2 -2
- package/dist/component/{dext-checkbox-rac-C1KI5I2J.js → dext-checkbox-rac-BdtZvn6I.js} +1 -1
- package/dist/component/{dext-date-picker-rac-D-8Ss0bx.js → dext-date-picker-rac-BAhFvUEx.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-CRnwLBSZ.js → dext-date-time-input-rac-iXMKMwQY.js} +1 -1
- package/dist/component/{dext-dropdown-rac-BVTEMS0W.js → dext-dropdown-rac-D-NPziZS.js} +1 -1
- package/dist/component/{dext-email-rac-CXeM4iQj.js → dext-email-rac-DYSwyB80.js} +1 -1
- package/dist/component/{dext-number-input-rac-DMh08cy5.js → dext-number-input-rac-DXx8hgFg.js} +1 -1
- package/dist/component/{dext-phone-rac-E1fFjkVW.js → dext-phone-rac-BtuLROzm.js} +1 -1
- package/dist/component/{dext-radio-group-rac-_BhRzFAr.js → dext-radio-group-rac-MdKNiJ2i.js} +2 -2
- package/dist/component/{dext-rating-input-rac-BRYVQOYw.js → dext-rating-input-rac-d998xond.js} +1 -1
- package/dist/component/{dext-tags-rac-C4iwtRcw.js → dext-tags-rac-DnSpOM9T.js} +2 -2
- package/dist/component/{dext-text-area-rac-CQ1KAhkU.js → dext-text-area-rac-KqjeDDWe.js} +1 -1
- package/dist/component/{dext-text-input-rac-xCoKhEt3.js → dext-text-input-rac-CtCnClfX.js} +1 -1
- package/dist/component/{dext-url-input-rac-DyoEEa_v.js → dext-url-input-rac-DSJQcLLr.js} +1 -1
- package/dist/component/{donation-rac-CSDVxWUj.js → donation-rac-B_KGkBgo.js} +5 -5
- package/dist/component/dropdown-field-headless-BUilB8wZ.js +89 -0
- package/dist/component/{dropdown-field-rac-D1Z_Jbzd.js → dropdown-field-rac-COupYC1a.js} +2 -2
- package/dist/component/{dropdown-rac-BEi7CMKT.js → dropdown-rac-Dj0UZrE0.js} +1 -1
- package/dist/component/{ecom-address-rac-DGl7rlwa.js → ecom-address-rac-C0xnn86e.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-D5HzzRQk.js → ecom-subscription-checkbox-rac-D-ekxwUE.js} +2 -2
- package/dist/component/{email-input-field-rac-DHAK2K8E.js → email-input-field-rac-DVj1qz_R.js} +3 -3
- package/dist/component/{events-repeater-rac-N1mGqD4R.js → events-repeater-rac-U0aq9Z4Q.js} +3 -3
- package/dist/component/{events-rsvp-rac-Ds9PnqHG.js → events-rsvp-rac-C7J58_5q.js} +2 -2
- package/dist/component/{field-error-headless-9MKScovg.js → field-error-headless-2nYJ2792.js} +1 -1
- package/dist/component/{field-label-headless-BaoLrUWJ.js → field-label-headless-D97ACnmc.js} +1 -1
- package/dist/component/{file-upload-rac-CNbLRxUz.js → file-upload-rac-BR7QpuPW.js} +3 -3
- package/dist/component/{fixed-payment-rac-BFnvUksR.js → fixed-payment-rac-COl18wW1.js} +3 -3
- package/dist/component/{form-B3YjGh0T.js → form-DKKTSAj1.js} +1110 -1109
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-64pYqszP.js → header-field-rac-B6DyMG3U.js} +2 -2
- package/dist/component/{header-rac-BtPQVL59.js → header-rac-x4H2qMky.js} +1 -1
- package/dist/component/{image-choice-rac-BsojUR1h.js → image-choice-rac-BVgmKTKk.js} +4 -4
- package/dist/component/{index-CtiBRBqZ.js → index-C47UMGhd.js} +4 -4
- package/dist/component/{index-f2JBxCTd.js → index-DnpqBcg5.js} +2 -2
- package/dist/component/{isObjectLike-BgqHLNgn.js → isObjectLike-BrrFBP4f.js} +1 -1
- package/dist/component/multiline-address-field-rac-B6ka-2Wy.js +1630 -0
- package/dist/component/{multiline-address-rac-CkOPWXfI.js → multiline-address-rac-Bh58qUEe.js} +1 -1
- package/dist/component/{number-input-field-rac-B7U_08UK.js → number-input-field-rac-pAmxvk3A.js} +4 -4
- package/dist/component/{number-input-rac-1jcchySg.js → number-input-rac-mKA2njIU.js} +1 -1
- package/dist/component/{password-rac-CAaV8OrL.js → password-rac-BbD7PQXO.js} +4 -4
- package/dist/component/{payment-input-rac-B3Knhzrz.js → payment-input-rac-UdkwC1ek.js} +4 -4
- package/dist/component/phone-input-field-rac-BVLVVDTq.js +487 -0
- package/dist/component/{phone-rac-BUAW-44w.js → phone-rac-LixcB9WV.js} +1 -1
- package/dist/component/{product-list-rac-C7Nq3ZG4.js → product-list-rac-B_dL1Ov-.js} +4 -4
- package/dist/component/{quiz-radio-group-rac-CRa3I_NR.js → quiz-radio-group-rac-Bj5XfqNf.js} +1 -1
- package/dist/component/{radio-button-module-classes-BEvf741q.js → radio-button-module-classes-y_PtsZPP.js} +3 -3
- package/dist/component/{radio-group-field-rac-BYTXrpnE.js → radio-group-field-rac-C8OElNAQ.js} +3 -3
- package/dist/component/{radio-group-rac-138JrIhm.js → radio-group-rac-BqJFboHE.js} +1 -1
- package/dist/component/{rating-input-field-rac-D5pOVdFJ.js → rating-input-field-rac-C9_ITvEh.js} +4 -4
- package/dist/component/{rating-input-rac-DuK1q9JB.js → rating-input-rac-CvTpEUoU.js} +1 -1
- package/dist/component/{rich-content-rac.module-H3hPgDtD.js → rich-content-rac.module-D4pEN-TY.js} +1 -1
- package/dist/component/{rich-text-field-rac-Btwqm4wb.js → rich-text-field-rac-B8cqCmaf.js} +2 -2
- package/dist/component/{rich-text-rac-DIu8StCg.js → rich-text-rac-C1o-tfXG.js} +1 -1
- package/dist/component/{service-dropdown-rac-N8jqoUC_.js → service-dropdown-rac-BOXqB2aq.js} +4 -4
- package/dist/component/{services-multi-choice-rac-DlP0tB9d.js → services-multi-choice-rac-Dk4rz-fw.js} +5 -5
- package/dist/component/{signature-rac-DuRzxIkO.js → signature-rac-h9GWVdez.js} +3 -3
- package/dist/component/{submit-button-rac-DFmPp4jT.js → submit-button-rac-qNaTyCxd.js} +1 -1
- package/dist/component/{tags-field-rac-DIgyn5P9.js → tags-field-rac-NMRn0YnW.js} +5 -5
- package/dist/component/{tags-rac-C6R6RHl2.js → tags-rac-DGx4KxEn.js} +1 -1
- package/dist/component/{text-area-field-rac-opBEx_8s.js → text-area-field-rac-C7u0D4l3.js} +4 -4
- package/dist/component/{text-area-rac-D4iKhAqc.js → text-area-rac-Yo-RIyLm.js} +1 -1
- package/dist/component/{text-input-field-rac-Ckp8Ierz.js → text-input-field-rac-CvU-1clq.js} +2 -2
- package/dist/component/{text-input-headless-D-LXpqS3.js → text-input-headless-DLRwVmwf.js} +3 -3
- package/dist/component/{text-input-rac-ChxuJj-q.js → text-input-rac-CWh5xjZA.js} +1 -1
- package/dist/component/{time-input-rac-C5_rEy7W.js → time-input-rac-BZlso9qK.js} +4 -4
- package/dist/component/{url-input-field-rac-CBOnhquz.js → url-input-field-rac-Bax0TB4Q.js} +4 -4
- package/dist/component/{url-input-rac-BY-BVg6r.js → url-input-rac-Bw2nfybR.js} +1 -1
- package/dist/component/use-dropdown-option-class-name-vKSagp3b.js +57 -0
- package/dist/component/{use-element-state-class-name--YLulmsU.js → use-element-state-class-name-C0zLrsDR.js} +1 -1
- package/dist/component/{use-service-options-base-BNLFmnHJ.js → use-service-options-base-Bkj6BSQL.js} +1 -1
- package/dist/component/{use-text-input-class-name-3Xp-hNDT.js → use-text-input-class-name-Biu89Ma7.js} +2 -2
- package/dist/form.d.ts +15 -7
- package/package.json +23 -22
- package/dist/component/date-input-field-rac-Da6j7OP2.js +0 -288
- package/dist/component/date-time-input-field-rac-5eHyKry0.js +0 -424
- package/dist/component/dropdown-field-headless-BXyP9KYi.js +0 -101
- package/dist/component/multiline-address-field-rac-CH1hCUTf.js +0 -1618
- package/dist/component/phone-input-field-rac-BGsvxtXz.js +0 -474
- package/dist/component/use-dropdown-option-class-name-C1iEE28P.js +0 -28
|
@@ -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 { ac as ce, ab as lt, ag as ve, af as ct, c as mt, au as ut, at as dt, ak as me, ah as Se, am as ft, aj as Dt, F as Et } from "./form-
|
|
4
|
+
import { ac as ce, ab as lt, ag as ve, af as ct, c as mt, au as ut, at as dt, ak as me, ah as Se, am as ft, aj as Dt, F as Et } from "./form-DKKTSAj1.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
8
|
import { s as De } from "./field-rac.module-BUvPquav.js";
|
|
9
9
|
import { B as pt, R as _t, a as yt, y as We, h as Lt, V as Nt, q as At, i as bt, a1 as It } from "./form-element-classes-CLZXu-91.js";
|
|
10
|
-
import { u as Ot } from "./use-element-state-class-name
|
|
10
|
+
import { u as Ot } from "./use-element-state-class-name-C0zLrsDR.js";
|
|
11
11
|
import { ListBox as gt, Button as Re, ListBoxItem as Tt, RadioGroup as vt, RadioField as Rt, RadioButton as kt } 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-2nYJ2792.js";
|
|
14
|
+
import { L as Ft } from "./field-label-headless-D97ACnmc.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-CRi1nntD.js → bookings-login-bar-rac-DPUL2jWj.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import o from "react";
|
|
2
2
|
import b from "classnames";
|
|
3
|
-
import { ak as d, au as B, ac as f, ag as p } from "./form-
|
|
3
|
+
import { ak as d, au as B, ac as f, ag as p } from "./form-DKKTSAj1.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
6
|
import { x as _ } from "./form-element-classes-CLZXu-91.js";
|
|
@@ -2,17 +2,17 @@ import { RicosViewer as Xn } from "@wix/ricos/viewer";
|
|
|
2
2
|
import U from "classnames";
|
|
3
3
|
import b, { useMemo as $n, useRef as Jn, useCallback as Yn } from "react";
|
|
4
4
|
import { CheckboxField as Qn, CheckboxButton as Zn } from "react-aria-components";
|
|
5
|
-
import { T as ei, ak as Zr, r as Qr, R as fn, au as ri, ac as ti, a0 as ai, ah as ni, am as ii, L as si } from "./form-
|
|
5
|
+
import { T as ei, ak as Zr, r as Qr, R as fn, au as ri, ac as ti, a0 as ai, ah as ni, am as ii, L as si } from "./form-DKKTSAj1.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-2nYJ2792.js";
|
|
8
8
|
import { Node_Type as fi } from "@wix/ricos/schema";
|
|
9
|
-
import { c as re, r as $, e as R, a as J, d as li, b as _i } from "./isObjectLike-
|
|
9
|
+
import { c as re, r as $, e as R, a as J, d as li, b as _i } from "./isObjectLike-BrrFBP4f.js";
|
|
10
10
|
import { S as vi } from "./selection-indicator-XQ8MYHUQ.js";
|
|
11
11
|
import { E as hi } from "./error-icon-hZxQ6DEy.js";
|
|
12
12
|
import { C as pi } from "./checkbox-indicator-module-classes-mJ7hl_8K.js";
|
|
13
13
|
import { s as oe } from "./field-rac.module-BUvPquav.js";
|
|
14
14
|
import { f as di, g as yi, b as bi, R as gi, q as qi, i as Ci } from "./form-element-classes-CLZXu-91.js";
|
|
15
|
-
import { u as Ai } from "./use-element-state-class-name
|
|
15
|
+
import { u as Ai } from "./use-element-state-class-name-C0zLrsDR.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 { ak as N, ah as Q, au as X, ac as Y, am as Z } from "./form-
|
|
4
|
+
import { ak as N, ah as Q, au as X, ac as Y, am as Z } from "./form-DKKTSAj1.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-2nYJ2792.js";
|
|
7
|
+
import { L as ae } from "./field-label-headless-D97ACnmc.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";
|
package/dist/component/{checkbox-group-field-rac-CeFUt2Nr.js → checkbox-group-field-rac-B-MYpz53.js}
RENAMED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { RicosViewer as m } from "@wix/ricos/viewer";
|
|
2
2
|
import a from "classnames";
|
|
3
3
|
import e from "react";
|
|
4
|
-
import { C as t } from "./checkbox-group-field-headless-
|
|
4
|
+
import { C as t } from "./checkbox-group-field-headless-C0V6zq0u.js";
|
|
5
5
|
import { E as n } from "./error-icon-hZxQ6DEy.js";
|
|
6
6
|
import { C as c } from "./checkbox-indicator-module-classes-mJ7hl_8K.js";
|
|
7
7
|
import { s } from "./field-rac.module-BUvPquav.js";
|
|
8
8
|
import { B as i, R as E, c as p, e as C, q as O, i as _, d as R } from "./form-element-classes-CLZXu-91.js";
|
|
9
9
|
import { o as l } from "./options-rac.module-KM-VT_KY.js";
|
|
10
|
-
import { u as I } from "./use-element-state-class-name
|
|
11
|
-
import { u as L } from "./use-text-input-class-name-
|
|
10
|
+
import { u as I } from "./use-element-state-class-name-C0zLrsDR.js";
|
|
11
|
+
import { u as L } from "./use-text-input-class-name-Biu89Ma7.js";
|
|
12
12
|
const u = ({ content: o, locale: r }) => /* @__PURE__ */ e.createElement(m, {
|
|
13
13
|
content: o,
|
|
14
14
|
locale: r
|
package/dist/component/{contacts-subscribe-rac-Bjldz7ed.js → contacts-subscribe-rac-8Nu9ncZW.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import C from "react";
|
|
2
|
-
import { C as e } from "./checkbox-field-rac-
|
|
2
|
+
import { C as e } from "./checkbox-field-rac-CD1MP1LT.js";
|
|
3
3
|
import { X as r, Y as t, W as _ } from "./form-element-classes-CLZXu-91.js";
|
|
4
4
|
const S = () => /* @__PURE__ */ C.createElement(e, {
|
|
5
5
|
classes: {
|
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
import { RicosViewer as ee } from "@wix/ricos/viewer";
|
|
2
|
+
import b from "classnames";
|
|
3
|
+
import t, { useMemo as g, useState as x, useCallback as w, useRef as B } from "react";
|
|
4
|
+
import { ak as I, ah as U, ac as P, K as q, a2 as $, s as m, au as T, y as te, O as ae, a9 as ne, am as H } from "./form-DKKTSAj1.js";
|
|
5
|
+
import { UNSAFE_PortalProvider as re } from "react-aria";
|
|
6
|
+
import { ListBoxItem as oe, ListBox as se, Select as le, TextField as z, SelectValue as ce, Input as G } from "react-aria-components";
|
|
7
|
+
import { f as u, a as V } from "./find-child-C60k4CxG.js";
|
|
8
|
+
import { g as ie } from "./helpers-HmkkXrh2.js";
|
|
9
|
+
import { D as me, E as de } from "./field-error-headless-2nYJ2792.js";
|
|
10
|
+
import { L as ue } from "./field-label-headless-D97ACnmc.js";
|
|
11
|
+
import { F as pe } from "./fieldset-headless-CD3fds9J.js";
|
|
12
|
+
import { N as Ee, S as be } from "./non-modal-popover-DtIMXHbe.js";
|
|
13
|
+
import { a as fe, u as he } from "./use-dropdown-option-class-name-vKSagp3b.js";
|
|
14
|
+
import { C as De } from "./chevron-down-icon-CcpVm6B-.js";
|
|
15
|
+
import { E as Ie } from "./error-icon-hZxQ6DEy.js";
|
|
16
|
+
import { H as Oe } from "./custom-focus-class-_483Pkwp.js";
|
|
17
|
+
import { s as E } from "./field-rac.module-BUvPquav.js";
|
|
18
|
+
import { B as S, R as ye, m as ge, D as _e, q as Ne, i as Le } from "./form-element-classes-CLZXu-91.js";
|
|
19
|
+
import { u as k } from "./use-text-input-class-name-Biu89Ma7.js";
|
|
20
|
+
const n = ({ children: e, className: a }) => {
|
|
21
|
+
const { id: r, required: s, onBlur: o, onFocus: l, FieldLayout: c } = I(), { inputId: d, labelId: i, ariaDescribedBy: f } = U(), { regionalFormat: p } = P(), D = g(() => q(p).filter($).map((v) => v.toUpperCase()), [
|
|
22
|
+
p
|
|
23
|
+
]), N = u(e, n.Label), Y = u(e, n.Description), L = u(e, n.Error), F = {
|
|
24
|
+
[m.MONTH]: u(e, n.Month),
|
|
25
|
+
[m.DAY]: u(e, n.Day),
|
|
26
|
+
[m.YEAR]: u(e, n.Year)
|
|
27
|
+
};
|
|
28
|
+
return /* @__PURE__ */ t.createElement(c, {
|
|
29
|
+
fieldId: r,
|
|
30
|
+
renderLabel: () => V(N, {
|
|
31
|
+
as: "div"
|
|
32
|
+
}),
|
|
33
|
+
renderInput: () => /* @__PURE__ */ t.createElement(pe, {
|
|
34
|
+
id: d,
|
|
35
|
+
ariaLabelledBy: i,
|
|
36
|
+
ariaDescribedBy: f,
|
|
37
|
+
required: s,
|
|
38
|
+
onBlur: o,
|
|
39
|
+
onFocus: l,
|
|
40
|
+
className: a
|
|
41
|
+
}, F[D[0]], F[D[1]], F[D[2]]),
|
|
42
|
+
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, L, Y)
|
|
43
|
+
});
|
|
44
|
+
}, O = ({ children: e, className: a }) => {
|
|
45
|
+
const { id: r, disabled: s, readOnly: o, showDateLabels: l, hidePlaceholder: c } = I(), { labelId: d } = y(m.MONTH), { partValue: i, partError: f, onPartChange: p } = _(m.MONTH), { t: D } = T(), [N, Y] = x(!1), L = fe(r), [F, v] = x(null), K = c ? void 0 : D("field.date.placeholder.month"), Q = w((M) => {
|
|
46
|
+
o || p(typeof M == "string" ? M : "");
|
|
47
|
+
}, [
|
|
48
|
+
p,
|
|
49
|
+
o
|
|
50
|
+
]), W = w((M) => {
|
|
51
|
+
Y(M && !o);
|
|
52
|
+
}, [
|
|
53
|
+
o
|
|
54
|
+
]), J = u(e, O.Label), X = u(e, O.Trigger), Z = u(e, O.Options);
|
|
55
|
+
return /* @__PURE__ */ t.createElement("div", {
|
|
56
|
+
className: a,
|
|
57
|
+
"data-date-field": !0
|
|
58
|
+
}, l ? J : null, /* @__PURE__ */ t.createElement("div", {
|
|
59
|
+
ref: v,
|
|
60
|
+
style: {
|
|
61
|
+
display: "contents"
|
|
62
|
+
}
|
|
63
|
+
}), /* @__PURE__ */ t.createElement(re, {
|
|
64
|
+
getContainer: () => F
|
|
65
|
+
}, /* @__PURE__ */ t.createElement(le, {
|
|
66
|
+
"aria-labelledby": l ? d : void 0,
|
|
67
|
+
value: i || null,
|
|
68
|
+
onChange: Q,
|
|
69
|
+
isDisabled: s,
|
|
70
|
+
isInvalid: f,
|
|
71
|
+
placeholder: K,
|
|
72
|
+
isOpen: L || N,
|
|
73
|
+
onOpenChange: L ? void 0 : W
|
|
74
|
+
}, X, V(Z, {
|
|
75
|
+
isForcedOpen: L
|
|
76
|
+
}))));
|
|
77
|
+
}, Fe = ({ className: e }) => /* @__PURE__ */ t.createElement(j, {
|
|
78
|
+
datePart: m.MONTH,
|
|
79
|
+
className: e
|
|
80
|
+
}), Ce = ({ children: e, className: a }) => {
|
|
81
|
+
const { id: r, readOnly: s } = I(), { inputId: o } = y(m.MONTH), { partError: l, isFirstPart: c } = _(m.MONTH), d = B(null);
|
|
82
|
+
return H(() => {
|
|
83
|
+
var i;
|
|
84
|
+
c && ((i = d.current) == null || i.focus());
|
|
85
|
+
}, r), /* @__PURE__ */ t.createElement(be, {
|
|
86
|
+
ref: d,
|
|
87
|
+
id: o,
|
|
88
|
+
className: a,
|
|
89
|
+
"data-hook": m.MONTH,
|
|
90
|
+
"data-invalid": l || void 0,
|
|
91
|
+
"data-readonly": s || void 0
|
|
92
|
+
}, /* @__PURE__ */ t.createElement(ce, null), e);
|
|
93
|
+
}, A = ({ children: e, className: a, ...r }) => {
|
|
94
|
+
const { isForcedOpen: s } = r, { language: o } = P(), l = g(() => ie(o), [
|
|
95
|
+
o
|
|
96
|
+
]), c = u(e, A.Option) ?? /* @__PURE__ */ t.createElement(A.Option, null);
|
|
97
|
+
return /* @__PURE__ */ t.createElement(Ee, {
|
|
98
|
+
className: a,
|
|
99
|
+
containerPadding: 0,
|
|
100
|
+
offset: 0
|
|
101
|
+
}, /* @__PURE__ */ t.createElement(se, {
|
|
102
|
+
autoFocus: s ? !1 : void 0
|
|
103
|
+
}, l.map((d, i) => V(c, {
|
|
104
|
+
key: String(i + 1),
|
|
105
|
+
value: String(i + 1),
|
|
106
|
+
label: d
|
|
107
|
+
}))));
|
|
108
|
+
}, Re = ({ className: e, ...a }) => {
|
|
109
|
+
const { value: r, label: s } = a;
|
|
110
|
+
return /* @__PURE__ */ t.createElement(oe, {
|
|
111
|
+
className: e,
|
|
112
|
+
id: r,
|
|
113
|
+
textValue: s
|
|
114
|
+
}, s);
|
|
115
|
+
};
|
|
116
|
+
O.Label = Fe;
|
|
117
|
+
O.Trigger = Ce;
|
|
118
|
+
O.Options = A;
|
|
119
|
+
A.Option = Re;
|
|
120
|
+
const C = ({ children: e, className: a }) => {
|
|
121
|
+
const { disabled: r, readOnly: s, showDateLabels: o } = I(), { labelId: l } = y(m.DAY), { partValue: c, partError: d, onPartChange: i } = _(m.DAY), f = u(e, C.Label), p = u(e, C.Input);
|
|
122
|
+
return /* @__PURE__ */ t.createElement("div", {
|
|
123
|
+
className: a,
|
|
124
|
+
"data-date-field": !0
|
|
125
|
+
}, o && f, /* @__PURE__ */ t.createElement(z, {
|
|
126
|
+
"aria-labelledby": o ? l : void 0,
|
|
127
|
+
value: c,
|
|
128
|
+
onChange: i,
|
|
129
|
+
isDisabled: r,
|
|
130
|
+
isReadOnly: s,
|
|
131
|
+
isInvalid: d
|
|
132
|
+
}, p));
|
|
133
|
+
}, Me = ({ className: e }) => /* @__PURE__ */ t.createElement(j, {
|
|
134
|
+
datePart: m.DAY,
|
|
135
|
+
className: e
|
|
136
|
+
}), Se = ({ className: e }) => {
|
|
137
|
+
const { id: a, hidePlaceholder: r } = I(), { inputId: s } = y(m.DAY), { isFirstPart: o } = _(m.DAY), { t: l } = T(), c = B(null), d = r ? void 0 : l("field.date.placeholder.day");
|
|
138
|
+
return H(() => {
|
|
139
|
+
var i;
|
|
140
|
+
o && ((i = c.current) == null || i.focus());
|
|
141
|
+
}, a), /* @__PURE__ */ t.createElement(G, {
|
|
142
|
+
ref: c,
|
|
143
|
+
id: s,
|
|
144
|
+
className: e,
|
|
145
|
+
placeholder: d,
|
|
146
|
+
maxLength: 2,
|
|
147
|
+
inputMode: "numeric",
|
|
148
|
+
"data-hook": m.DAY
|
|
149
|
+
});
|
|
150
|
+
};
|
|
151
|
+
C.Label = Me;
|
|
152
|
+
C.Input = Se;
|
|
153
|
+
const R = ({ children: e, className: a }) => {
|
|
154
|
+
const { disabled: r, readOnly: s, showDateLabels: o } = I(), { labelId: l } = y(m.YEAR), { partValue: c, partError: d, onPartChange: i } = _(m.YEAR), f = u(e, R.Label), p = u(e, R.Input);
|
|
155
|
+
return /* @__PURE__ */ t.createElement("div", {
|
|
156
|
+
className: a,
|
|
157
|
+
"data-date-field": !0
|
|
158
|
+
}, o && f, /* @__PURE__ */ t.createElement(z, {
|
|
159
|
+
"aria-labelledby": o ? l : void 0,
|
|
160
|
+
value: c,
|
|
161
|
+
onChange: i,
|
|
162
|
+
isDisabled: r,
|
|
163
|
+
isReadOnly: s,
|
|
164
|
+
isInvalid: d
|
|
165
|
+
}, p));
|
|
166
|
+
}, Ae = ({ className: e }) => /* @__PURE__ */ t.createElement(j, {
|
|
167
|
+
datePart: m.YEAR,
|
|
168
|
+
className: e
|
|
169
|
+
}), Pe = ({ className: e }) => {
|
|
170
|
+
const { id: a, hidePlaceholder: r } = I(), { inputId: s } = y(m.YEAR), { isFirstPart: o } = _(m.YEAR), { t: l } = T(), c = B(null), d = r ? void 0 : l("field.date.placeholder.year");
|
|
171
|
+
return H(() => {
|
|
172
|
+
var i;
|
|
173
|
+
o && ((i = c.current) == null || i.focus());
|
|
174
|
+
}, a), /* @__PURE__ */ t.createElement(G, {
|
|
175
|
+
ref: c,
|
|
176
|
+
id: s,
|
|
177
|
+
className: e,
|
|
178
|
+
placeholder: d,
|
|
179
|
+
maxLength: 4,
|
|
180
|
+
inputMode: "numeric",
|
|
181
|
+
"data-hook": m.YEAR
|
|
182
|
+
});
|
|
183
|
+
};
|
|
184
|
+
R.Label = Ae;
|
|
185
|
+
R.Input = Pe;
|
|
186
|
+
n.Label = ue;
|
|
187
|
+
n.Month = O;
|
|
188
|
+
n.Day = C;
|
|
189
|
+
n.Year = R;
|
|
190
|
+
n.Description = me;
|
|
191
|
+
n.Error = de;
|
|
192
|
+
function y(e) {
|
|
193
|
+
const { inputId: a } = U();
|
|
194
|
+
return g(() => {
|
|
195
|
+
const r = e.toLowerCase();
|
|
196
|
+
return {
|
|
197
|
+
inputId: `${a}-${r}-input`,
|
|
198
|
+
labelId: `${a}-${r}-label`
|
|
199
|
+
};
|
|
200
|
+
}, [
|
|
201
|
+
a,
|
|
202
|
+
e
|
|
203
|
+
]);
|
|
204
|
+
}
|
|
205
|
+
function _(e) {
|
|
206
|
+
const { value: a, onChange: r, hasError: s = !1 } = I(), { regionalFormat: o } = P(), l = g(() => te(a ?? ""), [
|
|
207
|
+
a
|
|
208
|
+
]), c = g(() => ae(s, a ?? ""), [
|
|
209
|
+
a,
|
|
210
|
+
s
|
|
211
|
+
]), d = l[e] || "", i = w((p) => {
|
|
212
|
+
const D = ne(p, e, l);
|
|
213
|
+
r(D);
|
|
214
|
+
}, [
|
|
215
|
+
r,
|
|
216
|
+
l,
|
|
217
|
+
e
|
|
218
|
+
]), f = g(() => q(o).filter($).map((N) => N.toUpperCase())[0] === e, [
|
|
219
|
+
o,
|
|
220
|
+
e
|
|
221
|
+
]);
|
|
222
|
+
return {
|
|
223
|
+
partValue: d,
|
|
224
|
+
partError: c[e],
|
|
225
|
+
onPartChange: i,
|
|
226
|
+
isFirstPart: f
|
|
227
|
+
};
|
|
228
|
+
}
|
|
229
|
+
function j({ datePart: e, className: a }) {
|
|
230
|
+
const { inputId: r, labelId: s } = y(e), { t: o } = T(), l = `field.date.label.${e.toLowerCase()}`, c = o(l);
|
|
231
|
+
return /* @__PURE__ */ t.createElement("label", {
|
|
232
|
+
id: s,
|
|
233
|
+
htmlFor: r,
|
|
234
|
+
className: a
|
|
235
|
+
}, c);
|
|
236
|
+
}
|
|
237
|
+
const Te = "_fields_12ojb_1", Ye = "_month_12ojb_9", ve = "_day_12ojb_10", we = "_year_12ojb_11", Be = "_mobile_12ojb_25", He = "_dayInput_12ojb_37", Ve = "_yearInput_12ojb_38", je = "_monthTrigger_12ojb_42", xe = "_monthOption_12ojb_62", h = {
|
|
238
|
+
fields: Te,
|
|
239
|
+
month: Ye,
|
|
240
|
+
day: ve,
|
|
241
|
+
year: we,
|
|
242
|
+
mobile: Be,
|
|
243
|
+
dayInput: He,
|
|
244
|
+
yearInput: Ve,
|
|
245
|
+
monthTrigger: je,
|
|
246
|
+
monthOption: xe
|
|
247
|
+
}, ke = ({ content: e, locale: a }) => /* @__PURE__ */ t.createElement(ee, {
|
|
248
|
+
content: e,
|
|
249
|
+
locale: a
|
|
250
|
+
}), ct = () => {
|
|
251
|
+
const e = he(h.monthOption, Oe), { isMobile: a } = P(), r = k(h.dayInput), s = k(h.yearInput);
|
|
252
|
+
return /* @__PURE__ */ t.createElement(n, {
|
|
253
|
+
className: b(h.fields, {
|
|
254
|
+
[h.mobile]: a
|
|
255
|
+
})
|
|
256
|
+
}, /* @__PURE__ */ t.createElement(n.Label, {
|
|
257
|
+
className: b(S, E.label)
|
|
258
|
+
}, /* @__PURE__ */ t.createElement(n.Label.Required, {
|
|
259
|
+
className: b(ye, E.requiredMark)
|
|
260
|
+
})), /* @__PURE__ */ t.createElement(n.Month, {
|
|
261
|
+
className: h.month
|
|
262
|
+
}, /* @__PURE__ */ t.createElement(n.Month.Label, {
|
|
263
|
+
className: b(S, E.label)
|
|
264
|
+
}), /* @__PURE__ */ t.createElement(n.Month.Trigger, {
|
|
265
|
+
className: b(ge, E.input, h.monthTrigger)
|
|
266
|
+
}, /* @__PURE__ */ t.createElement(De, {
|
|
267
|
+
className: E.dropdownIcon
|
|
268
|
+
})), /* @__PURE__ */ t.createElement(n.Month.Options, {
|
|
269
|
+
className: b(_e, E.selectPopover, E.dropdownPopover)
|
|
270
|
+
}, /* @__PURE__ */ t.createElement(n.Month.Options.Option, {
|
|
271
|
+
className: e
|
|
272
|
+
}))), /* @__PURE__ */ t.createElement(n.Day, {
|
|
273
|
+
className: h.day
|
|
274
|
+
}, /* @__PURE__ */ t.createElement(n.Day.Label, {
|
|
275
|
+
className: b(S, E.label)
|
|
276
|
+
}), /* @__PURE__ */ t.createElement(n.Day.Input, {
|
|
277
|
+
className: r
|
|
278
|
+
})), /* @__PURE__ */ t.createElement(n.Year, {
|
|
279
|
+
className: h.year
|
|
280
|
+
}, /* @__PURE__ */ t.createElement(n.Year.Label, {
|
|
281
|
+
className: b(S, E.label)
|
|
282
|
+
}), /* @__PURE__ */ t.createElement(n.Year.Input, {
|
|
283
|
+
className: s
|
|
284
|
+
})), /* @__PURE__ */ t.createElement(n.Error, {
|
|
285
|
+
className: b(Ne, E.error)
|
|
286
|
+
}, /* @__PURE__ */ t.createElement(Ie, null), /* @__PURE__ */ t.createElement(n.Error.Text, null)), /* @__PURE__ */ t.createElement(n.Description, {
|
|
287
|
+
className: b(Le, E.description)
|
|
288
|
+
}, ke));
|
|
289
|
+
};
|
|
290
|
+
export {
|
|
291
|
+
ct as D
|
|
292
|
+
};
|
package/dist/component/{date-picker-field-rac-ClNfMoR1.js → date-picker-field-rac-BqdzPPzK.js}
RENAMED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { RicosViewer as G } from "@wix/ricos/viewer";
|
|
2
2
|
import y from "classnames";
|
|
3
3
|
import e, { useState as z, useCallback as F, useContext as Q, useRef as L, useMemo as _ } from "react";
|
|
4
|
-
import { D, ak as v, ah as A, ac as S, am as Z } from "./form-
|
|
4
|
+
import { D, ak as v, ah as A, ac as S, am as Z } from "./form-DKKTSAj1.js";
|
|
5
5
|
import { parseDate as J } from "@internationalized/date";
|
|
6
6
|
import { UNSAFE_PortalProvider as X } from "react-aria";
|
|
7
7
|
import { I18nProvider as ee, DatePicker as te, DatePickerStateContext as re, Group as ae, DateInput as ne, DateSegment as oe, Dialog as le, Calendar as se, CalendarMonthPicker as ce, CalendarYearPicker as ie, CalendarGrid as me, CalendarCell as ue, Button as R, Select as O, SelectValue as x, ListBox as k, ListBoxItem as M } from "react-aria-components";
|
|
8
8
|
import { g as de } from "./get-first-day-of-the-week-DvnsxYhQ.js";
|
|
9
9
|
import { f as E, a as b } from "./find-child-C60k4CxG.js";
|
|
10
|
-
import { D as ge, E as Ee } from "./field-error-headless-
|
|
11
|
-
import { L as pe } from "./field-label-headless-
|
|
10
|
+
import { D as ge, E as Ee } from "./field-error-headless-2nYJ2792.js";
|
|
11
|
+
import { L as pe } from "./field-label-headless-D97ACnmc.js";
|
|
12
12
|
import { D as De, N as I, S as w } from "./non-modal-popover-DtIMXHbe.js";
|
|
13
|
-
import { i as fe } from "./date-availability-
|
|
13
|
+
import { i as fe } from "./date-availability-DLOKY9C4.js";
|
|
14
14
|
import { C as N } from "./chevron-down-icon-CcpVm6B-.js";
|
|
15
15
|
import { E as Ce } from "./error-icon-hZxQ6DEy.js";
|
|
16
16
|
import { s as p } from "./field-rac.module-BUvPquav.js";
|