@wix/form-elements 1.104.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-D2F4vgf1.js +1011 -0
- package/dist/component/{bookings-address-rac-bOPrbrFn.js → bookings-address-rac-_5S8J8_i.js} +1 -1
- package/dist/component/{bookings-email-rac-DSpy4yfX.js → bookings-email-rac-6vmDR9nS.js} +1 -1
- package/dist/component/{bookings-first-name-rac-Dw0U4kHG.js → bookings-first-name-rac-DtTJ4T2K.js} +1 -1
- package/dist/component/{bookings-header-rac-Czrqn8yy.js → bookings-header-rac-B3dsEwzR.js} +1 -1
- package/dist/component/{bookings-last-name-rac-CVxRqG5b.js → bookings-last-name-rac-B3idkbi8.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-s_2BlBcX.js → bookings-login-bar-rac-CrRBcQwT.js} +4 -4
- package/dist/component/{bookings-phone-rac-B2SgZsIb.js → bookings-phone-rac-BE0yWNnj.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-b3K__6c9.js → bookings-rich-text-rac-CYo1l0-6.js} +1 -1
- package/dist/component/{checkbox-field-rac-Gt2JioDC.js → checkbox-field-rac-boTtXVEt.js} +18 -22
- package/dist/component/{checkbox-group-field-headless-cKefepGi.js → checkbox-group-field-headless-DnkUvDm8.js} +3 -3
- package/dist/component/{checkbox-group-field-rac-B14obB-6.js → checkbox-group-field-rac-DrDTgHMg.js} +13 -13
- package/dist/component/{checkbox-group-rac-B6cixM2X.js → checkbox-group-rac-v3ozUBpo.js} +1 -1
- package/dist/component/{checkbox-indicator-module-classes-DhbNznSB.js → checkbox-indicator-module-classes-BpeSpGsW.js} +1 -1
- package/dist/component/{checkbox-rac-COwblKlm.js → checkbox-rac-YSLE-RnG.js} +1 -1
- package/dist/component/{contacts-address-rac-BJrwGPo4.js → contacts-address-rac-C653yaHZ.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-BaotTtEN.js → contacts-birthdate-rac-BeAQ6shx.js} +1 -1
- package/dist/component/{contacts-company-rac-BjTc-e_S.js → contacts-company-rac-BglKOoTG.js} +1 -1
- package/dist/component/{contacts-email-rac-DVFF485m.js → contacts-email-rac-D6m7ynfc.js} +1 -1
- package/dist/component/{contacts-first-name-rac-C4Fht3FS.js → contacts-first-name-rac-Dgxn0tUJ.js} +1 -1
- package/dist/component/{contacts-last-name-rac-BTbOJedX.js → contacts-last-name-rac-1UyIuRKH.js} +1 -1
- package/dist/component/{contacts-phone-rac-GePv5BT7.js → contacts-phone-rac-BQ77BlW4.js} +1 -1
- package/dist/component/{contacts-position-rac-BZ1ASqF_.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-A2tdbIvB.js → contacts-tax-id-rac-WUaKcNl0.js} +1 -1
- package/dist/component/{date-availability-b1h4CrSQ.js → date-availability-XjBFq8jt.js} +1 -1
- package/dist/component/{date-input-field-rac-moOjGzUv.js → date-input-field-rac-aY2zuuKs.js} +14 -14
- package/dist/component/{date-input-rac-DTqZCOqB.js → date-input-rac-DRiP2_97.js} +1 -1
- package/dist/component/{date-picker-field-rac-flB4Hw18.js → date-picker-field-rac-Bzl-d3Uj.js} +70 -70
- package/dist/component/{date-picker-rac-B2fqOP6H.js → date-picker-rac-DHHUh8vn.js} +1 -1
- package/dist/component/{date-time-input-field-rac-BtLGRGf5.js → date-time-input-field-rac-DP_StuLr.js} +27 -27
- package/dist/component/{date-time-input-rac-CRfUmOim.js → date-time-input-rac-B11KIxsf.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-Ds4t475J.js → dext-checkbox-group-rac-BHZBqyWv.js} +2 -2
- package/dist/component/{dext-checkbox-rac-BC6EGH5R.js → dext-checkbox-rac-BIlAqEvV.js} +1 -1
- package/dist/component/{dext-date-picker-rac-DyydPJyC.js → dext-date-picker-rac-CHBXNrZi.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-DhssYv6t.js → dext-date-time-input-rac-BYtliKry.js} +1 -1
- package/dist/component/{dext-dropdown-rac-Bn0C1Ry8.js → dext-dropdown-rac-C2VPSFV5.js} +1 -1
- package/dist/component/{dext-email-rac-DKhk_v_w.js → dext-email-rac-Fnb0Ggcs.js} +1 -1
- package/dist/component/{dext-number-input-rac-u92WD8VD.js → dext-number-input-rac-DopfSyFi.js} +1 -1
- package/dist/component/{dext-phone-rac-DTzdQAe9.js → dext-phone-rac-Rn4i_2rc.js} +1 -1
- package/dist/component/{dext-radio-group-rac-CoOYhInI.js → dext-radio-group-rac-bNaskJpK.js} +2 -2
- package/dist/component/{dext-rating-input-rac-DPdyJsCZ.js → dext-rating-input-rac-DL6ZZd7d.js} +1 -1
- package/dist/component/{dext-tags-rac-Bh3pQ-Ck.js → dext-tags-rac-TsUPoImO.js} +2 -2
- package/dist/component/{dext-text-area-rac-Cefsz8ct.js → dext-text-area-rac-BIuY7LTd.js} +1 -1
- package/dist/component/{dext-text-input-rac-Bj_pAChP.js → dext-text-input-rac-CSYPW0Qi.js} +1 -1
- package/dist/component/{dext-url-input-rac-Bk_kwZzM.js → dext-url-input-rac-_g0lqGfW.js} +1 -1
- package/dist/component/{donation-rac-wRWkCjYg.js → donation-rac-BYKFtsyR.js} +55 -55
- package/dist/component/{dropdown-field-headless-CedOXKAH.js → dropdown-field-headless-CBaqlNZi.js} +4 -4
- package/dist/component/{dropdown-field-rac-CENh9Khw.js → dropdown-field-rac-CCAGSMm3.js} +6 -6
- package/dist/component/{dropdown-rac-CeCNULzS.js → dropdown-rac-C_EqUsZ1.js} +1 -1
- package/dist/component/{ecom-address-rac-BLJ0UHrV.js → ecom-address-rac-Bw9eH0iF.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-xJDzCasS.js → ecom-subscription-checkbox-rac-B5PVOO2a.js} +10 -17
- package/dist/component/{email-input-field-rac-CeTVUWeX.js → email-input-field-rac-B2kqQ6yo.js} +14 -14
- package/dist/component/{events-repeater-rac-CT9LAF22.js → events-repeater-rac--4OnUxWE.js} +55 -55
- package/dist/component/{events-rsvp-rac-Bu8tqcVi.js → events-rsvp-rac-CczCoo3T.js} +13 -13
- package/dist/component/{field-error-headless-gLZVlnQV.js → field-error-headless-D3-1L5sf.js} +1 -1
- package/dist/component/{field-label-headless-yc46NPmu.js → field-label-headless-Du4ckIVy.js} +1 -1
- package/dist/component/field-rac.module-B4l_0KRU.js +26 -0
- package/dist/component/{file-upload-rac-LkVTFtZb.js → file-upload-rac-DbdkUbWM.js} +80 -80
- package/dist/component/{fixed-payment-rac-DEbV0w-8.js → fixed-payment-rac-f9-01iDN.js} +8 -8
- package/dist/component/{form-DV231fmJ.js → form-DQauhsho.js} +69 -69
- package/dist/component/form-element-classes-bLFmhsKw.js +137 -0
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-BzB5dm6C.js → header-field-rac-DamDk5BR.js} +3 -3
- package/dist/component/{header-rac-BzS5HfUt.js → header-rac-CR9T3Pnu.js} +1 -1
- package/dist/component/{image-choice-rac-8YqUqetS.js → image-choice-rac-DJ_8v467.js} +13 -13
- package/dist/component/{index-CMtf-So7.js → index-BB7d_9Dv.js} +4 -4
- package/dist/component/{index-BzRG28bH.js → index-CcUTIUWM.js} +2 -2
- package/dist/component/{isObjectLike--gPCPyGa.js → isObjectLike-xvPa_08X.js} +1 -1
- package/dist/component/{multiline-address-field-rac-CJWdu5LV.js → multiline-address-field-rac-CyaFOloE.js} +80 -80
- package/dist/component/{multiline-address-rac-Cw5VweB0.js → multiline-address-rac-CaHGUN_f.js} +1 -1
- package/dist/component/{number-input-field-rac-D8NRpCCM.js → number-input-field-rac-BuYUzDWV.js} +15 -15
- package/dist/component/{number-input-rac-CM_CQHE_.js → number-input-rac-DMKX6nhk.js} +1 -1
- package/dist/component/{password-rac-I6vynKG4.js → password-rac-0RUXPAn6.js} +38 -38
- package/dist/component/{payment-input-rac-B4rXCs7V.js → payment-input-rac-CHSZ3-Lt.js} +17 -17
- package/dist/component/{phone-input-field-rac-B-k2e0Np.js → phone-input-field-rac-JmIFcP1e.js} +29 -29
- package/dist/component/{phone-rac-D443psAx.js → phone-rac-BLRnAPXP.js} +1 -1
- package/dist/component/{product-list-rac-B6qUWxkz.js → product-list-rac-BkF5tDwt.js} +11 -11
- package/dist/component/quiz-radio-group-rac-32cCMTUS.js +6 -0
- package/dist/component/{radio-button-module-classes--on7xGzb.js → radio-button-module-classes-IOulhuSH.js} +28 -28
- package/dist/component/radio-group-field-rac-CJwku6e0.js +46 -0
- package/dist/component/{radio-group-rac-CjbSQydw.js → radio-group-rac-BiW-9Abj.js} +1 -1
- package/dist/component/{rating-input-field-rac-yVgqxBKi.js → rating-input-field-rac-B9cwaROK.js} +30 -30
- package/dist/component/{rating-input-rac-D6BKC4oS.js → rating-input-rac-BpwlNvzQ.js} +1 -1
- package/dist/component/{rich-content-rac.module-Ca4LYv7k.js → rich-content-rac.module-B1uyPmtK.js} +1 -1
- package/dist/component/{rich-text-field-rac-DIeBS-ux.js → rich-text-field-rac-C_qE7Ykg.js} +3 -3
- package/dist/component/{rich-text-rac-BgjP0ngh.js → rich-text-rac-VfeZxS27.js} +1 -1
- package/dist/component/{service-dropdown-rac-DjOMT7dx.js → service-dropdown-rac-BCfs8IhW.js} +18 -18
- package/dist/component/{services-multi-choice-rac-C0Rp9Sng.js → services-multi-choice-rac-CCqdF_7P.js} +8 -8
- package/dist/component/{signature-rac-CFT-Fni_.js → signature-rac-DOyMo3u0.js} +73 -73
- package/dist/component/{submit-button-rac-BOluGZI0.js → submit-button-rac-C2uA5DeE.js} +11 -11
- package/dist/component/{tags-field-rac-CP0RS4SG.js → tags-field-rac-C_uIw2by.js} +36 -36
- package/dist/component/{tags-rac-Dtp3VCKk.js → tags-rac-1pQ-fpe_.js} +1 -1
- package/dist/component/{text-area-field-rac-DUKg8kgN.js → text-area-field-rac-DqlOkm7e.js} +23 -23
- package/dist/component/{text-area-rac-Clh7zMTL.js → text-area-rac-DPdkrFcH.js} +1 -1
- package/dist/component/{text-input-field-rac-DY60Q6da.js → text-input-field-rac-CmXm6r1w.js} +6 -6
- package/dist/component/{text-input-headless-BBv0nukI.js → text-input-headless-DD__2DFf.js} +3 -3
- package/dist/component/{text-input-rac-FVD6iJ1i.js → text-input-rac-DRHyQEH7.js} +1 -1
- package/dist/component/{time-input-rac-DsctZB28.js → time-input-rac-BJPIymQY.js} +22 -22
- package/dist/component/{url-input-field-rac-Du4HlhH3.js → url-input-field-rac-CFDYkZ6I.js} +15 -15
- package/dist/component/{url-input-rac-3QPdK0xz.js → url-input-rac-C0ChQUzq.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-Bze6ghRl.js → use-dropdown-option-class-name-3L5ZmNLK.js} +3 -3
- package/dist/component/{use-element-state-class-name-4CDAF1S-.js → use-element-state-class-name-BatTc2bw.js} +1 -1
- package/dist/component/{use-is-forced-open-dropdown--w4f5dWP.js → use-is-forced-open-dropdown-B0jiPTmS.js} +1 -1
- package/dist/component/{use-service-options-base-9vUuIThY.js → use-service-options-base-oeE7xszw.js} +1 -1
- package/dist/component/{use-text-input-class-name-Ch91llI_.js → use-text-input-class-name-LQ5S-NLh.js} +4 -4
- package/package.json +5 -5
- package/dist/component/appointment-rac-CCciYQ_h.js +0 -1012
- package/dist/component/contacts-subscribe-rac-CmyBcsLP.js +0 -13
- package/dist/component/field-rac.module-DobpyqOd.js +0 -26
- package/dist/component/form-element-classes-BtKlobUX.js +0 -192
- package/dist/component/quiz-radio-group-rac-DdPJQmV5.js +0 -13
- package/dist/component/radio-group-field-rac-CjiGr1rO.js +0 -50
package/dist/component/{bookings-login-bar-rac-s_2BlBcX.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
|
-
import { C as pi } from "./checkbox-indicator-module-classes-
|
|
13
|
-
import { s as oe } from "./field-rac.module-
|
|
14
|
-
import {
|
|
15
|
-
import { u as Ai } from "./use-element-state-class-name-
|
|
12
|
+
import { C as pi } from "./checkbox-indicator-module-classes-BpeSpGsW.js";
|
|
13
|
+
import { s as oe } from "./field-rac.module-B4l_0KRU.js";
|
|
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-B14obB-6.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
|
-
import { C as c } from "./checkbox-indicator-module-classes-
|
|
7
|
-
import { s } from "./field-rac.module-
|
|
8
|
-
import {
|
|
6
|
+
import { C as c } from "./checkbox-indicator-module-classes-BpeSpGsW.js";
|
|
7
|
+
import { s } from "./field-rac.module-B4l_0KRU.js";
|
|
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-moOjGzUv.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
|
-
import { s as E } from "./field-rac.module-
|
|
18
|
-
import {
|
|
19
|
-
import { u as Le } from "./use-dropdown-option-class-name-
|
|
20
|
-
import { u as x } from "./use-text-input-class-name-
|
|
17
|
+
import { s as E } from "./field-rac.module-B4l_0KRU.js";
|
|
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
|
}))));
|