@wix/form-elements 1.128.0 → 1.130.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-S9z3s23G.js → appointment-rac-BpZGi0ra.js} +4 -4
- package/dist/component/{bookings-address-rac-B7wL2TjQ.js → bookings-address-rac-IU28SJy5.js} +1 -1
- package/dist/component/{bookings-email-rac-T2lFRGpg.js → bookings-email-rac-BkhnLFKC.js} +1 -1
- package/dist/component/{bookings-first-name-rac-BBrENRBf.js → bookings-first-name-rac-CwMmkICM.js} +1 -1
- package/dist/component/{bookings-header-rac-CWGMiMQz.js → bookings-header-rac-BtGNPfsP.js} +1 -1
- package/dist/component/{bookings-last-name-rac-BQWvH_gm.js → bookings-last-name-rac-BmloqxX9.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-tFs0Vioz.js → bookings-login-bar-rac-QHUQz0Do.js} +1 -1
- package/dist/component/{bookings-phone-rac-BV_BTfAh.js → bookings-phone-rac-CBKcGM_o.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-8cD6QJBZ.js → bookings-rich-text-rac-DnazNxHe.js} +1 -1
- package/dist/component/{checkbox-field-rac-YmG26i31.js → checkbox-field-rac-BSiNWGvO.js} +4 -4
- package/dist/component/{checkbox-group-field-headless-CE8sEjZj.js → checkbox-group-field-headless-Bl_gIm5X.js} +3 -3
- package/dist/component/{checkbox-group-field-rac-CSuJRyk1.js → checkbox-group-field-rac-_cpM6zrw.js} +4 -4
- package/dist/component/{checkbox-group-rac-VDezm9js.js → checkbox-group-rac-mZwI2tQ7.js} +1 -1
- package/dist/component/{checkbox-rac-DoC1ZqAq.js → checkbox-rac-rfO8Kefs.js} +1 -1
- package/dist/component/{contacts-address-rac-10AZNzhI.js → contacts-address-rac-CHthblox.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-C7YDiyg2.js → contacts-birthdate-rac-CuvwylkU.js} +1 -1
- package/dist/component/{contacts-company-rac-xQEtJ_-m.js → contacts-company-rac-D546Lq1s.js} +1 -1
- package/dist/component/{contacts-email-rac-Bryw_aCU.js → contacts-email-rac-DwXQ_wWS.js} +1 -1
- package/dist/component/{contacts-first-name-rac-BXmuuhfG.js → contacts-first-name-rac-C7bQDK9N.js} +1 -1
- package/dist/component/{contacts-last-name-rac-CVWVZO8I.js → contacts-last-name-rac-CQTkOyHY.js} +1 -1
- package/dist/component/{contacts-phone-rac-C-KSwisV.js → contacts-phone-rac-5_KC_NgQ.js} +1 -1
- package/dist/component/{contacts-position-rac-od-5Gie5.js → contacts-position-rac-Y467YbGC.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-CCh9JcQx.js → contacts-subscribe-rac-By3IlB_r.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-DOM7TPQz.js → contacts-tax-id-rac-Cz7LLBFg.js} +1 -1
- package/dist/component/{date-availability-G5IwqtRi.js → date-availability-2VUtbyz1.js} +1 -1
- package/dist/component/{date-input-field-rac-BpBqS7LG.js → date-input-field-rac-C0YZZ7d1.js} +86 -86
- package/dist/component/{date-input-rac-CQyqRqZK.js → date-input-rac-BIlIrfkK.js} +1 -1
- package/dist/component/{date-picker-field-rac-BsR_0eAW.js → date-picker-field-rac-D96wqSQ2.js} +92 -91
- package/dist/component/{date-picker-rac-Bl2k363u.js → date-picker-rac-CgVftEAJ.js} +1 -1
- package/dist/component/date-time-input-field-rac-C4uP9wLp.js +427 -0
- package/dist/component/{date-time-input-rac-CInfYWxN.js → date-time-input-rac-BgHUANTP.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-E36LjEfn.js → dext-checkbox-group-rac-DjiWZ293.js} +2 -2
- package/dist/component/{dext-checkbox-rac-DkMAv7aY.js → dext-checkbox-rac-BmUjJHD_.js} +1 -1
- package/dist/component/{dext-date-picker-rac-BNkJPlYo.js → dext-date-picker-rac-BlrV70R7.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-BH3Q0pwI.js → dext-date-time-input-rac-JkFxwGgu.js} +1 -1
- package/dist/component/{dext-dropdown-rac-DkF_DD08.js → dext-dropdown-rac-Xbczi-Z0.js} +1 -1
- package/dist/component/{dext-email-rac-0x_DN0_O.js → dext-email-rac-DkMdn4ps.js} +1 -1
- package/dist/component/{dext-number-input-rac-UiIENkK3.js → dext-number-input-rac-CNMiNuNi.js} +1 -1
- package/dist/component/{dext-phone-rac-BZFK4Uq7.js → dext-phone-rac-C8c-RKQv.js} +1 -1
- package/dist/component/{dext-radio-group-rac-CBAdO7kt.js → dext-radio-group-rac-BAJJSIKu.js} +2 -2
- package/dist/component/{dext-rating-input-rac-fqR1sriq.js → dext-rating-input-rac-BdnfHwl1.js} +1 -1
- package/dist/component/{dext-tags-rac-mDuiUs9L.js → dext-tags-rac-BjsYYa9X.js} +2 -2
- package/dist/component/{dext-text-area-rac-C-8jKWpK.js → dext-text-area-rac-Aatrs0NK.js} +1 -1
- package/dist/component/{dext-text-input-rac-CCBAM9YO.js → dext-text-input-rac-DgUfidRi.js} +1 -1
- package/dist/component/{dext-url-input-rac-C4_8Yk0p.js → dext-url-input-rac-DQbUHNX7.js} +1 -1
- package/dist/component/{donation-rac-BwDHypVJ.js → donation-rac-BEbw90qi.js} +5 -5
- package/dist/component/dropdown-field-headless-Cg-_dZP4.js +91 -0
- package/dist/component/{dropdown-field-rac-DduQJ9rO.js → dropdown-field-rac-EjA-abC8.js} +4 -4
- package/dist/component/{dropdown-rac-BhhECLoH.js → dropdown-rac-zDidZ7dx.js} +1 -1
- package/dist/component/{ecom-address-rac-BJ1nnEVL.js → ecom-address-rac-Df9TvxEv.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-4m1XMTDY.js → ecom-subscription-checkbox-rac-B6ztLCEK.js} +2 -2
- package/dist/component/{email-input-field-rac-bPEcgidt.js → email-input-field-rac-CpPKmeC5.js} +3 -3
- package/dist/component/{events-repeater-rac-CujTGEHx.js → events-repeater-rac-C5VWlWG-.js} +4 -4
- package/dist/component/{events-rsvp-rac-BPqr_aY9.js → events-rsvp-rac-CLTyr98o.js} +3 -3
- package/dist/component/{field-error-headless-Bu_4Huhb.js → field-error-headless-Dgx4BHo5.js} +1 -1
- package/dist/component/{field-label-headless-DkDmQPFG.js → field-label-headless-CsqtNbNm.js} +1 -1
- package/dist/component/{file-upload-rac-DmOQrGe8.js → file-upload-rac-1SX9-51k.js} +4 -4
- package/dist/component/{fixed-payment-rac-CDsddKrV.js → fixed-payment-rac-C_zIu17t.js} +3 -3
- package/dist/component/{form-BpJ4Lqbe.js → form-BoHpaLjl.js} +69 -69
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-Cr1FVQdq.js → header-field-rac-DBw1TpEG.js} +2 -2
- package/dist/component/{header-rac-CvAZsqDL.js → header-rac-DAnTKW4z.js} +1 -1
- package/dist/component/{image-choice-rac-D_EKrD73.js → image-choice-rac-CqnAnKbc.js} +4 -4
- package/dist/component/{index-Tnke1N8m.js → index-Rqkz8Lrx.js} +2 -2
- package/dist/component/{index-DxsHfkik.js → index-g0wVTJHp.js} +4 -4
- package/dist/component/{isObjectLike-CMWsWjX8.js → isObjectLike-Dt08IFKQ.js} +1 -1
- package/dist/component/{multiline-address-field-rac-BMeMP7J6.js → multiline-address-field-rac-1zdTMnWs.js} +7 -7
- package/dist/component/{multiline-address-rac-CFprfFXm.js → multiline-address-rac-DI_2qWao.js} +1 -1
- package/dist/component/non-modal-popover-D-u13tmp.js +64 -0
- package/dist/component/{number-input-field-rac-CaHySxYH.js → number-input-field-rac-1EfxOkZP.js} +4 -4
- package/dist/component/{number-input-rac-BezfoU8h.js → number-input-rac-AG8ecaT6.js} +1 -1
- package/dist/component/{password-rac-_wwZFd67.js → password-rac-CGu6cCp2.js} +4 -4
- package/dist/component/{payment-input-rac-CWrSvBDp.js → payment-input-rac-CRMqRcWZ.js} +4 -4
- package/dist/component/{phone-input-field-rac-R3LYdPIs.js → phone-input-field-rac-Bpk1kirr.js} +7 -7
- package/dist/component/{phone-rac-D6uILVRw.js → phone-rac-w7Kiv6ru.js} +1 -1
- package/dist/component/{product-list-rac-D3WTfC9k.js → product-list-rac-WIshqJ3F.js} +4 -4
- package/dist/component/{quiz-radio-group-rac-B6T7eedk.js → quiz-radio-group-rac-BkB4fikl.js} +1 -1
- package/dist/component/{radio-button-module-classes-D8Jm-Q6u.js → radio-button-module-classes-D78goUwl.js} +3 -3
- package/dist/component/{radio-group-field-rac-R5onZzJd.js → radio-group-field-rac-Cx2nvCDW.js} +4 -4
- package/dist/component/{radio-group-rac-DUPHR4tK.js → radio-group-rac-46JW3dAH.js} +1 -1
- package/dist/component/{rating-input-field-rac-C9GpwuRO.js → rating-input-field-rac-D05VBUGw.js} +4 -4
- package/dist/component/{rating-input-rac-Iv_2PVqP.js → rating-input-rac-DtnpPnnU.js} +1 -1
- package/dist/component/{rich-content-rac.module-Det3BKrI.js → rich-content-rac.module-W8U6Eupl.js} +1 -1
- package/dist/component/{rich-text-field-rac-DnBtp2d_.js → rich-text-field-rac-BKMs8NOQ.js} +2 -2
- package/dist/component/{rich-text-rac-CXzxap1G.js → rich-text-rac-BJ4Jii81.js} +1 -1
- package/dist/component/{service-dropdown-rac-CVyd2HYC.js → service-dropdown-rac-CEDqWqhg.js} +5 -5
- package/dist/component/{services-multi-choice-rac-BY-W0xIt.js → services-multi-choice-rac-9qwSAT5T.js} +5 -5
- package/dist/component/{signature-rac-BojdPJhg.js → signature-rac-D6BMpTFh.js} +4 -4
- package/dist/component/{submit-button-rac-Q7KKQbiL.js → submit-button-rac-Bj3iEONs.js} +2 -2
- package/dist/component/{tags-field-rac-CbmR6gi4.js → tags-field-rac-DMD53JR4.js} +5 -5
- package/dist/component/{tags-rac-hJo0tMVR.js → tags-rac-BNL4fHg-.js} +1 -1
- package/dist/component/{text-area-field-rac-DHQqkqtu.js → text-area-field-rac-CHJzdEBE.js} +4 -4
- package/dist/component/{text-area-rac-BTXxfWyK.js → text-area-rac-CgoEe9Qh.js} +1 -1
- package/dist/component/{text-input-field-rac-BVTBYjMM.js → text-input-field-rac-DewYQNfK.js} +3 -3
- package/dist/component/{text-input-headless-Dk_0y9U-.js → text-input-headless-OayaIOMS.js} +3 -3
- package/dist/component/{text-input-rac-DIwGn0WI.js → text-input-rac-4SxpOILY.js} +1 -1
- package/dist/component/{time-input-rac-ClyPOKOH.js → time-input-rac-CivcOPuU.js} +65 -64
- package/dist/component/{url-input-field-rac-BhPzHWTI.js → url-input-field-rac-BK3WIP-A.js} +4 -4
- package/dist/component/{url-input-rac-COD7T5wo.js → url-input-rac-Dgn9n6w1.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-CTDQ4YIC.js → use-dropdown-option-class-name-BZu-Fese.js} +2 -2
- package/dist/component/use-dropdown-trigger-class-name-Dpk8_xn2.js +40 -0
- package/dist/component/{use-element-state-class-name-BU86oHkX.js → use-element-state-class-name-Cby7DA2T.js} +1 -1
- package/dist/component/{use-hoverable-input-class-name-DWkmQfPd.js → use-hoverable-input-class-name-CKBvA8Gx.js} +2 -2
- package/dist/component/{use-service-options-base-jkecu8jY.js → use-service-options-base-Px-Ey93X.js} +1 -1
- package/dist/component/use-text-input-class-name-D30YesHa.js +6 -0
- package/package.json +2 -2
- package/dist/component/date-time-input-field-rac-C5TC2nsm.js +0 -426
- package/dist/component/dropdown-field-headless-CspX2zV_.js +0 -91
- package/dist/component/non-modal-popover-DtIMXHbe.js +0 -63
- package/dist/component/use-dropdown-trigger-class-name-DapDPNX0.js +0 -43
- package/dist/component/use-text-input-class-name-CNTXVb7N.js +0 -6
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import t, { useRef as L } from "react";
|
|
2
2
|
import { TextField as R, Input as h } from "react-aria-components";
|
|
3
|
-
import { bh as d, be as c, bj as v } from "./form-
|
|
3
|
+
import { bh as d, be as c, bj as v } from "./form-BoHpaLjl.js";
|
|
4
4
|
import { f as s } from "./find-child-C60k4CxG.js";
|
|
5
|
-
import { D as T, E as g } from "./field-error-headless-
|
|
6
|
-
import { L as x } from "./field-label-headless-
|
|
5
|
+
import { D as T, E as g } from "./field-error-headless-Dgx4BHo5.js";
|
|
6
|
+
import { L as x } from "./field-label-headless-CsqtNbNm.js";
|
|
7
7
|
const e = ({ children: r }) => {
|
|
8
8
|
const { id: a, value: i, onChange: l, disabled: u, readOnly: n, required: o, hasError: p, onBlur: m, onFocus: b, FieldLayout: f } = d(), { labelId: E } = c(), I = s(r, e.Label), F = s(r, e.Input), y = s(r, e.Description), D = s(r, e.Error);
|
|
9
9
|
return /* @__PURE__ */ t.createElement(f, {
|
|
@@ -1,116 +1,117 @@
|
|
|
1
|
-
import e, { useCallback as
|
|
2
|
-
import { RicosViewer as
|
|
3
|
-
import
|
|
4
|
-
import { parseTime as
|
|
5
|
-
import { TimeField as
|
|
6
|
-
import { bh as p, be as
|
|
7
|
-
import { f as
|
|
8
|
-
import { D as W, E as X } from "./field-error-headless-
|
|
9
|
-
import { L as Y } from "./field-label-headless-
|
|
1
|
+
import e, { useCallback as H, useRef as j, useContext as V } from "react";
|
|
2
|
+
import { RicosViewer as v } from "@wix/ricos/viewer";
|
|
3
|
+
import m from "classnames";
|
|
4
|
+
import { parseTime as x } from "@internationalized/date";
|
|
5
|
+
import { TimeField as q, DateInput as z, DateSegment as _, TimeFieldStateContext as B } from "react-aria-components";
|
|
6
|
+
import { bh as p, be as U, br as S, bj as w, I as Q, U as G, v as J, p as K } from "./form-BoHpaLjl.js";
|
|
7
|
+
import { f as u, a as F } from "./find-child-C60k4CxG.js";
|
|
8
|
+
import { D as W, E as X } from "./field-error-headless-Dgx4BHo5.js";
|
|
9
|
+
import { L as Y } from "./field-label-headless-CsqtNbNm.js";
|
|
10
10
|
import { E as Z } from "./error-icon-hZxQ6DEy.js";
|
|
11
11
|
import { H as T } from "./custom-focus-class-_483Pkwp.js";
|
|
12
12
|
import { s as f } from "./field-rac.module-BIBNQEOK.js";
|
|
13
|
-
import { u as $ } from "./use-text-input-class-name-
|
|
13
|
+
import { u as $ } from "./use-text-input-class-name-D30YesHa.js";
|
|
14
14
|
const r = ({ children: t }) => {
|
|
15
|
-
const { id: n, value: l, onChange:
|
|
16
|
-
const
|
|
17
|
-
|
|
15
|
+
const { id: n, value: l, onChange: a, disabled: i, readOnly: o, required: c, onBlur: s, onFocus: E, use24HourFormat: b, FieldLayout: C, hasError: I } = p(), { inputId: g, ariaDescribedBy: D, labelId: L } = U(), R = H((M) => {
|
|
16
|
+
const k = ae(M);
|
|
17
|
+
a(k);
|
|
18
18
|
}, [
|
|
19
|
-
|
|
20
|
-
]), N =
|
|
19
|
+
a
|
|
20
|
+
]), N = u(t, r.Label), y = u(t, r.Time), P = u(t, r.Description), A = u(t, r.Error), O = ne(l);
|
|
21
21
|
return /* @__PURE__ */ e.createElement(C, {
|
|
22
22
|
fieldId: n,
|
|
23
23
|
renderLabel: () => N,
|
|
24
|
-
renderInput: () => /* @__PURE__ */ e.createElement(
|
|
24
|
+
renderInput: () => /* @__PURE__ */ e.createElement(q, {
|
|
25
25
|
"aria-labelledby": L,
|
|
26
26
|
id: g,
|
|
27
27
|
"aria-describedby": D,
|
|
28
28
|
value: O,
|
|
29
29
|
onChange: R,
|
|
30
30
|
isDisabled: i,
|
|
31
|
-
isReadOnly:
|
|
31
|
+
isReadOnly: o,
|
|
32
32
|
isInvalid: I,
|
|
33
|
-
isRequired:
|
|
34
|
-
onBlur:
|
|
33
|
+
isRequired: c,
|
|
34
|
+
onBlur: s,
|
|
35
35
|
onFocus: E,
|
|
36
36
|
hourCycle: b ? 24 : 12
|
|
37
37
|
}, y),
|
|
38
38
|
renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, A, P)
|
|
39
39
|
});
|
|
40
|
-
},
|
|
41
|
-
const { hasError: l } = p(),
|
|
42
|
-
return /* @__PURE__ */ e.createElement(
|
|
40
|
+
}, d = ({ children: t, className: n }) => {
|
|
41
|
+
const { hasError: l, hidePlaceholder: a } = p(), i = u(t, d.Hour), o = u(t, d.Minute), c = u(t, d.Period);
|
|
42
|
+
return /* @__PURE__ */ e.createElement(z, {
|
|
43
43
|
className: n,
|
|
44
|
-
"data-invalid": l || void 0
|
|
45
|
-
|
|
46
|
-
|
|
44
|
+
"data-invalid": l || void 0,
|
|
45
|
+
"data-placeholder-hidden": a || void 0
|
|
46
|
+
}, (s) => {
|
|
47
|
+
switch (s.type) {
|
|
47
48
|
case "hour":
|
|
48
|
-
return F(
|
|
49
|
-
segment:
|
|
49
|
+
return F(i, {
|
|
50
|
+
segment: s
|
|
50
51
|
}) || /* @__PURE__ */ e.createElement(e.Fragment, null);
|
|
51
52
|
case "minute":
|
|
52
|
-
return F(
|
|
53
|
-
segment:
|
|
53
|
+
return F(o, {
|
|
54
|
+
segment: s
|
|
54
55
|
}) || /* @__PURE__ */ e.createElement(e.Fragment, null);
|
|
55
56
|
case "dayPeriod":
|
|
56
|
-
return F(
|
|
57
|
-
segment:
|
|
57
|
+
return F(c, {
|
|
58
|
+
segment: s
|
|
58
59
|
}) || /* @__PURE__ */ e.createElement(e.Fragment, null);
|
|
59
60
|
case "literal":
|
|
60
61
|
return /* @__PURE__ */ e.createElement(_, {
|
|
61
|
-
segment:
|
|
62
|
+
segment: s
|
|
62
63
|
});
|
|
63
64
|
default:
|
|
64
65
|
return /* @__PURE__ */ e.createElement(e.Fragment, null);
|
|
65
66
|
}
|
|
66
67
|
});
|
|
67
68
|
}, ee = ({ className: t, ...n }) => {
|
|
68
|
-
const { id: l, hidePlaceholder:
|
|
69
|
-
|
|
69
|
+
const { id: l, hidePlaceholder: a } = p(), { segment: i } = n, { t: o } = S(), c = j(null);
|
|
70
|
+
w(() => {
|
|
70
71
|
var E;
|
|
71
|
-
(E =
|
|
72
|
+
(E = c.current) == null || E.focus();
|
|
72
73
|
}, l);
|
|
73
|
-
const
|
|
74
|
+
const s = a ? void 0 : o("field.date.placeholder.hour");
|
|
74
75
|
return /* @__PURE__ */ e.createElement(_, {
|
|
75
|
-
ref:
|
|
76
|
+
ref: c,
|
|
76
77
|
segment: i,
|
|
77
78
|
className: t,
|
|
78
|
-
...
|
|
79
|
-
placeholder:
|
|
79
|
+
...s && {
|
|
80
|
+
placeholder: s
|
|
80
81
|
}
|
|
81
82
|
});
|
|
82
83
|
}, te = ({ className: t, ...n }) => {
|
|
83
|
-
const { hidePlaceholder: l } = p(), { segment:
|
|
84
|
+
const { hidePlaceholder: l } = p(), { segment: a } = n, { t: i } = S(), o = l ? void 0 : i("field.date.placeholder.minute");
|
|
84
85
|
return /* @__PURE__ */ e.createElement(_, {
|
|
85
|
-
segment:
|
|
86
|
+
segment: a,
|
|
86
87
|
className: t,
|
|
87
|
-
...
|
|
88
|
-
placeholder:
|
|
88
|
+
...o && {
|
|
89
|
+
placeholder: o
|
|
89
90
|
}
|
|
90
91
|
});
|
|
91
92
|
}, re = ({ className: t, ...n }) => {
|
|
92
|
-
const { hidePlaceholder: l } = p(), { segment:
|
|
93
|
+
const { hidePlaceholder: l } = p(), { segment: a } = n, { t: i } = S(), o = V(B), c = l ? void 0 : i("field.date.placeholder.period"), s = () => o == null ? void 0 : o.increment("dayPeriod");
|
|
93
94
|
return /* @__PURE__ */ e.createElement(_, {
|
|
94
|
-
segment:
|
|
95
|
+
segment: a,
|
|
95
96
|
className: t,
|
|
96
|
-
onClick:
|
|
97
|
-
...
|
|
98
|
-
placeholder:
|
|
97
|
+
onClick: s,
|
|
98
|
+
...c && {
|
|
99
|
+
placeholder: c
|
|
99
100
|
}
|
|
100
101
|
});
|
|
101
102
|
};
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
103
|
+
d.Hour = ee;
|
|
104
|
+
d.Minute = te;
|
|
105
|
+
d.Period = re;
|
|
105
106
|
r.Label = Y;
|
|
106
|
-
r.Time =
|
|
107
|
+
r.Time = d;
|
|
107
108
|
r.Description = W;
|
|
108
109
|
r.Error = X;
|
|
109
110
|
function ne(t) {
|
|
110
111
|
if (!t)
|
|
111
112
|
return null;
|
|
112
113
|
try {
|
|
113
|
-
return
|
|
114
|
+
return x(t);
|
|
114
115
|
} catch {
|
|
115
116
|
return null;
|
|
116
117
|
}
|
|
@@ -118,39 +119,39 @@ function ne(t) {
|
|
|
118
119
|
function ae(t) {
|
|
119
120
|
if (!t)
|
|
120
121
|
return null;
|
|
121
|
-
const n = String(t.hour).padStart(2, "0"), l = String(t.minute).padStart(2, "0"),
|
|
122
|
+
const n = String(t.hour).padStart(2, "0"), l = String(t.minute).padStart(2, "0"), a = String(t.second).padStart(2, "0");
|
|
122
123
|
return [
|
|
123
124
|
n,
|
|
124
125
|
l,
|
|
125
|
-
|
|
126
|
+
a
|
|
126
127
|
].join(":");
|
|
127
128
|
}
|
|
128
|
-
const oe = "
|
|
129
|
+
const oe = "_time_rzj2k_1", se = "_hour_rzj2k_14", le = "_minute_rzj2k_15", ie = "_period_rzj2k_16", h = {
|
|
129
130
|
time: oe,
|
|
130
131
|
hour: se,
|
|
131
132
|
minute: le,
|
|
132
133
|
period: ie
|
|
133
|
-
}, ce = ({ content: t, locale: n }) => /* @__PURE__ */ e.createElement(
|
|
134
|
+
}, ce = ({ content: t, locale: n }) => /* @__PURE__ */ e.createElement(v, {
|
|
134
135
|
content: t,
|
|
135
136
|
locale: n
|
|
136
137
|
}), me = () => {
|
|
137
138
|
const t = $(h.time);
|
|
138
139
|
return /* @__PURE__ */ e.createElement(r, null, /* @__PURE__ */ e.createElement(r.Label, {
|
|
139
|
-
className:
|
|
140
|
+
className: m(Q, f.label)
|
|
140
141
|
}, /* @__PURE__ */ e.createElement(r.Label.Required, {
|
|
141
|
-
className:
|
|
142
|
+
className: m(G, f.requiredMark)
|
|
142
143
|
})), /* @__PURE__ */ e.createElement(r.Time, {
|
|
143
144
|
className: t
|
|
144
145
|
}, /* @__PURE__ */ e.createElement(r.Time.Hour, {
|
|
145
|
-
className:
|
|
146
|
+
className: m(h.hour, T)
|
|
146
147
|
}), /* @__PURE__ */ e.createElement(r.Time.Minute, {
|
|
147
|
-
className:
|
|
148
|
+
className: m(h.minute, T)
|
|
148
149
|
}), /* @__PURE__ */ e.createElement(r.Time.Period, {
|
|
149
|
-
className:
|
|
150
|
+
className: m(h.period, T)
|
|
150
151
|
})), /* @__PURE__ */ e.createElement(r.Error, {
|
|
151
|
-
className:
|
|
152
|
+
className: m(J, f.error)
|
|
152
153
|
}, /* @__PURE__ */ e.createElement(Z, null), /* @__PURE__ */ e.createElement(r.Error.Text, null)), /* @__PURE__ */ e.createElement(r.Description, {
|
|
153
|
-
className:
|
|
154
|
+
className: m(K, f.description)
|
|
154
155
|
}, ce));
|
|
155
156
|
}, ge = () => /* @__PURE__ */ e.createElement(me, null);
|
|
156
157
|
export {
|
|
@@ -2,14 +2,14 @@ import { RicosViewer as N } from "@wix/ricos/viewer";
|
|
|
2
2
|
import i from "classnames";
|
|
3
3
|
import r, { useCallback as S, useRef as O } from "react";
|
|
4
4
|
import { TextField as y, Input as A } from "react-aria-components";
|
|
5
|
-
import { bh as d, be as E, bj as v, I as B, U as T, v as g, p as k } from "./form-
|
|
5
|
+
import { bh as d, be as E, bj as v, I as B, U as T, v as g, p as k } from "./form-BoHpaLjl.js";
|
|
6
6
|
import { f as c } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as M, E as P } from "./field-error-headless-
|
|
8
|
-
import { L as U } from "./field-label-headless-
|
|
7
|
+
import { D as M, E as P } from "./field-error-headless-Dgx4BHo5.js";
|
|
8
|
+
import { L as U } from "./field-label-headless-CsqtNbNm.js";
|
|
9
9
|
import { u as q } from "./use-invoke-callback-UH73A_J3.js";
|
|
10
10
|
import { E as x } from "./error-icon-hZxQ6DEy.js";
|
|
11
11
|
import { s as u } from "./field-rac.module-BIBNQEOK.js";
|
|
12
|
-
import { u as w } from "./use-text-input-class-name-
|
|
12
|
+
import { u as w } from "./use-text-input-class-name-D30YesHa.js";
|
|
13
13
|
const V = (t) => t ? `https://${String(t).replace(/^https?:\/\//, "")}` : "", e = ({ children: t }) => {
|
|
14
14
|
const { id: o, value: s, onChange: n, disabled: m, readOnly: a, required: l, hasError: I, onBlur: b, onFocus: f, FieldLayout: R } = d(), { labelId: F } = E(), p = q(b), L = c(t, e.Label), D = c(t, e.Input), C = c(t, e.Description), _ = c(t, e.Error), h = S(() => {
|
|
15
15
|
n(V(s)), p();
|
|
@@ -2,8 +2,8 @@ import d, { useContext as _, useRef as D, useState as m, Children as L, useLayou
|
|
|
2
2
|
import { CollectionRendererContext as g, DefaultCollectionRenderer as E, ListBox as N } from "react-aria-components";
|
|
3
3
|
import T from "classnames";
|
|
4
4
|
import { s as h } from "./field-rac.module-BIBNQEOK.js";
|
|
5
|
-
import { s as H } from "./form-
|
|
6
|
-
import { u as I } from "./use-element-state-class-name-
|
|
5
|
+
import { s as H } from "./form-BoHpaLjl.js";
|
|
6
|
+
import { u as I } from "./use-element-state-class-name-Cby7DA2T.js";
|
|
7
7
|
const R = 1 / 0, B = {
|
|
8
8
|
position: "absolute",
|
|
9
9
|
width: 0,
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { useContext as T, useMemo as a } from "react";
|
|
2
|
+
import { bb as p, an as O, b9 as _, F as s, t as i } from "./form-BoHpaLjl.js";
|
|
3
|
+
import { u } from "./use-hoverable-input-class-name-CKBvA8Gx.js";
|
|
4
|
+
const I = [
|
|
5
|
+
s.DROPDOWN,
|
|
6
|
+
s.DEXT_DROPDOWN,
|
|
7
|
+
s.SERVICES_DROPDOWN,
|
|
8
|
+
s.DATE_INPUT,
|
|
9
|
+
s.CONTACTS_BIRTHDATE,
|
|
10
|
+
s.DATE_TIME_INPUT,
|
|
11
|
+
s.DEXT_DATE_TIME_INPUT,
|
|
12
|
+
s.DATE_PICKER,
|
|
13
|
+
s.DEXT_DATE_PICKER
|
|
14
|
+
], d = [
|
|
15
|
+
s.PHONE,
|
|
16
|
+
s.CONTACTS_PHONE,
|
|
17
|
+
s.BOOKINGS_PHONE,
|
|
18
|
+
s.DEXT_PHONE
|
|
19
|
+
], N = [
|
|
20
|
+
s.MULTILINE_ADDRESS,
|
|
21
|
+
s.BOOKINGS_ADDRESS,
|
|
22
|
+
s.ECOM_ADDRESS
|
|
23
|
+
], P = ({ properties: o }) => {
|
|
24
|
+
var e, n, t, r;
|
|
25
|
+
return ((r = (t = (n = (e = o.validation) == null ? void 0 : e.string) == null ? void 0 : n.phoneOptions) == null ? void 0 : t.allowedCountryCodes) == null ? void 0 : r.length) !== 1;
|
|
26
|
+
}, S = ({ properties: o }) => {
|
|
27
|
+
var e, n;
|
|
28
|
+
return ((n = (e = o.fieldSettings) == null ? void 0 : e.country) == null ? void 0 : n.show) !== !1;
|
|
29
|
+
}, c = (o, e) => d.includes(o.fieldType) ? !e && P(o) : N.includes(o.fieldType) ? S(o) : I.includes(o.fieldType), l = (o, e) => c(o, e) && !o.properties.disabled && !o.properties.readOnly, A = (o) => {
|
|
30
|
+
var E;
|
|
31
|
+
const e = ((E = p().dropdown) == null ? void 0 : E.open) === !0, n = T(O), { isMobile: t = !1 } = _(), r = a(() => n && !n.parentId ? n.fields.filter((D) => l(D, t)).map((D) => D.id) : [], [
|
|
32
|
+
n,
|
|
33
|
+
t
|
|
34
|
+
]);
|
|
35
|
+
return e && r.includes(o);
|
|
36
|
+
}, w = (...o) => u(i, o);
|
|
37
|
+
export {
|
|
38
|
+
A as a,
|
|
39
|
+
w as u
|
|
40
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import p from "classnames";
|
|
2
|
-
import { ba as E, aJ as f } from "./form-
|
|
2
|
+
import { ba as E, aJ as f } from "./form-BoHpaLjl.js";
|
|
3
3
|
const J = ({ globalClasses: e, moduleClasses: c }) => {
|
|
4
4
|
var d;
|
|
5
5
|
const r = ((d = E(...f(e))) == null ? void 0 : d.split(/\s+/)) ?? [], h = [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { bh as i } from "./form-
|
|
1
|
+
import { bh as i } from "./form-BoHpaLjl.js";
|
|
2
2
|
import { s as e } from "./field-rac.module-BIBNQEOK.js";
|
|
3
|
-
import { u as m } from "./use-element-state-class-name-
|
|
3
|
+
import { u as m } from "./use-element-state-class-name-Cby7DA2T.js";
|
|
4
4
|
const d = (s, a) => {
|
|
5
5
|
const { disabled: t, readOnly: o } = i(), r = m({
|
|
6
6
|
globalClasses: s,
|
package/dist/component/{use-service-options-base-jkecu8jY.js → use-service-options-base-Px-Ey93X.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useState as o, useCallback as y, useEffect as m, useMemo as D } from "react";
|
|
2
|
-
import { bg as v } from "./form-
|
|
2
|
+
import { bg as v } from "./form-BoHpaLjl.js";
|
|
3
3
|
const k = (I) => {
|
|
4
4
|
const { fieldType: L, isEditor: t = !1, postProcessOptions: i, customFetchLogic: a, onInitialDataLoaded: n } = I, [O, g] = o(!1), [h, p] = o([]), [E, u] = o(!1), [c, f] = o(!1), s = v(L), r = y((e) => {
|
|
5
5
|
let d = e.map((l) => ({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/form-elements",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.130.0",
|
|
4
4
|
"description": "The Wix Forms rendering element for Builder apps, loaded at runtime as @wix/form-elements/Form",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -156,5 +156,5 @@
|
|
|
156
156
|
]
|
|
157
157
|
}
|
|
158
158
|
},
|
|
159
|
-
"falconPackageHash": "
|
|
159
|
+
"falconPackageHash": "bff872a056dc909f48f3a7fb086db08e6584b5b905de0e9abbc6c80a"
|
|
160
160
|
}
|