@wix/form-elements 1.107.0 → 1.109.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-C9-XwsPI.js} +295 -296
- package/dist/component/{bookings-address-rac-_5S8J8_i.js → bookings-address-rac-jrrCPWjw.js} +1 -1
- package/dist/component/{bookings-email-rac-6vmDR9nS.js → bookings-email-rac-J9-RMEbf.js} +1 -1
- package/dist/component/{bookings-first-name-rac-DtTJ4T2K.js → bookings-first-name-rac-CH7-6JmA.js} +1 -1
- package/dist/component/{bookings-header-rac-B3dsEwzR.js → bookings-header-rac-C2JV-ciN.js} +1 -1
- package/dist/component/{bookings-last-name-rac-B3idkbi8.js → bookings-last-name-rac-0a9CwiaV.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-CrRBcQwT.js → bookings-login-bar-rac-4Mb7MQYe.js} +21 -22
- package/dist/component/{bookings-phone-rac-BE0yWNnj.js → bookings-phone-rac-vYx5r5jn.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-CYo1l0-6.js → bookings-rich-text-rac-CWg1FgUp.js} +1 -1
- package/dist/component/{checkbox-field-rac-boTtXVEt.js → checkbox-field-rac-Dwx1leKA.js} +27 -28
- package/dist/component/{checkbox-group-field-headless-DnkUvDm8.js → checkbox-group-field-headless-AFWgXzx_.js} +41 -41
- package/dist/component/{checkbox-group-field-rac-DrDTgHMg.js → checkbox-group-field-rac-CO8kmWJp.js} +6 -6
- package/dist/component/{checkbox-group-rac-v3ozUBpo.js → checkbox-group-rac-_79HsFF4.js} +1 -1
- package/dist/component/{checkbox-rac-YSLE-RnG.js → checkbox-rac-B_tbMfjo.js} +1 -1
- package/dist/component/{contacts-address-rac-C653yaHZ.js → contacts-address-rac-SJ5Tvzd0.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-BeAQ6shx.js → contacts-birthdate-rac-BU1L3sbW.js} +1 -1
- package/dist/component/{contacts-company-rac-BglKOoTG.js → contacts-company-rac-Y4B8KhDa.js} +1 -1
- package/dist/component/{contacts-email-rac-D6m7ynfc.js → contacts-email-rac-CQW84o7C.js} +1 -1
- package/dist/component/{contacts-first-name-rac-Dgxn0tUJ.js → contacts-first-name-rac-Dtai-wtH.js} +1 -1
- package/dist/component/{contacts-last-name-rac-1UyIuRKH.js → contacts-last-name-rac--ixuu3ri.js} +1 -1
- package/dist/component/{contacts-phone-rac-BQ77BlW4.js → contacts-phone-rac-HOHfSvT-.js} +1 -1
- package/dist/component/{contacts-position-rac-BUDUv7lv.js → contacts-position-rac-BPMkh6yf.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-DdtA0qKW.js → contacts-subscribe-rac-D0_RMwJb.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-WUaKcNl0.js → contacts-tax-id-rac-CZJmMiVf.js} +1 -1
- package/dist/component/{date-availability-XjBFq8jt.js → date-availability-C4dDHvuc.js} +1 -1
- package/dist/component/{date-input-field-rac-aY2zuuKs.js → date-input-field-rac-8oERZcqh.js} +79 -80
- package/dist/component/{date-input-rac-DRiP2_97.js → date-input-rac-CYRojmW6.js} +1 -1
- package/dist/component/{date-picker-field-rac-Bzl-d3Uj.js → date-picker-field-rac-CIspU7No.js} +87 -88
- package/dist/component/{date-picker-rac-DHHUh8vn.js → date-picker-rac-D0Y0zf2J.js} +1 -1
- package/dist/component/{date-time-input-field-rac-DP_StuLr.js → date-time-input-field-rac-0daWK65I.js} +73 -74
- package/dist/component/{date-time-input-rac-B11KIxsf.js → date-time-input-rac-BemKPk1j.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-BHZBqyWv.js → dext-checkbox-group-rac-BpFNn56W.js} +2 -2
- package/dist/component/{dext-checkbox-rac-BIlAqEvV.js → dext-checkbox-rac-DOISgubJ.js} +1 -1
- package/dist/component/{dext-date-picker-rac-CHBXNrZi.js → dext-date-picker-rac-CNGhFg_g.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-BYtliKry.js → dext-date-time-input-rac-BuUIvJRr.js} +1 -1
- package/dist/component/{dext-dropdown-rac-C2VPSFV5.js → dext-dropdown-rac-DtND-Dbo.js} +1 -1
- package/dist/component/{dext-email-rac-Fnb0Ggcs.js → dext-email-rac-CmjLFOi8.js} +1 -1
- package/dist/component/{dext-number-input-rac-DopfSyFi.js → dext-number-input-rac-DHTNg1dh.js} +1 -1
- package/dist/component/{dext-phone-rac-Rn4i_2rc.js → dext-phone-rac-BrrU5qH_.js} +1 -1
- package/dist/component/{dext-radio-group-rac-bNaskJpK.js → dext-radio-group-rac-CD3MGfAM.js} +4 -4
- package/dist/component/{dext-rating-input-rac-DL6ZZd7d.js → dext-rating-input-rac-BETGJZmt.js} +1 -1
- package/dist/component/{dext-tags-rac-TsUPoImO.js → dext-tags-rac-Coo9jN-T.js} +4 -4
- package/dist/component/{dext-text-area-rac-BIuY7LTd.js → dext-text-area-rac-CNWjqhUT.js} +1 -1
- package/dist/component/{dext-text-input-rac-CSYPW0Qi.js → dext-text-input-rac-CCWyDexv.js} +1 -1
- package/dist/component/{dext-url-input-rac-_g0lqGfW.js → dext-url-input-rac-Dtakkgmk.js} +1 -1
- package/dist/component/{donation-rac-BYKFtsyR.js → donation-rac-BboGm_k_.js} +101 -102
- package/dist/component/{dropdown-field-headless-CBaqlNZi.js → dropdown-field-headless-BTMJGUwY.js} +16 -16
- package/dist/component/{dropdown-field-rac-CCAGSMm3.js → dropdown-field-rac-CDRV8ckB.js} +5 -5
- package/dist/component/{dropdown-rac-C_EqUsZ1.js → dropdown-rac-kEuU2pXW.js} +1 -1
- package/dist/component/{ecom-address-rac-Bw9eH0iF.js → ecom-address-rac-BgKL9ElH.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-B5PVOO2a.js → ecom-subscription-checkbox-rac-CDhJsNPD.js} +6 -6
- package/dist/component/{email-input-field-rac-B2kqQ6yo.js → email-input-field-rac-DdOd86NX.js} +54 -55
- package/dist/component/{events-repeater-rac--4OnUxWE.js → events-repeater-rac-_VJ30dpB.js} +62 -63
- package/dist/component/{events-rsvp-rac-CczCoo3T.js → events-rsvp-rac-DA-261bq.js} +5 -5
- package/dist/component/{field-error-headless-D3-1L5sf.js → field-error-headless-CovyN0GI.js} +8 -8
- package/dist/component/{field-label-headless-Du4ckIVy.js → field-label-headless-DVvX2QaH.js} +11 -11
- package/dist/component/file-upload-rac-bhEPUJPs.js +561 -0
- package/dist/component/fixed-payment-rac-DmI6MeKc.js +61 -0
- package/dist/component/{form-DQauhsho.js → form-BTDgyr54.js} +3430 -3244
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +3 -3
- package/dist/component/header-field-rac-C0rUjmo0.js +24 -0
- package/dist/component/{header-rac-CR9T3Pnu.js → header-rac-DRMO22PV.js} +1 -1
- package/dist/component/{image-choice-rac-DJ_8v467.js → image-choice-rac-CQDQ7AlD.js} +32 -33
- package/dist/component/{index-CcUTIUWM.js → index-B9QlosT1.js} +12 -12
- package/dist/component/{index-BB7d_9Dv.js → index-CNWT9t6j.js} +66 -66
- package/dist/component/{isObjectLike-xvPa_08X.js → isObjectLike-c0td2WCR.js} +1 -1
- package/dist/component/{multiline-address-field-rac-CyaFOloE.js → multiline-address-field-rac-D8bVxRsD.js} +124 -125
- package/dist/component/{multiline-address-rac-CaHGUN_f.js → multiline-address-rac-g-6RB7o8.js} +1 -1
- package/dist/component/number-input-field-rac-BaOwQ5Ya.js +92 -0
- package/dist/component/{number-input-rac-DMKX6nhk.js → number-input-rac-BXv8-Pnj.js} +1 -1
- package/dist/component/{password-rac-0RUXPAn6.js → password-rac-BB9XeSSZ.js} +36 -37
- package/dist/component/{payment-input-rac-CHSZ3-Lt.js → payment-input-rac-DwnSV9rM.js} +41 -42
- package/dist/component/{phone-input-field-rac-JmIFcP1e.js → phone-input-field-rac-CC3C4ToW.js} +56 -57
- package/dist/component/{phone-rac-BLRnAPXP.js → phone-rac-DpNhSaE0.js} +1 -1
- package/dist/component/{product-list-rac-BkF5tDwt.js → product-list-rac-BAESk3B6.js} +74 -75
- package/dist/component/{quiz-radio-group-rac-32cCMTUS.js → quiz-radio-group-rac-PS6AZr63.js} +1 -1
- package/dist/component/{radio-button-module-classes-IOulhuSH.js → radio-button-module-classes-CXcn5unY.js} +30 -30
- package/dist/component/{radio-group-field-rac-CJwku6e0.js → radio-group-field-rac-pt8xbDfS.js} +6 -6
- package/dist/component/{radio-group-rac-BiW-9Abj.js → radio-group-rac-DkzkM6N_.js} +1 -1
- package/dist/component/{rating-input-field-rac-B9cwaROK.js → rating-input-field-rac-DDHBkR4x.js} +43 -44
- package/dist/component/{rating-input-rac-BpwlNvzQ.js → rating-input-rac-CcsDmLus.js} +1 -1
- package/dist/component/{rich-content-rac.module-B1uyPmtK.js → rich-content-rac.module-B2vsO6fj.js} +4 -4
- package/dist/component/rich-text-field-rac-CvKht2eC.js +21 -0
- package/dist/component/{rich-text-rac-VfeZxS27.js → rich-text-rac-CRpSffQB.js} +1 -1
- package/dist/component/{service-dropdown-rac-BCfs8IhW.js → service-dropdown-rac-BOpdXNjG.js} +36 -37
- package/dist/component/{services-multi-choice-rac-CCqdF_7P.js → services-multi-choice-rac-t0wdSt_T.js} +20 -21
- package/dist/component/{signature-rac-DOyMo3u0.js → signature-rac-2LsIYYIX.js} +141 -142
- package/dist/component/{submit-button-rac-C2uA5DeE.js → submit-button-rac-BbE8dS35.js} +26 -27
- package/dist/component/{tags-field-rac-C_uIw2by.js → tags-field-rac-BnsBxReU.js} +44 -45
- package/dist/component/{tags-rac-1pQ-fpe_.js → tags-rac-BFH4RINA.js} +1 -1
- package/dist/component/{text-area-field-rac-DqlOkm7e.js → text-area-field-rac-Ag7_gniM.js} +28 -29
- package/dist/component/{text-area-rac-DPdkrFcH.js → text-area-rac-ByUX0p2O.js} +1 -1
- package/dist/component/{text-input-field-rac-CmXm6r1w.js → text-input-field-rac-D3MZ8teu.js} +3 -3
- package/dist/component/{text-input-headless-DD__2DFf.js → text-input-headless-CwONErsY.js} +12 -12
- package/dist/component/{text-input-rac-DRHyQEH7.js → text-input-rac-DLXdAhkK.js} +1 -1
- package/dist/component/{time-input-rac-BJPIymQY.js → time-input-rac-Bs55lTON.js} +33 -34
- package/dist/component/url-input-field-rac-FG-bCh-E.js +74 -0
- package/dist/component/{url-input-rac-C0ChQUzq.js → url-input-rac-BOKuCMTe.js} +1 -1
- package/dist/component/use-dropdown-option-class-name-DjV7FW5y.js +21 -0
- package/dist/component/{use-element-state-class-name-BatTc2bw.js → use-element-state-class-name-DB1AzkvF.js} +1 -1
- package/dist/component/{use-is-forced-open-dropdown-B0jiPTmS.js → use-is-forced-open-dropdown-ifUIpuwL.js} +7 -7
- package/dist/component/{use-service-options-base-oeE7xszw.js → use-service-options-base-B11cq0HH.js} +7 -7
- package/dist/component/use-text-input-class-name-va1PzWFg.js +23 -0
- package/dist/form.d.ts +21 -1
- package/package.json +2 -2
- package/dist/component/file-upload-rac-DbdkUbWM.js +0 -484
- package/dist/component/fixed-payment-rac-f9-01iDN.js +0 -62
- 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,28 +1,27 @@
|
|
|
1
1
|
import { RicosViewer as oe } from "@wix/ricos/viewer";
|
|
2
2
|
import E from "classnames";
|
|
3
|
-
import t, { useMemo as T, useState as q, useCallback as w, useRef as
|
|
3
|
+
import t, { useMemo as T, useState as q, 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 Q, TimeField as ue, SelectValue as pe, Input as
|
|
7
|
-
import {
|
|
6
|
+
import { ListBoxItem as ce, ListBox as me, Select as de, TextField as Q, TimeField as ue, SelectValue as pe, Input as W, DateInput as Ee, DateSegment as x, TimeFieldStateContext as he } from "react-aria-components";
|
|
7
|
+
import { b9 as b, b6 as X, b1 as U, aG as J, aT as Z, au as d, bj as L, aX as j, aI as fe, aB as be, a_ as ge, aC as K, bb as z, I as S, U as Ie, t as De, K as _e, v as Ne, p as ye } from "./form-BTDgyr54.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-CovyN0GI.js";
|
|
11
|
+
import { L as Fe } from "./field-label-headless-DVvX2QaH.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 ve } from "./use-is-forced-open-dropdown-ifUIpuwL.js";
|
|
15
|
+
import { C as Se } 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-DjV7FW5y.js";
|
|
20
|
+
import { u as k } from "./use-text-input-class-name-va1PzWFg.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 } = X(), { regionalFormat: p } = U(), N = T(() => J(p).filter(Z).map((v) => v.toUpperCase()), [
|
|
24
23
|
p
|
|
25
|
-
]), M = u(e, l.Label), V = u(e, l.Description), D = u(e, l.Error),
|
|
24
|
+
]), M = u(e, l.Label), V = u(e, l.Description), D = u(e, l.Error), _ = {
|
|
26
25
|
[d.MONTH]: u(e, l.Month),
|
|
27
26
|
[d.DAY]: u(e, l.Day),
|
|
28
27
|
[d.YEAR]: u(e, l.Year)
|
|
@@ -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,
|
|
@@ -40,11 +39,11 @@ const l = ({ children: e, className: a }) => {
|
|
|
40
39
|
onBlur: s,
|
|
41
40
|
onFocus: r,
|
|
42
41
|
className: a
|
|
43
|
-
}, N[
|
|
42
|
+
}, _[N[0]], _[N[1]], _[N[2]], y),
|
|
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:
|
|
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: N } = L(), [M, V] = q(!1), D = ve(n), [_, y] = q(null), v = i ? void 0 : N("field.date.placeholder.month"), ee = w((Y) => {
|
|
48
47
|
s || p(typeof Y == "string" ? Y : "");
|
|
49
48
|
}, [
|
|
50
49
|
p,
|
|
@@ -63,7 +62,7 @@ const l = ({ children: e, className: a }) => {
|
|
|
63
62
|
display: "contents"
|
|
64
63
|
}
|
|
65
64
|
}), /* @__PURE__ */ t.createElement(ie, {
|
|
66
|
-
getContainer: () =>
|
|
65
|
+
getContainer: () => _
|
|
67
66
|
}, /* @__PURE__ */ t.createElement(de, {
|
|
68
67
|
"aria-labelledby": r ? m : void 0,
|
|
69
68
|
value: c || null,
|
|
@@ -80,11 +79,11 @@ const l = ({ children: e, className: a }) => {
|
|
|
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 z(() => {
|
|
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,
|
|
@@ -92,11 +91,11 @@ const l = ({ children: e, className: a }) => {
|
|
|
92
91
|
"data-invalid": r || void 0,
|
|
93
92
|
"data-readonly": o || void 0
|
|
94
93
|
}, /* @__PURE__ */ t.createElement(pe, null), e);
|
|
95
|
-
},
|
|
96
|
-
const { isForcedOpen: o } = n, { language: s } =
|
|
94
|
+
}, B = ({ children: e, className: a, ...n }) => {
|
|
95
|
+
const { isForcedOpen: o } = n, { language: s } = U(), r = T(() => Oe(s), [
|
|
97
96
|
s
|
|
98
|
-
]), i = u(e,
|
|
99
|
-
return /* @__PURE__ */ t.createElement(
|
|
97
|
+
]), i = u(e, B.Option) ?? /* @__PURE__ */ t.createElement(B.Option, null);
|
|
98
|
+
return /* @__PURE__ */ t.createElement(Pe, {
|
|
100
99
|
className: a,
|
|
101
100
|
containerPadding: 0,
|
|
102
101
|
offset: 0
|
|
@@ -117,8 +116,8 @@ const l = ({ children: e, className: a }) => {
|
|
|
117
116
|
};
|
|
118
117
|
F.Label = Ve;
|
|
119
118
|
F.Trigger = Ye;
|
|
120
|
-
F.Options =
|
|
121
|
-
|
|
119
|
+
F.Options = B;
|
|
120
|
+
B.Option = He;
|
|
122
121
|
const R = ({ children: e, className: a }) => {
|
|
123
122
|
const { disabled: n, readOnly: o, showDateLabels: s } = b(), { labelId: r } = O(d.DAY), { partValue: i, partError: m, onPartChange: c } = C(d.DAY), g = u(e, R.Label), p = u(e, R.Input);
|
|
124
123
|
return /* @__PURE__ */ t.createElement("div", {
|
|
@@ -135,12 +134,12 @@ const R = ({ children: e, className: a }) => {
|
|
|
135
134
|
}, we = ({ className: e }) => /* @__PURE__ */ t.createElement($, {
|
|
136
135
|
datePart: d.DAY,
|
|
137
136
|
className: e
|
|
138
|
-
}),
|
|
139
|
-
const { id: a, hidePlaceholder: n } = b(), { inputId: o } = O(d.DAY), { isFirstPart: s } = C(d.DAY), { t: r } = L(), i =
|
|
140
|
-
return
|
|
137
|
+
}), Be = ({ className: e }) => {
|
|
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 z(() => {
|
|
141
140
|
var c;
|
|
142
141
|
s && ((c = i.current) == null || c.focus());
|
|
143
|
-
}, a), /* @__PURE__ */ t.createElement(
|
|
142
|
+
}, a), /* @__PURE__ */ t.createElement(W, {
|
|
144
143
|
ref: i,
|
|
145
144
|
id: o,
|
|
146
145
|
className: e,
|
|
@@ -151,7 +150,7 @@ const R = ({ children: e, className: a }) => {
|
|
|
151
150
|
});
|
|
152
151
|
};
|
|
153
152
|
R.Label = we;
|
|
154
|
-
R.Input =
|
|
153
|
+
R.Input = Be;
|
|
155
154
|
const A = ({ children: e, className: a }) => {
|
|
156
155
|
const { disabled: n, readOnly: o, showDateLabels: s } = b(), { labelId: r } = O(d.YEAR), { partValue: i, partError: m, onPartChange: c } = C(d.YEAR), g = u(e, A.Label), p = u(e, A.Input);
|
|
157
156
|
return /* @__PURE__ */ t.createElement("div", {
|
|
@@ -165,15 +164,15 @@ const A = ({ children: e, className: a }) => {
|
|
|
165
164
|
isReadOnly: o,
|
|
166
165
|
isInvalid: m
|
|
167
166
|
}, p));
|
|
168
|
-
},
|
|
167
|
+
}, xe = ({ className: e }) => /* @__PURE__ */ t.createElement($, {
|
|
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 z(() => {
|
|
174
173
|
var c;
|
|
175
174
|
s && ((c = i.current) == null || c.focus());
|
|
176
|
-
}, a), /* @__PURE__ */ t.createElement(
|
|
175
|
+
}, a), /* @__PURE__ */ t.createElement(W, {
|
|
177
176
|
ref: i,
|
|
178
177
|
id: o,
|
|
179
178
|
className: e,
|
|
@@ -183,10 +182,10 @@ const A = ({ children: e, className: a }) => {
|
|
|
183
182
|
"data-hook": d.YEAR
|
|
184
183
|
});
|
|
185
184
|
};
|
|
186
|
-
A.Label =
|
|
185
|
+
A.Label = xe;
|
|
187
186
|
A.Input = ke;
|
|
188
187
|
const I = ({ children: e, className: a }) => {
|
|
189
|
-
const { disabled: n, readOnly: o, use24HourFormat: s, showDateLabels: r } = b(), { labelId: i } = O("time"), { partValue: m, partError: c, onPartChange: g } = C("time"), p = u(e, I.Label),
|
|
188
|
+
const { disabled: n, readOnly: o, use24HourFormat: s, showDateLabels: r } = b(), { labelId: i } = O("time"), { partValue: m, partError: c, onPartChange: g } = C("time"), p = u(e, I.Label), N = u(e, I.Input);
|
|
190
189
|
return /* @__PURE__ */ t.createElement("div", {
|
|
191
190
|
className: a,
|
|
192
191
|
"data-date-field": !0
|
|
@@ -198,15 +197,15 @@ const I = ({ children: e, className: a }) => {
|
|
|
198
197
|
isReadOnly: o,
|
|
199
198
|
isInvalid: c,
|
|
200
199
|
hourCycle: s ? 24 : 12
|
|
201
|
-
},
|
|
202
|
-
},
|
|
200
|
+
}, N));
|
|
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,
|
|
@@ -226,16 +225,16 @@ const I = ({ children: e, className: a }) => {
|
|
|
226
225
|
segment: r
|
|
227
226
|
}) || /* @__PURE__ */ t.createElement(t.Fragment, null);
|
|
228
227
|
case "literal":
|
|
229
|
-
return /* @__PURE__ */ t.createElement(
|
|
228
|
+
return /* @__PURE__ */ t.createElement(x, {
|
|
230
229
|
segment: r
|
|
231
230
|
});
|
|
232
231
|
default:
|
|
233
232
|
return /* @__PURE__ */ t.createElement(t.Fragment, null);
|
|
234
233
|
}
|
|
235
234
|
});
|
|
236
|
-
},
|
|
235
|
+
}, ze = ({ 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
|
-
return /* @__PURE__ */ t.createElement(
|
|
237
|
+
return /* @__PURE__ */ t.createElement(x, {
|
|
239
238
|
segment: o,
|
|
240
239
|
className: e,
|
|
241
240
|
...r && {
|
|
@@ -244,7 +243,7 @@ const I = ({ children: e, className: a }) => {
|
|
|
244
243
|
});
|
|
245
244
|
}, $e = ({ 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
|
-
return /* @__PURE__ */ t.createElement(
|
|
246
|
+
return /* @__PURE__ */ t.createElement(x, {
|
|
248
247
|
segment: o,
|
|
249
248
|
className: e,
|
|
250
249
|
...r && {
|
|
@@ -253,7 +252,7 @@ const I = ({ children: e, className: a }) => {
|
|
|
253
252
|
});
|
|
254
253
|
}, qe = ({ 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
|
-
return /* @__PURE__ */ t.createElement(
|
|
255
|
+
return /* @__PURE__ */ t.createElement(x, {
|
|
257
256
|
segment: o,
|
|
258
257
|
className: e,
|
|
259
258
|
onClick: m,
|
|
@@ -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 =
|
|
264
|
+
I.Label = Ge;
|
|
265
|
+
I.Input = Ue;
|
|
266
|
+
I.Hour = ze;
|
|
268
267
|
I.Minute = $e;
|
|
269
268
|
I.Period = qe;
|
|
270
|
-
l.Label =
|
|
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 } = X();
|
|
279
278
|
return T(() => {
|
|
280
279
|
const n = e.toLowerCase();
|
|
281
280
|
return {
|
|
@@ -288,7 +287,7 @@ 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(() => j(a ?? ""), [
|
|
292
291
|
a
|
|
293
292
|
]), m = T(() => fe(o, a ?? ""), [
|
|
294
293
|
a,
|
|
@@ -298,20 +297,20 @@ function C(e) {
|
|
|
298
297
|
]), g = T(() => je(i), [
|
|
299
298
|
i
|
|
300
299
|
]), p = w((D) => {
|
|
301
|
-
const
|
|
300
|
+
const _ = Ke(D), y = K(r, _);
|
|
302
301
|
n(y);
|
|
303
302
|
}, [
|
|
304
303
|
n,
|
|
305
304
|
r
|
|
306
|
-
]),
|
|
307
|
-
const [,
|
|
305
|
+
]), N = w((D) => {
|
|
306
|
+
const [, _] = j(a ?? ""), y = ge(D, e, c), v = K(y, _);
|
|
308
307
|
n(v);
|
|
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 : J(s).filter(Z).map((y) => y.toUpperCase())[0] === e, [
|
|
315
314
|
s,
|
|
316
315
|
e
|
|
317
316
|
]);
|
|
@@ -323,7 +322,7 @@ function C(e) {
|
|
|
323
322
|
} : {
|
|
324
323
|
partValue: c[e] || "",
|
|
325
324
|
partError: m[e],
|
|
326
|
-
onPartChange:
|
|
325
|
+
onPartChange: N,
|
|
327
326
|
isFirstPart: M
|
|
328
327
|
};
|
|
329
328
|
}
|
|
@@ -354,11 +353,11 @@ function Ke(e) {
|
|
|
354
353
|
o
|
|
355
354
|
].join(":");
|
|
356
355
|
}
|
|
357
|
-
const Qe = "_fields_9mv0h_1",
|
|
356
|
+
const Qe = "_fields_9mv0h_1", We = "_month_9mv0h_11", Xe = "_day_9mv0h_12", Je = "_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
357
|
fields: Qe,
|
|
359
|
-
month:
|
|
360
|
-
day:
|
|
361
|
-
year:
|
|
358
|
+
month: We,
|
|
359
|
+
day: Xe,
|
|
360
|
+
year: Je,
|
|
362
361
|
timeGroup: Ze,
|
|
363
362
|
dayInput: et,
|
|
364
363
|
yearInput: tt,
|
|
@@ -371,24 +370,24 @@ 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
378
|
className: E(S, 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
384
|
className: E(S, 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(Se, {
|
|
389
388
|
className: f.dropdownIcon
|
|
390
389
|
})), /* @__PURE__ */ t.createElement(l.Month.Options, {
|
|
391
|
-
className: E(
|
|
390
|
+
className: E(_e, f.selectPopover, f.dropdownPopover)
|
|
392
391
|
}, /* @__PURE__ */ t.createElement(l.Month.Options.Option, {
|
|
393
392
|
className: e
|
|
394
393
|
}))), /* @__PURE__ */ t.createElement(l.Day, {
|
|
@@ -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(Ne, 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-BpFNn56W.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 { b9 as e, ac as t } from "./form-BTDgyr54.js";
|
|
3
|
+
import { C as p } from "./checkbox-group-field-rac-CO8kmWJp.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-CD3MGfAM.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 { b9 as e, ac as t } from "./form-BTDgyr54.js";
|
|
3
|
+
import { R as p } from "./radio-group-field-rac-pt8xbDfS.js";
|
|
4
4
|
import { a } from "./default-limits-D7qVv_Hv.js";
|
|
5
|
-
const
|
|
5
|
+
const c = () => {
|
|
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
|
+
c 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 { b9 as e, ac as o } from "./form-BTDgyr54.js";
|
|
3
|
+
import { T as s } from "./tags-field-rac-BnsBxReU.js";
|
|
4
4
|
import { b as a } from "./default-limits-D7qVv_Hv.js";
|
|
5
|
-
const
|
|
5
|
+
const c = () => {
|
|
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
|
+
c as DextTagsRAC
|
|
18
18
|
};
|