@wix/form-elements 1.127.0 → 1.129.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-BrC7gcpn.js → appointment-rac-BFrtR9Kx.js} +4 -4
- package/dist/component/{bookings-address-rac-D-UmBxjD.js → bookings-address-rac-BiOaHkHb.js} +1 -1
- package/dist/component/{bookings-email-rac-CjHDzU0Q.js → bookings-email-rac-AWVBomja.js} +1 -1
- package/dist/component/{bookings-first-name-rac-ChBkkkWm.js → bookings-first-name-rac-BVxrEBSC.js} +1 -1
- package/dist/component/{bookings-header-rac-ERfGeYyw.js → bookings-header-rac-DZWoWz45.js} +1 -1
- package/dist/component/{bookings-last-name-rac-CuTJ7Y8w.js → bookings-last-name-rac-wsOIAERt.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-pudlQ67l.js → bookings-login-bar-rac-BEFZtTeh.js} +1 -1
- package/dist/component/{bookings-phone-rac-nLPnLRfS.js → bookings-phone-rac-DClujcXK.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-DOmGQlyG.js → bookings-rich-text-rac-ghEjDW-p.js} +1 -1
- package/dist/component/{checkbox-field-rac-DLazY-iO.js → checkbox-field-rac-DvsNu9Rv.js} +4 -4
- package/dist/component/{checkbox-group-field-headless-CPyWmFBH.js → checkbox-group-field-headless-C9-35Ull.js} +3 -3
- package/dist/component/{checkbox-group-field-rac-Bir3gaI9.js → checkbox-group-field-rac-Cj09BgU-.js} +4 -4
- package/dist/component/{checkbox-group-rac-BGXUl-sJ.js → checkbox-group-rac-Buxfb0mq.js} +1 -1
- package/dist/component/{checkbox-rac-D_wZVUFV.js → checkbox-rac-DiHUcWo3.js} +1 -1
- package/dist/component/{contacts-address-rac-CNldSQbf.js → contacts-address-rac-P0OBiw6-.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-AVyldaRF.js → contacts-birthdate-rac-IDz3KjEo.js} +1 -1
- package/dist/component/{contacts-company-rac-CiP1Ctpa.js → contacts-company-rac-CC_USKNp.js} +1 -1
- package/dist/component/{contacts-email-rac-CzjMVEJZ.js → contacts-email-rac-BcRvtene.js} +1 -1
- package/dist/component/{contacts-first-name-rac-G0kE0HmA.js → contacts-first-name-rac-DsybqPgd.js} +1 -1
- package/dist/component/{contacts-last-name-rac-cnTTtnMZ.js → contacts-last-name-rac-BOKeJmHo.js} +1 -1
- package/dist/component/{contacts-phone-rac-DJ9oxox4.js → contacts-phone-rac-Dc_3ZdY_.js} +1 -1
- package/dist/component/{contacts-position-rac-e0uQ-eqL.js → contacts-position-rac-Bn5kybDQ.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-D4J2x78f.js → contacts-subscribe-rac-BouQEOeS.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-DwJuNH-C.js → contacts-tax-id-rac-DJFrxRyu.js} +1 -1
- package/dist/component/{date-availability-D2BSwZ_r.js → date-availability-CWfQIoX1.js} +1 -1
- package/dist/component/{date-input-field-rac-ztJ02C60.js → date-input-field-rac-CP15ihpI.js} +86 -86
- package/dist/component/{date-input-rac-D-SFsC6P.js → date-input-rac-Bf0H1oiA.js} +1 -1
- package/dist/component/{date-picker-field-rac-DaNwsa8z.js → date-picker-field-rac-SOddu2Zu.js} +92 -91
- package/dist/component/{date-picker-rac-Bn0sA6P1.js → date-picker-rac-BdRbAhSB.js} +1 -1
- package/dist/component/date-time-input-field-rac-Bj_uDj6E.js +427 -0
- package/dist/component/{date-time-input-rac-qYLa3IDx.js → date-time-input-rac-Mv_mEil2.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-Dir6tyvo.js → dext-checkbox-group-rac-8kR2EZfL.js} +2 -2
- package/dist/component/{dext-checkbox-rac-ByiMc3BH.js → dext-checkbox-rac-B5CWQuVt.js} +1 -1
- package/dist/component/{dext-date-picker-rac-BwOozu5y.js → dext-date-picker-rac-D_hbdOUB.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-CaJEzZa4.js → dext-date-time-input-rac-DJa6HIBI.js} +1 -1
- package/dist/component/{dext-dropdown-rac-DJnMjggU.js → dext-dropdown-rac-rUST_4lA.js} +1 -1
- package/dist/component/{dext-email-rac-CF4SQ86l.js → dext-email-rac-BN1-DKDv.js} +1 -1
- package/dist/component/{dext-number-input-rac--3goVI8C.js → dext-number-input-rac-CjoV2Zr-.js} +1 -1
- package/dist/component/{dext-phone-rac-MYJYG040.js → dext-phone-rac-BZK-MfUB.js} +1 -1
- package/dist/component/{dext-radio-group-rac-Q2J5Hk5W.js → dext-radio-group-rac-CdSOS1sE.js} +2 -2
- package/dist/component/{dext-rating-input-rac-CAWhD-lI.js → dext-rating-input-rac-DAZjknQn.js} +1 -1
- package/dist/component/{dext-tags-rac-DyxI5ooy.js → dext-tags-rac-ButsCV5O.js} +2 -2
- package/dist/component/{dext-text-area-rac-CZpM-r49.js → dext-text-area-rac-TKwYp5Cp.js} +1 -1
- package/dist/component/{dext-text-input-rac-Bv5Mhyw6.js → dext-text-input-rac-Clcifgwu.js} +1 -1
- package/dist/component/{dext-url-input-rac-BkbTjbAI.js → dext-url-input-rac-1oQFTxHV.js} +1 -1
- package/dist/component/{donation-rac-DZjFeJFy.js → donation-rac-Bh_D5aEJ.js} +5 -5
- package/dist/component/dropdown-field-headless-C-rtyAEo.js +91 -0
- package/dist/component/{dropdown-field-rac-DOAlecw8.js → dropdown-field-rac-Bo3lqJDR.js} +4 -4
- package/dist/component/{dropdown-rac-D8HtaeBe.js → dropdown-rac-C29h60zI.js} +1 -1
- package/dist/component/{ecom-address-rac-B25o-GVv.js → ecom-address-rac-gs7OAQTj.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-NvdWnD0v.js → ecom-subscription-checkbox-rac-CI9zbJqB.js} +2 -2
- package/dist/component/{email-input-field-rac-rWyojsu0.js → email-input-field-rac-D75vjW_1.js} +3 -3
- package/dist/component/{events-repeater-rac-D2HvNt0y.js → events-repeater-rac-UgCJlo2O.js} +4 -4
- package/dist/component/{events-rsvp-rac-D4WLn0Bx.js → events-rsvp-rac-D5YhJy0C.js} +3 -3
- package/dist/component/{field-error-headless-DU0YsEXR.js → field-error-headless-44vAUpwr.js} +1 -1
- package/dist/component/{field-label-headless-CvdTZi6i.js → field-label-headless-Cfo9v3VS.js} +1 -1
- package/dist/component/{file-upload-rac-CMelyfA8.js → file-upload-rac-B-rYIzhu.js} +4 -4
- package/dist/component/{fixed-payment-rac-CewsqE-k.js → fixed-payment-rac-CkbmX7hl.js} +3 -3
- package/dist/component/{form-D9IxiDXP.js → form-tScYihAT.js} +69 -69
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-CYBfb_5D.js → header-field-rac-BtKN5X7s.js} +2 -2
- package/dist/component/{header-rac-BIq3DmbL.js → header-rac-pmryP48d.js} +1 -1
- package/dist/component/{image-choice-rac-aOObRIMi.js → image-choice-rac-ByBjTccP.js} +4 -4
- package/dist/component/{index-D-g3wQ-z.js → index-DXsujvrm.js} +5 -5
- package/dist/component/{index-BXqA4oNj.js → index-Dyso3MNS.js} +2 -2
- package/dist/component/{isObjectLike-BNDXzCto.js → isObjectLike-CUj2YjST.js} +1 -1
- package/dist/component/{multiline-address-field-rac-BcTa7Von.js → multiline-address-field-rac-CkifK7lO.js} +7 -7
- package/dist/component/{multiline-address-rac-Cd_BFreP.js → multiline-address-rac-DfnDSoTY.js} +1 -1
- package/dist/component/non-modal-popover-D-u13tmp.js +64 -0
- package/dist/component/{number-input-field-rac-_JlH34_3.js → number-input-field-rac-BG8cRLXY.js} +4 -4
- package/dist/component/{number-input-rac-CiM20ScT.js → number-input-rac-Byuz2Nub.js} +1 -1
- package/dist/component/{password-rac-DrpXSY74.js → password-rac-BOus-ku5.js} +4 -4
- package/dist/component/{payment-input-rac-RnMeVWDc.js → payment-input-rac-D-CZ6cKL.js} +4 -4
- package/dist/component/{phone-input-field-rac-nNp7D7gK.js → phone-input-field-rac-DCfc-MrP.js} +7 -7
- package/dist/component/{phone-rac-B2JjPT2w.js → phone-rac-1J-t9-Og.js} +1 -1
- package/dist/component/{product-list-rac-Cv_fjFn3.js → product-list-rac-CJ1YZvV9.js} +4 -4
- package/dist/component/{quiz-radio-group-rac-CNqF6Tq3.js → quiz-radio-group-rac-C_JnWUd3.js} +1 -1
- package/dist/component/{radio-button-module-classes-vqR4TN-z.js → radio-button-module-classes-DWh_AiLg.js} +3 -3
- package/dist/component/{radio-group-field-rac-Bpyr40q-.js → radio-group-field-rac-Cp48ayde.js} +4 -4
- package/dist/component/{radio-group-rac-DBLPP0YC.js → radio-group-rac-B7jR2Rb-.js} +1 -1
- package/dist/component/{rating-input-field-rac-BOi0G37L.js → rating-input-field-rac-CHEWLp0k.js} +4 -4
- package/dist/component/{rating-input-rac-CxpmV0Pa.js → rating-input-rac-BX4osXZU.js} +1 -1
- package/dist/component/{rich-content-rac.module-Dmm9GyQq.js → rich-content-rac.module-Ce08oqQ9.js} +1 -1
- package/dist/component/{rich-text-field-rac-C466OrTf.js → rich-text-field-rac-Bi1SDfiU.js} +2 -2
- package/dist/component/{rich-text-rac-BvVxD7oJ.js → rich-text-rac-DdT8jmAf.js} +1 -1
- package/dist/component/{service-dropdown-rac-pmUKH0sP.js → service-dropdown-rac-DPeHyyz_.js} +5 -5
- package/dist/component/{services-multi-choice-rac-B65i6q2D.js → services-multi-choice-rac-CKdjXJR8.js} +5 -5
- package/dist/component/{signature-rac-BRyM06Vz.js → signature-rac-ffVbFXfs.js} +4 -4
- package/dist/component/{submit-button-rac-DaCRjZlQ.js → submit-button-rac-C55AG9QQ.js} +2 -2
- package/dist/component/{tags-field-rac-CEdfh-EQ.js → tags-field-rac-BO2-TOy4.js} +5 -5
- package/dist/component/{tags-rac-CGSTQ0qK.js → tags-rac-BkCC7NCe.js} +1 -1
- package/dist/component/{text-area-field-rac-C-EHPWwQ.js → text-area-field-rac-BwYibo91.js} +4 -4
- package/dist/component/{text-area-rac-Df1nSb2q.js → text-area-rac-DZdY4txw.js} +1 -1
- package/dist/component/{text-input-field-rac-DmCZtBi_.js → text-input-field-rac-WiCBhW6i.js} +3 -3
- package/dist/component/{text-input-headless-DAxEZP1P.js → text-input-headless-B3KeulEf.js} +3 -3
- package/dist/component/{text-input-rac-DgpO17dl.js → text-input-rac-BIyCqBJv.js} +1 -1
- package/dist/component/{time-input-rac-Dld_tLub.js → time-input-rac-CC4UwoED.js} +65 -64
- package/dist/component/{url-input-field-rac-DHZ6bpxZ.js → url-input-field-rac-OppUVl3A.js} +4 -4
- package/dist/component/{url-input-rac-CZlWy5RB.js → url-input-rac-B5_eh6hN.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-opBd-YJA.js → use-dropdown-option-class-name-Bgp-eVle.js} +2 -2
- package/dist/component/{use-dropdown-trigger-class-name-BGQH0WCO.js → use-dropdown-trigger-class-name-BjjdE7MT.js} +2 -2
- package/dist/component/{use-element-state-class-name-B2ecLjwN.js → use-element-state-class-name-BXqvGrEm.js} +1 -1
- package/dist/component/{use-hoverable-input-class-name-B42rAp82.js → use-hoverable-input-class-name-CFgJ095f.js} +2 -2
- package/dist/component/{use-service-options-base-D60-jNUT.js → use-service-options-base-Cspzf1ks.js} +1 -1
- package/dist/component/use-text-input-class-name-DUHXnnCn.js +6 -0
- package/package.json +2 -2
- package/dist/component/date-time-input-field-rac-D-ArMpcJ.js +0 -426
- package/dist/component/dropdown-field-headless-C7l2TQYy.js +0 -91
- package/dist/component/non-modal-popover-DtIMXHbe.js +0 -63
- package/dist/component/use-text-input-class-name-DGpCdZ_e.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-tScYihAT.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-44vAUpwr.js";
|
|
6
|
+
import { L as x } from "./field-label-headless-Cfo9v3VS.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-tScYihAT.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-44vAUpwr.js";
|
|
9
|
+
import { L as Y } from "./field-label-headless-Cfo9v3VS.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-DUHXnnCn.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-tScYihAT.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-44vAUpwr.js";
|
|
8
|
+
import { L as U } from "./field-label-headless-Cfo9v3VS.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-DUHXnnCn.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-tScYihAT.js";
|
|
6
|
+
import { u as I } from "./use-element-state-class-name-BXqvGrEm.js";
|
|
7
7
|
const R = 1 / 0, B = {
|
|
8
8
|
position: "absolute",
|
|
9
9
|
width: 0,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useContext as i, useMemo as u } from "react";
|
|
2
|
-
import { bb as T, an as p, b9 as O, F as s, t as _ } from "./form-
|
|
3
|
-
import { u as I } from "./use-hoverable-input-class-name-
|
|
2
|
+
import { bb as T, an as p, b9 as O, F as s, t as _ } from "./form-tScYihAT.js";
|
|
3
|
+
import { u as I } from "./use-hoverable-input-class-name-CFgJ095f.js";
|
|
4
4
|
const l = [
|
|
5
5
|
s.DROPDOWN,
|
|
6
6
|
s.DEXT_DROPDOWN,
|
|
@@ -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-tScYihAT.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-tScYihAT.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-BXqvGrEm.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-D60-jNUT.js → use-service-options-base-Cspzf1ks.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-tScYihAT.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.129.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": "14f0b0c27c4e467bf558303ea86bc9db042b892e2c19474aa812f85d"
|
|
160
160
|
}
|