@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/{date-picker-field-rac-flB4Hw18.js → date-picker-field-rac-Bzl-d3Uj.js}
RENAMED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { RicosViewer as X } from "@wix/ricos/viewer";
|
|
2
2
|
import D from "classnames";
|
|
3
|
-
import e, { useState as
|
|
3
|
+
import e, { useState as O, useCallback as k, useContext as ee, useRef as A, useMemo as I } from "react";
|
|
4
4
|
import { parseDate as te } from "@internationalized/date";
|
|
5
5
|
import { UNSAFE_PortalProvider as re } from "react-aria";
|
|
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
|
|
7
|
-
import { D as f, ak as
|
|
8
|
-
import { g as De, c as
|
|
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 v, ah as U, ac as L, am as pe } from "./form-DQauhsho.js";
|
|
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-
|
|
12
|
-
import { D as Se, N as
|
|
13
|
-
import { u as he } from "./use-is-forced-open-dropdown
|
|
14
|
-
import { i as
|
|
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
|
+
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-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
|
-
import { s as p } from "./field-rac.module-
|
|
19
|
-
import {
|
|
18
|
+
import { s as p } from "./field-rac.module-B4l_0KRU.js";
|
|
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,27 +28,27 @@ 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
|
-
ref:
|
|
43
|
+
ref: _,
|
|
44
44
|
style: {
|
|
45
45
|
display: "contents"
|
|
46
46
|
}
|
|
47
47
|
}), /* @__PURE__ */ e.createElement(re, {
|
|
48
|
-
getContainer: () =>
|
|
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,
|
|
@@ -56,15 +56,15 @@ const Ae = [
|
|
|
56
56
|
isRequired: c,
|
|
57
57
|
onBlur: d,
|
|
58
58
|
onFocus: o,
|
|
59
|
-
isOpen:
|
|
60
|
-
onOpenChange:
|
|
59
|
+
isOpen: N || W,
|
|
60
|
+
onOpenChange: N ? void 0 : K
|
|
61
61
|
}, q, h(G, {
|
|
62
|
-
isForcedOpen:
|
|
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 } =
|
|
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,12 +85,12 @@ 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();
|
|
92
92
|
}, r);
|
|
93
|
-
const d =
|
|
93
|
+
const d = I(() => $e(n), [
|
|
94
94
|
n
|
|
95
95
|
]);
|
|
96
96
|
return /* @__PURE__ */ e.createElement(se, {
|
|
@@ -115,24 +115,24 @@ 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
|
|
118
|
+
const { isForcedOpen: n } = l, { regionalFormat: i } = L(), { availability: c } = v(), d = I(() => De(i), [
|
|
119
119
|
i
|
|
120
|
-
]),
|
|
121
|
-
const
|
|
122
|
-
return !
|
|
120
|
+
]), o = I(() => (s) => {
|
|
121
|
+
const _ = new Date(s.year, s.month - 1, s.day);
|
|
122
|
+
return !ve(_, c || Pe);
|
|
123
123
|
}, [
|
|
124
|
-
|
|
125
|
-
]),
|
|
126
|
-
return /* @__PURE__ */ e.createElement(
|
|
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), T = E(t, g.YearTrigger);
|
|
126
|
+
return /* @__PURE__ */ e.createElement(b, {
|
|
127
127
|
className: r,
|
|
128
128
|
containerPadding: 0
|
|
129
|
-
}, /* @__PURE__ */ e.createElement(
|
|
129
|
+
}, /* @__PURE__ */ e.createElement(xe, {
|
|
130
130
|
isForcedOpen: n
|
|
131
131
|
}, /* @__PURE__ */ e.createElement(ie, {
|
|
132
132
|
autoFocus: n ? !1 : void 0,
|
|
133
|
-
firstDayOfWeek: He(
|
|
134
|
-
isDateUnavailable:
|
|
135
|
-
}, /* @__PURE__ */ e.createElement("header", null,
|
|
133
|
+
firstDayOfWeek: He(d),
|
|
134
|
+
isDateUnavailable: o
|
|
135
|
+
}, /* @__PURE__ */ e.createElement("header", null, u, /* @__PURE__ */ e.createElement(me, null, (s) => h(y, {
|
|
136
136
|
ariaLabel: s["aria-label"],
|
|
137
137
|
selectedKey: s.value,
|
|
138
138
|
onSelectionChange: s.onChange,
|
|
@@ -140,29 +140,29 @@ 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,
|
|
147
147
|
items: s.items,
|
|
148
148
|
popoverClassName: r
|
|
149
|
-
})),
|
|
150
|
-
weekdayStyle:
|
|
151
|
-
}, (s) => h(
|
|
149
|
+
})), C), /* @__PURE__ */ e.createElement(de, {
|
|
150
|
+
weekdayStyle: "short"
|
|
151
|
+
}, (s) => h(m, {
|
|
152
152
|
date: s
|
|
153
153
|
})))));
|
|
154
|
-
},
|
|
154
|
+
}, xe = ({ isForcedOpen: t, children: r }) => t ? /* @__PURE__ */ e.createElement("div", {
|
|
155
155
|
role: "dialog"
|
|
156
|
-
}, r) : /* @__PURE__ */ e.createElement(ge, null, r),
|
|
156
|
+
}, r) : /* @__PURE__ */ e.createElement(ge, null, r), we = ({ children: t, className: r, ...l }) => {
|
|
157
157
|
const { date: n } = l;
|
|
158
158
|
return /* @__PURE__ */ e.createElement(Ee, {
|
|
159
159
|
className: r,
|
|
160
160
|
date: n
|
|
161
161
|
}, t);
|
|
162
|
-
}, Ye = ({ children: t, className: r }) => /* @__PURE__ */ e.createElement(
|
|
162
|
+
}, Ye = ({ children: t, className: r }) => /* @__PURE__ */ e.createElement(M, {
|
|
163
163
|
slot: "previous",
|
|
164
164
|
className: r
|
|
165
|
-
}, t), Be = ({ children: t, className: r }) => /* @__PURE__ */ e.createElement(
|
|
165
|
+
}, t), Be = ({ children: t, className: r }) => /* @__PURE__ */ e.createElement(M, {
|
|
166
166
|
slot: "next",
|
|
167
167
|
className: r
|
|
168
168
|
}, t), Ue = ({ children: t, className: r, ...l }) => {
|
|
@@ -171,14 +171,14 @@ const Ae = [
|
|
|
171
171
|
"aria-label": n,
|
|
172
172
|
selectedKey: i,
|
|
173
173
|
onSelectionChange: c
|
|
174
|
-
}, /* @__PURE__ */ e.createElement(
|
|
174
|
+
}, /* @__PURE__ */ e.createElement(V, {
|
|
175
175
|
className: r
|
|
176
|
-
}, /* @__PURE__ */ e.createElement(
|
|
176
|
+
}, /* @__PURE__ */ e.createElement(w, null), t), /* @__PURE__ */ e.createElement(b, {
|
|
177
177
|
className: o,
|
|
178
178
|
containerPadding: 0
|
|
179
|
-
}, /* @__PURE__ */ e.createElement(
|
|
179
|
+
}, /* @__PURE__ */ e.createElement(Y, {
|
|
180
180
|
items: d
|
|
181
|
-
}, (m) => /* @__PURE__ */ e.createElement(
|
|
181
|
+
}, (m) => /* @__PURE__ */ e.createElement(B, {
|
|
182
182
|
id: m.id
|
|
183
183
|
}, m.formatted))));
|
|
184
184
|
}, Ve = ({ children: t, className: r, ...l }) => {
|
|
@@ -187,18 +187,18 @@ const Ae = [
|
|
|
187
187
|
"aria-label": n,
|
|
188
188
|
selectedKey: i,
|
|
189
189
|
onSelectionChange: c
|
|
190
|
-
}, /* @__PURE__ */ e.createElement(
|
|
190
|
+
}, /* @__PURE__ */ e.createElement(V, {
|
|
191
191
|
className: r
|
|
192
|
-
}, /* @__PURE__ */ e.createElement(
|
|
192
|
+
}, /* @__PURE__ */ e.createElement(w, null), t), /* @__PURE__ */ e.createElement(b, {
|
|
193
193
|
className: o,
|
|
194
194
|
containerPadding: 0
|
|
195
|
-
}, /* @__PURE__ */ e.createElement(
|
|
195
|
+
}, /* @__PURE__ */ e.createElement(Y, {
|
|
196
196
|
items: d
|
|
197
|
-
}, (m) => /* @__PURE__ */ e.createElement(
|
|
197
|
+
}, (m) => /* @__PURE__ */ e.createElement(B, {
|
|
198
198
|
id: m.id
|
|
199
199
|
}, m.formatted))));
|
|
200
200
|
};
|
|
201
|
-
g.Day =
|
|
201
|
+
g.Day = we;
|
|
202
202
|
g.PreviousTrigger = Ye;
|
|
203
203
|
g.NextTrigger = Be;
|
|
204
204
|
g.MonthTrigger = Ue;
|
|
@@ -261,19 +261,19 @@ 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 = {
|
|
274
274
|
left: 90,
|
|
275
275
|
right: -90
|
|
276
|
-
},
|
|
276
|
+
}, R = ({ direction: t }) => /* @__PURE__ */ e.createElement(F, {
|
|
277
277
|
style: {
|
|
278
278
|
transform: `rotate(${Xe[t]}deg)`
|
|
279
279
|
}
|
|
@@ -282,30 +282,30 @@ const qe = (t) => /* @__PURE__ */ e.createElement("svg", {
|
|
|
282
282
|
}, /* @__PURE__ */ e.createElement(a.Label.Required, {
|
|
283
283
|
className: D(Ie, p.requiredMark)
|
|
284
284
|
})), /* @__PURE__ */ e.createElement(a.Control, {
|
|
285
|
-
className: D(
|
|
285
|
+
className: D(Fe, p.input, S.control)
|
|
286
286
|
}, /* @__PURE__ */ e.createElement(a.Trigger, {
|
|
287
287
|
className: S.trigger
|
|
288
288
|
}, /* @__PURE__ */ e.createElement(qe, null)), /* @__PURE__ */ e.createElement(a.Input, {
|
|
289
289
|
className: S.segments
|
|
290
290
|
})), /* @__PURE__ */ e.createElement(a.Calendar, {
|
|
291
|
-
className: D(
|
|
292
|
-
}, /* @__PURE__ */ e.createElement(a.Calendar.PreviousTrigger, null, /* @__PURE__ */ e.createElement(
|
|
291
|
+
className: D(Le, p.selectPopover, S.calendarPopover)
|
|
292
|
+
}, /* @__PURE__ */ e.createElement(a.Calendar.PreviousTrigger, null, /* @__PURE__ */ e.createElement(R, {
|
|
293
293
|
direction: "left"
|
|
294
294
|
})), /* @__PURE__ */ e.createElement(a.Calendar.MonthTrigger, null, /* @__PURE__ */ e.createElement(F, {
|
|
295
295
|
className: p.dropdownIcon
|
|
296
296
|
})), /* @__PURE__ */ e.createElement(a.Calendar.YearTrigger, null, /* @__PURE__ */ e.createElement(F, {
|
|
297
297
|
className: p.dropdownIcon
|
|
298
|
-
})), /* @__PURE__ */ e.createElement(a.Calendar.NextTrigger, null, /* @__PURE__ */ e.createElement(
|
|
298
|
+
})), /* @__PURE__ */ e.createElement(a.Calendar.NextTrigger, null, /* @__PURE__ */ e.createElement(R, {
|
|
299
299
|
direction: "right"
|
|
300
300
|
})), /* @__PURE__ */ e.createElement(a.Calendar.Day, {
|
|
301
|
-
className: D(_e,
|
|
301
|
+
className: D(_e, P.day, S.calendarDay)
|
|
302
302
|
}, ({ formattedDate: t }) => /* @__PURE__ */ e.createElement("span", {
|
|
303
|
-
className:
|
|
303
|
+
className: P.dayNumber
|
|
304
304
|
}, t))), /* @__PURE__ */ e.createElement(a.Error, {
|
|
305
|
-
className: D(
|
|
306
|
-
}, /* @__PURE__ */ e.createElement(
|
|
305
|
+
className: D(be, p.error)
|
|
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
|
};
|
|
@@ -3,24 +3,24 @@ import E from "classnames";
|
|
|
3
3
|
import t, { useMemo as T, useState as q, useCallback as w, useRef as z, useContext as se } from "react";
|
|
4
4
|
import { parseTime as le } from "@internationalized/date";
|
|
5
5
|
import { UNSAFE_PortalProvider as ie } from "react-aria";
|
|
6
|
-
import { ListBoxItem as ce, ListBox as me, Select as de, TextField as Q, TimeField as ue, SelectValue as pe, Input as
|
|
7
|
-
import { ak as b, ah as
|
|
6
|
+
import { ListBoxItem as ce, ListBox as me, Select as de, TextField as Q, TimeField as ue, SelectValue as pe, Input as J, DateInput as Ee, DateSegment as B, TimeFieldStateContext as he } from "react-aria-components";
|
|
7
|
+
import { ak as b, ah as W, ac as G, K as X, a2 as Z, s as d, au as L, a6 as j, Q as fe, y as be, a9 as ge, z as K, am as U } from "./form-DQauhsho.js";
|
|
8
8
|
import { f as u, a as P } from "./find-child-C60k4CxG.js";
|
|
9
9
|
import { g as Ie } from "./helpers-HmkkXrh2.js";
|
|
10
|
-
import { D as De, E as Ne } from "./field-error-headless-
|
|
11
|
-
import { L as _e } from "./field-label-headless-
|
|
10
|
+
import { D as De, E as Ne } from "./field-error-headless-D3-1L5sf.js";
|
|
11
|
+
import { L as _e } from "./field-label-headless-Du4ckIVy.js";
|
|
12
12
|
import { F as ye } from "./fieldset-headless-CD3fds9J.js";
|
|
13
13
|
import { N as Oe, S as Te } from "./non-modal-popover-DtIMXHbe.js";
|
|
14
|
-
import { u as Le } from "./use-is-forced-open-dropdown
|
|
14
|
+
import { u as Le } from "./use-is-forced-open-dropdown-B0jiPTmS.js";
|
|
15
15
|
import { C as Fe } from "./chevron-down-icon-CcpVm6B-.js";
|
|
16
16
|
import { E as Ce } from "./error-icon-hZxQ6DEy.js";
|
|
17
17
|
import { H } from "./custom-focus-class-_483Pkwp.js";
|
|
18
|
-
import { s as f } from "./field-rac.module-
|
|
19
|
-
import {
|
|
20
|
-
import { u as Ae } from "./use-dropdown-option-class-name-
|
|
21
|
-
import { u as k } from "./use-text-input-class-name-
|
|
18
|
+
import { s as f } from "./field-rac.module-B4l_0KRU.js";
|
|
19
|
+
import { v as S, J as Pe, n as Me, x as ve, o as Se, j as Re } from "./form-element-classes-bLFmhsKw.js";
|
|
20
|
+
import { u as Ae } from "./use-dropdown-option-class-name-3L5ZmNLK.js";
|
|
21
|
+
import { u as k } from "./use-text-input-class-name-LQ5S-NLh.js";
|
|
22
22
|
const l = ({ children: e, className: a }) => {
|
|
23
|
-
const { id: n, required: o, onBlur: s, onFocus: r, FieldLayout: i } = b(), { inputId: m, labelId: c, ariaDescribedBy: g } =
|
|
23
|
+
const { id: n, required: o, onBlur: s, onFocus: r, FieldLayout: i } = b(), { inputId: m, labelId: c, ariaDescribedBy: g } = W(), { regionalFormat: p } = G(), _ = T(() => X(p).filter(Z).map((v) => v.toUpperCase()), [
|
|
24
24
|
p
|
|
25
25
|
]), M = u(e, l.Label), V = u(e, l.Description), D = u(e, l.Error), N = {
|
|
26
26
|
[d.MONTH]: u(e, l.Month),
|
|
@@ -44,7 +44,7 @@ const l = ({ children: e, className: a }) => {
|
|
|
44
44
|
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, D, V)
|
|
45
45
|
});
|
|
46
46
|
}, F = ({ children: e, className: a }) => {
|
|
47
|
-
const { id: n, disabled: o, readOnly: s, showDateLabels: r, hidePlaceholder: i } = b(), { labelId: m } = O(d.MONTH), { partValue: c, partError: g, onPartChange: p } = C(d.MONTH), { t: _ } = L(), [M, V] = q(!1), D = Le(n), [N, y] = q(null),
|
|
47
|
+
const { id: n, disabled: o, readOnly: s, showDateLabels: r, hidePlaceholder: i } = b(), { labelId: m } = O(d.MONTH), { partValue: c, partError: g, onPartChange: p } = C(d.MONTH), { t: _ } = L(), [M, V] = q(!1), D = Le(n), [N, y] = q(null), v = i ? void 0 : _("field.date.placeholder.month"), ee = w((Y) => {
|
|
48
48
|
s || p(typeof Y == "string" ? Y : "");
|
|
49
49
|
}, [
|
|
50
50
|
p,
|
|
@@ -70,7 +70,7 @@ const l = ({ children: e, className: a }) => {
|
|
|
70
70
|
onChange: ee,
|
|
71
71
|
isDisabled: o,
|
|
72
72
|
isInvalid: g,
|
|
73
|
-
placeholder:
|
|
73
|
+
placeholder: v,
|
|
74
74
|
isOpen: D || M,
|
|
75
75
|
onOpenChange: D ? void 0 : te
|
|
76
76
|
}, ne, P(re, {
|
|
@@ -140,7 +140,7 @@ const R = ({ children: e, className: a }) => {
|
|
|
140
140
|
return U(() => {
|
|
141
141
|
var c;
|
|
142
142
|
s && ((c = i.current) == null || c.focus());
|
|
143
|
-
}, a), /* @__PURE__ */ t.createElement(
|
|
143
|
+
}, a), /* @__PURE__ */ t.createElement(J, {
|
|
144
144
|
ref: i,
|
|
145
145
|
id: o,
|
|
146
146
|
className: e,
|
|
@@ -173,7 +173,7 @@ const A = ({ children: e, className: a }) => {
|
|
|
173
173
|
return U(() => {
|
|
174
174
|
var c;
|
|
175
175
|
s && ((c = i.current) == null || c.focus());
|
|
176
|
-
}, a), /* @__PURE__ */ t.createElement(
|
|
176
|
+
}, a), /* @__PURE__ */ t.createElement(J, {
|
|
177
177
|
ref: i,
|
|
178
178
|
id: o,
|
|
179
179
|
className: e,
|
|
@@ -275,7 +275,7 @@ l.Time = I;
|
|
|
275
275
|
l.Description = De;
|
|
276
276
|
l.Error = Ne;
|
|
277
277
|
function O(e) {
|
|
278
|
-
const { inputId: a } =
|
|
278
|
+
const { inputId: a } = W();
|
|
279
279
|
return T(() => {
|
|
280
280
|
const n = e.toLowerCase();
|
|
281
281
|
return {
|
|
@@ -304,8 +304,8 @@ function C(e) {
|
|
|
304
304
|
n,
|
|
305
305
|
r
|
|
306
306
|
]), _ = w((D) => {
|
|
307
|
-
const [, N] = j(a ?? ""), y = ge(D, e, c),
|
|
308
|
-
n(
|
|
307
|
+
const [, N] = j(a ?? ""), y = ge(D, e, c), v = K(y, N);
|
|
308
|
+
n(v);
|
|
309
309
|
}, [
|
|
310
310
|
n,
|
|
311
311
|
a,
|
|
@@ -354,10 +354,10 @@ function Ke(e) {
|
|
|
354
354
|
o
|
|
355
355
|
].join(":");
|
|
356
356
|
}
|
|
357
|
-
const Qe = "_fields_9mv0h_1",
|
|
357
|
+
const Qe = "_fields_9mv0h_1", Je = "_month_9mv0h_11", We = "_day_9mv0h_12", Xe = "_year_9mv0h_13", Ze = "_timeGroup_9mv0h_14", et = "_dayInput_9mv0h_42", tt = "_yearInput_9mv0h_43", at = "_monthTrigger_9mv0h_47", nt = "_monthOption_9mv0h_67", rt = "_time_9mv0h_14", ot = "_hour_9mv0h_86", st = "_minute_9mv0h_87", lt = "_period_9mv0h_88", h = {
|
|
358
358
|
fields: Qe,
|
|
359
|
-
month:
|
|
360
|
-
day:
|
|
359
|
+
month: Je,
|
|
360
|
+
day: We,
|
|
361
361
|
year: Xe,
|
|
362
362
|
timeGroup: Ze,
|
|
363
363
|
dayInput: et,
|
|
@@ -376,37 +376,37 @@ const Qe = "_fields_9mv0h_1", We = "_month_9mv0h_11", Je = "_day_9mv0h_12", Xe =
|
|
|
376
376
|
return /* @__PURE__ */ t.createElement(l, {
|
|
377
377
|
className: h.fields
|
|
378
378
|
}, /* @__PURE__ */ t.createElement(l.Label, {
|
|
379
|
-
className: E(
|
|
379
|
+
className: E(S, f.label)
|
|
380
380
|
}, /* @__PURE__ */ t.createElement(l.Label.Required, {
|
|
381
381
|
className: E(Pe, f.requiredMark)
|
|
382
382
|
})), /* @__PURE__ */ t.createElement(l.Month, {
|
|
383
383
|
className: h.month
|
|
384
384
|
}, /* @__PURE__ */ t.createElement(l.Month.Label, {
|
|
385
|
-
className: E(
|
|
385
|
+
className: E(S, f.label)
|
|
386
386
|
}), /* @__PURE__ */ t.createElement(l.Month.Trigger, {
|
|
387
387
|
className: E(Me, f.input, h.monthTrigger)
|
|
388
388
|
}, /* @__PURE__ */ t.createElement(Fe, {
|
|
389
389
|
className: f.dropdownIcon
|
|
390
390
|
})), /* @__PURE__ */ t.createElement(l.Month.Options, {
|
|
391
|
-
className: E(
|
|
391
|
+
className: E(ve, f.selectPopover, f.dropdownPopover)
|
|
392
392
|
}, /* @__PURE__ */ t.createElement(l.Month.Options.Option, {
|
|
393
393
|
className: e
|
|
394
394
|
}))), /* @__PURE__ */ t.createElement(l.Day, {
|
|
395
395
|
className: h.day
|
|
396
396
|
}, /* @__PURE__ */ t.createElement(l.Day.Label, {
|
|
397
|
-
className: E(
|
|
397
|
+
className: E(S, f.label)
|
|
398
398
|
}), /* @__PURE__ */ t.createElement(l.Day.Input, {
|
|
399
399
|
className: a
|
|
400
400
|
})), /* @__PURE__ */ t.createElement(l.Year, {
|
|
401
401
|
className: h.year
|
|
402
402
|
}, /* @__PURE__ */ t.createElement(l.Year.Label, {
|
|
403
|
-
className: E(
|
|
403
|
+
className: E(S, f.label)
|
|
404
404
|
}), /* @__PURE__ */ t.createElement(l.Year.Input, {
|
|
405
405
|
className: n
|
|
406
406
|
})), /* @__PURE__ */ t.createElement(l.Time, {
|
|
407
407
|
className: h.timeGroup
|
|
408
408
|
}, /* @__PURE__ */ t.createElement(l.Time.Label, {
|
|
409
|
-
className: E(
|
|
409
|
+
className: E(S, f.label)
|
|
410
410
|
}), /* @__PURE__ */ t.createElement(l.Time.Input, {
|
|
411
411
|
className: o
|
|
412
412
|
}, /* @__PURE__ */ t.createElement(l.Time.Hour, {
|
|
@@ -416,7 +416,7 @@ const Qe = "_fields_9mv0h_1", We = "_month_9mv0h_11", Je = "_day_9mv0h_12", Xe =
|
|
|
416
416
|
}), /* @__PURE__ */ t.createElement(l.Time.Period, {
|
|
417
417
|
className: E(h.period, H)
|
|
418
418
|
}))), /* @__PURE__ */ t.createElement(l.Error, {
|
|
419
|
-
className: E(
|
|
419
|
+
className: E(Se, f.error)
|
|
420
420
|
}, /* @__PURE__ */ t.createElement(Ce, null), /* @__PURE__ */ t.createElement(l.Error.Text, null)), /* @__PURE__ */ t.createElement(l.Description, {
|
|
421
421
|
className: E(Re, f.description)
|
|
422
422
|
}, it));
|
package/dist/component/{dext-checkbox-group-rac-Ds4t475J.js → dext-checkbox-group-rac-BHZBqyWv.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import o from "react";
|
|
2
|
-
import { ak as e, h as t } from "./form-
|
|
3
|
-
import { C as p } from "./checkbox-group-field-rac-
|
|
2
|
+
import { ak as e, h as t } from "./form-DQauhsho.js";
|
|
3
|
+
import { C as p } from "./checkbox-group-field-rac-DrDTgHMg.js";
|
|
4
4
|
import { D as s } from "./default-limits-D7qVv_Hv.js";
|
|
5
5
|
const C = () => {
|
|
6
6
|
const r = {
|
package/dist/component/{dext-radio-group-rac-CoOYhInI.js → dext-radio-group-rac-bNaskJpK.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import r from "react";
|
|
2
|
-
import { ak as e, h as t } from "./form-
|
|
3
|
-
import { R as p } from "./radio-group-field-rac-
|
|
2
|
+
import { ak as e, h as t } from "./form-DQauhsho.js";
|
|
3
|
+
import { R as p } from "./radio-group-field-rac-CJwku6e0.js";
|
|
4
4
|
import { a } from "./default-limits-D7qVv_Hv.js";
|
|
5
5
|
const l = () => {
|
|
6
6
|
const o = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import r from "react";
|
|
2
|
-
import { ak as e, h as o } from "./form-
|
|
3
|
-
import { T as s } from "./tags-field-rac-
|
|
2
|
+
import { ak as e, h as o } from "./form-DQauhsho.js";
|
|
3
|
+
import { T as s } from "./tags-field-rac-C_uIw2by.js";
|
|
4
4
|
import { b as a } from "./default-limits-D7qVv_Hv.js";
|
|
5
5
|
const l = () => {
|
|
6
6
|
const t = {
|