@wix/form-elements 1.107.0 → 1.108.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 → appointment-rac-ZAp8oWbK.js} +289 -290
- package/dist/component/{bookings-address-rac-_5S8J8_i.js → bookings-address-rac-x-Az7vHf.js} +1 -1
- package/dist/component/{bookings-email-rac-6vmDR9nS.js → bookings-email-rac-MoF_CaqB.js} +1 -1
- package/dist/component/{bookings-first-name-rac-DtTJ4T2K.js → bookings-first-name-rac-CWh3Rb0M.js} +1 -1
- package/dist/component/{bookings-header-rac-B3dsEwzR.js → bookings-header-rac-BVTiXUWk.js} +1 -1
- package/dist/component/{bookings-last-name-rac-B3idkbi8.js → bookings-last-name-rac-kXRRlyHl.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-CrRBcQwT.js → bookings-login-bar-rac-C4Zr6kXE.js} +23 -24
- package/dist/component/{bookings-phone-rac-BE0yWNnj.js → bookings-phone-rac-2rz1m_xi.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-CYo1l0-6.js → bookings-rich-text-rac-BEjGypQw.js} +1 -1
- package/dist/component/{checkbox-field-rac-boTtXVEt.js → checkbox-field-rac-DwEQLIaz.js} +66 -67
- package/dist/component/{checkbox-group-field-headless-DnkUvDm8.js → checkbox-group-field-headless-BsOww_QB.js} +37 -37
- package/dist/component/{checkbox-group-field-rac-DrDTgHMg.js → checkbox-group-field-rac-DTcZcVS6.js} +6 -6
- package/dist/component/{checkbox-group-rac-v3ozUBpo.js → checkbox-group-rac-DQsML-pW.js} +1 -1
- package/dist/component/{checkbox-rac-YSLE-RnG.js → checkbox-rac-irEBBOxP.js} +1 -1
- package/dist/component/{contacts-address-rac-C653yaHZ.js → contacts-address-rac-B5bSAYrm.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-BeAQ6shx.js → contacts-birthdate-rac-DyScj8f4.js} +1 -1
- package/dist/component/{contacts-company-rac-BglKOoTG.js → contacts-company-rac-C5X9-jXa.js} +1 -1
- package/dist/component/{contacts-email-rac-D6m7ynfc.js → contacts-email-rac-B0vkfmrS.js} +1 -1
- package/dist/component/{contacts-first-name-rac-Dgxn0tUJ.js → contacts-first-name-rac-Cfil3U_e.js} +1 -1
- package/dist/component/{contacts-last-name-rac-1UyIuRKH.js → contacts-last-name-rac-CtPLE-7-.js} +1 -1
- package/dist/component/{contacts-phone-rac-BQ77BlW4.js → contacts-phone-rac-YkzsAoBZ.js} +1 -1
- package/dist/component/{contacts-position-rac-BUDUv7lv.js → contacts-position-rac-BS4j8QC-.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-DdtA0qKW.js → contacts-subscribe-rac-z_9VsEZL.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-WUaKcNl0.js → contacts-tax-id-rac-WFkmKyZv.js} +1 -1
- package/dist/component/{date-availability-XjBFq8jt.js → date-availability-NN3rxosk.js} +1 -1
- package/dist/component/{date-input-field-rac-aY2zuuKs.js → date-input-field-rac-mdhEC3oq.js} +88 -89
- package/dist/component/{date-input-rac-DRiP2_97.js → date-input-rac-CGciuoTx.js} +1 -1
- package/dist/component/{date-picker-field-rac-Bzl-d3Uj.js → date-picker-field-rac-CRZVODfF.js} +90 -91
- package/dist/component/{date-picker-rac-DHHUh8vn.js → date-picker-rac-Bfbvjy8W.js} +1 -1
- package/dist/component/{date-time-input-field-rac-DP_StuLr.js → date-time-input-field-rac-TDWBXZ44.js} +76 -77
- package/dist/component/{date-time-input-rac-B11KIxsf.js → date-time-input-rac-DY0qdSix.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-BHZBqyWv.js → dext-checkbox-group-rac-BFGM7SOt.js} +2 -2
- package/dist/component/{dext-checkbox-rac-BIlAqEvV.js → dext-checkbox-rac-DPZvTeUZ.js} +1 -1
- package/dist/component/{dext-date-picker-rac-CHBXNrZi.js → dext-date-picker-rac-Xd5kojsQ.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-BYtliKry.js → dext-date-time-input-rac-C0RIdxJW.js} +1 -1
- package/dist/component/{dext-dropdown-rac-C2VPSFV5.js → dext-dropdown-rac-D1m8vJvm.js} +1 -1
- package/dist/component/{dext-email-rac-Fnb0Ggcs.js → dext-email-rac-BC81RFYY.js} +1 -1
- package/dist/component/{dext-number-input-rac-DopfSyFi.js → dext-number-input-rac-Z_ih9FfX.js} +1 -1
- package/dist/component/{dext-phone-rac-Rn4i_2rc.js → dext-phone-rac-s3BOnXuI.js} +1 -1
- package/dist/component/{dext-radio-group-rac-bNaskJpK.js → dext-radio-group-rac-CL3jcezs.js} +2 -2
- package/dist/component/{dext-rating-input-rac-DL6ZZd7d.js → dext-rating-input-rac-wz1EyP5b.js} +1 -1
- package/dist/component/{dext-tags-rac-TsUPoImO.js → dext-tags-rac-BY4Rf2BP.js} +2 -2
- package/dist/component/{dext-text-area-rac-BIuY7LTd.js → dext-text-area-rac-DRJzlsq8.js} +1 -1
- package/dist/component/{dext-text-input-rac-CSYPW0Qi.js → dext-text-input-rac-BGcRNNAi.js} +1 -1
- package/dist/component/{dext-url-input-rac-_g0lqGfW.js → dext-url-input-rac-CRAIm8yp.js} +1 -1
- package/dist/component/{donation-rac-BYKFtsyR.js → donation-rac-BlTfOIlE.js} +83 -84
- package/dist/component/{dropdown-field-headless-CBaqlNZi.js → dropdown-field-headless-DhzRAMcM.js} +12 -12
- package/dist/component/{dropdown-field-rac-CCAGSMm3.js → dropdown-field-rac-DXyY5we-.js} +5 -5
- package/dist/component/{dropdown-rac-C_EqUsZ1.js → dropdown-rac-C6YM6qxm.js} +1 -1
- package/dist/component/{ecom-address-rac-Bw9eH0iF.js → ecom-address-rac-CAdr7wya.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-B5PVOO2a.js → ecom-subscription-checkbox-rac-Z2VMuCbt.js} +6 -6
- package/dist/component/{email-input-field-rac-B2kqQ6yo.js → email-input-field-rac-DpkfunVK.js} +53 -54
- package/dist/component/{events-repeater-rac--4OnUxWE.js → events-repeater-rac-CuJkdrPo.js} +61 -62
- package/dist/component/{events-rsvp-rac-CczCoo3T.js → events-rsvp-rac-BKWlSeQ9.js} +8 -8
- package/dist/component/{field-error-headless-D3-1L5sf.js → field-error-headless-tsg9FQ-_.js} +12 -12
- package/dist/component/{field-label-headless-Du4ckIVy.js → field-label-headless-CB8dEat8.js} +11 -11
- package/dist/component/{file-upload-rac-DbdkUbWM.js → file-upload-rac-ZdgYt646.js} +67 -68
- package/dist/component/{fixed-payment-rac-f9-01iDN.js → fixed-payment-rac-CuIQEeHh.js} +20 -21
- package/dist/component/{form-DQauhsho.js → form-0jt4L5xo.js} +3045 -2896
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/header-field-rac-CWVGzxKb.js +24 -0
- package/dist/component/{header-rac-CR9T3Pnu.js → header-rac-D6KsV-ko.js} +1 -1
- package/dist/component/{image-choice-rac-DJ_8v467.js → image-choice-rac-CUCyVS8c.js} +29 -30
- package/dist/component/{index-BB7d_9Dv.js → index-TJSnVtCO.js} +72 -72
- package/dist/component/{index-CcUTIUWM.js → index-iOqQidgV.js} +12 -12
- package/dist/component/{isObjectLike-xvPa_08X.js → isObjectLike-DQbx8r1c.js} +1 -1
- package/dist/component/{multiline-address-field-rac-CyaFOloE.js → multiline-address-field-rac-DtZ1NTfD.js} +186 -187
- package/dist/component/{multiline-address-rac-CaHGUN_f.js → multiline-address-rac-ub-_XzHU.js} +1 -1
- package/dist/component/number-input-field-rac-DLItn4DK.js +92 -0
- package/dist/component/{number-input-rac-DMKX6nhk.js → number-input-rac-UuxJzqEx.js} +1 -1
- package/dist/component/{password-rac-0RUXPAn6.js → password-rac-Di6q96Rn.js} +37 -38
- package/dist/component/{payment-input-rac-CHSZ3-Lt.js → payment-input-rac-CG6c4-Ge.js} +52 -53
- package/dist/component/{phone-input-field-rac-JmIFcP1e.js → phone-input-field-rac-D4JphCuT.js} +75 -76
- package/dist/component/{phone-rac-BLRnAPXP.js → phone-rac-_vDw2usa.js} +1 -1
- package/dist/component/{product-list-rac-BkF5tDwt.js → product-list-rac-CgxRlj1f.js} +73 -74
- package/dist/component/{quiz-radio-group-rac-32cCMTUS.js → quiz-radio-group-rac-bi26aGxN.js} +1 -1
- package/dist/component/{radio-button-module-classes-IOulhuSH.js → radio-button-module-classes-DDJq2ESf.js} +33 -33
- package/dist/component/{radio-group-field-rac-CJwku6e0.js → radio-group-field-rac-D1aMVO6l.js} +4 -4
- package/dist/component/{radio-group-rac-BiW-9Abj.js → radio-group-rac-HKC85M6t.js} +1 -1
- package/dist/component/{rating-input-field-rac-B9cwaROK.js → rating-input-field-rac-CpRehxFB.js} +42 -43
- package/dist/component/{rating-input-rac-BpwlNvzQ.js → rating-input-rac-BMuCZ3oj.js} +1 -1
- package/dist/component/{rich-content-rac.module-B1uyPmtK.js → rich-content-rac.module-mZ6xoAOd.js} +4 -4
- package/dist/component/rich-text-field-rac-CUK8V8Kf.js +21 -0
- package/dist/component/{rich-text-rac-VfeZxS27.js → rich-text-rac-B-7sR2FJ.js} +1 -1
- package/dist/component/{service-dropdown-rac-BCfs8IhW.js → service-dropdown-rac-1DDNT5bn.js} +43 -44
- package/dist/component/{services-multi-choice-rac-CCqdF_7P.js → services-multi-choice-rac-CB-6dwxz.js} +21 -22
- package/dist/component/{signature-rac-DOyMo3u0.js → signature-rac-7XBci6P2.js} +35 -36
- package/dist/component/{submit-button-rac-C2uA5DeE.js → submit-button-rac-B1-Mk8Gg.js} +21 -22
- package/dist/component/{tags-field-rac-C_uIw2by.js → tags-field-rac-CQ9Y7mq-.js} +49 -50
- package/dist/component/{tags-rac-1pQ-fpe_.js → tags-rac-Visic-Ml.js} +1 -1
- package/dist/component/{text-area-field-rac-DqlOkm7e.js → text-area-field-rac-C8fP1g-w.js} +31 -32
- package/dist/component/{text-area-rac-DPdkrFcH.js → text-area-rac-B6yZxzxm.js} +1 -1
- package/dist/component/{text-input-field-rac-CmXm6r1w.js → text-input-field-rac-CNjbOxD1.js} +5 -5
- package/dist/component/{text-input-headless-DD__2DFf.js → text-input-headless-Bm8PJGep.js} +12 -12
- package/dist/component/{text-input-rac-DRHyQEH7.js → text-input-rac-BEPC1Z-4.js} +1 -1
- package/dist/component/{time-input-rac-BJPIymQY.js → time-input-rac-3m6C_Jp5.js} +41 -42
- package/dist/component/url-input-field-rac-CIk_6Lf6.js +74 -0
- package/dist/component/{url-input-rac-C0ChQUzq.js → url-input-rac-DyVoygXH.js} +1 -1
- package/dist/component/use-dropdown-option-class-name-McG3ayOT.js +21 -0
- package/dist/component/{use-element-state-class-name-BatTc2bw.js → use-element-state-class-name-B9MBWX44.js} +1 -1
- package/dist/component/{use-is-forced-open-dropdown-B0jiPTmS.js → use-is-forced-open-dropdown-r5G_sZsO.js} +7 -7
- package/dist/component/{use-service-options-base-oeE7xszw.js → use-service-options-base-hcbkvhpw.js} +7 -7
- package/dist/component/use-text-input-class-name-SnurFqAr.js +23 -0
- package/dist/form.d.ts +3 -1
- package/package.json +2 -2
- package/dist/component/form-element-classes-bLFmhsKw.js +0 -137
- package/dist/component/header-field-rac-DamDk5BR.js +0 -25
- package/dist/component/number-input-field-rac-BuYUzDWV.js +0 -93
- package/dist/component/rich-text-field-rac-C_qE7Ykg.js +0 -22
- package/dist/component/url-input-field-rac-CFDYkZ6I.js +0 -75
- package/dist/component/use-dropdown-option-class-name-3L5ZmNLK.js +0 -21
- package/dist/component/use-text-input-class-name-LQ5S-NLh.js +0 -24
|
@@ -1,26 +1,25 @@
|
|
|
1
1
|
import { RicosViewer as oe } from "@wix/ricos/viewer";
|
|
2
2
|
import E from "classnames";
|
|
3
|
-
import t, { useMemo as T, useState as
|
|
3
|
+
import t, { useMemo as T, useState as $, useCallback as w, useRef as G, 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
|
|
7
|
-
import {
|
|
6
|
+
import { ListBoxItem as ce, ListBox as me, Select as de, TextField as J, TimeField as ue, SelectValue as pe, Input as K, DateInput as Ee, DateSegment as B, TimeFieldStateContext as he } from "react-aria-components";
|
|
7
|
+
import { b5 as b, b2 as Q, aZ as U, aC as Z, aP as X, aq as d, bf as L, aT as W, aE as fe, ax as be, aW as ge, ay as j, b7 as q, H as v, T as Ie, t as De, J as Ne, u as _e, p as ye } from "./form-0jt4L5xo.js";
|
|
8
8
|
import { f as u, a as P } from "./find-child-C60k4CxG.js";
|
|
9
|
-
import { g as
|
|
10
|
-
import { D as
|
|
11
|
-
import { L as
|
|
12
|
-
import { F as
|
|
13
|
-
import { N as
|
|
14
|
-
import { u as
|
|
15
|
-
import { C as
|
|
16
|
-
import { E as
|
|
9
|
+
import { g as Oe } from "./helpers-HmkkXrh2.js";
|
|
10
|
+
import { D as Te, E as Le } from "./field-error-headless-tsg9FQ-_.js";
|
|
11
|
+
import { L as Fe } from "./field-label-headless-CB8dEat8.js";
|
|
12
|
+
import { F as Ce } from "./fieldset-headless-CD3fds9J.js";
|
|
13
|
+
import { N as Pe, S as Me } from "./non-modal-popover-DtIMXHbe.js";
|
|
14
|
+
import { u as Se } from "./use-is-forced-open-dropdown-r5G_sZsO.js";
|
|
15
|
+
import { C as ve } from "./chevron-down-icon-CcpVm6B-.js";
|
|
16
|
+
import { E as Re } from "./error-icon-hZxQ6DEy.js";
|
|
17
17
|
import { H } from "./custom-focus-class-_483Pkwp.js";
|
|
18
18
|
import { s as f } from "./field-rac.module-B4l_0KRU.js";
|
|
19
|
-
import {
|
|
20
|
-
import { u as
|
|
21
|
-
import { u as k } from "./use-text-input-class-name-LQ5S-NLh.js";
|
|
19
|
+
import { u as Ae } from "./use-dropdown-option-class-name-McG3ayOT.js";
|
|
20
|
+
import { u as k } from "./use-text-input-class-name-SnurFqAr.js";
|
|
22
21
|
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 } =
|
|
22
|
+
const { id: n, required: o, onBlur: s, onFocus: r, FieldLayout: i } = b(), { inputId: m, labelId: c, ariaDescribedBy: g } = Q(), { regionalFormat: p } = U(), _ = T(() => Z(p).filter(X).map((S) => S.toUpperCase()), [
|
|
24
23
|
p
|
|
25
24
|
]), M = u(e, l.Label), V = u(e, l.Description), D = u(e, l.Error), N = {
|
|
26
25
|
[d.MONTH]: u(e, l.Month),
|
|
@@ -32,7 +31,7 @@ const l = ({ children: e, className: a }) => {
|
|
|
32
31
|
renderLabel: () => P(M, {
|
|
33
32
|
as: "div"
|
|
34
33
|
}),
|
|
35
|
-
renderInput: () => /* @__PURE__ */ t.createElement(
|
|
34
|
+
renderInput: () => /* @__PURE__ */ t.createElement(Ce, {
|
|
36
35
|
id: m,
|
|
37
36
|
ariaLabelledBy: c,
|
|
38
37
|
ariaDescribedBy: g,
|
|
@@ -44,7 +43,7 @@ const l = ({ children: e, className: a }) => {
|
|
|
44
43
|
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, D, V)
|
|
45
44
|
});
|
|
46
45
|
}, 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] =
|
|
46
|
+
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] = $(!1), D = Se(n), [N, y] = $(null), S = i ? void 0 : _("field.date.placeholder.month"), ee = w((Y) => {
|
|
48
47
|
s || p(typeof Y == "string" ? Y : "");
|
|
49
48
|
}, [
|
|
50
49
|
p,
|
|
@@ -70,21 +69,21 @@ const l = ({ children: e, className: a }) => {
|
|
|
70
69
|
onChange: ee,
|
|
71
70
|
isDisabled: o,
|
|
72
71
|
isInvalid: g,
|
|
73
|
-
placeholder:
|
|
72
|
+
placeholder: S,
|
|
74
73
|
isOpen: D || M,
|
|
75
74
|
onOpenChange: D ? void 0 : te
|
|
76
75
|
}, ne, P(re, {
|
|
77
76
|
isForcedOpen: D
|
|
78
77
|
}))));
|
|
79
|
-
}, Ve = ({ className: e }) => /* @__PURE__ */ t.createElement(
|
|
78
|
+
}, Ve = ({ className: e }) => /* @__PURE__ */ t.createElement(z, {
|
|
80
79
|
datePart: d.MONTH,
|
|
81
80
|
className: e
|
|
82
81
|
}), Ye = ({ children: e, className: a }) => {
|
|
83
|
-
const { id: n, readOnly: o } = b(), { inputId: s } = O(d.MONTH), { partError: r, isFirstPart: i } = C(d.MONTH), m =
|
|
84
|
-
return
|
|
82
|
+
const { id: n, readOnly: o } = b(), { inputId: s } = O(d.MONTH), { partError: r, isFirstPart: i } = C(d.MONTH), m = G(null);
|
|
83
|
+
return q(() => {
|
|
85
84
|
var c;
|
|
86
85
|
i && ((c = m.current) == null || c.focus());
|
|
87
|
-
}, n), /* @__PURE__ */ t.createElement(
|
|
86
|
+
}, n), /* @__PURE__ */ t.createElement(Me, {
|
|
88
87
|
ref: m,
|
|
89
88
|
id: s,
|
|
90
89
|
className: a,
|
|
@@ -93,10 +92,10 @@ const l = ({ children: e, className: a }) => {
|
|
|
93
92
|
"data-readonly": o || void 0
|
|
94
93
|
}, /* @__PURE__ */ t.createElement(pe, null), e);
|
|
95
94
|
}, x = ({ children: e, className: a, ...n }) => {
|
|
96
|
-
const { isForcedOpen: o } = n, { language: s } =
|
|
95
|
+
const { isForcedOpen: o } = n, { language: s } = U(), r = T(() => Oe(s), [
|
|
97
96
|
s
|
|
98
97
|
]), i = u(e, x.Option) ?? /* @__PURE__ */ t.createElement(x.Option, null);
|
|
99
|
-
return /* @__PURE__ */ t.createElement(
|
|
98
|
+
return /* @__PURE__ */ t.createElement(Pe, {
|
|
100
99
|
className: a,
|
|
101
100
|
containerPadding: 0,
|
|
102
101
|
offset: 0
|
|
@@ -124,7 +123,7 @@ const R = ({ children: e, className: a }) => {
|
|
|
124
123
|
return /* @__PURE__ */ t.createElement("div", {
|
|
125
124
|
className: a,
|
|
126
125
|
"data-date-field": !0
|
|
127
|
-
}, s && g, /* @__PURE__ */ t.createElement(
|
|
126
|
+
}, s && g, /* @__PURE__ */ t.createElement(J, {
|
|
128
127
|
"aria-labelledby": s ? r : void 0,
|
|
129
128
|
value: i,
|
|
130
129
|
onChange: c,
|
|
@@ -132,15 +131,15 @@ const R = ({ children: e, className: a }) => {
|
|
|
132
131
|
isReadOnly: o,
|
|
133
132
|
isInvalid: m
|
|
134
133
|
}, p));
|
|
135
|
-
}, we = ({ className: e }) => /* @__PURE__ */ t.createElement(
|
|
134
|
+
}, we = ({ className: e }) => /* @__PURE__ */ t.createElement(z, {
|
|
136
135
|
datePart: d.DAY,
|
|
137
136
|
className: e
|
|
138
137
|
}), xe = ({ className: e }) => {
|
|
139
|
-
const { id: a, hidePlaceholder: n } = b(), { inputId: o } = O(d.DAY), { isFirstPart: s } = C(d.DAY), { t: r } = L(), i =
|
|
140
|
-
return
|
|
138
|
+
const { id: a, hidePlaceholder: n } = b(), { inputId: o } = O(d.DAY), { isFirstPart: s } = C(d.DAY), { t: r } = L(), i = G(null), m = n ? void 0 : r("field.date.placeholder.day");
|
|
139
|
+
return q(() => {
|
|
141
140
|
var c;
|
|
142
141
|
s && ((c = i.current) == null || c.focus());
|
|
143
|
-
}, a), /* @__PURE__ */ t.createElement(
|
|
142
|
+
}, a), /* @__PURE__ */ t.createElement(K, {
|
|
144
143
|
ref: i,
|
|
145
144
|
id: o,
|
|
146
145
|
className: e,
|
|
@@ -157,7 +156,7 @@ const A = ({ children: e, className: a }) => {
|
|
|
157
156
|
return /* @__PURE__ */ t.createElement("div", {
|
|
158
157
|
className: a,
|
|
159
158
|
"data-date-field": !0
|
|
160
|
-
}, s && g, /* @__PURE__ */ t.createElement(
|
|
159
|
+
}, s && g, /* @__PURE__ */ t.createElement(J, {
|
|
161
160
|
"aria-labelledby": s ? r : void 0,
|
|
162
161
|
value: i,
|
|
163
162
|
onChange: c,
|
|
@@ -165,15 +164,15 @@ const A = ({ children: e, className: a }) => {
|
|
|
165
164
|
isReadOnly: o,
|
|
166
165
|
isInvalid: m
|
|
167
166
|
}, p));
|
|
168
|
-
}, Be = ({ className: e }) => /* @__PURE__ */ t.createElement(
|
|
167
|
+
}, Be = ({ className: e }) => /* @__PURE__ */ t.createElement(z, {
|
|
169
168
|
datePart: d.YEAR,
|
|
170
169
|
className: e
|
|
171
170
|
}), ke = ({ className: e }) => {
|
|
172
|
-
const { id: a, hidePlaceholder: n } = b(), { inputId: o } = O(d.YEAR), { isFirstPart: s } = C(d.YEAR), { t: r } = L(), i =
|
|
173
|
-
return
|
|
171
|
+
const { id: a, hidePlaceholder: n } = b(), { inputId: o } = O(d.YEAR), { isFirstPart: s } = C(d.YEAR), { t: r } = L(), i = G(null), m = n ? void 0 : r("field.date.placeholder.year");
|
|
172
|
+
return q(() => {
|
|
174
173
|
var c;
|
|
175
174
|
s && ((c = i.current) == null || c.focus());
|
|
176
|
-
}, a), /* @__PURE__ */ t.createElement(
|
|
175
|
+
}, a), /* @__PURE__ */ t.createElement(K, {
|
|
177
176
|
ref: i,
|
|
178
177
|
id: o,
|
|
179
178
|
className: e,
|
|
@@ -199,14 +198,14 @@ const I = ({ children: e, className: a }) => {
|
|
|
199
198
|
isInvalid: c,
|
|
200
199
|
hourCycle: s ? 24 : 12
|
|
201
200
|
}, _));
|
|
202
|
-
},
|
|
201
|
+
}, Ge = ({ className: e }) => {
|
|
203
202
|
const { inputId: a, labelId: n } = O("time"), { t: o } = L(), s = o("field.date.label.time");
|
|
204
203
|
return /* @__PURE__ */ t.createElement("label", {
|
|
205
204
|
id: n,
|
|
206
205
|
htmlFor: a,
|
|
207
206
|
className: e
|
|
208
207
|
}, s);
|
|
209
|
-
},
|
|
208
|
+
}, Ue = ({ children: e, className: a }) => {
|
|
210
209
|
const n = u(e, I.Hour), o = u(e, I.Minute), s = u(e, I.Period);
|
|
211
210
|
return /* @__PURE__ */ t.createElement(Ee, {
|
|
212
211
|
className: a,
|
|
@@ -233,7 +232,7 @@ const I = ({ children: e, className: a }) => {
|
|
|
233
232
|
return /* @__PURE__ */ t.createElement(t.Fragment, null);
|
|
234
233
|
}
|
|
235
234
|
});
|
|
236
|
-
},
|
|
235
|
+
}, qe = ({ className: e, ...a }) => {
|
|
237
236
|
const { hidePlaceholder: n } = b(), { segment: o } = a, { t: s } = L(), r = n ? void 0 : s("field.date.placeholder.hour");
|
|
238
237
|
return /* @__PURE__ */ t.createElement(B, {
|
|
239
238
|
segment: o,
|
|
@@ -242,7 +241,7 @@ const I = ({ children: e, className: a }) => {
|
|
|
242
241
|
placeholder: r
|
|
243
242
|
}
|
|
244
243
|
});
|
|
245
|
-
},
|
|
244
|
+
}, ze = ({ className: e, ...a }) => {
|
|
246
245
|
const { hidePlaceholder: n } = b(), { segment: o } = a, { t: s } = L(), r = n ? void 0 : s("field.date.placeholder.minute");
|
|
247
246
|
return /* @__PURE__ */ t.createElement(B, {
|
|
248
247
|
segment: o,
|
|
@@ -251,7 +250,7 @@ const I = ({ children: e, className: a }) => {
|
|
|
251
250
|
placeholder: r
|
|
252
251
|
}
|
|
253
252
|
});
|
|
254
|
-
},
|
|
253
|
+
}, $e = ({ className: e, ...a }) => {
|
|
255
254
|
const { hidePlaceholder: n } = b(), { segment: o } = a, { t: s } = L(), r = se(he), i = n ? void 0 : s("field.date.placeholder.period"), m = () => r == null ? void 0 : r.increment("dayPeriod");
|
|
256
255
|
return /* @__PURE__ */ t.createElement(B, {
|
|
257
256
|
segment: o,
|
|
@@ -262,20 +261,20 @@ const I = ({ children: e, className: a }) => {
|
|
|
262
261
|
}
|
|
263
262
|
});
|
|
264
263
|
};
|
|
265
|
-
I.Label =
|
|
266
|
-
I.Input =
|
|
267
|
-
I.Hour =
|
|
268
|
-
I.Minute =
|
|
269
|
-
I.Period =
|
|
270
|
-
l.Label =
|
|
264
|
+
I.Label = Ge;
|
|
265
|
+
I.Input = Ue;
|
|
266
|
+
I.Hour = qe;
|
|
267
|
+
I.Minute = ze;
|
|
268
|
+
I.Period = $e;
|
|
269
|
+
l.Label = Fe;
|
|
271
270
|
l.Month = F;
|
|
272
271
|
l.Day = R;
|
|
273
272
|
l.Year = A;
|
|
274
273
|
l.Time = I;
|
|
275
|
-
l.Description =
|
|
276
|
-
l.Error =
|
|
274
|
+
l.Description = Te;
|
|
275
|
+
l.Error = Le;
|
|
277
276
|
function O(e) {
|
|
278
|
-
const { inputId: a } =
|
|
277
|
+
const { inputId: a } = Q();
|
|
279
278
|
return T(() => {
|
|
280
279
|
const n = e.toLowerCase();
|
|
281
280
|
return {
|
|
@@ -288,30 +287,30 @@ function O(e) {
|
|
|
288
287
|
]);
|
|
289
288
|
}
|
|
290
289
|
function C(e) {
|
|
291
|
-
const { value: a, onChange: n, hasError: o = !1 } = b(), { regionalFormat: s } =
|
|
290
|
+
const { value: a, onChange: n, hasError: o = !1 } = b(), { regionalFormat: s } = U(), [r, i] = T(() => W(a ?? ""), [
|
|
292
291
|
a
|
|
293
292
|
]), m = T(() => fe(o, a ?? ""), [
|
|
294
293
|
a,
|
|
295
294
|
o
|
|
296
295
|
]), c = T(() => be(r), [
|
|
297
296
|
r
|
|
298
|
-
]), g = T(() =>
|
|
297
|
+
]), g = T(() => We(i), [
|
|
299
298
|
i
|
|
300
299
|
]), p = w((D) => {
|
|
301
|
-
const N =
|
|
300
|
+
const N = je(D), y = j(r, N);
|
|
302
301
|
n(y);
|
|
303
302
|
}, [
|
|
304
303
|
n,
|
|
305
304
|
r
|
|
306
305
|
]), _ = w((D) => {
|
|
307
|
-
const [, N] =
|
|
308
|
-
n(
|
|
306
|
+
const [, N] = W(a ?? ""), y = ge(D, e, c), S = j(y, N);
|
|
307
|
+
n(S);
|
|
309
308
|
}, [
|
|
310
309
|
n,
|
|
311
310
|
a,
|
|
312
311
|
c,
|
|
313
312
|
e
|
|
314
|
-
]), M = T(() => e === "time" ? !1 :
|
|
313
|
+
]), M = T(() => e === "time" ? !1 : Z(s).filter(X).map((y) => y.toUpperCase())[0] === e, [
|
|
315
314
|
s,
|
|
316
315
|
e
|
|
317
316
|
]);
|
|
@@ -327,7 +326,7 @@ function C(e) {
|
|
|
327
326
|
isFirstPart: M
|
|
328
327
|
};
|
|
329
328
|
}
|
|
330
|
-
function
|
|
329
|
+
function z({ datePart: e, className: a }) {
|
|
331
330
|
const { inputId: n, labelId: o } = O(e), { t: s } = L(), r = `field.date.label.${e.toLowerCase()}`, i = s(r);
|
|
332
331
|
return /* @__PURE__ */ t.createElement("label", {
|
|
333
332
|
id: o,
|
|
@@ -335,7 +334,7 @@ function $({ datePart: e, className: a }) {
|
|
|
335
334
|
className: a
|
|
336
335
|
}, i);
|
|
337
336
|
}
|
|
338
|
-
function
|
|
337
|
+
function We(e) {
|
|
339
338
|
if (!e)
|
|
340
339
|
return null;
|
|
341
340
|
try {
|
|
@@ -344,7 +343,7 @@ function je(e) {
|
|
|
344
343
|
return null;
|
|
345
344
|
}
|
|
346
345
|
}
|
|
347
|
-
function
|
|
346
|
+
function je(e) {
|
|
348
347
|
if (!e)
|
|
349
348
|
return null;
|
|
350
349
|
const a = String(e.hour).padStart(2, "0"), n = String(e.minute).padStart(2, "0"), o = String(e.second).padStart(2, "0");
|
|
@@ -354,12 +353,12 @@ function Ke(e) {
|
|
|
354
353
|
o
|
|
355
354
|
].join(":");
|
|
356
355
|
}
|
|
357
|
-
const
|
|
358
|
-
fields:
|
|
359
|
-
month:
|
|
360
|
-
day:
|
|
361
|
-
year:
|
|
362
|
-
timeGroup:
|
|
356
|
+
const Je = "_fields_9mv0h_1", Ke = "_month_9mv0h_11", Qe = "_day_9mv0h_12", Ze = "_year_9mv0h_13", Xe = "_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 = {
|
|
357
|
+
fields: Je,
|
|
358
|
+
month: Ke,
|
|
359
|
+
day: Qe,
|
|
360
|
+
year: Ze,
|
|
361
|
+
timeGroup: Xe,
|
|
363
362
|
dayInput: et,
|
|
364
363
|
yearInput: tt,
|
|
365
364
|
monthTrigger: at,
|
|
@@ -371,42 +370,42 @@ const Qe = "_fields_9mv0h_1", Je = "_month_9mv0h_11", We = "_day_9mv0h_12", Xe =
|
|
|
371
370
|
}, it = ({ content: e, locale: a }) => /* @__PURE__ */ t.createElement(oe, {
|
|
372
371
|
content: e,
|
|
373
372
|
locale: a
|
|
374
|
-
}),
|
|
373
|
+
}), Pt = () => {
|
|
375
374
|
const e = Ae(h.monthOption, H), a = k(h.dayInput), n = k(h.yearInput), o = k(h.time);
|
|
376
375
|
return /* @__PURE__ */ t.createElement(l, {
|
|
377
376
|
className: h.fields
|
|
378
377
|
}, /* @__PURE__ */ t.createElement(l.Label, {
|
|
379
|
-
className: E(
|
|
378
|
+
className: E(v, f.label)
|
|
380
379
|
}, /* @__PURE__ */ t.createElement(l.Label.Required, {
|
|
381
|
-
className: E(
|
|
380
|
+
className: E(Ie, f.requiredMark)
|
|
382
381
|
})), /* @__PURE__ */ t.createElement(l.Month, {
|
|
383
382
|
className: h.month
|
|
384
383
|
}, /* @__PURE__ */ t.createElement(l.Month.Label, {
|
|
385
|
-
className: E(
|
|
384
|
+
className: E(v, f.label)
|
|
386
385
|
}), /* @__PURE__ */ t.createElement(l.Month.Trigger, {
|
|
387
|
-
className: E(
|
|
388
|
-
}, /* @__PURE__ */ t.createElement(
|
|
386
|
+
className: E(De, f.input, h.monthTrigger)
|
|
387
|
+
}, /* @__PURE__ */ t.createElement(ve, {
|
|
389
388
|
className: f.dropdownIcon
|
|
390
389
|
})), /* @__PURE__ */ t.createElement(l.Month.Options, {
|
|
391
|
-
className: E(
|
|
390
|
+
className: E(Ne, f.selectPopover, f.dropdownPopover)
|
|
392
391
|
}, /* @__PURE__ */ t.createElement(l.Month.Options.Option, {
|
|
393
392
|
className: e
|
|
394
393
|
}))), /* @__PURE__ */ t.createElement(l.Day, {
|
|
395
394
|
className: h.day
|
|
396
395
|
}, /* @__PURE__ */ t.createElement(l.Day.Label, {
|
|
397
|
-
className: E(
|
|
396
|
+
className: E(v, f.label)
|
|
398
397
|
}), /* @__PURE__ */ t.createElement(l.Day.Input, {
|
|
399
398
|
className: a
|
|
400
399
|
})), /* @__PURE__ */ t.createElement(l.Year, {
|
|
401
400
|
className: h.year
|
|
402
401
|
}, /* @__PURE__ */ t.createElement(l.Year.Label, {
|
|
403
|
-
className: E(
|
|
402
|
+
className: E(v, f.label)
|
|
404
403
|
}), /* @__PURE__ */ t.createElement(l.Year.Input, {
|
|
405
404
|
className: n
|
|
406
405
|
})), /* @__PURE__ */ t.createElement(l.Time, {
|
|
407
406
|
className: h.timeGroup
|
|
408
407
|
}, /* @__PURE__ */ t.createElement(l.Time.Label, {
|
|
409
|
-
className: E(
|
|
408
|
+
className: E(v, f.label)
|
|
410
409
|
}), /* @__PURE__ */ t.createElement(l.Time.Input, {
|
|
411
410
|
className: o
|
|
412
411
|
}, /* @__PURE__ */ t.createElement(l.Time.Hour, {
|
|
@@ -416,11 +415,11 @@ const Qe = "_fields_9mv0h_1", Je = "_month_9mv0h_11", We = "_day_9mv0h_12", Xe =
|
|
|
416
415
|
}), /* @__PURE__ */ t.createElement(l.Time.Period, {
|
|
417
416
|
className: E(h.period, H)
|
|
418
417
|
}))), /* @__PURE__ */ t.createElement(l.Error, {
|
|
419
|
-
className: E(
|
|
420
|
-
}, /* @__PURE__ */ t.createElement(
|
|
421
|
-
className: E(
|
|
418
|
+
className: E(_e, f.error)
|
|
419
|
+
}, /* @__PURE__ */ t.createElement(Re, null), /* @__PURE__ */ t.createElement(l.Error.Text, null)), /* @__PURE__ */ t.createElement(l.Description, {
|
|
420
|
+
className: E(ye, f.description)
|
|
422
421
|
}, it));
|
|
423
422
|
};
|
|
424
423
|
export {
|
|
425
|
-
|
|
424
|
+
Pt as D
|
|
426
425
|
};
|
package/dist/component/{dext-checkbox-group-rac-BHZBqyWv.js → dext-checkbox-group-rac-BFGM7SOt.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import o from "react";
|
|
2
|
-
import {
|
|
3
|
-
import { C as p } from "./checkbox-group-field-rac-
|
|
2
|
+
import { b5 as e, a8 as t } from "./form-0jt4L5xo.js";
|
|
3
|
+
import { C as p } from "./checkbox-group-field-rac-DTcZcVS6.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-bNaskJpK.js → dext-radio-group-rac-CL3jcezs.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import r from "react";
|
|
2
|
-
import {
|
|
3
|
-
import { R as p } from "./radio-group-field-rac-
|
|
2
|
+
import { b5 as e, a8 as t } from "./form-0jt4L5xo.js";
|
|
3
|
+
import { R as p } from "./radio-group-field-rac-D1aMVO6l.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 {
|
|
3
|
-
import { T as s } from "./tags-field-rac-
|
|
2
|
+
import { b5 as e, a8 as o } from "./form-0jt4L5xo.js";
|
|
3
|
+
import { T as s } from "./tags-field-rac-CQ9Y7mq-.js";
|
|
4
4
|
import { b as a } from "./default-limits-D7qVv_Hv.js";
|
|
5
5
|
const l = () => {
|
|
6
6
|
const t = {
|