@wix/form-elements 1.105.0 → 1.106.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-DaBg4fM3.js → appointment-rac-D2F4vgf1.js} +5 -5
- package/dist/component/{bookings-address-rac-CkCIr0yY.js → bookings-address-rac-_5S8J8_i.js} +1 -1
- package/dist/component/{bookings-email-rac--o2G6bDi.js → bookings-email-rac-6vmDR9nS.js} +1 -1
- package/dist/component/{bookings-first-name-rac-KilnnzGd.js → bookings-first-name-rac-DtTJ4T2K.js} +1 -1
- package/dist/component/{bookings-header-rac-D9PwyQVM.js → bookings-header-rac-B3dsEwzR.js} +1 -1
- package/dist/component/{bookings-last-name-rac-qWHHoFsL.js → bookings-last-name-rac-B3idkbi8.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-CA9lwDip.js → bookings-login-bar-rac-CrRBcQwT.js} +4 -4
- package/dist/component/{bookings-phone-rac-CJwbY3yf.js → bookings-phone-rac-BE0yWNnj.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-B-7cedEB.js → bookings-rich-text-rac-CYo1l0-6.js} +1 -1
- package/dist/component/{checkbox-field-rac-D5YjimAI.js → checkbox-field-rac-boTtXVEt.js} +16 -20
- package/dist/component/{checkbox-group-field-headless-BJl8C2Lz.js → checkbox-group-field-headless-DnkUvDm8.js} +3 -3
- package/dist/component/{checkbox-group-field-rac-CLDKYOsh.js → checkbox-group-field-rac-DrDTgHMg.js} +11 -11
- package/dist/component/{checkbox-group-rac-DfOsQWr7.js → checkbox-group-rac-v3ozUBpo.js} +1 -1
- package/dist/component/{checkbox-rac-DMDIZxxN.js → checkbox-rac-YSLE-RnG.js} +1 -1
- package/dist/component/{contacts-address-rac-CrpSPX3x.js → contacts-address-rac-C653yaHZ.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-B3vrz3B5.js → contacts-birthdate-rac-BeAQ6shx.js} +1 -1
- package/dist/component/{contacts-company-rac-Nd4-07pv.js → contacts-company-rac-BglKOoTG.js} +1 -1
- package/dist/component/{contacts-email-rac-DlKJXGue.js → contacts-email-rac-D6m7ynfc.js} +1 -1
- package/dist/component/{contacts-first-name-rac-CgfaCG0O.js → contacts-first-name-rac-Dgxn0tUJ.js} +1 -1
- package/dist/component/{contacts-last-name-rac-DmSqTPzC.js → contacts-last-name-rac-1UyIuRKH.js} +1 -1
- package/dist/component/{contacts-phone-rac-C9X_5axq.js → contacts-phone-rac-BQ77BlW4.js} +1 -1
- package/dist/component/{contacts-position-rac-DeJrqxtm.js → contacts-position-rac-BUDUv7lv.js} +1 -1
- package/dist/component/contacts-subscribe-rac-DdtA0qKW.js +6 -0
- package/dist/component/{contacts-tax-id-rac-6pMwtJyC.js → contacts-tax-id-rac-WUaKcNl0.js} +1 -1
- package/dist/component/{date-availability-DfL_xDci.js → date-availability-XjBFq8jt.js} +1 -1
- package/dist/component/{date-input-field-rac-DvlY0Ffu.js → date-input-field-rac-aY2zuuKs.js} +13 -13
- package/dist/component/{date-input-rac-Dr_MtbFO.js → date-input-rac-DRiP2_97.js} +1 -1
- package/dist/component/{date-picker-field-rac-D42hJF0j.js → date-picker-field-rac-Bzl-d3Uj.js} +27 -27
- package/dist/component/{date-picker-rac-CtoqWMPa.js → date-picker-rac-DHHUh8vn.js} +1 -1
- package/dist/component/{date-time-input-field-rac-C1rf0_aD.js → date-time-input-field-rac-DP_StuLr.js} +26 -26
- package/dist/component/{date-time-input-rac-gFwBZVcJ.js → date-time-input-rac-B11KIxsf.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-B0dh55yz.js → dext-checkbox-group-rac-BHZBqyWv.js} +2 -2
- package/dist/component/{dext-checkbox-rac-RQ7hpkFn.js → dext-checkbox-rac-BIlAqEvV.js} +1 -1
- package/dist/component/{dext-date-picker-rac-sJEfD5E6.js → dext-date-picker-rac-CHBXNrZi.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-BxPE1oVN.js → dext-date-time-input-rac-BYtliKry.js} +1 -1
- package/dist/component/{dext-dropdown-rac-BimIan_Z.js → dext-dropdown-rac-C2VPSFV5.js} +1 -1
- package/dist/component/{dext-email-rac-CjrC85Va.js → dext-email-rac-Fnb0Ggcs.js} +1 -1
- package/dist/component/{dext-number-input-rac-CkMRmcJQ.js → dext-number-input-rac-DopfSyFi.js} +1 -1
- package/dist/component/{dext-phone-rac-DO3qV3WL.js → dext-phone-rac-Rn4i_2rc.js} +1 -1
- package/dist/component/{dext-radio-group-rac-CUaqRQSf.js → dext-radio-group-rac-bNaskJpK.js} +2 -2
- package/dist/component/{dext-rating-input-rac-CIRU2af7.js → dext-rating-input-rac-DL6ZZd7d.js} +1 -1
- package/dist/component/{dext-tags-rac-DHqXtqOo.js → dext-tags-rac-TsUPoImO.js} +2 -2
- package/dist/component/{dext-text-area-rac-yBONPzSt.js → dext-text-area-rac-BIuY7LTd.js} +1 -1
- package/dist/component/{dext-text-input-rac-CdhAUC2i.js → dext-text-input-rac-CSYPW0Qi.js} +1 -1
- package/dist/component/{dext-url-input-rac-B4IQEsp2.js → dext-url-input-rac-_g0lqGfW.js} +1 -1
- package/dist/component/{donation-rac-D-rWK7OY.js → donation-rac-BYKFtsyR.js} +55 -55
- package/dist/component/{dropdown-field-headless-CeDAK-PU.js → dropdown-field-headless-CBaqlNZi.js} +4 -4
- package/dist/component/{dropdown-field-rac-BzqUmKJ1.js → dropdown-field-rac-CCAGSMm3.js} +5 -5
- package/dist/component/{dropdown-rac-CHO-8WoH.js → dropdown-rac-C_EqUsZ1.js} +1 -1
- package/dist/component/{ecom-address-rac-BZVqOncl.js → ecom-address-rac-Bw9eH0iF.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-BpILYYtb.js → ecom-subscription-checkbox-rac-B5PVOO2a.js} +10 -17
- package/dist/component/{email-input-field-rac-Cb6ECUnT.js → email-input-field-rac-B2kqQ6yo.js} +12 -12
- package/dist/component/{events-repeater-rac-BaYgjHjJ.js → events-repeater-rac--4OnUxWE.js} +53 -53
- package/dist/component/{events-rsvp-rac-CK0hpQKD.js → events-rsvp-rac-CczCoo3T.js} +12 -12
- package/dist/component/{field-error-headless-CN2-F78X.js → field-error-headless-D3-1L5sf.js} +1 -1
- package/dist/component/{field-label-headless-Ca6NcX2l.js → field-label-headless-Du4ckIVy.js} +1 -1
- package/dist/component/{file-upload-rac-C0DqDLp2.js → file-upload-rac-DbdkUbWM.js} +79 -79
- package/dist/component/{fixed-payment-rac-C5qNAT_7.js → fixed-payment-rac-f9-01iDN.js} +7 -7
- package/dist/component/{form-D1xJH87b.js → form-DQauhsho.js} +69 -69
- package/dist/component/form-element-classes-bLFmhsKw.js +137 -0
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-BN-Ib7VY.js → header-field-rac-DamDk5BR.js} +3 -3
- package/dist/component/{header-rac-CE0NjfoF.js → header-rac-CR9T3Pnu.js} +1 -1
- package/dist/component/{image-choice-rac-D6dIXR_x.js → image-choice-rac-DJ_8v467.js} +12 -12
- package/dist/component/{index-CcsZgBFf.js → index-BB7d_9Dv.js} +4 -4
- package/dist/component/{index-DOd4eW8z.js → index-CcUTIUWM.js} +2 -2
- package/dist/component/{isObjectLike-DfUDKPeo.js → isObjectLike-xvPa_08X.js} +1 -1
- package/dist/component/{multiline-address-field-rac-jJ5HMakk.js → multiline-address-field-rac-CyaFOloE.js} +79 -79
- package/dist/component/{multiline-address-rac-GQF9HaNq.js → multiline-address-rac-CaHGUN_f.js} +1 -1
- package/dist/component/{number-input-field-rac-DRgq3Ll0.js → number-input-field-rac-BuYUzDWV.js} +14 -14
- package/dist/component/{number-input-rac-C2VoBZeq.js → number-input-rac-DMKX6nhk.js} +1 -1
- package/dist/component/{password-rac-DP8d_92z.js → password-rac-0RUXPAn6.js} +37 -37
- package/dist/component/{payment-input-rac-BycHF-zC.js → payment-input-rac-CHSZ3-Lt.js} +16 -16
- package/dist/component/{phone-input-field-rac-C3_-Dc35.js → phone-input-field-rac-JmIFcP1e.js} +28 -28
- package/dist/component/{phone-rac-DAxScWRl.js → phone-rac-BLRnAPXP.js} +1 -1
- package/dist/component/{product-list-rac-Bxdu4NFP.js → product-list-rac-BkF5tDwt.js} +9 -9
- package/dist/component/quiz-radio-group-rac-32cCMTUS.js +6 -0
- package/dist/component/{radio-button-module-classes-D71u96Y9.js → radio-button-module-classes-IOulhuSH.js} +3 -3
- package/dist/component/radio-group-field-rac-CJwku6e0.js +46 -0
- package/dist/component/{radio-group-rac-DqdjCYmd.js → radio-group-rac-BiW-9Abj.js} +1 -1
- package/dist/component/{rating-input-field-rac-C4Ztlh1u.js → rating-input-field-rac-B9cwaROK.js} +29 -29
- package/dist/component/{rating-input-rac-B4lF_LX7.js → rating-input-rac-BpwlNvzQ.js} +1 -1
- package/dist/component/{rich-content-rac.module-CmW7FwmQ.js → rich-content-rac.module-B1uyPmtK.js} +1 -1
- package/dist/component/{rich-text-field-rac-MwKpKbvj.js → rich-text-field-rac-C_qE7Ykg.js} +3 -3
- package/dist/component/{rich-text-rac-DcMBqEFb.js → rich-text-rac-VfeZxS27.js} +1 -1
- package/dist/component/{service-dropdown-rac-CZWVFnR8.js → service-dropdown-rac-BCfs8IhW.js} +17 -17
- package/dist/component/{services-multi-choice-rac-DvHcWQHS.js → services-multi-choice-rac-CCqdF_7P.js} +6 -6
- package/dist/component/{signature-rac-CMTAWkaY.js → signature-rac-DOyMo3u0.js} +72 -72
- package/dist/component/{submit-button-rac-HnfWQ8wg.js → submit-button-rac-C2uA5DeE.js} +11 -11
- package/dist/component/{tags-field-rac-BuqOeG7-.js → tags-field-rac-C_uIw2by.js} +35 -35
- package/dist/component/{tags-rac-FbHwPPKs.js → tags-rac-1pQ-fpe_.js} +1 -1
- package/dist/component/{text-area-field-rac-Bq224M1o.js → text-area-field-rac-DqlOkm7e.js} +22 -22
- package/dist/component/{text-area-rac-COcGlAYk.js → text-area-rac-DPdkrFcH.js} +1 -1
- package/dist/component/{text-input-field-rac-CTS4jFhC.js → text-input-field-rac-CmXm6r1w.js} +5 -5
- package/dist/component/{text-input-headless-QVLKSgJE.js → text-input-headless-DD__2DFf.js} +3 -3
- package/dist/component/{text-input-rac-BCCkVVG9.js → text-input-rac-DRHyQEH7.js} +1 -1
- package/dist/component/{time-input-rac-7n8d5ppJ.js → time-input-rac-BJPIymQY.js} +21 -21
- package/dist/component/{url-input-field-rac-ChPfhq6I.js → url-input-field-rac-CFDYkZ6I.js} +14 -14
- package/dist/component/{url-input-rac-cFZ8HC3U.js → url-input-rac-C0ChQUzq.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-Cf2B9xAE.js → use-dropdown-option-class-name-3L5ZmNLK.js} +2 -2
- package/dist/component/{use-element-state-class-name-DF2VZawA.js → use-element-state-class-name-BatTc2bw.js} +1 -1
- package/dist/component/{use-is-forced-open-dropdown-B_knxuKJ.js → use-is-forced-open-dropdown-B0jiPTmS.js} +1 -1
- package/dist/component/{use-service-options-base-Clx3S0du.js → use-service-options-base-oeE7xszw.js} +1 -1
- package/dist/component/{use-text-input-class-name-MbmOF6tH.js → use-text-input-class-name-LQ5S-NLh.js} +3 -3
- package/package.json +2 -2
- package/dist/component/contacts-subscribe-rac-Dv-QNZZc.js +0 -13
- package/dist/component/form-element-classes-BtKlobUX.js +0 -192
- package/dist/component/quiz-radio-group-rac-mAn0MuPW.js +0 -13
- package/dist/component/radio-group-field-rac-eij4o0_R.js +0 -50
|
@@ -6,13 +6,13 @@ import { E as lt } from "./error-icon-hZxQ6DEy.js";
|
|
|
6
6
|
import { g as ct, c as Ce } from "./calendar.module-DnhTT4QT.js";
|
|
7
7
|
import { H as me } from "./custom-focus-class-_483Pkwp.js";
|
|
8
8
|
import { s as de } from "./field-rac.module-B4l_0KRU.js";
|
|
9
|
-
import {
|
|
10
|
-
import { u as _t } from "./use-element-state-class-name-
|
|
9
|
+
import { v as ut, J as mt, a as dt, t as We, i as ft, K as Dt, o as Et, j as St, P as pt } from "./form-element-classes-bLFmhsKw.js";
|
|
10
|
+
import { u as _t } from "./use-element-state-class-name-BatTc2bw.js";
|
|
11
11
|
import { ListBox as Lt, Button as Te, ListBoxItem as yt, RadioGroup as At, RadioField as Nt, RadioButton as gt } from "react-aria-components";
|
|
12
|
-
import { ac as De, ab as It, ag as he, af as Ot, c as bt, au as Tt, at as ht, ak as ce, ah as Ee, am as vt, aj as kt, F as Rt } from "./form-
|
|
12
|
+
import { ac as De, ab as It, ag as he, af as Ot, c as bt, au as Tt, at as ht, ak as ce, ah as Ee, am as vt, aj as kt, F as Rt } from "./form-DQauhsho.js";
|
|
13
13
|
import { f as T, a as le } from "./find-child-C60k4CxG.js";
|
|
14
|
-
import { D as wt, E as Ft } from "./field-error-headless-
|
|
15
|
-
import { L as Mt } from "./field-label-headless-
|
|
14
|
+
import { D as wt, E as Ft } from "./field-error-headless-D3-1L5sf.js";
|
|
15
|
+
import { L as Mt } from "./field-label-headless-Du4ckIVy.js";
|
|
16
16
|
import { F as Ct } from "./fieldset-headless-CD3fds9J.js";
|
|
17
17
|
import "date-fns";
|
|
18
18
|
import { V as Ze } from "./headless-styles-CmcyA_pi.js";
|
package/dist/component/{bookings-login-bar-rac-CA9lwDip.js → bookings-login-bar-rac-CrRBcQwT.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
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-DQauhsho.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 {
|
|
6
|
+
import { s as _ } from "./form-element-classes-bLFmhsKw.js";
|
|
7
7
|
const a = ({ children: n }) => {
|
|
8
8
|
const { id: r, FieldLayout: t } = d();
|
|
9
9
|
return /* @__PURE__ */ o.createElement(t, {
|
|
@@ -49,7 +49,7 @@ const T = "_container_1mvrn_1", C = "_text_1mvrn_34", v = "_button_1mvrn_39", u
|
|
|
49
49
|
container: T,
|
|
50
50
|
text: C,
|
|
51
51
|
button: v
|
|
52
|
-
},
|
|
52
|
+
}, A = () => {
|
|
53
53
|
const { userData: n, language: r } = f(), { actions: t } = p();
|
|
54
54
|
return /* @__PURE__ */ o.createElement(a, null, /* @__PURE__ */ o.createElement(a.LoginBar, {
|
|
55
55
|
email: n == null ? void 0 : n.email,
|
|
@@ -68,7 +68,7 @@ const T = "_container_1mvrn_1", C = "_text_1mvrn_34", v = "_button_1mvrn_39", u
|
|
|
68
68
|
}), /* @__PURE__ */ o.createElement(a.Button, {
|
|
69
69
|
className: u.button
|
|
70
70
|
})));
|
|
71
|
-
}, h = () => /* @__PURE__ */ o.createElement(
|
|
71
|
+
}, h = () => /* @__PURE__ */ o.createElement(A, null);
|
|
72
72
|
export {
|
|
73
73
|
h as BookingsLoginBarRAC
|
|
74
74
|
};
|
|
@@ -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-DQauhsho.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-D3-1L5sf.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-xvPa_08X.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-BpeSpGsW.js";
|
|
13
13
|
import { s as oe } from "./field-rac.module-B4l_0KRU.js";
|
|
14
|
-
import {
|
|
15
|
-
import { u as Ai } from "./use-element-state-class-name-
|
|
14
|
+
import { b as di, J as yi, g as bi, o as gi, j as qi, f as Ci } from "./form-element-classes-bLFmhsKw.js";
|
|
15
|
+
import { u as Ai } from "./use-element-state-class-name-BatTc2bw.js";
|
|
16
16
|
var ue, dt;
|
|
17
17
|
function mi() {
|
|
18
18
|
if (dt) return ue;
|
|
@@ -1292,28 +1292,24 @@ const Hs = "_label_1egzx_1", Vs = "_required_1egzx_33", cn = {
|
|
|
1292
1292
|
}, zs = ({ content: e, locale: r }) => /* @__PURE__ */ b.createElement(Xn, {
|
|
1293
1293
|
content: e,
|
|
1294
1294
|
locale: r
|
|
1295
|
-
}), uo = (
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
indicator: di
|
|
1299
|
-
} }) => {
|
|
1300
|
-
const r = Ai({
|
|
1301
|
-
globalClasses: e.indicator,
|
|
1295
|
+
}), uo = () => {
|
|
1296
|
+
const e = Ai({
|
|
1297
|
+
globalClasses: Ci,
|
|
1302
1298
|
moduleClasses: pi
|
|
1303
1299
|
});
|
|
1304
1300
|
return /* @__PURE__ */ b.createElement(T, null, /* @__PURE__ */ b.createElement(T.Checkbox, {
|
|
1305
|
-
className: U(
|
|
1301
|
+
className: U(di, oe.checkbox)
|
|
1306
1302
|
}, /* @__PURE__ */ b.createElement(T.Checkbox.Input, {
|
|
1307
|
-
className:
|
|
1303
|
+
className: e
|
|
1308
1304
|
}), /* @__PURE__ */ b.createElement(T.Checkbox.RichTextLabel, {
|
|
1309
|
-
className: U(
|
|
1310
|
-
requiredClassName: U(
|
|
1311
|
-
}, ({ content:
|
|
1312
|
-
content:
|
|
1305
|
+
className: U(bi, cn.label),
|
|
1306
|
+
requiredClassName: U(yi, cn.required)
|
|
1307
|
+
}, ({ content: r }) => /* @__PURE__ */ b.createElement(si, {
|
|
1308
|
+
content: r
|
|
1313
1309
|
}))), /* @__PURE__ */ b.createElement(T.Error, {
|
|
1314
|
-
className: U(
|
|
1310
|
+
className: U(gi, oe.error)
|
|
1315
1311
|
}, /* @__PURE__ */ b.createElement(hi, null), /* @__PURE__ */ b.createElement(T.Error.Text, null)), /* @__PURE__ */ b.createElement(T.Description, {
|
|
1316
|
-
className: U(
|
|
1312
|
+
className: U(qi, oe.description)
|
|
1317
1313
|
}, zs));
|
|
1318
1314
|
};
|
|
1319
1315
|
export {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import o, { useMemo as k, useCallback as $, useRef as w, useState as W, useEffect as A } from "react";
|
|
2
2
|
import { CheckboxGroup as M, CheckboxField as j, CheckboxButton as z, TextField as J, Input as K } from "react-aria-components";
|
|
3
3
|
import { debounce as Q } from "ts-debounce";
|
|
4
|
-
import { ak as R, ah as U, au as X, am as Y } from "./form-
|
|
4
|
+
import { ak as R, ah as U, au as X, am as Y } from "./form-DQauhsho.js";
|
|
5
5
|
import { f as I, a as x } from "./find-child-C60k4CxG.js";
|
|
6
|
-
import { D as Z, E as ee } from "./field-error-headless-
|
|
7
|
-
import { L as te } from "./field-label-headless-
|
|
6
|
+
import { D as Z, E as ee } from "./field-error-headless-D3-1L5sf.js";
|
|
7
|
+
import { L as te } from "./field-label-headless-Du4ckIVy.js";
|
|
8
8
|
import { F as ae } from "./fieldset-headless-CD3fds9J.js";
|
|
9
9
|
import { S as ne } from "./selection-indicator-XQ8MYHUQ.js";
|
|
10
10
|
const B = "Other", le = (e, t) => e.some((r) => !t.includes(r)), N = (e, t) => e.length > 0 && le(e, t), se = (e, t) => {
|
package/dist/component/{checkbox-group-field-rac-CLDKYOsh.js → checkbox-group-field-rac-DrDTgHMg.js}
RENAMED
|
@@ -1,22 +1,22 @@
|
|
|
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-DnkUvDm8.js";
|
|
5
5
|
import { E as n } from "./error-icon-hZxQ6DEy.js";
|
|
6
6
|
import { C as c } from "./checkbox-indicator-module-classes-BpeSpGsW.js";
|
|
7
7
|
import { s } from "./field-rac.module-B4l_0KRU.js";
|
|
8
|
-
import {
|
|
8
|
+
import { v as i, J as E, c as p, e as C, o as O, j as _, d as I } from "./form-element-classes-bLFmhsKw.js";
|
|
9
9
|
import { o as l } from "./options-rac.module-CTDdATiz.js";
|
|
10
|
-
import { u as L } from "./use-element-state-class-name-
|
|
11
|
-
import { u as R } from "./use-text-input-class-name-
|
|
12
|
-
const u = ({ content:
|
|
13
|
-
content:
|
|
14
|
-
locale:
|
|
10
|
+
import { u as L } from "./use-element-state-class-name-BatTc2bw.js";
|
|
11
|
+
import { u as R } from "./use-text-input-class-name-LQ5S-NLh.js";
|
|
12
|
+
const u = ({ content: o, locale: r }) => /* @__PURE__ */ e.createElement(m, {
|
|
13
|
+
content: o,
|
|
14
|
+
locale: r
|
|
15
15
|
}), k = () => {
|
|
16
|
-
const
|
|
16
|
+
const o = L({
|
|
17
17
|
globalClasses: I,
|
|
18
18
|
moduleClasses: c
|
|
19
|
-
}),
|
|
19
|
+
}), r = R();
|
|
20
20
|
return /* @__PURE__ */ e.createElement(t, {
|
|
21
21
|
className: l.group
|
|
22
22
|
}, /* @__PURE__ */ e.createElement(t.Label, {
|
|
@@ -28,11 +28,11 @@ const u = ({ content: r, locale: o }) => /* @__PURE__ */ e.createElement(m, {
|
|
|
28
28
|
}, /* @__PURE__ */ e.createElement(t.Options.Option, null, /* @__PURE__ */ e.createElement(t.Options.Option.Checkbox, {
|
|
29
29
|
className: s.checkbox
|
|
30
30
|
}, /* @__PURE__ */ e.createElement(t.Options.Option.Checkbox.Input, {
|
|
31
|
-
className:
|
|
31
|
+
className: o
|
|
32
32
|
}), /* @__PURE__ */ e.createElement(t.Options.Option.Checkbox.Label, {
|
|
33
33
|
className: a(C, l.optionLabel)
|
|
34
34
|
})), /* @__PURE__ */ e.createElement(t.Options.Option.OtherInput, {
|
|
35
|
-
inputClassName:
|
|
35
|
+
inputClassName: r
|
|
36
36
|
}))), /* @__PURE__ */ e.createElement(t.Error, {
|
|
37
37
|
className: a(O, s.error)
|
|
38
38
|
}, /* @__PURE__ */ e.createElement(n, null), /* @__PURE__ */ e.createElement(t.Error.Text, null)), /* @__PURE__ */ e.createElement(t.Description, {
|
package/dist/component/{date-input-field-rac-DvlY0Ffu.js → date-input-field-rac-aY2zuuKs.js}
RENAMED
|
@@ -3,21 +3,21 @@ import b from "classnames";
|
|
|
3
3
|
import t, { useMemo as g, useState as j, useCallback as v, useRef as k } from "react";
|
|
4
4
|
import { UNSAFE_PortalProvider as te } from "react-aria";
|
|
5
5
|
import { ListBoxItem as ae, ListBox as ne, Select as re, TextField as U, SelectValue as se, Input as $ } from "react-aria-components";
|
|
6
|
-
import { ak as D, ah as q, ac as w, K as z, a2 as G, s as m, au as P, y as oe, O as le, a9 as ce, am as B } from "./form-
|
|
6
|
+
import { ak as D, ah as q, ac as w, K as z, a2 as G, s as m, au as P, y as oe, O as le, a9 as ce, am as B } from "./form-DQauhsho.js";
|
|
7
7
|
import { f as u, a as H } from "./find-child-C60k4CxG.js";
|
|
8
8
|
import { g as ie } from "./helpers-HmkkXrh2.js";
|
|
9
|
-
import { D as me, E as de } from "./field-error-headless-
|
|
10
|
-
import { L as ue } from "./field-label-headless-
|
|
9
|
+
import { D as me, E as de } from "./field-error-headless-D3-1L5sf.js";
|
|
10
|
+
import { L as ue } from "./field-label-headless-Du4ckIVy.js";
|
|
11
11
|
import { F as pe } from "./fieldset-headless-CD3fds9J.js";
|
|
12
12
|
import { N as Ee, S as fe } from "./non-modal-popover-DtIMXHbe.js";
|
|
13
|
-
import { u as be } from "./use-is-forced-open-dropdown-
|
|
13
|
+
import { u as be } from "./use-is-forced-open-dropdown-B0jiPTmS.js";
|
|
14
14
|
import { C as he } from "./chevron-down-icon-CcpVm6B-.js";
|
|
15
15
|
import { E as Ie } from "./error-icon-hZxQ6DEy.js";
|
|
16
16
|
import { H as De } from "./custom-focus-class-_483Pkwp.js";
|
|
17
17
|
import { s as E } from "./field-rac.module-B4l_0KRU.js";
|
|
18
|
-
import {
|
|
19
|
-
import { u as Le } from "./use-dropdown-option-class-name-
|
|
20
|
-
import { u as x } from "./use-text-input-class-name-
|
|
18
|
+
import { v as S, J as Oe, n as ye, x as ge, o as Ne, j as _e } from "./form-element-classes-bLFmhsKw.js";
|
|
19
|
+
import { u as Le } from "./use-dropdown-option-class-name-3L5ZmNLK.js";
|
|
20
|
+
import { u as x } from "./use-text-input-class-name-LQ5S-NLh.js";
|
|
21
21
|
const n = ({ children: e, className: a }) => {
|
|
22
22
|
const { id: r, required: o, onBlur: s, onFocus: l, FieldLayout: c } = D(), { inputId: d, labelId: i, ariaDescribedBy: f } = q(), { regionalFormat: p } = w(), h = g(() => z(p).filter(G).map((Y) => Y.toUpperCase()), [
|
|
23
23
|
p
|
|
@@ -43,20 +43,20 @@ const n = ({ children: e, className: a }) => {
|
|
|
43
43
|
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, L, T)
|
|
44
44
|
});
|
|
45
45
|
}, O = ({ children: e, className: a }) => {
|
|
46
|
-
const { id: r, disabled: o, readOnly: s, showDateLabels: l, hidePlaceholder: c } = D(), { labelId: d } = y(m.MONTH), { partValue: i, partError: f, onPartChange: p } = N(m.MONTH), { t: h } = P(), [_, T] = j(!1), L = be(r), [F, Y] = j(null), K = c ? void 0 : h("field.date.placeholder.month"),
|
|
46
|
+
const { id: r, disabled: o, readOnly: s, showDateLabels: l, hidePlaceholder: c } = D(), { labelId: d } = y(m.MONTH), { partValue: i, partError: f, onPartChange: p } = N(m.MONTH), { t: h } = P(), [_, T] = j(!1), L = be(r), [F, Y] = j(null), K = c ? void 0 : h("field.date.placeholder.month"), J = v((M) => {
|
|
47
47
|
s || p(typeof M == "string" ? M : "");
|
|
48
48
|
}, [
|
|
49
49
|
p,
|
|
50
50
|
s
|
|
51
|
-
]),
|
|
51
|
+
]), Q = v((M) => {
|
|
52
52
|
T(M && !s);
|
|
53
53
|
}, [
|
|
54
54
|
s
|
|
55
|
-
]),
|
|
55
|
+
]), W = u(e, O.Label), X = u(e, O.Trigger), Z = u(e, O.Options);
|
|
56
56
|
return /* @__PURE__ */ t.createElement("div", {
|
|
57
57
|
className: a,
|
|
58
58
|
"data-date-field": !0
|
|
59
|
-
}, l ?
|
|
59
|
+
}, l ? W : null, /* @__PURE__ */ t.createElement("div", {
|
|
60
60
|
ref: Y,
|
|
61
61
|
style: {
|
|
62
62
|
display: "contents"
|
|
@@ -66,12 +66,12 @@ const n = ({ children: e, className: a }) => {
|
|
|
66
66
|
}, /* @__PURE__ */ t.createElement(re, {
|
|
67
67
|
"aria-labelledby": l ? d : void 0,
|
|
68
68
|
value: i || null,
|
|
69
|
-
onChange:
|
|
69
|
+
onChange: J,
|
|
70
70
|
isDisabled: o,
|
|
71
71
|
isInvalid: f,
|
|
72
72
|
placeholder: K,
|
|
73
73
|
isOpen: L || _,
|
|
74
|
-
onOpenChange: L ? void 0 :
|
|
74
|
+
onOpenChange: L ? void 0 : Q
|
|
75
75
|
}, X, H(Z, {
|
|
76
76
|
isForcedOpen: L
|
|
77
77
|
}))));
|
package/dist/component/{date-picker-field-rac-D42hJF0j.js → date-picker-field-rac-Bzl-d3Uj.js}
RENAMED
|
@@ -4,19 +4,19 @@ import e, { useState as O, useCallback as k, useContext as ee, useRef as A, useM
|
|
|
4
4
|
import { parseDate as te } from "@internationalized/date";
|
|
5
5
|
import { UNSAFE_PortalProvider as re } from "react-aria";
|
|
6
6
|
import { I18nProvider as ae, DatePicker as ne, DatePickerStateContext as oe, Group as le, DateInput as se, DateSegment as ce, Calendar as ie, CalendarMonthPicker as me, CalendarYearPicker as ue, CalendarGrid as de, Dialog as ge, CalendarCell as Ee, Button as M, Select as x, SelectValue as w, ListBox as Y, ListBoxItem as B } from "react-aria-components";
|
|
7
|
-
import { D as f, ak as
|
|
7
|
+
import { D as f, ak as v, ah as U, ac as L, am as pe } from "./form-DQauhsho.js";
|
|
8
8
|
import { g as De, c as P } from "./calendar.module-DnhTT4QT.js";
|
|
9
9
|
import { f as E, a as h } from "./find-child-C60k4CxG.js";
|
|
10
|
-
import { D as fe, E as Ce } from "./field-error-headless-
|
|
11
|
-
import { L as ye } from "./field-label-headless-
|
|
10
|
+
import { D as fe, E as Ce } from "./field-error-headless-D3-1L5sf.js";
|
|
11
|
+
import { L as ye } from "./field-label-headless-Du4ckIVy.js";
|
|
12
12
|
import { D as Se, N as b, S as V } from "./non-modal-popover-DtIMXHbe.js";
|
|
13
|
-
import { u as he } from "./use-is-forced-open-dropdown-
|
|
14
|
-
import { i as
|
|
13
|
+
import { u as he } from "./use-is-forced-open-dropdown-B0jiPTmS.js";
|
|
14
|
+
import { i as ve } from "./date-availability-XjBFq8jt.js";
|
|
15
15
|
import { C as F } from "./chevron-down-icon-CcpVm6B-.js";
|
|
16
|
-
import { E as
|
|
16
|
+
import { E as Te } from "./error-icon-hZxQ6DEy.js";
|
|
17
17
|
import { H as _e } from "./custom-focus-class-_483Pkwp.js";
|
|
18
18
|
import { s as p } from "./field-rac.module-B4l_0KRU.js";
|
|
19
|
-
import {
|
|
19
|
+
import { v as Ne, J as Ie, n as Fe, h as Le, o as be, j as Oe } from "./form-element-classes-bLFmhsKw.js";
|
|
20
20
|
const Ae = [
|
|
21
21
|
f.SUNDAY,
|
|
22
22
|
f.MONDAY,
|
|
@@ -28,17 +28,17 @@ const Ae = [
|
|
|
28
28
|
], Pe = {
|
|
29
29
|
availableDays: Ae
|
|
30
30
|
}, a = ({ children: t }) => {
|
|
31
|
-
const { id: r, value: l, onChange: n, disabled: i, required: c, onBlur: d, onFocus: o, FieldLayout: m, hasError: u, readOnly: C } =
|
|
32
|
-
const
|
|
33
|
-
n(
|
|
31
|
+
const { id: r, value: l, onChange: n, disabled: i, required: c, onBlur: d, onFocus: o, FieldLayout: m, hasError: u, readOnly: C } = v(), { labelId: y } = U(), { regionalFormat: T } = L(), [s, _] = O(null), [W, K] = O(!1), N = he(r), $ = k((Z) => {
|
|
32
|
+
const z = Ke(Z);
|
|
33
|
+
n(z);
|
|
34
34
|
}, [
|
|
35
35
|
n
|
|
36
|
-
]), H = E(t, a.Label), q = E(t, a.Control), G = E(t, a.Calendar), j = E(t, a.Description),
|
|
36
|
+
]), H = E(t, a.Label), q = E(t, a.Control), G = E(t, a.Calendar), j = E(t, a.Description), J = E(t, a.Error), Q = We(l);
|
|
37
37
|
return /* @__PURE__ */ e.createElement(m, {
|
|
38
38
|
fieldId: r,
|
|
39
39
|
renderLabel: () => H,
|
|
40
40
|
renderInput: () => /* @__PURE__ */ e.createElement(ae, {
|
|
41
|
-
locale:
|
|
41
|
+
locale: T
|
|
42
42
|
}, /* @__PURE__ */ e.createElement("div", {
|
|
43
43
|
ref: _,
|
|
44
44
|
style: {
|
|
@@ -48,7 +48,7 @@ const Ae = [
|
|
|
48
48
|
getContainer: () => s
|
|
49
49
|
}, /* @__PURE__ */ e.createElement(ne, {
|
|
50
50
|
"aria-labelledby": y,
|
|
51
|
-
value:
|
|
51
|
+
value: Q,
|
|
52
52
|
onChange: $,
|
|
53
53
|
isDisabled: i,
|
|
54
54
|
isInvalid: u,
|
|
@@ -61,10 +61,10 @@ const Ae = [
|
|
|
61
61
|
}, q, h(G, {
|
|
62
62
|
isForcedOpen: N
|
|
63
63
|
})))),
|
|
64
|
-
renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null,
|
|
64
|
+
renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, J, j)
|
|
65
65
|
});
|
|
66
66
|
}, Re = ({ children: t, className: r }) => {
|
|
67
|
-
const { inputId: l, ariaDescribedBy: n } = U(), { hasError: i, disabled: c, readOnly: d } =
|
|
67
|
+
const { inputId: l, ariaDescribedBy: n } = U(), { hasError: i, disabled: c, readOnly: d } = v(), o = ee(oe), m = k((u) => {
|
|
68
68
|
if (!o || o.isOpen || c || d)
|
|
69
69
|
return;
|
|
70
70
|
const C = u.target;
|
|
@@ -85,7 +85,7 @@ const Ae = [
|
|
|
85
85
|
onPointerDownCapture: m
|
|
86
86
|
}, t);
|
|
87
87
|
}, ke = ({ className: t }) => {
|
|
88
|
-
const { id: r, placeholder: l } =
|
|
88
|
+
const { id: r, placeholder: l } = v(), { regionalFormat: n } = L(), i = A(null), c = A(!1);
|
|
89
89
|
pe(() => {
|
|
90
90
|
var o;
|
|
91
91
|
(o = i.current) == null || o.focus();
|
|
@@ -115,14 +115,14 @@ const Ae = [
|
|
|
115
115
|
}, Me = ({ children: t, className: r }) => /* @__PURE__ */ e.createElement(Se, {
|
|
116
116
|
className: r
|
|
117
117
|
}, t), g = ({ children: t, className: r, ...l }) => {
|
|
118
|
-
const { isForcedOpen: n } = l, { regionalFormat: i } = L(), { availability: c } =
|
|
118
|
+
const { isForcedOpen: n } = l, { regionalFormat: i } = L(), { availability: c } = v(), d = I(() => De(i), [
|
|
119
119
|
i
|
|
120
120
|
]), o = I(() => (s) => {
|
|
121
121
|
const _ = new Date(s.year, s.month - 1, s.day);
|
|
122
|
-
return !
|
|
122
|
+
return !ve(_, c || Pe);
|
|
123
123
|
}, [
|
|
124
124
|
c
|
|
125
|
-
]), m = E(t, g.Day) ?? /* @__PURE__ */ e.createElement(g.Day, null), u = E(t, g.PreviousTrigger), C = E(t, g.NextTrigger), y = E(t, g.MonthTrigger),
|
|
125
|
+
]), m = E(t, g.Day) ?? /* @__PURE__ */ e.createElement(g.Day, null), u = E(t, g.PreviousTrigger), C = E(t, g.NextTrigger), y = E(t, g.MonthTrigger), T = E(t, g.YearTrigger);
|
|
126
126
|
return /* @__PURE__ */ e.createElement(b, {
|
|
127
127
|
className: r,
|
|
128
128
|
containerPadding: 0
|
|
@@ -140,7 +140,7 @@ const Ae = [
|
|
|
140
140
|
popoverClassName: r
|
|
141
141
|
})), /* @__PURE__ */ e.createElement(ue, {
|
|
142
142
|
visibleYears: 100
|
|
143
|
-
}, (s) => h(
|
|
143
|
+
}, (s) => h(T, {
|
|
144
144
|
ariaLabel: s["aria-label"],
|
|
145
145
|
selectedKey: s.value,
|
|
146
146
|
onSelectionChange: s.onChange,
|
|
@@ -261,13 +261,13 @@ const qe = (t) => /* @__PURE__ */ e.createElement("svg", {
|
|
|
261
261
|
strokeWidth: "1.5",
|
|
262
262
|
strokeLinecap: "round",
|
|
263
263
|
strokeLinejoin: "round"
|
|
264
|
-
})), Ge = "_control_1vunt_1", je = "_segments_1vunt_14",
|
|
264
|
+
})), Ge = "_control_1vunt_1", je = "_segments_1vunt_14", Je = "_trigger_1vunt_65", Qe = "_calendarPopover_1vunt_96", Ze = "_calendarDay_1vunt_242", S = {
|
|
265
265
|
control: Ge,
|
|
266
266
|
segments: je,
|
|
267
|
-
trigger:
|
|
268
|
-
calendarPopover:
|
|
269
|
-
calendarDay:
|
|
270
|
-
},
|
|
267
|
+
trigger: Je,
|
|
268
|
+
calendarPopover: Qe,
|
|
269
|
+
calendarDay: Ze
|
|
270
|
+
}, ze = ({ content: t, locale: r }) => /* @__PURE__ */ e.createElement(X, {
|
|
271
271
|
content: t,
|
|
272
272
|
locale: r
|
|
273
273
|
}), Xe = {
|
|
@@ -303,9 +303,9 @@ const qe = (t) => /* @__PURE__ */ e.createElement("svg", {
|
|
|
303
303
|
className: P.dayNumber
|
|
304
304
|
}, t))), /* @__PURE__ */ e.createElement(a.Error, {
|
|
305
305
|
className: D(be, p.error)
|
|
306
|
-
}, /* @__PURE__ */ e.createElement(
|
|
306
|
+
}, /* @__PURE__ */ e.createElement(Te, null), /* @__PURE__ */ e.createElement(a.Error.Text, null)), /* @__PURE__ */ e.createElement(a.Description, {
|
|
307
307
|
className: D(Oe, p.description)
|
|
308
|
-
},
|
|
308
|
+
}, ze));
|
|
309
309
|
export {
|
|
310
310
|
yt as D
|
|
311
311
|
};
|