@wix/form-elements 1.135.0 → 1.136.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-DsD7xLmb.js +1010 -0
- package/dist/component/{bookings-address-rac-BK-sU26E.js → bookings-address-rac-ByaFu51U.js} +1 -1
- package/dist/component/{bookings-email-rac-DZ3HVkyn.js → bookings-email-rac-CxuvkcYw.js} +1 -1
- package/dist/component/{bookings-first-name-rac-Ci4PHqOr.js → bookings-first-name-rac-JXLJa_7E.js} +1 -1
- package/dist/component/{bookings-header-rac-C_MYNrDA.js → bookings-header-rac-CIQTbf9d.js} +1 -1
- package/dist/component/{bookings-last-name-rac-CdNlwyjm.js → bookings-last-name-rac-_2Xt4BPe.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-CP2JcaVr.js → bookings-login-bar-rac-BUjys5i9.js} +6 -6
- package/dist/component/{bookings-phone-rac-BV8sqxil.js → bookings-phone-rac-DlsdGmOt.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-DQtcYRsh.js → bookings-rich-text-rac-BvRdhL7M.js} +1 -1
- package/dist/component/{checkbox-field-rac-DPNqHTNc.js → checkbox-field-rac-Be6wicaA.js} +121 -121
- package/dist/component/{checkbox-group-field-headless-DhhynlgN.js → checkbox-group-field-headless-BJ0pGvXi.js} +19 -19
- package/dist/component/{checkbox-group-field-rac-B3zOW7qr.js → checkbox-group-field-rac-D7xqqVf6.js} +4 -4
- package/dist/component/{checkbox-group-rac-Qy03hO31.js → checkbox-group-rac-DtCS-gEH.js} +1 -1
- package/dist/component/{checkbox-rac-DYr3RaHj.js → checkbox-rac-ub7MFwY-.js} +1 -1
- package/dist/component/{contacts-address-rac-Bi-etpfX.js → contacts-address-rac-Bwsdpg11.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-D2LLjX9P.js → contacts-birthdate-rac-D54hibhb.js} +1 -1
- package/dist/component/{contacts-company-rac-C9ImoG_i.js → contacts-company-rac-CKqzgKio.js} +1 -1
- package/dist/component/{contacts-email-rac-DeGblC9V.js → contacts-email-rac-Dxm31wuY.js} +1 -1
- package/dist/component/{contacts-first-name-rac-Xk3m57jK.js → contacts-first-name-rac-CXHsx6Vy.js} +1 -1
- package/dist/component/{contacts-last-name-rac-BKE-1IYB.js → contacts-last-name-rac-B0S268f3.js} +1 -1
- package/dist/component/{contacts-phone-rac-CHmtTutD.js → contacts-phone-rac-DEbgIiEj.js} +1 -1
- package/dist/component/{contacts-position-rac-BS3TySLG.js → contacts-position-rac-D31uoOlR.js} +1 -1
- package/dist/component/{contacts-subscribe-rac--fpczJiB.js → contacts-subscribe-rac-DJ8NtoxZ.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-CHkn8vkL.js → contacts-tax-id-rac-DTQffHAo.js} +1 -1
- package/dist/component/{date-availability-70Vb-dlb.js → date-availability-DmhJ9apH.js} +1 -1
- package/dist/component/{date-input-field-rac-BlkYEYM_.js → date-input-field-rac-BwM_q4FW.js} +52 -52
- package/dist/component/{date-input-rac-JdNFk07Q.js → date-input-rac-C93pgocp.js} +1 -1
- package/dist/component/{date-picker-field-rac-DHu11mY1.js → date-picker-field-rac-CtZL368W.js} +5 -5
- package/dist/component/{date-picker-rac-CZtWhFzM.js → date-picker-rac-4DNe6hOX.js} +1 -1
- package/dist/component/{date-time-input-field-rac-cHAALqS5.js → date-time-input-field-rac-MlCVy3Oz.js} +58 -58
- package/dist/component/{date-time-input-rac-Dz7GfoJO.js → date-time-input-rac-ByyBvFgo.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-ZNKzyWda.js → dext-checkbox-group-rac-BP76Xwiq.js} +4 -4
- package/dist/component/{dext-checkbox-rac-DfPFXrKu.js → dext-checkbox-rac-DGaKSh4Z.js} +1 -1
- package/dist/component/{dext-date-picker-rac-BPbl65qK.js → dext-date-picker-rac-UEXbMSlL.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-D5ywbLtW.js → dext-date-time-input-rac-CsJcGK4I.js} +1 -1
- package/dist/component/{dext-dropdown-rac-BuVsPZOU.js → dext-dropdown-rac-BzbRzloh.js} +1 -1
- package/dist/component/{dext-email-rac-DRjt3lqT.js → dext-email-rac-DufFAnTi.js} +1 -1
- package/dist/component/{dext-number-input-rac-Bzrl87fo.js → dext-number-input-rac-D6xXi7B2.js} +1 -1
- package/dist/component/{dext-phone-rac-LibvQb8h.js → dext-phone-rac-svy9CDHW.js} +1 -1
- package/dist/component/{dext-radio-group-rac-BTWnIvwW.js → dext-radio-group-rac-C4p9NuQS.js} +4 -4
- package/dist/component/{dext-rating-input-rac-DTlnOcC8.js → dext-rating-input-rac-wJ7-RFFN.js} +1 -1
- package/dist/component/{dext-tags-rac-YdeijviH.js → dext-tags-rac-D2myHrSZ.js} +4 -4
- package/dist/component/{dext-text-area-rac-CdCzQYey.js → dext-text-area-rac-B4Fw_9mF.js} +1 -1
- package/dist/component/{dext-text-input-rac-B28RTezm.js → dext-text-input-rac-DlZanFMT.js} +1 -1
- package/dist/component/{dext-url-input-rac-B0ZBPbAb.js → dext-url-input-rac-DYjl3wuk.js} +1 -1
- package/dist/component/{donation-rac-_0cwsIAq.js → donation-rac-B6LwJxik.js} +72 -72
- package/dist/component/{dropdown-field-headless-DVZnbZAM.js → dropdown-field-headless-BAt2RoAH.js} +8 -8
- package/dist/component/{dropdown-field-rac-DWCj_Grt.js → dropdown-field-rac-DFjn3ecV.js} +7 -7
- package/dist/component/{dropdown-rac-Bpo-F5sc.js → dropdown-rac-DQ6keNRI.js} +1 -1
- package/dist/component/{ecom-address-rac-vJ0ku_Ld.js → ecom-address-rac-j1T2zp0k.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-DgVReM6c.js → ecom-subscription-checkbox-rac-viTaRZsk.js} +2 -2
- package/dist/component/{email-input-field-rac-BXJGOBg-.js → email-input-field-rac-5eb-1w7B.js} +46 -46
- package/dist/component/{events-repeater-rac-CrXE_ppd.js → events-repeater-rac-BtcoN_Ra.js} +23 -23
- package/dist/component/{events-rsvp-rac-BGg3P1CQ.js → events-rsvp-rac-DSzFEmty.js} +10 -10
- package/dist/component/{field-error-headless-C3eOy1_l.js → field-error-headless-Bpe041x2.js} +6 -6
- package/dist/component/{field-label-headless-BMmR_IeF.js → field-label-headless-BUuK1Ftv.js} +7 -7
- package/dist/component/{file-upload-rac-Umix6wXx.js → file-upload-rac-CfU8Ygwq.js} +50 -50
- package/dist/component/{fixed-payment-rac-CfIJCBjb.js → fixed-payment-rac-CYp7zNq8.js} +12 -12
- package/dist/component/{form-CYPNOMwk.js → form-C6lnbh2O.js} +831 -823
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-oxHUTKYV.js → header-field-rac-B7YfrhId.js} +4 -4
- package/dist/component/{header-rac-DTGV923r.js → header-rac-BtJKAKAz.js} +1 -1
- package/dist/component/{image-choice-rac-B9JGl_h7.js → image-choice-rac-Bmq7Pyg6.js} +32 -32
- package/dist/component/{index-BOKSOnDK.js → index-BjPSeVyh.js} +107 -107
- package/dist/component/{index-C_ktc-yO.js → index-CQdUOkIN.js} +5 -5
- package/dist/component/{isObjectLike-Di8V7txC.js → isObjectLike-CxNqKfU5.js} +7 -7
- package/dist/component/{multiline-address-field-rac-zgmTbXlg.js → multiline-address-field-rac-BeiUJWKd.js} +115 -115
- package/dist/component/{multiline-address-rac-Cyb3dvBf.js → multiline-address-rac-B2mocF6M.js} +1 -1
- package/dist/component/{number-input-field-rac-DquqqRy_.js → number-input-field-rac-CQX7_S2O.js} +24 -24
- package/dist/component/{number-input-rac-G2DdTbk2.js → number-input-rac-BZri-E8P.js} +1 -1
- package/dist/component/{password-rac-DJCU0F38.js → password-rac-CdwrtDJU.js} +50 -50
- package/dist/component/{payment-input-rac-DlIYza6N.js → payment-input-rac-ClQiqmjm.js} +38 -38
- package/dist/component/{phone-input-field-rac-B10TInMa.js → phone-input-field-rac-BtG_Rado.js} +56 -56
- package/dist/component/{phone-rac-BuyttJpM.js → phone-rac-CdcAMa5E.js} +1 -1
- package/dist/component/{product-list-rac-WrSJwQ_g.js → product-list-rac-Dp_YK6mo.js} +61 -61
- package/dist/component/{quiz-radio-group-rac-CHxZ_pK_.js → quiz-radio-group-rac-CorojxKD.js} +1 -1
- package/dist/component/{radio-button-module-classes-DjJU-8ZB.js → radio-button-module-classes-ZX12Fyj4.js} +3 -3
- package/dist/component/{radio-group-field-rac-BImiqcKa.js → radio-group-field-rac-BifCDpE4.js} +10 -10
- package/dist/component/{radio-group-rac-CDkJeGpN.js → radio-group-rac-CJ2fzqnY.js} +1 -1
- package/dist/component/{rating-input-field-rac-Dsr_S5qN.js → rating-input-field-rac-Dg1T0DZW.js} +28 -28
- package/dist/component/{rating-input-rac-BJUW8U93.js → rating-input-rac-Ba4YK13i.js} +1 -1
- package/dist/component/{rich-content-rac.module-BfQJqA-x.js → rich-content-rac.module-BehwBL3L.js} +3 -3
- package/dist/component/{rich-text-field-rac-DIuZbu_u.js → rich-text-field-rac-DtIWdB-S.js} +7 -7
- package/dist/component/{rich-text-rac-C39fpEiP.js → rich-text-rac-BX4eDDFw.js} +1 -1
- package/dist/component/service-dropdown-rac-68WLBlsa.js +146 -0
- package/dist/component/{services-multi-choice-rac-GVb4qA7g.js → services-multi-choice-rac-8yNdAHfS.js} +7 -7
- package/dist/component/{signature-rac-nC5pr6nB.js → signature-rac-DeVOyl5O.js} +73 -73
- package/dist/component/{submit-button-rac-eUjgrx9Q.js → submit-button-rac-IOr1g-G-.js} +12 -12
- package/dist/component/{tags-field-rac-zv30chSd.js → tags-field-rac-DaiMlAxt.js} +27 -27
- package/dist/component/{tags-rac-PnS2SxVP.js → tags-rac-BgrUkY0A.js} +1 -1
- package/dist/component/{text-area-field-rac-DLeOMD4g.js → text-area-field-rac-CLPZEY93.js} +16 -16
- package/dist/component/{text-area-rac-jZ_mh45C.js → text-area-rac-C8PdPSzX.js} +1 -1
- package/dist/component/{text-input-field-rac-DifV7Erd.js → text-input-field-rac-Dm-xU8Rg.js} +5 -5
- package/dist/component/{text-input-headless-DhVEjorY.js → text-input-headless-BEmRjL8Z.js} +6 -6
- package/dist/component/{text-input-rac-Ce4qKN9M.js → text-input-rac-C-FnaOXT.js} +1 -1
- package/dist/component/{time-input-rac-1kW3aDIo.js → time-input-rac-VmTURkiK.js} +46 -46
- package/dist/component/{url-input-field-rac-D9xXAQCq.js → url-input-field-rac-CnnS0tVx.js} +23 -23
- package/dist/component/{url-input-rac-SaAybDdN.js → url-input-rac-6nd_ccoP.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-C_MO_0JS.js → use-dropdown-option-class-name-CcZl1qrj.js} +2 -2
- package/dist/component/{use-dropdown-trigger-class-name-D7EMiD-M.js → use-dropdown-trigger-class-name-BNc0mkdK.js} +4 -4
- package/dist/component/{use-element-state-class-name-DZFi3Z42.js → use-element-state-class-name-BU6RXqBy.js} +1 -1
- package/dist/component/{use-hoverable-input-class-name-JAZ1mif0.js → use-hoverable-input-class-name-CkXPkbiP.js} +2 -2
- package/dist/component/{use-service-options-base-ZX4iaxzr.js → use-service-options-base-B5afDbnr.js} +4 -4
- package/dist/component/use-text-input-class-name-BB3V6Q0b.js +6 -0
- package/package.json +2 -2
- package/dist/component/appointment-rac-CYCddSl9.js +0 -1010
- package/dist/component/service-dropdown-rac-Bc9hEpx3.js +0 -146
- package/dist/component/use-text-input-class-name-XFjQX8q1.js +0 -6
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { RicosViewer as se } from "@wix/ricos/viewer";
|
|
2
2
|
import h from "classnames";
|
|
3
|
-
import t, { useMemo as O, useState as
|
|
3
|
+
import t, { useMemo as O, useState as q, useCallback as H, useRef as U, useContext as oe } 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, Select as me, TextField as Q, TimeField as de, SelectValue as ue, Input as J, DateInput as pe, DateSegment as
|
|
7
|
-
import {
|
|
6
|
+
import { ListBoxItem as ce, Select as me, TextField as Q, TimeField as de, SelectValue as ue, Input as J, DateInput as pe, DateSegment as x, TimeFieldStateContext as Ee } from "react-aria-components";
|
|
7
|
+
import { bj as f, bg as W, bb as z, aQ as X, b1 as Z, aD as d, bt as L, b5 as j, aS as fe, aK as he, b8 as be, aM as K, bl as G, M as R, Y as ge, O as Ie, G as De, u as Ne } from "./form-C6lnbh2O.js";
|
|
8
8
|
import { f as u, a as P } from "./find-child-C60k4CxG.js";
|
|
9
9
|
import { g as _e } from "./helpers-HmkkXrh2.js";
|
|
10
|
-
import { D as ye, E as Te } from "./field-error-headless-
|
|
11
|
-
import { L as Oe } from "./field-label-headless-
|
|
10
|
+
import { D as ye, E as Te } from "./field-error-headless-Bpe041x2.js";
|
|
11
|
+
import { L as Oe } from "./field-label-headless-BUuK1Ftv.js";
|
|
12
12
|
import { F as Le } from "./fieldset-headless-CD3fds9J.js";
|
|
13
13
|
import { N as Ce, E as Fe, S as Pe } from "./non-modal-popover-D-u13tmp.js";
|
|
14
|
-
import { a as Me, u as Se } from "./use-dropdown-trigger-class-name-
|
|
15
|
-
import { V as Re, u as Ae } from "./use-dropdown-option-class-name-
|
|
14
|
+
import { a as Me, u as Se } from "./use-dropdown-trigger-class-name-BNc0mkdK.js";
|
|
15
|
+
import { V as Re, u as Ae } from "./use-dropdown-option-class-name-CcZl1qrj.js";
|
|
16
16
|
import { C as Ve } from "./chevron-down-icon-CcpVm6B-.js";
|
|
17
|
-
import { E as
|
|
17
|
+
import { E as Ye } from "./error-icon-hZxQ6DEy.js";
|
|
18
18
|
import { H as k } from "./custom-focus-class-_483Pkwp.js";
|
|
19
19
|
import { s as g } from "./field-rac.module-DfEb7pBp.js";
|
|
20
|
-
import { u as
|
|
20
|
+
import { u as B } from "./use-text-input-class-name-BB3V6Q0b.js";
|
|
21
21
|
const l = ({ children: e, className: a }) => {
|
|
22
|
-
const { id: n, required: r, onBlur: s, onFocus: o, FieldLayout: i } = f(), { inputId: m, labelId: c, ariaDescribedBy: b } = W(), { regionalFormat: p } =
|
|
22
|
+
const { id: n, required: r, onBlur: s, onFocus: o, FieldLayout: i } = f(), { inputId: m, labelId: c, ariaDescribedBy: b } = W(), { regionalFormat: p } = z(), _ = O(() => X(p).filter(Z).map((S) => S.toUpperCase()), [
|
|
23
23
|
p
|
|
24
|
-
]), M = u(e, l.Label),
|
|
24
|
+
]), M = u(e, l.Label), Y = u(e, l.Description), D = u(e, l.Error), N = {
|
|
25
25
|
[d.MONTH]: u(e, l.Month),
|
|
26
26
|
[d.DAY]: u(e, l.Day),
|
|
27
27
|
[d.YEAR]: u(e, l.Year)
|
|
@@ -39,17 +39,17 @@ const l = ({ children: e, className: a }) => {
|
|
|
39
39
|
onBlur: s,
|
|
40
40
|
onFocus: o,
|
|
41
41
|
className: a
|
|
42
|
-
},
|
|
43
|
-
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null,
|
|
42
|
+
}, N[_[0]], N[_[1]], N[_[2]], y),
|
|
43
|
+
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, D, Y)
|
|
44
44
|
});
|
|
45
45
|
}, C = ({ children: e, className: a }) => {
|
|
46
|
-
const { id: n, disabled: r, readOnly: s, showDateLabels: o, hidePlaceholder: i } = f(), { labelId: m } = T(d.MONTH), { partValue: c, partError: b, onPartChange: p } = F(d.MONTH), { t: _ } = L(), [M,
|
|
47
|
-
s || p(typeof
|
|
46
|
+
const { id: n, disabled: r, readOnly: s, showDateLabels: o, hidePlaceholder: i } = f(), { labelId: m } = T(d.MONTH), { partValue: c, partError: b, onPartChange: p } = F(d.MONTH), { t: _ } = L(), [M, Y] = q(!1), D = Me(n), [N, y] = q(null), S = i ? Fe : _("field.date.placeholder.month"), ee = H((v) => {
|
|
47
|
+
s || p(typeof v == "string" ? v : "");
|
|
48
48
|
}, [
|
|
49
49
|
p,
|
|
50
50
|
s
|
|
51
|
-
]), te = H((
|
|
52
|
-
v
|
|
51
|
+
]), te = H((v) => {
|
|
52
|
+
Y(v && !s);
|
|
53
53
|
}, [
|
|
54
54
|
s
|
|
55
55
|
]), ae = u(e, C.Label), ne = u(e, C.Trigger), re = u(e, C.Options);
|
|
@@ -62,7 +62,7 @@ const l = ({ children: e, className: a }) => {
|
|
|
62
62
|
display: "contents"
|
|
63
63
|
}
|
|
64
64
|
}), /* @__PURE__ */ t.createElement(ie, {
|
|
65
|
-
getContainer: () =>
|
|
65
|
+
getContainer: () => N
|
|
66
66
|
}, /* @__PURE__ */ t.createElement(me, {
|
|
67
67
|
"aria-labelledby": o ? m : void 0,
|
|
68
68
|
value: c || null,
|
|
@@ -70,17 +70,17 @@ const l = ({ children: e, className: a }) => {
|
|
|
70
70
|
isDisabled: r,
|
|
71
71
|
isInvalid: b,
|
|
72
72
|
placeholder: S,
|
|
73
|
-
isOpen:
|
|
74
|
-
onOpenChange:
|
|
73
|
+
isOpen: D || M,
|
|
74
|
+
onOpenChange: D ? void 0 : te
|
|
75
75
|
}, ne, P(re, {
|
|
76
|
-
isForcedOpen:
|
|
76
|
+
isForcedOpen: D
|
|
77
77
|
}))));
|
|
78
|
-
},
|
|
78
|
+
}, ve = ({ className: e }) => /* @__PURE__ */ t.createElement($, {
|
|
79
79
|
datePart: d.MONTH,
|
|
80
80
|
className: e
|
|
81
81
|
}), ke = ({ children: e, className: a }) => {
|
|
82
82
|
const { id: n, readOnly: r } = f(), { inputId: s } = T(d.MONTH), { partError: o, isFirstPart: i } = F(d.MONTH), m = U(null);
|
|
83
|
-
return
|
|
83
|
+
return G(() => {
|
|
84
84
|
var c;
|
|
85
85
|
i && ((c = m.current) == null || c.focus());
|
|
86
86
|
}, n), /* @__PURE__ */ t.createElement(Pe, {
|
|
@@ -92,7 +92,7 @@ const l = ({ children: e, className: a }) => {
|
|
|
92
92
|
"data-readonly": r || void 0
|
|
93
93
|
}, /* @__PURE__ */ t.createElement(ue, null), e);
|
|
94
94
|
}, w = ({ children: e, className: a, ...n }) => {
|
|
95
|
-
const { isForcedOpen: r } = n, { language: s } =
|
|
95
|
+
const { isForcedOpen: r } = n, { language: s } = z(), o = O(() => _e(s), [
|
|
96
96
|
s
|
|
97
97
|
]), i = u(e, w.Option) ?? /* @__PURE__ */ t.createElement(w.Option, null);
|
|
98
98
|
return /* @__PURE__ */ t.createElement(Ce, {
|
|
@@ -115,7 +115,7 @@ const l = ({ children: e, className: a }) => {
|
|
|
115
115
|
textValue: r
|
|
116
116
|
}, r);
|
|
117
117
|
};
|
|
118
|
-
C.Label =
|
|
118
|
+
C.Label = ve;
|
|
119
119
|
C.Trigger = ke;
|
|
120
120
|
C.Options = w;
|
|
121
121
|
w.Option = He;
|
|
@@ -132,12 +132,12 @@ const A = ({ children: e, className: a }) => {
|
|
|
132
132
|
isReadOnly: r,
|
|
133
133
|
isInvalid: m
|
|
134
134
|
}, p));
|
|
135
|
-
}, we = ({ className: e }) => /* @__PURE__ */ t.createElement(
|
|
135
|
+
}, we = ({ className: e }) => /* @__PURE__ */ t.createElement($, {
|
|
136
136
|
datePart: d.DAY,
|
|
137
137
|
className: e
|
|
138
|
-
}),
|
|
138
|
+
}), xe = ({ className: e }) => {
|
|
139
139
|
const { id: a, hidePlaceholder: n } = f(), { inputId: r } = T(d.DAY), { isFirstPart: s } = F(d.DAY), { t: o } = L(), i = U(null), m = n ? void 0 : o("field.date.placeholder.day");
|
|
140
|
-
return
|
|
140
|
+
return G(() => {
|
|
141
141
|
var c;
|
|
142
142
|
s && ((c = i.current) == null || c.focus());
|
|
143
143
|
}, a), /* @__PURE__ */ t.createElement(J, {
|
|
@@ -151,7 +151,7 @@ const A = ({ children: e, className: a }) => {
|
|
|
151
151
|
});
|
|
152
152
|
};
|
|
153
153
|
A.Label = we;
|
|
154
|
-
A.Input =
|
|
154
|
+
A.Input = xe;
|
|
155
155
|
const V = ({ children: e, className: a }) => {
|
|
156
156
|
const { disabled: n, readOnly: r, showDateLabels: s } = f(), { labelId: o } = T(d.YEAR), { partValue: i, partError: m, onPartChange: c } = F(d.YEAR), b = u(e, V.Label), p = u(e, V.Input);
|
|
157
157
|
return /* @__PURE__ */ t.createElement("div", {
|
|
@@ -165,12 +165,12 @@ const V = ({ children: e, className: a }) => {
|
|
|
165
165
|
isReadOnly: r,
|
|
166
166
|
isInvalid: m
|
|
167
167
|
}, p));
|
|
168
|
-
},
|
|
168
|
+
}, Be = ({ className: e }) => /* @__PURE__ */ t.createElement($, {
|
|
169
169
|
datePart: d.YEAR,
|
|
170
170
|
className: e
|
|
171
171
|
}), Ue = ({ className: e }) => {
|
|
172
172
|
const { id: a, hidePlaceholder: n } = f(), { inputId: r } = T(d.YEAR), { isFirstPart: s } = F(d.YEAR), { t: o } = L(), i = U(null), m = n ? void 0 : o("field.date.placeholder.year");
|
|
173
|
-
return
|
|
173
|
+
return G(() => {
|
|
174
174
|
var c;
|
|
175
175
|
s && ((c = i.current) == null || c.focus());
|
|
176
176
|
}, a), /* @__PURE__ */ t.createElement(J, {
|
|
@@ -183,7 +183,7 @@ const V = ({ children: e, className: a }) => {
|
|
|
183
183
|
"data-hook": d.YEAR
|
|
184
184
|
});
|
|
185
185
|
};
|
|
186
|
-
V.Label =
|
|
186
|
+
V.Label = Be;
|
|
187
187
|
V.Input = Ue;
|
|
188
188
|
const I = ({ children: e, className: a }) => {
|
|
189
189
|
const { disabled: n, readOnly: r, use24HourFormat: s, showDateLabels: o } = f(), { labelId: i } = T("time"), { partValue: m, partError: c, onPartChange: b } = F("time"), p = u(e, I.Label), _ = u(e, I.Input);
|
|
@@ -199,14 +199,14 @@ const I = ({ children: e, className: a }) => {
|
|
|
199
199
|
isInvalid: c,
|
|
200
200
|
hourCycle: s ? 24 : 12
|
|
201
201
|
}, _));
|
|
202
|
-
},
|
|
202
|
+
}, ze = ({ className: e }) => {
|
|
203
203
|
const { inputId: a, labelId: n } = T("time"), { t: r } = L(), s = r("field.date.label.time");
|
|
204
204
|
return /* @__PURE__ */ t.createElement("label", {
|
|
205
205
|
id: n,
|
|
206
206
|
htmlFor: a,
|
|
207
207
|
className: e
|
|
208
208
|
}, s);
|
|
209
|
-
},
|
|
209
|
+
}, Ge = ({ children: e, className: a }) => {
|
|
210
210
|
const { hidePlaceholder: n } = f(), r = u(e, I.Hour), s = u(e, I.Minute), o = u(e, I.Period);
|
|
211
211
|
return /* @__PURE__ */ t.createElement(pe, {
|
|
212
212
|
className: a,
|
|
@@ -227,34 +227,34 @@ const I = ({ children: e, className: a }) => {
|
|
|
227
227
|
segment: i
|
|
228
228
|
}) || /* @__PURE__ */ t.createElement(t.Fragment, null);
|
|
229
229
|
case "literal":
|
|
230
|
-
return /* @__PURE__ */ t.createElement(
|
|
230
|
+
return /* @__PURE__ */ t.createElement(x, {
|
|
231
231
|
segment: i
|
|
232
232
|
});
|
|
233
233
|
default:
|
|
234
234
|
return /* @__PURE__ */ t.createElement(t.Fragment, null);
|
|
235
235
|
}
|
|
236
236
|
});
|
|
237
|
-
},
|
|
237
|
+
}, $e = ({ className: e, ...a }) => {
|
|
238
238
|
const { hidePlaceholder: n } = f(), { segment: r } = a, { t: s } = L(), o = n ? void 0 : s("field.date.placeholder.hour");
|
|
239
|
-
return /* @__PURE__ */ t.createElement(
|
|
239
|
+
return /* @__PURE__ */ t.createElement(x, {
|
|
240
240
|
segment: r,
|
|
241
241
|
className: e,
|
|
242
242
|
...o && {
|
|
243
243
|
placeholder: o
|
|
244
244
|
}
|
|
245
245
|
});
|
|
246
|
-
},
|
|
246
|
+
}, qe = ({ className: e, ...a }) => {
|
|
247
247
|
const { hidePlaceholder: n } = f(), { segment: r } = a, { t: s } = L(), o = n ? void 0 : s("field.date.placeholder.minute");
|
|
248
|
-
return /* @__PURE__ */ t.createElement(
|
|
248
|
+
return /* @__PURE__ */ t.createElement(x, {
|
|
249
249
|
segment: r,
|
|
250
250
|
className: e,
|
|
251
251
|
...o && {
|
|
252
252
|
placeholder: o
|
|
253
253
|
}
|
|
254
254
|
});
|
|
255
|
-
},
|
|
255
|
+
}, je = ({ className: e, ...a }) => {
|
|
256
256
|
const { hidePlaceholder: n } = f(), { segment: r } = a, { t: s } = L(), o = oe(Ee), i = n ? void 0 : s("field.date.placeholder.period"), m = () => o == null ? void 0 : o.increment("dayPeriod");
|
|
257
|
-
return /* @__PURE__ */ t.createElement(
|
|
257
|
+
return /* @__PURE__ */ t.createElement(x, {
|
|
258
258
|
segment: r,
|
|
259
259
|
className: e,
|
|
260
260
|
onClick: m,
|
|
@@ -263,11 +263,11 @@ const I = ({ children: e, className: a }) => {
|
|
|
263
263
|
}
|
|
264
264
|
});
|
|
265
265
|
};
|
|
266
|
-
I.Label =
|
|
267
|
-
I.Input =
|
|
268
|
-
I.Hour =
|
|
269
|
-
I.Minute =
|
|
270
|
-
I.Period =
|
|
266
|
+
I.Label = ze;
|
|
267
|
+
I.Input = Ge;
|
|
268
|
+
I.Hour = $e;
|
|
269
|
+
I.Minute = qe;
|
|
270
|
+
I.Period = je;
|
|
271
271
|
l.Label = Oe;
|
|
272
272
|
l.Month = C;
|
|
273
273
|
l.Day = A;
|
|
@@ -289,23 +289,23 @@ function T(e) {
|
|
|
289
289
|
]);
|
|
290
290
|
}
|
|
291
291
|
function F(e) {
|
|
292
|
-
const { value: a, onChange: n, hasError: r = !1 } = f(), { regionalFormat: s } =
|
|
292
|
+
const { value: a, onChange: n, hasError: r = !1 } = f(), { regionalFormat: s } = z(), [o, i] = O(() => j(a ?? ""), [
|
|
293
293
|
a
|
|
294
294
|
]), m = O(() => fe(r, a ?? ""), [
|
|
295
295
|
a,
|
|
296
296
|
r
|
|
297
297
|
]), c = O(() => he(o), [
|
|
298
298
|
o
|
|
299
|
-
]), b = O(() =>
|
|
299
|
+
]), b = O(() => Ke(i), [
|
|
300
300
|
i
|
|
301
|
-
]), p = H((
|
|
302
|
-
const
|
|
301
|
+
]), p = H((D) => {
|
|
302
|
+
const N = Qe(D), y = K(o, N);
|
|
303
303
|
n(y);
|
|
304
304
|
}, [
|
|
305
305
|
n,
|
|
306
306
|
o
|
|
307
|
-
]), _ = H((
|
|
308
|
-
const [,
|
|
307
|
+
]), _ = H((D) => {
|
|
308
|
+
const [, N] = j(a ?? ""), y = be(D, e, c), S = K(y, N);
|
|
309
309
|
n(S);
|
|
310
310
|
}, [
|
|
311
311
|
n,
|
|
@@ -328,7 +328,7 @@ function F(e) {
|
|
|
328
328
|
isFirstPart: M
|
|
329
329
|
};
|
|
330
330
|
}
|
|
331
|
-
function
|
|
331
|
+
function $({ datePart: e, className: a }) {
|
|
332
332
|
const { inputId: n, labelId: r } = T(e), { t: s } = L(), o = `field.date.label.${e.toLowerCase()}`, i = s(o);
|
|
333
333
|
return /* @__PURE__ */ t.createElement("label", {
|
|
334
334
|
id: r,
|
|
@@ -336,7 +336,7 @@ function q({ datePart: e, className: a }) {
|
|
|
336
336
|
className: a
|
|
337
337
|
}, i);
|
|
338
338
|
}
|
|
339
|
-
function
|
|
339
|
+
function Ke(e) {
|
|
340
340
|
if (!e)
|
|
341
341
|
return null;
|
|
342
342
|
try {
|
|
@@ -373,7 +373,7 @@ const Je = "_fields_1meki_1", We = "_month_1meki_10", Xe = "_day_1meki_11", Ze =
|
|
|
373
373
|
content: e,
|
|
374
374
|
locale: a
|
|
375
375
|
}), Mt = () => {
|
|
376
|
-
const e = Se(E.monthTrigger), a = Ae(E.monthOption, k), n =
|
|
376
|
+
const e = Se(E.monthTrigger), a = Ae(E.monthOption, k), n = B(E.dayInput), r = B(E.yearInput), s = B(E.time);
|
|
377
377
|
return /* @__PURE__ */ t.createElement(l, {
|
|
378
378
|
className: E.fields
|
|
379
379
|
}, /* @__PURE__ */ t.createElement(l.Label, {
|
|
@@ -417,9 +417,9 @@ const Je = "_fields_1meki_1", We = "_month_1meki_10", Xe = "_day_1meki_11", Ze =
|
|
|
417
417
|
}), /* @__PURE__ */ t.createElement(l.Time.Period, {
|
|
418
418
|
className: h(E.period, k)
|
|
419
419
|
}))), /* @__PURE__ */ t.createElement(l.Error, {
|
|
420
|
-
className: h(
|
|
421
|
-
}, /* @__PURE__ */ t.createElement(
|
|
422
|
-
className: h(
|
|
420
|
+
className: h(De, g.error)
|
|
421
|
+
}, /* @__PURE__ */ t.createElement(Ye, null), /* @__PURE__ */ t.createElement(l.Error.Text, null)), /* @__PURE__ */ t.createElement(l.Description, {
|
|
422
|
+
className: h(Ne, g.description)
|
|
423
423
|
}, ct));
|
|
424
424
|
};
|
|
425
425
|
export {
|
package/dist/component/{dext-checkbox-group-rac-ZNKzyWda.js → dext-checkbox-group-rac-BP76Xwiq.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import o from "react";
|
|
2
|
-
import {
|
|
3
|
-
import { C as p } from "./checkbox-group-field-rac-
|
|
2
|
+
import { bj as e, al as t } from "./form-C6lnbh2O.js";
|
|
3
|
+
import { C as p } from "./checkbox-group-field-rac-D7xqqVf6.js";
|
|
4
4
|
import { D as s } from "./default-limits-D7qVv_Hv.js";
|
|
5
|
-
const
|
|
5
|
+
const n = () => {
|
|
6
6
|
const r = {
|
|
7
7
|
...e(),
|
|
8
8
|
otherInputCharacterLimit: s
|
|
@@ -14,5 +14,5 @@ const C = () => {
|
|
|
14
14
|
}, /* @__PURE__ */ o.createElement(p, null));
|
|
15
15
|
};
|
|
16
16
|
export {
|
|
17
|
-
|
|
17
|
+
n as DextCheckboxGroupRAC
|
|
18
18
|
};
|
package/dist/component/{dext-radio-group-rac-BTWnIvwW.js → dext-radio-group-rac-C4p9NuQS.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import r from "react";
|
|
2
|
-
import {
|
|
3
|
-
import { R as p } from "./radio-group-field-rac-
|
|
2
|
+
import { bj as e, al as t } from "./form-C6lnbh2O.js";
|
|
3
|
+
import { R as p } from "./radio-group-field-rac-BifCDpE4.js";
|
|
4
4
|
import { a } from "./default-limits-D7qVv_Hv.js";
|
|
5
|
-
const
|
|
5
|
+
const R = () => {
|
|
6
6
|
const o = {
|
|
7
7
|
...e(),
|
|
8
8
|
otherInputCharacterLimit: a
|
|
@@ -14,5 +14,5 @@ const l = () => {
|
|
|
14
14
|
}, /* @__PURE__ */ r.createElement(p, null));
|
|
15
15
|
};
|
|
16
16
|
export {
|
|
17
|
-
|
|
17
|
+
R as DextRadioGroupRAC
|
|
18
18
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import r from "react";
|
|
2
|
-
import {
|
|
3
|
-
import { T as s } from "./tags-field-rac-
|
|
2
|
+
import { bj as e, al as o } from "./form-C6lnbh2O.js";
|
|
3
|
+
import { T as s } from "./tags-field-rac-DaiMlAxt.js";
|
|
4
4
|
import { b as a } from "./default-limits-D7qVv_Hv.js";
|
|
5
|
-
const
|
|
5
|
+
const T = () => {
|
|
6
6
|
const t = {
|
|
7
7
|
...e(),
|
|
8
8
|
otherInputCharacterLimit: a
|
|
@@ -14,5 +14,5 @@ const l = () => {
|
|
|
14
14
|
}, /* @__PURE__ */ r.createElement(s, null));
|
|
15
15
|
};
|
|
16
16
|
export {
|
|
17
|
-
|
|
17
|
+
T as DextTagsRAC
|
|
18
18
|
};
|