@wix/form-elements 1.143.0 → 1.145.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-BAwonF75.js → appointment-rac-De-uH9rz.js} +93 -93
- package/dist/component/{bookings-address-rac-xhj2n7jK.js → bookings-address-rac-DB6QCMQJ.js} +1 -1
- package/dist/component/{bookings-email-rac-BGjeAwgm.js → bookings-email-rac-g6ZdB_BO.js} +1 -1
- package/dist/component/{bookings-first-name-rac-l392yYAU.js → bookings-first-name-rac-DQgL_VHl.js} +1 -1
- package/dist/component/{bookings-header-rac-JwIo7hsJ.js → bookings-header-rac-DAnIm-Oq.js} +1 -1
- package/dist/component/{bookings-last-name-rac-CJp81BPl.js → bookings-last-name-rac-D62jNdDb.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-BiPklGE_.js → bookings-login-bar-rac-5z8HfBhU.js} +1 -1
- package/dist/component/{bookings-phone-rac-mQfDJGkK.js → bookings-phone-rac-D0gu-_wy.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-BOfHn2EU.js → bookings-rich-text-rac-b4J1HcdI.js} +1 -1
- package/dist/component/{checkbox-field-rac-CA6SeM0c.js → checkbox-field-rac-CmRRc9Dz.js} +83 -83
- package/dist/component/{checkbox-group-field-headless-ChLT0zKA.js → checkbox-group-field-headless-CB8yAfMe.js} +61 -61
- package/dist/component/{checkbox-group-field-rac-_Fkre79S.js → checkbox-group-field-rac-C5gRZRTd.js} +4 -4
- package/dist/component/{checkbox-group-rac-esBLJZ6Y.js → checkbox-group-rac-DNDF1Irh.js} +1 -1
- package/dist/component/{checkbox-rac-C3vXtbJh.js → checkbox-rac-B9vztGBU.js} +1 -1
- package/dist/component/{contacts-address-rac-BuBBBt19.js → contacts-address-rac-CKZeSncj.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-BMBJeVOK.js → contacts-birthdate-rac-BbpNNQgF.js} +1 -1
- package/dist/component/{contacts-company-rac-CZl168-E.js → contacts-company-rac-BX2KT201.js} +1 -1
- package/dist/component/{contacts-email-rac-CJgVzCns.js → contacts-email-rac-5Irzx1mA.js} +1 -1
- package/dist/component/{contacts-first-name-rac-9ZNYKQeb.js → contacts-first-name-rac-CxKp8_2u.js} +1 -1
- package/dist/component/{contacts-last-name-rac-KgylQwHW.js → contacts-last-name-rac-BDCbSv5I.js} +1 -1
- package/dist/component/{contacts-phone-rac-DYr30FLP.js → contacts-phone-rac-BM_PV_uH.js} +1 -1
- package/dist/component/{contacts-position-rac-B9BZZ3K9.js → contacts-position-rac-1aqthQSi.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-DOQb2GLm.js → contacts-subscribe-rac-CdqXs4kp.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-cYE1ehXN.js → contacts-tax-id-rac-BKHpcDb6.js} +1 -1
- package/dist/component/{date-availability-BOKvA8w-.js → date-availability-DmFFTX8p.js} +1 -1
- package/dist/component/{date-input-field-rac-BwY53gNr.js → date-input-field-rac-BnlAOn12.js} +45 -45
- package/dist/component/{date-input-rac-Cgg4QJbB.js → date-input-rac-BB6qZ16w.js} +1 -1
- package/dist/component/{date-picker-field-rac-0Ue6uiCM.js → date-picker-field-rac-Ckwu2vD6.js} +11 -11
- package/dist/component/{date-picker-rac-CgICj33f.js → date-picker-rac-DSqzUAaH.js} +1 -1
- package/dist/component/{date-time-input-field-rac-ChRCMk7_.js → date-time-input-field-rac-DO-iRdkW.js} +21 -21
- package/dist/component/{date-time-input-rac-B8tRZrri.js → date-time-input-rac-smVCCxdY.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-B_qjx1QD.js → dext-checkbox-group-rac-B8bx3rT2.js} +4 -4
- package/dist/component/{dext-checkbox-rac-Bw9SyhHA.js → dext-checkbox-rac-x8VLGRbc.js} +1 -1
- package/dist/component/{dext-date-picker-rac-Bzn28zNq.js → dext-date-picker-rac-D2a9NXap.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-7Cuk3PoA.js → dext-date-time-input-rac-Cp5XjpGv.js} +1 -1
- package/dist/component/{dext-dropdown-rac-Md1VI5pc.js → dext-dropdown-rac-nWgEvyxt.js} +1 -1
- package/dist/component/{dext-email-rac-DbHwHGKz.js → dext-email-rac-CkX6ya8p.js} +1 -1
- package/dist/component/{dext-number-input-rac-DIVk3zXL.js → dext-number-input-rac-CKT0MS1x.js} +1 -1
- package/dist/component/{dext-phone-rac-ZIya63UJ.js → dext-phone-rac-DM2E7zW_.js} +1 -1
- package/dist/component/{dext-radio-group-rac-DV1xHkOD.js → dext-radio-group-rac-Czr5yY3K.js} +4 -4
- package/dist/component/{dext-rating-input-rac-YRIYgeT4.js → dext-rating-input-rac-CKWNpFuu.js} +1 -1
- package/dist/component/{dext-tags-rac-DTJ6Pz_x.js → dext-tags-rac-6AskGGTp.js} +4 -4
- package/dist/component/{dext-text-area-rac-V-d9i95A.js → dext-text-area-rac-ClGLD7sD.js} +1 -1
- package/dist/component/{dext-text-input-rac-ccrundX-.js → dext-text-input-rac-Blbk53d4.js} +1 -1
- package/dist/component/{dext-url-input-rac-Bd5SZ2U4.js → dext-url-input-rac-BuitmJU0.js} +1 -1
- package/dist/component/{donation-rac-BFmpW-3b.js → donation-rac-DOifFCD7.js} +52 -52
- package/dist/component/{dropdown-field-headless-C2qgeReH.js → dropdown-field-headless-m2P6s7X5.js} +22 -22
- package/dist/component/{dropdown-field-rac-Bj1YSgpT.js → dropdown-field-rac-5e6wWJBl.js} +4 -4
- package/dist/component/{dropdown-rac-DfdvX5I5.js → dropdown-rac-BGxE9pJB.js} +1 -1
- package/dist/component/{ecom-address-rac-DOWNQhhX.js → ecom-address-rac-kbD9qW5Y.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-2ELdC1ql.js → ecom-subscription-checkbox-rac-CE-Yixnj.js} +5 -5
- package/dist/component/{email-input-field-rac-CY0U6vEM.js → email-input-field-rac-CbwcB33o.js} +46 -46
- package/dist/component/{events-repeater-rac-C2oo_RZt.js → events-repeater-rac-CGhUscBr.js} +4 -4
- package/dist/component/{events-rsvp-rac-BrimIo0r.js → events-rsvp-rac-AQ33zPTe.js} +3 -3
- package/dist/component/{field-error-headless-r0fX50xw.js → field-error-headless-ClPQ03Jc.js} +9 -9
- package/dist/component/field-label-headless-DhN8Lkuq.js +52 -0
- package/dist/component/{file-upload-rac-Beb2BcFK.js → file-upload-rac-yTx1ZRhZ.js} +53 -53
- package/dist/component/{fixed-payment-rac-DGFWYMZG.js → fixed-payment-rac-nlyxa9nB.js} +12 -12
- package/dist/component/{form-DtzwuBIo.js → form-D3iU18lh.js} +2386 -2352
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +2 -2
- package/dist/component/{header-field-rac-CVmGSa0E.js → header-field-rac-DAEzcleV.js} +4 -4
- package/dist/component/{header-rac-C3AEJmYN.js → header-rac-CJZ4qMFg.js} +1 -1
- package/dist/component/{image-choice-rac-Ch-mxLgP.js → image-choice-rac-BFAMHwPh.js} +10 -10
- package/dist/component/{index-CTn6AQ3A.js → index-DQW26cnX.js} +2 -2
- package/dist/component/{index-CmqLlW8X.js → index-W7GOFnq8.js} +43 -43
- package/dist/component/{isObjectLike-iyypwAQL.js → isObjectLike-CE8eaxSI.js} +7 -7
- package/dist/component/{multiline-address-field-rac-DJXcb6NG.js → multiline-address-field-rac-FbJO0HFf.js} +94 -94
- package/dist/component/{multiline-address-rac-DcZgTx1c.js → multiline-address-rac-CI-vt6Pm.js} +1 -1
- package/dist/component/{number-input-field-rac-W3TqQGhC.js → number-input-field-rac-BRVAr7LL.js} +21 -21
- package/dist/component/{number-input-rac-CdXigsba.js → number-input-rac-C8hCiJiu.js} +1 -1
- package/dist/component/{password-rac-Dph6984u.js → password-rac-Baslr6Ga.js} +7 -7
- package/dist/component/{payment-input-rac-D5ARk1lF.js → payment-input-rac-CfJSKxYz.js} +17 -17
- package/dist/component/{phone-input-field-rac-BUfe-B2i.js → phone-input-field-rac-Dqh4CXdC.js} +24 -24
- package/dist/component/{phone-rac-DTiWT1uy.js → phone-rac-DaLuGuxd.js} +1 -1
- package/dist/component/{product-list-rac-1_Q2JYwH.js → product-list-rac-PNMwRBtL.js} +31 -31
- package/dist/component/{quiz-radio-group-rac-iyBhi0wJ.js → quiz-radio-group-rac-DN8vY-oM.js} +1 -1
- package/dist/component/{radio-button-module-classes-DwfobXBe.js → radio-button-module-classes-DlJi9a2f.js} +11 -11
- package/dist/component/{radio-group-field-rac-BkKNVwMi.js → radio-group-field-rac-C0tLXhl5.js} +4 -4
- package/dist/component/{radio-group-rac-CH0nkJ8V.js → radio-group-rac-FAk7PYgP.js} +1 -1
- package/dist/component/{rating-input-field-rac-CUUUlgZi.js → rating-input-field-rac-Cl1kH_uu.js} +12 -12
- package/dist/component/{rating-input-rac-8yEiqBR5.js → rating-input-rac-D9p-0pkI.js} +1 -1
- package/dist/component/{rich-content-rac.module-DeKU0pwh.js → rich-content-rac.module-Dkr46kPC.js} +3 -3
- package/dist/component/{rich-text-field-rac-Cwd-RWTi.js → rich-text-field-rac-DthhTvTp.js} +4 -4
- package/dist/component/{rich-text-rac-C5-jPNYP.js → rich-text-rac-DqZX4NeB.js} +1 -1
- package/dist/component/{service-dropdown-rac-DBGAnsut.js → service-dropdown-rac-BMOGLU2Z.js} +30 -30
- package/dist/component/{services-multi-choice-rac-CqEoGsuw.js → services-multi-choice-rac-DcdUewzJ.js} +5 -5
- package/dist/component/{signature-rac-Cq3y66Cr.js → signature-rac-BRvN6kUW.js} +37 -37
- package/dist/component/submit-button-rac-B70UC8eS.js +228 -0
- package/dist/component/{tags-field-rac-CpJ0O9f_.js → tags-field-rac-NpYyV8X4.js} +16 -16
- package/dist/component/{tags-rac-BPjw67Po.js → tags-rac-BMEbpJ-z.js} +1 -1
- package/dist/component/{text-area-field-rac-BG6MJuIW.js → text-area-field-rac-BLSrNwJ6.js} +9 -9
- package/dist/component/{text-area-rac-BAS4F4VC.js → text-area-rac-Cm7aAfIz.js} +1 -1
- package/dist/component/{text-input-field-rac-BhMktcEd.js → text-input-field-rac-BDqV7s0M.js} +3 -3
- package/dist/component/{text-input-headless-Bpjd70nh.js → text-input-headless-B0jcwDev.js} +7 -7
- package/dist/component/{text-input-rac-Bj21XKGA.js → text-input-rac-Cc_SkCCS.js} +1 -1
- package/dist/component/{time-input-rac-DBpRHdnX.js → time-input-rac-DDCiAFe2.js} +33 -33
- package/dist/component/{url-input-field-rac-B_EMXVWh.js → url-input-field-rac-jen6pbz7.js} +24 -24
- package/dist/component/{url-input-rac-D0Ck-9KV.js → url-input-rac-BWh6udtS.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-CkpHwC6t.js → use-dropdown-option-class-name-OD8brKoy.js} +2 -2
- package/dist/component/{use-dropdown-trigger-class-name-DmDwpAVn.js → use-dropdown-trigger-class-name-BrkmG0ad.js} +4 -4
- package/dist/component/{use-element-state-class-name-BrgdwHYP.js → use-element-state-class-name-B1r_nXW1.js} +3 -3
- package/dist/component/{use-hoverable-input-class-name-qVo45l-t.js → use-hoverable-input-class-name-B-FhrcyQ.js} +6 -6
- package/dist/component/{use-service-options-base-Dlqs4p0Z.js → use-service-options-base-CTA_43F3.js} +1 -1
- package/dist/component/use-text-input-class-name-BXuk3TK7.js +6 -0
- package/dist/form.d.ts +36 -0
- package/package.json +2 -2
- package/dist/component/field-label-headless-D-kCfg8j.js +0 -52
- package/dist/component/submit-button-rac-CKM7yUL4.js +0 -172
- package/dist/component/use-text-input-class-name-CP2VJOso.js +0 -6
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
import t, { useRef as X, useCallback as y } from "react";
|
|
2
|
+
import $ from "@wix/editor-react-components/AnimatedIcon";
|
|
3
|
+
import p from "classnames";
|
|
4
|
+
import { bn as b, bh as j, ah as q, ag as z, ae as G, ad as J, am as K, al as Q, af as Y, b as Z, ac as tt, ak as et } from "./form-D3iU18lh.js";
|
|
5
|
+
import { ProgressBar as nt, Button as R } from "react-aria-components";
|
|
6
|
+
import { f as l } from "./find-child-C60k4CxG.js";
|
|
7
|
+
import { u as x } from "./use-element-state-class-name-B1r_nXW1.js";
|
|
8
|
+
function ot(e) {
|
|
9
|
+
const s = "calc(50% - 2px)";
|
|
10
|
+
return /* @__PURE__ */ t.createElement(nt, {
|
|
11
|
+
...e,
|
|
12
|
+
isIndeterminate: !0
|
|
13
|
+
}, ({ percentage: n, isIndeterminate: a }) => /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("svg", {
|
|
14
|
+
fill: "none",
|
|
15
|
+
width: "100%",
|
|
16
|
+
height: "100%",
|
|
17
|
+
viewBox: "0 0 32 32"
|
|
18
|
+
}, /* @__PURE__ */ t.createElement("circle", {
|
|
19
|
+
cx: "50%",
|
|
20
|
+
cy: "50%",
|
|
21
|
+
r: s
|
|
22
|
+
}), /* @__PURE__ */ t.createElement("circle", {
|
|
23
|
+
cx: "50%",
|
|
24
|
+
cy: "50%",
|
|
25
|
+
r: s,
|
|
26
|
+
// Normalize the path length to 100 so we can easily set stroke-dasharray/-offset to a percentage.
|
|
27
|
+
pathLength: "100",
|
|
28
|
+
strokeDasharray: a || n == null ? "25 100" : "100 100",
|
|
29
|
+
strokeDashoffset: a || n == null ? 0 : 100 - n,
|
|
30
|
+
strokeLinecap: "round"
|
|
31
|
+
}, a && /* @__PURE__ */ t.createElement("animateTransform", {
|
|
32
|
+
attributeName: "transform",
|
|
33
|
+
type: "rotate",
|
|
34
|
+
// Rotate around the circle's own center (viewBox is 32x32), not the SVG origin.
|
|
35
|
+
values: "0 16 16;360 16 16",
|
|
36
|
+
dur: "0.75s",
|
|
37
|
+
repeatCount: "indefinite"
|
|
38
|
+
})))));
|
|
39
|
+
}
|
|
40
|
+
const r = ({ children: e }) => {
|
|
41
|
+
const { id: o, FieldLayout: s } = b(), n = l(e, r.SubmitButton);
|
|
42
|
+
return /* @__PURE__ */ t.createElement(s, {
|
|
43
|
+
fieldId: o,
|
|
44
|
+
renderLabel: () => null,
|
|
45
|
+
renderInput: () => /* @__PURE__ */ t.createElement(t.Fragment, null, n),
|
|
46
|
+
renderDescription: () => null
|
|
47
|
+
});
|
|
48
|
+
}, g = ({ className: e, children: o }) => {
|
|
49
|
+
const s = l(o, S), n = l(o, E), a = l(o, v);
|
|
50
|
+
return /* @__PURE__ */ t.createElement("div", {
|
|
51
|
+
className: e
|
|
52
|
+
}, s, n, a);
|
|
53
|
+
}, S = ({ className: e, onHoverStart: o, onHoverEnd: s, children: n }) => {
|
|
54
|
+
const { showPreviousButton: a, onPreviousClick: c, previousText: B } = b();
|
|
55
|
+
if (!a)
|
|
56
|
+
return null;
|
|
57
|
+
const i = l(n, S.Label), m = l(n, S.Icon);
|
|
58
|
+
return /* @__PURE__ */ t.createElement(R, {
|
|
59
|
+
className: e,
|
|
60
|
+
"aria-label": B,
|
|
61
|
+
onPress: c,
|
|
62
|
+
onHoverStart: o,
|
|
63
|
+
onHoverEnd: s
|
|
64
|
+
}, m, i ?? /* @__PURE__ */ t.createElement(W, null));
|
|
65
|
+
}, E = ({ className: e, onHoverStart: o, onHoverEnd: s, children: n }) => {
|
|
66
|
+
const { showNextButton: a, onNextClick: c, nextText: B } = b();
|
|
67
|
+
if (!a)
|
|
68
|
+
return null;
|
|
69
|
+
const i = l(n, E.Label), m = l(n, E.Icon);
|
|
70
|
+
return /* @__PURE__ */ t.createElement(R, {
|
|
71
|
+
className: e,
|
|
72
|
+
"aria-label": B,
|
|
73
|
+
onPress: c,
|
|
74
|
+
onHoverStart: o,
|
|
75
|
+
onHoverEnd: s
|
|
76
|
+
}, i ?? /* @__PURE__ */ t.createElement(V, null), m);
|
|
77
|
+
}, v = ({ className: e, onHoverStart: o, onHoverEnd: s, children: n }) => {
|
|
78
|
+
const { showSubmitButton: a, onSubmitClick: c, submitText: B, isDisabled: i, isInProgress: m, isSubmitting: C } = b();
|
|
79
|
+
if (!a)
|
|
80
|
+
return null;
|
|
81
|
+
const f = l(n, v.Label), I = l(n, v.Icon), d = l(n, v.Loader), _ = C || m;
|
|
82
|
+
return /* @__PURE__ */ t.createElement(R, {
|
|
83
|
+
className: e,
|
|
84
|
+
"aria-label": B,
|
|
85
|
+
onPress: _ ? void 0 : c,
|
|
86
|
+
onHoverStart: o,
|
|
87
|
+
onHoverEnd: s,
|
|
88
|
+
isDisabled: i && !_,
|
|
89
|
+
"aria-disabled": _ || void 0,
|
|
90
|
+
"data-in-progress": m
|
|
91
|
+
}, m && d ? d : /* @__PURE__ */ t.createElement(t.Fragment, null, f ?? /* @__PURE__ */ t.createElement(D, null), I));
|
|
92
|
+
}, D = ({ className: e }) => {
|
|
93
|
+
const { submitText: o } = b();
|
|
94
|
+
return /* @__PURE__ */ t.createElement("span", {
|
|
95
|
+
className: e
|
|
96
|
+
}, o);
|
|
97
|
+
}, W = ({ className: e }) => {
|
|
98
|
+
const { previousText: o } = b();
|
|
99
|
+
return /* @__PURE__ */ t.createElement("span", {
|
|
100
|
+
className: e
|
|
101
|
+
}, o);
|
|
102
|
+
}, V = ({ className: e }) => {
|
|
103
|
+
const { nextText: o } = b();
|
|
104
|
+
return /* @__PURE__ */ t.createElement("span", {
|
|
105
|
+
className: e
|
|
106
|
+
}, o);
|
|
107
|
+
}, h = ({ children: e }) => /* @__PURE__ */ t.createElement(t.Fragment, null, e), st = ({ className: e }) => /* @__PURE__ */ t.createElement("span", {
|
|
108
|
+
className: e
|
|
109
|
+
}, /* @__PURE__ */ t.createElement(ot, null));
|
|
110
|
+
v.Label = D;
|
|
111
|
+
v.Icon = h;
|
|
112
|
+
v.Loader = st;
|
|
113
|
+
S.Label = W;
|
|
114
|
+
S.Icon = h;
|
|
115
|
+
E.Label = V;
|
|
116
|
+
E.Icon = h;
|
|
117
|
+
g.PreviousButton = S;
|
|
118
|
+
g.NextButton = E;
|
|
119
|
+
g.SubmitButton = v;
|
|
120
|
+
r.SubmitButton = g;
|
|
121
|
+
const at = "_navigationContainer_s99vs_1", rt = "_rowSpacing_s99vs_6", ut = "_navigationButton_s99vs_10", lt = "_nextButton_s99vs_33", ct = "_previousButton_s99vs_59", it = "_navigationButtonHover_s99vs_100", mt = "_button_s99vs_116", vt = "_buttonNoSteps_s99vs_164", bt = "_buttonWithSteps_s99vs_168", Bt = "_buttonHover_s99vs_172", St = "_progress_s99vs_196", u = {
|
|
122
|
+
navigationContainer: at,
|
|
123
|
+
rowSpacing: rt,
|
|
124
|
+
navigationButton: ut,
|
|
125
|
+
nextButton: lt,
|
|
126
|
+
previousButton: ct,
|
|
127
|
+
navigationButtonHover: it,
|
|
128
|
+
button: mt,
|
|
129
|
+
buttonNoSteps: vt,
|
|
130
|
+
buttonWithSteps: bt,
|
|
131
|
+
buttonHover: Bt,
|
|
132
|
+
progress: St
|
|
133
|
+
}, P = () => {
|
|
134
|
+
const e = X(null), o = y(() => {
|
|
135
|
+
var n;
|
|
136
|
+
return (n = e.current) == null ? void 0 : n.runAnimationForward();
|
|
137
|
+
}, []), s = y(() => {
|
|
138
|
+
var n;
|
|
139
|
+
return (n = e.current) == null ? void 0 : n.runAnimationBackward();
|
|
140
|
+
}, []);
|
|
141
|
+
return {
|
|
142
|
+
iconRef: e,
|
|
143
|
+
onHoverStart: o,
|
|
144
|
+
onHoverEnd: s
|
|
145
|
+
};
|
|
146
|
+
}, O = ({ icon: e, iconRef: o, iconClassName: s }) => {
|
|
147
|
+
const { wix: n, className: a, ...c } = e ?? {};
|
|
148
|
+
return c.svg ? /* @__PURE__ */ t.createElement($, {
|
|
149
|
+
...c,
|
|
150
|
+
ref: o,
|
|
151
|
+
className: p(Z, s, a)
|
|
152
|
+
}) : null;
|
|
153
|
+
}, Et = () => {
|
|
154
|
+
var A, F, U, w, M, k;
|
|
155
|
+
const { hasSteps: e, showPreviousButton: o, isDisabled: s, isInProgress: n, isSubmitting: a } = b(), B = !s && !(a || n), i = j(), m = (F = (A = i.submitButton) == null ? void 0 : A.elementProps) == null ? void 0 : F.icon, C = (w = (U = i.nextButton) == null ? void 0 : U.elementProps) == null ? void 0 : w.icon, f = (k = (M = i.previousButton) == null ? void 0 : M.elementProps) == null ? void 0 : k.icon, I = x({
|
|
156
|
+
globalClasses: Y,
|
|
157
|
+
moduleClasses: {
|
|
158
|
+
base: p(u.navigationButton, u.previousButton),
|
|
159
|
+
hover: u.navigationButtonHover
|
|
160
|
+
}
|
|
161
|
+
}), d = x({
|
|
162
|
+
globalClasses: tt,
|
|
163
|
+
moduleClasses: {
|
|
164
|
+
base: p(u.navigationButton, u.nextButton),
|
|
165
|
+
hover: u.navigationButtonHover
|
|
166
|
+
}
|
|
167
|
+
}), _ = x({
|
|
168
|
+
globalClasses: et,
|
|
169
|
+
moduleClasses: {
|
|
170
|
+
base: p(u.button, {
|
|
171
|
+
[u.buttonNoSteps]: !e,
|
|
172
|
+
[u.buttonWithSteps]: e
|
|
173
|
+
}),
|
|
174
|
+
hover: u.buttonHover
|
|
175
|
+
}
|
|
176
|
+
}), H = P(), L = P(), T = P();
|
|
177
|
+
return /* @__PURE__ */ t.createElement(r, null, /* @__PURE__ */ t.createElement(r.SubmitButton, {
|
|
178
|
+
className: p({
|
|
179
|
+
[u.navigationContainer]: e,
|
|
180
|
+
[u.rowSpacing]: o
|
|
181
|
+
})
|
|
182
|
+
}, /* @__PURE__ */ t.createElement(r.SubmitButton.PreviousButton, {
|
|
183
|
+
className: ({ isHovered: N }) => I({
|
|
184
|
+
isSelected: !1,
|
|
185
|
+
isHovered: N
|
|
186
|
+
}),
|
|
187
|
+
onHoverStart: T.onHoverStart,
|
|
188
|
+
onHoverEnd: T.onHoverEnd
|
|
189
|
+
}, /* @__PURE__ */ t.createElement(r.SubmitButton.PreviousButton.Label, {
|
|
190
|
+
className: q
|
|
191
|
+
}), /* @__PURE__ */ t.createElement(r.SubmitButton.PreviousButton.Icon, null, /* @__PURE__ */ t.createElement(O, {
|
|
192
|
+
icon: f,
|
|
193
|
+
iconRef: T.iconRef,
|
|
194
|
+
iconClassName: z
|
|
195
|
+
}))), /* @__PURE__ */ t.createElement(r.SubmitButton.NextButton, {
|
|
196
|
+
className: ({ isHovered: N }) => d({
|
|
197
|
+
isSelected: !1,
|
|
198
|
+
isHovered: N
|
|
199
|
+
}),
|
|
200
|
+
onHoverStart: L.onHoverStart,
|
|
201
|
+
onHoverEnd: L.onHoverEnd
|
|
202
|
+
}, /* @__PURE__ */ t.createElement(r.SubmitButton.NextButton.Label, {
|
|
203
|
+
className: G
|
|
204
|
+
}), /* @__PURE__ */ t.createElement(r.SubmitButton.NextButton.Icon, null, /* @__PURE__ */ t.createElement(O, {
|
|
205
|
+
icon: C,
|
|
206
|
+
iconRef: L.iconRef,
|
|
207
|
+
iconClassName: J
|
|
208
|
+
}))), /* @__PURE__ */ t.createElement(r.SubmitButton.SubmitButton, {
|
|
209
|
+
className: ({ isHovered: N }) => _({
|
|
210
|
+
isSelected: !1,
|
|
211
|
+
isHovered: N,
|
|
212
|
+
isInteractive: B
|
|
213
|
+
}),
|
|
214
|
+
onHoverStart: H.onHoverStart,
|
|
215
|
+
onHoverEnd: H.onHoverEnd
|
|
216
|
+
}, /* @__PURE__ */ t.createElement(r.SubmitButton.SubmitButton.Label, {
|
|
217
|
+
className: K
|
|
218
|
+
}), /* @__PURE__ */ t.createElement(r.SubmitButton.SubmitButton.Icon, null, /* @__PURE__ */ t.createElement(O, {
|
|
219
|
+
icon: m,
|
|
220
|
+
iconRef: H.iconRef,
|
|
221
|
+
iconClassName: Q
|
|
222
|
+
})), /* @__PURE__ */ t.createElement(r.SubmitButton.SubmitButton.Loader, {
|
|
223
|
+
className: u.progress
|
|
224
|
+
}))));
|
|
225
|
+
}, It = () => /* @__PURE__ */ t.createElement(Et, null);
|
|
226
|
+
export {
|
|
227
|
+
It as SubmitButtonRAC
|
|
228
|
+
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { RicosViewer as w } from "@wix/ricos/viewer";
|
|
2
2
|
import F from "classnames";
|
|
3
|
-
import t, { useMemo as I, useState as z, useRef as
|
|
3
|
+
import t, { useMemo as I, useState as z, useRef as k, useLayoutEffect as B, useCallback as x } from "react";
|
|
4
4
|
import { CheckboxGroup as J, TextField as K, Input as X, CheckboxField as Y, CheckboxButton as Z } from "react-aria-components";
|
|
5
|
-
import {
|
|
6
|
-
import { f as O, a as
|
|
7
|
-
import { E as W, D as H } from "./field-error-headless-
|
|
8
|
-
import { L as $ } from "./field-label-headless-
|
|
5
|
+
import { bn as D, bk as M, bx as S, bp as U, R as ee, $ as te, a9 as ne, G as oe, u as ae, aa as re } from "./form-D3iU18lh.js";
|
|
6
|
+
import { f as O, a as N } from "./find-child-C60k4CxG.js";
|
|
7
|
+
import { E as W, D as H } from "./field-error-headless-ClPQ03Jc.js";
|
|
8
|
+
import { L as $ } from "./field-label-headless-DhN8Lkuq.js";
|
|
9
9
|
import { F as se } from "./fieldset-headless-CD3fds9J.js";
|
|
10
10
|
import { E as le } from "./error-icon-hZxQ6DEy.js";
|
|
11
11
|
import { s as y } from "./field-rac.module-DfEb7pBp.js";
|
|
12
|
-
import { u as ie } from "./use-element-state-class-name-
|
|
13
|
-
import { u as ce } from "./use-text-input-class-name-
|
|
12
|
+
import { u as ie } from "./use-element-state-class-name-B1r_nXW1.js";
|
|
13
|
+
import { u as ce } from "./use-text-input-class-name-BXuk3TK7.js";
|
|
14
14
|
var ue = /* @__PURE__ */ (function(e) {
|
|
15
15
|
return e[e.FREE_FLOW = 0] = "FREE_FLOW", e[e.ONE = 1] = "ONE", e[e.TWO = 2] = "TWO", e[e.THREE = 3] = "THREE", e;
|
|
16
16
|
})({});
|
|
@@ -26,11 +26,11 @@ const v = "Other", de = (e, n) => {
|
|
|
26
26
|
const { value: n, onChange: r, addOtherLabel: i, addOtherPlaceholder: s, otherInputCharacterLimit: l, disabled: u, readOnly: m, hasError: d } = D(), { t: p } = S(), o = i || p("add-other.default-other-option-label") || v, b = I(() => de(n || [], o), [
|
|
27
27
|
n,
|
|
28
28
|
o
|
|
29
|
-
]), [c, L] = z(b), f =
|
|
29
|
+
]), [c, L] = z(b), f = k(r);
|
|
30
30
|
B(() => {
|
|
31
31
|
f.current = r;
|
|
32
32
|
});
|
|
33
|
-
const g =
|
|
33
|
+
const g = x((h) => {
|
|
34
34
|
L(h);
|
|
35
35
|
const C = (n || []).filter((E) => !E.startsWith(`${o}:`) && E !== o), _ = h ? `${o}: ${h}` : o;
|
|
36
36
|
f.current([
|
|
@@ -56,7 +56,7 @@ const v = "Other", de = (e, n) => {
|
|
|
56
56
|
className: e
|
|
57
57
|
}));
|
|
58
58
|
}, T = ({ children: e, className: n, ...r }) => {
|
|
59
|
-
const { value: i, label: s, isOther: l, isFirstOption: u } = r, { id: m, value: d, onChange: p, options: o, disabled: b, readOnly: c, hasError: L } = D(), f =
|
|
59
|
+
const { value: i, label: s, isOther: l, isFirstOption: u } = r, { id: m, value: d, onChange: p, options: o, disabled: b, readOnly: c, hasError: L } = D(), f = k(null);
|
|
60
60
|
U(() => {
|
|
61
61
|
var E;
|
|
62
62
|
u && ((E = f.current) == null || E.focus({
|
|
@@ -70,8 +70,8 @@ const v = "Other", de = (e, n) => {
|
|
|
70
70
|
h,
|
|
71
71
|
s,
|
|
72
72
|
i
|
|
73
|
-
]), _ =
|
|
74
|
-
const
|
|
73
|
+
]), _ = x((E) => {
|
|
74
|
+
const Q = me(o || []), A = h.filter((j) => Q.includes(j));
|
|
75
75
|
p(E ? [
|
|
76
76
|
...A,
|
|
77
77
|
s
|
|
@@ -92,7 +92,7 @@ const v = "Other", de = (e, n) => {
|
|
|
92
92
|
}, /* @__PURE__ */ t.createElement(Z, {
|
|
93
93
|
className: n,
|
|
94
94
|
"data-hook": `tags-${l ? v : i}`
|
|
95
|
-
},
|
|
95
|
+
}, N(g, {
|
|
96
96
|
value: i,
|
|
97
97
|
label: s,
|
|
98
98
|
isOther: l,
|
|
@@ -119,7 +119,7 @@ const v = "Other", de = (e, n) => {
|
|
|
119
119
|
"data-columns": l
|
|
120
120
|
}, p.map((o, b) => {
|
|
121
121
|
const c = o.value ?? o.label;
|
|
122
|
-
return
|
|
122
|
+
return N(d, {
|
|
123
123
|
key: o.isOther ? v : c,
|
|
124
124
|
value: c,
|
|
125
125
|
label: o.label,
|
|
@@ -185,7 +185,7 @@ const pe = "_control_t6hu2_1", he = "_options_t6hu2_7", Ee = "_option_t6hu2_7",
|
|
|
185
185
|
base: R.option,
|
|
186
186
|
selected: R.optionSelected,
|
|
187
187
|
hover: R.optionHover
|
|
188
|
-
},
|
|
188
|
+
}, ke = () => {
|
|
189
189
|
const e = ie({
|
|
190
190
|
globalClasses: re,
|
|
191
191
|
moduleClasses: Ie
|
|
@@ -209,5 +209,5 @@ const pe = "_control_t6hu2_1", he = "_options_t6hu2_7", Ee = "_option_t6hu2_7",
|
|
|
209
209
|
}, fe));
|
|
210
210
|
};
|
|
211
211
|
export {
|
|
212
|
-
|
|
212
|
+
ke as T
|
|
213
213
|
};
|
|
@@ -2,13 +2,13 @@ import { RicosViewer as N } from "@wix/ricos/viewer";
|
|
|
2
2
|
import o from "classnames";
|
|
3
3
|
import r, { useCallback as T, useRef as O } from "react";
|
|
4
4
|
import { TextField as S, TextArea as y } from "react-aria-components";
|
|
5
|
-
import {
|
|
5
|
+
import { bn as p, bk as d, bp as x, R as g, $ as h, G as v, u as M } from "./form-D3iU18lh.js";
|
|
6
6
|
import { f as i } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as q, E as B } from "./field-error-headless-
|
|
8
|
-
import { L as k } from "./field-label-headless-
|
|
7
|
+
import { D as q, E as B } from "./field-error-headless-ClPQ03Jc.js";
|
|
8
|
+
import { L as k } from "./field-label-headless-DhN8Lkuq.js";
|
|
9
9
|
import { E as P } from "./error-icon-hZxQ6DEy.js";
|
|
10
10
|
import { s as c } from "./field-rac.module-DfEb7pBp.js";
|
|
11
|
-
import { u as V } from "./use-text-input-class-name-
|
|
11
|
+
import { u as V } from "./use-text-input-class-name-BXuk3TK7.js";
|
|
12
12
|
const e = ({ children: t }) => {
|
|
13
13
|
const { id: a, value: m, onChange: s, disabled: u, required: n, readOnly: l, onBlur: E, onFocus: b, FieldLayout: I, hasError: f } = p(), { labelId: R } = d(), F = T((A) => {
|
|
14
14
|
s(A);
|
|
@@ -48,13 +48,13 @@ e.Label = k;
|
|
|
48
48
|
e.Input = $;
|
|
49
49
|
e.Description = q;
|
|
50
50
|
e.Error = B;
|
|
51
|
-
const
|
|
52
|
-
input:
|
|
53
|
-
},
|
|
51
|
+
const w = "_input_ug5v8_1", G = {
|
|
52
|
+
input: w
|
|
53
|
+
}, Q = ({ content: t, locale: a }) => /* @__PURE__ */ r.createElement(N, {
|
|
54
54
|
content: t,
|
|
55
55
|
locale: a
|
|
56
56
|
}), re = () => {
|
|
57
|
-
const t = V(
|
|
57
|
+
const t = V(G.input);
|
|
58
58
|
return /* @__PURE__ */ r.createElement(e, null, /* @__PURE__ */ r.createElement(e.Label, {
|
|
59
59
|
className: o(g, c.label)
|
|
60
60
|
}, /* @__PURE__ */ r.createElement(e.Label.Required, {
|
|
@@ -65,7 +65,7 @@ const j = "_input_ug5v8_1", w = {
|
|
|
65
65
|
className: o(v, c.error)
|
|
66
66
|
}, /* @__PURE__ */ r.createElement(P, null), /* @__PURE__ */ r.createElement(e.Error.Text, null)), /* @__PURE__ */ r.createElement(e.Description, {
|
|
67
67
|
className: o(M, c.description)
|
|
68
|
-
},
|
|
68
|
+
}, Q));
|
|
69
69
|
};
|
|
70
70
|
export {
|
|
71
71
|
re as T
|
package/dist/component/{text-input-field-rac-BhMktcEd.js → text-input-field-rac-BDqV7s0M.js}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { RicosViewer as l } from "@wix/ricos/viewer";
|
|
2
2
|
import t from "classnames";
|
|
3
3
|
import e from "react";
|
|
4
|
-
import { T as r } from "./text-input-headless-
|
|
4
|
+
import { T as r } from "./text-input-headless-B0jcwDev.js";
|
|
5
5
|
import { E as o } from "./error-icon-hZxQ6DEy.js";
|
|
6
6
|
import { s as a } from "./field-rac.module-DfEb7pBp.js";
|
|
7
|
-
import { R as n, $ as c, G as E, u as i } from "./form-
|
|
8
|
-
import { u as p } from "./use-text-input-class-name-
|
|
7
|
+
import { R as n, $ as c, G as E, u as i } from "./form-D3iU18lh.js";
|
|
8
|
+
import { u as p } from "./use-text-input-class-name-BXuk3TK7.js";
|
|
9
9
|
const R = ({ content: s, locale: m }) => /* @__PURE__ */ e.createElement(l, {
|
|
10
10
|
content: s,
|
|
11
11
|
locale: m
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import t, { useRef as L } from "react";
|
|
2
|
-
import { TextField as R, Input as
|
|
3
|
-
import {
|
|
2
|
+
import { TextField as R, Input as v } from "react-aria-components";
|
|
3
|
+
import { bn as d, bk as c, bp as T } from "./form-D3iU18lh.js";
|
|
4
4
|
import { f as s } from "./find-child-C60k4CxG.js";
|
|
5
|
-
import { D as
|
|
6
|
-
import { L as x } from "./field-label-headless-
|
|
5
|
+
import { D as g, E as h } from "./field-error-headless-ClPQ03Jc.js";
|
|
6
|
+
import { L as x } from "./field-label-headless-DhN8Lkuq.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, {
|
|
@@ -24,10 +24,10 @@ const e = ({ children: r }) => {
|
|
|
24
24
|
});
|
|
25
25
|
}, B = ({ className: r }) => {
|
|
26
26
|
const { id: a, placeholder: i } = d(), { inputId: l, ariaDescribedBy: u } = c(), n = L(null);
|
|
27
|
-
return
|
|
27
|
+
return T(() => {
|
|
28
28
|
var o;
|
|
29
29
|
(o = n.current) == null || o.focus();
|
|
30
|
-
}, a), /* @__PURE__ */ t.createElement(
|
|
30
|
+
}, a), /* @__PURE__ */ t.createElement(v, {
|
|
31
31
|
ref: n,
|
|
32
32
|
id: l,
|
|
33
33
|
"aria-describedby": u,
|
|
@@ -37,7 +37,7 @@ const e = ({ children: r }) => {
|
|
|
37
37
|
};
|
|
38
38
|
e.Label = x;
|
|
39
39
|
e.Input = B;
|
|
40
|
-
e.Description =
|
|
40
|
+
e.Description = g;
|
|
41
41
|
e.Error = h;
|
|
42
42
|
export {
|
|
43
43
|
e as T
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import e, { useCallback as H, useRef as
|
|
2
|
-
import { RicosViewer as
|
|
1
|
+
import e, { useCallback as H, useRef as x, useContext as V } from "react";
|
|
2
|
+
import { RicosViewer as j } from "@wix/ricos/viewer";
|
|
3
3
|
import m from "classnames";
|
|
4
4
|
import { parseTime as q } from "@internationalized/date";
|
|
5
5
|
import { TimeField as v, DateInput as z, DateSegment as _, TimeFieldStateContext as B } from "react-aria-components";
|
|
6
|
-
import {
|
|
6
|
+
import { bn as p, bk as U, bx as S, bp as w, R as G, $ as Q, G as $, u as J } from "./form-D3iU18lh.js";
|
|
7
7
|
import { f as u, a as F } from "./find-child-C60k4CxG.js";
|
|
8
|
-
import { D as K, E as W } from "./field-error-headless-
|
|
9
|
-
import { L as X } from "./field-label-headless-
|
|
8
|
+
import { D as K, E as W } from "./field-error-headless-ClPQ03Jc.js";
|
|
9
|
+
import { L as X } from "./field-label-headless-DhN8Lkuq.js";
|
|
10
10
|
import { E as Y } 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-DfEb7pBp.js";
|
|
13
|
-
import { u as Z } from "./use-text-input-class-name-
|
|
13
|
+
import { u as Z } from "./use-text-input-class-name-BXuk3TK7.js";
|
|
14
14
|
const r = ({ children: t }) => {
|
|
15
|
-
const { id: n, value:
|
|
15
|
+
const { id: n, value: l, onChange: a, disabled: i, readOnly: o, required: c, onBlur: s, onFocus: E, use24HourFormat: b, FieldLayout: C, hasError: g } = p(), { inputId: I, ariaDescribedBy: R, labelId: D } = U(), L = H((M) => {
|
|
16
16
|
const k = ae(M);
|
|
17
17
|
a(k);
|
|
18
18
|
}, [
|
|
19
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(
|
|
21
|
-
return /* @__PURE__ */ e.createElement(
|
|
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
|
+
return /* @__PURE__ */ e.createElement(C, {
|
|
22
22
|
fieldId: n,
|
|
23
23
|
renderLabel: () => N,
|
|
24
24
|
renderInput: () => /* @__PURE__ */ e.createElement(v, {
|
|
@@ -29,59 +29,59 @@ const r = ({ children: t }) => {
|
|
|
29
29
|
onChange: L,
|
|
30
30
|
isDisabled: i,
|
|
31
31
|
isReadOnly: o,
|
|
32
|
-
isInvalid:
|
|
32
|
+
isInvalid: g,
|
|
33
33
|
isRequired: c,
|
|
34
|
-
onBlur:
|
|
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
40
|
}, d = ({ children: t, className: n }) => {
|
|
41
|
-
const { hasError:
|
|
41
|
+
const { hasError: l, hidePlaceholder: a } = p(), i = u(t, d.Hour), o = u(t, d.Minute), c = u(t, d.Period);
|
|
42
42
|
return /* @__PURE__ */ e.createElement(z, {
|
|
43
43
|
className: n,
|
|
44
|
-
"data-invalid":
|
|
44
|
+
"data-invalid": l || void 0,
|
|
45
45
|
"data-placeholder-hidden": a || void 0
|
|
46
|
-
}, (
|
|
47
|
-
switch (
|
|
46
|
+
}, (s) => {
|
|
47
|
+
switch (s.type) {
|
|
48
48
|
case "hour":
|
|
49
49
|
return F(i, {
|
|
50
|
-
segment:
|
|
50
|
+
segment: s
|
|
51
51
|
}) || /* @__PURE__ */ e.createElement(e.Fragment, null);
|
|
52
52
|
case "minute":
|
|
53
53
|
return F(o, {
|
|
54
|
-
segment:
|
|
54
|
+
segment: s
|
|
55
55
|
}) || /* @__PURE__ */ e.createElement(e.Fragment, null);
|
|
56
56
|
case "dayPeriod":
|
|
57
57
|
return F(c, {
|
|
58
|
-
segment:
|
|
58
|
+
segment: s
|
|
59
59
|
}) || /* @__PURE__ */ e.createElement(e.Fragment, null);
|
|
60
60
|
case "literal":
|
|
61
61
|
return /* @__PURE__ */ e.createElement(_, {
|
|
62
|
-
segment:
|
|
62
|
+
segment: s
|
|
63
63
|
});
|
|
64
64
|
default:
|
|
65
65
|
return /* @__PURE__ */ e.createElement(e.Fragment, null);
|
|
66
66
|
}
|
|
67
67
|
});
|
|
68
68
|
}, ee = ({ className: t, ...n }) => {
|
|
69
|
-
const { id:
|
|
69
|
+
const { id: l, hidePlaceholder: a } = p(), { segment: i } = n, { t: o } = S(), c = x(null);
|
|
70
70
|
w(() => {
|
|
71
71
|
var E;
|
|
72
72
|
(E = c.current) == null || E.focus();
|
|
73
|
-
},
|
|
74
|
-
const
|
|
73
|
+
}, l);
|
|
74
|
+
const s = a ? void 0 : o("field.date.placeholder.hour");
|
|
75
75
|
return /* @__PURE__ */ e.createElement(_, {
|
|
76
76
|
ref: c,
|
|
77
77
|
segment: i,
|
|
78
78
|
className: t,
|
|
79
|
-
...
|
|
80
|
-
placeholder:
|
|
79
|
+
...s && {
|
|
80
|
+
placeholder: s
|
|
81
81
|
}
|
|
82
82
|
});
|
|
83
83
|
}, te = ({ className: t, ...n }) => {
|
|
84
|
-
const { hidePlaceholder:
|
|
84
|
+
const { hidePlaceholder: l } = p(), { segment: a } = n, { t: i } = S(), o = l ? void 0 : i("field.date.placeholder.minute");
|
|
85
85
|
return /* @__PURE__ */ e.createElement(_, {
|
|
86
86
|
segment: a,
|
|
87
87
|
className: t,
|
|
@@ -90,11 +90,11 @@ const r = ({ children: t }) => {
|
|
|
90
90
|
}
|
|
91
91
|
});
|
|
92
92
|
}, re = ({ className: t, ...n }) => {
|
|
93
|
-
const { hidePlaceholder:
|
|
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");
|
|
94
94
|
return /* @__PURE__ */ e.createElement(_, {
|
|
95
95
|
segment: a,
|
|
96
96
|
className: t,
|
|
97
|
-
onClick:
|
|
97
|
+
onClick: s,
|
|
98
98
|
...c && {
|
|
99
99
|
placeholder: c
|
|
100
100
|
}
|
|
@@ -119,19 +119,19 @@ function ne(t) {
|
|
|
119
119
|
function ae(t) {
|
|
120
120
|
if (!t)
|
|
121
121
|
return null;
|
|
122
|
-
const n = String(t.hour).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");
|
|
123
123
|
return [
|
|
124
124
|
n,
|
|
125
|
-
|
|
125
|
+
l,
|
|
126
126
|
a
|
|
127
127
|
].join(":");
|
|
128
128
|
}
|
|
129
|
-
const oe = "_time_rzj2k_1",
|
|
129
|
+
const oe = "_time_rzj2k_1", se = "_hour_rzj2k_14", le = "_minute_rzj2k_15", ie = "_period_rzj2k_16", h = {
|
|
130
130
|
time: oe,
|
|
131
|
-
hour:
|
|
132
|
-
minute:
|
|
131
|
+
hour: se,
|
|
132
|
+
minute: le,
|
|
133
133
|
period: ie
|
|
134
|
-
}, ce = ({ content: t, locale: n }) => /* @__PURE__ */ e.createElement(
|
|
134
|
+
}, ce = ({ content: t, locale: n }) => /* @__PURE__ */ e.createElement(j, {
|
|
135
135
|
content: t,
|
|
136
136
|
locale: n
|
|
137
137
|
}), me = () => {
|