@wix/form-elements 1.160.0 → 1.162.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-BmHu56e5.js → appointment-rac-3Z1wiBX6.js} +366 -359
- package/dist/component/{bookings-address-rac-DY9l2g0h.js → bookings-address-rac-2zV-a8SW.js} +1 -1
- package/dist/component/{bookings-email-rac-B5vNSOsS.js → bookings-email-rac-C1WakVnh.js} +1 -1
- package/dist/component/{bookings-first-name-rac-CJiefCNz.js → bookings-first-name-rac-6f18uXA0.js} +1 -1
- package/dist/component/{bookings-header-rac-BFu7Ko5w.js → bookings-header-rac-BeaxlPQl.js} +1 -1
- package/dist/component/{bookings-last-name-rac-DegMM13h.js → bookings-last-name-rac-CsLZaKfO.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-DrA-5tBH.js → bookings-login-bar-rac-B3TRivWU.js} +5 -5
- package/dist/component/{bookings-phone-rac-DsaeqxCI.js → bookings-phone-rac-BnFEknvv.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-jRHiwqi8.js → bookings-rich-text-rac-CFPqDZay.js} +1 -1
- package/dist/component/{calendar.module-CKCBG_Pg.js → calendar.module-BMUyMVja.js} +19 -19
- package/dist/component/{checkbox-field-rac-CyoBb6Yf.js → checkbox-field-rac-DqGbxAd0.js} +45 -45
- package/dist/component/{checkbox-group-field-headless-Bv1gU3oL.js → checkbox-group-field-headless-CiobdaVa.js} +38 -38
- package/dist/component/{checkbox-group-field-rac-DasArcdV.js → checkbox-group-field-rac-Dxrc2F4x.js} +14 -14
- package/dist/component/{checkbox-group-rac-CzmufV1U.js → checkbox-group-rac-C3tL4YSr.js} +1 -1
- package/dist/component/{checkbox-indicator-module-classes-akWZsZNn.js → checkbox-indicator-module-classes-DUTR4mcg.js} +1 -1
- package/dist/component/{checkbox-rac-6C7XoUoZ.js → checkbox-rac-DhZsIMuk.js} +1 -1
- package/dist/component/{contacts-address-rac-BZobbFtz.js → contacts-address-rac--GiWpa6C.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-DIzf41DS.js → contacts-birthdate-rac-CmI2nPpr.js} +1 -1
- package/dist/component/{contacts-company-rac-BiBDO28r.js → contacts-company-rac-DcSLvPnR.js} +1 -1
- package/dist/component/{contacts-email-rac-5mqokCSD.js → contacts-email-rac-BLOIHGP9.js} +1 -1
- package/dist/component/{contacts-first-name-rac-BXe3_Nz5.js → contacts-first-name-rac-DgMCKLeE.js} +1 -1
- package/dist/component/{contacts-last-name-rac-Cfqgh7u1.js → contacts-last-name-rac-tcEQP1Db.js} +1 -1
- package/dist/component/{contacts-phone-rac-cmLUWnAc.js → contacts-phone-rac-CK664cfW.js} +1 -1
- package/dist/component/{contacts-position-rac-DTyvklfN.js → contacts-position-rac-B8skwXy6.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-D-ZEX1A3.js → contacts-subscribe-rac-DQZYJjMo.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-B4NYJwWt.js → contacts-tax-id-rac-Ci24ixLu.js} +1 -1
- package/dist/component/{date-availability-Dach9aRC.js → date-availability-Va6_2NAZ.js} +1 -1
- package/dist/component/{date-input-field-rac-B72mHcya.js → date-input-field-rac-lAKyuHOI.js} +98 -98
- package/dist/component/{date-input-rac-CYix11gT.js → date-input-rac-ClEesupR.js} +1 -1
- package/dist/component/{date-picker-field-rac-B8pvtPir.js → date-picker-field-rac-h45jfoso.js} +72 -72
- package/dist/component/{date-picker-rac-D6cR0zH9.js → date-picker-rac-B-pvqBn0.js} +1 -1
- package/dist/component/{date-time-input-field-rac-B7Y3Yf5l.js → date-time-input-field-rac-41QpurJp.js} +72 -72
- package/dist/component/{date-time-input-rac-DMN-noQX.js → date-time-input-rac-BQOUl7It.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-Kq0GnteP.js → dext-checkbox-group-rac-C4Q6tfBD.js} +2 -2
- package/dist/component/{dext-checkbox-rac-BY9GZ4n1.js → dext-checkbox-rac-Yo2PHNDA.js} +1 -1
- package/dist/component/{dext-date-picker-rac-CXArIddp.js → dext-date-picker-rac-jM9x8W6a.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-B39TtxGq.js → dext-date-time-input-rac-BgW_4WIg.js} +1 -1
- package/dist/component/{dext-dropdown-rac-C3y0G8cS.js → dext-dropdown-rac-DCL7D6-G.js} +1 -1
- package/dist/component/{dext-email-rac-BIg3cq7Q.js → dext-email-rac-Dz7yBqkd.js} +1 -1
- package/dist/component/{dext-number-input-rac-27sHJ7yN.js → dext-number-input-rac-BdMjBpH9.js} +1 -1
- package/dist/component/{dext-phone-rac-CcohoFQp.js → dext-phone-rac-D2i9fXL3.js} +1 -1
- package/dist/component/{dext-radio-group-rac-eead3Gve.js → dext-radio-group-rac-Br2f1Ahx.js} +2 -2
- package/dist/component/{dext-rating-input-rac-B_E6OcBr.js → dext-rating-input-rac-OkfJ7Eb0.js} +1 -1
- package/dist/component/{dext-tags-rac-Yd9aAtnF.js → dext-tags-rac-43vDoDdM.js} +2 -2
- package/dist/component/{dext-text-area-rac-CMACri2C.js → dext-text-area-rac-C072pWO9.js} +1 -1
- package/dist/component/{dext-text-input-rac-sNjSCfQ-.js → dext-text-input-rac-BiHJpJCt.js} +1 -1
- package/dist/component/{dext-url-input-rac-DwhbzJty.js → dext-url-input-rac-YOGYMj5C.js} +1 -1
- package/dist/component/{donation-rac-BVAN3kMk.js → donation-rac-fCt3mddA.js} +106 -106
- package/dist/component/{dropdown-field-rac-DdoGigWx.js → dropdown-field-rac-EQrQJ2-C.js} +4 -4
- package/dist/component/{dropdown-rac-CRkt5w47.js → dropdown-rac-MPCcjrFd.js} +1 -1
- package/dist/component/{ecom-address-rac-C36hFHW0.js → ecom-address-rac-DSgpHqzV.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-BKfQ348w.js → ecom-subscription-checkbox-rac-Dw6Ke0Fb.js} +2 -2
- package/dist/component/{email-input-field-rac-MOaISYxa.js → email-input-field-rac-DVmvH4u4.js} +80 -80
- package/dist/component/{events-repeater-rac-D6p-NgE8.js → events-repeater-rac-Uwpo7XF4.js} +25 -25
- package/dist/component/{events-rsvp-rac-DVpgN8gm.js → events-rsvp-rac-D2DJAkep.js} +4 -4
- package/dist/component/{field-error-headless-XNWmDH3E.js → field-error-headless-DAc8FpKI.js} +7 -7
- package/dist/component/{field-label-headless-CORRAJGt.js → field-label-headless-DxxwJtjh.js} +17 -17
- package/dist/component/field-rac.module-ts2t4WUO.js +25 -0
- package/dist/component/{file-upload-rac-DRMr7E4b.js → file-upload-rac-CBKIeaxX.js} +194 -194
- package/dist/component/{fixed-payment-rac-BUXzNex9.js → fixed-payment-rac-BsCDoc1p.js} +20 -20
- package/dist/component/{form-DSpx-AO8.js → form-GAuLAdjq.js} +338 -347
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-CiDXlNsa.js → header-field-rac-DtZCjzLJ.js} +6 -6
- package/dist/component/{header-rac-B5Rg-h8u.js → header-rac-B1hlVDf8.js} +1 -1
- package/dist/component/image-choice-rac-DQaCg_Xk.js +155 -0
- package/dist/component/{index-CwruESwc.js → index-BaVjVNYj.js} +5 -5
- package/dist/component/{index-Bz7ZhQsF.js → index-C1EXd9jU.js} +50 -50
- package/dist/component/{isObjectLike-C5dHxHP0.js → isObjectLike-m2dqIREj.js} +3 -3
- package/dist/component/{multiline-address-field-rac-Z-qF366L.js → multiline-address-field-rac-CMMdLb-J.js} +41 -41
- package/dist/component/{multiline-address-rac-CJIHTMw5.js → multiline-address-rac-VUQNp-Tz.js} +1 -1
- package/dist/component/{number-input-field-rac-D4vf6I6N.js → number-input-field-rac-B5bsGDKm.js} +24 -24
- package/dist/component/{number-input-rac-B2jW6JUQ.js → number-input-rac-BzzW0p9R.js} +1 -1
- package/dist/component/{password-rac-DGRZ17Jl.js → password-rac-2Rr7lvNO.js} +25 -25
- package/dist/component/{payment-input-rac-BtD-tAKv.js → payment-input-rac-CEUzIrJA.js} +31 -31
- package/dist/component/{phone-input-field-rac-KD4-APhr.js → phone-input-field-rac-BDBaqAzE.js} +59 -59
- package/dist/component/{phone-rac-Cw2yccgg.js → phone-rac-BTK8-tkq.js} +1 -1
- package/dist/component/{product-list-rac-XbzTDdbp.js → product-list-rac-1QbeT5RH.js} +43 -43
- package/dist/component/{quiz-radio-group-rac-BDw_mAw5.js → quiz-radio-group-rac-tn2CzdCu.js} +1 -1
- package/dist/component/{radio-button-module-classes-CFGf0Hzh.js → radio-button-module-classes-aK1SQcLG.js} +30 -30
- package/dist/component/{radio-group-field-rac-CXN7tyVu.js → radio-group-field-rac-DlMXhW_S.js} +7 -7
- package/dist/component/{radio-group-rac-COHzqjBh.js → radio-group-rac-BmU_5tBK.js} +1 -1
- package/dist/component/{rating-input-field-rac-DCXNZgf1.js → rating-input-field-rac-DUPJUAX2.js} +27 -27
- package/dist/component/{rating-input-rac-DwQt9ML7.js → rating-input-rac-BLhkZdj8.js} +1 -1
- package/dist/component/{rich-content-rac.module-B7rPwNns.js → rich-content-rac.module-C9bGXB69.js} +5 -5
- package/dist/component/{rich-text-field-rac-DlER7NRD.js → rich-text-field-rac-CVqmsZzZ.js} +6 -6
- package/dist/component/{rich-text-rac-CjicsHA7.js → rich-text-rac-D8K6445F.js} +1 -1
- package/dist/component/{service-dropdown-rac-B81LC_6_.js → service-dropdown-rac-PR_iLdmo.js} +31 -31
- package/dist/component/{services-multi-choice-rac-BR6gZeHk.js → services-multi-choice-rac-BvMadJCf.js} +19 -19
- package/dist/component/{signature-rac-XFj7Ddtp.js → signature-rac-Cpjv6kcl.js} +235 -235
- package/dist/component/{submit-button-rac-Bz7zs_3W.js → submit-button-rac-DpDk7cMb.js} +7 -7
- package/dist/component/{tags-field-rac-DWWkNKqc.js → tags-field-rac-DnyWNHXT.js} +67 -67
- package/dist/component/{tags-rac-BXyiQ9i1.js → tags-rac-D5Do7BNm.js} +1 -1
- package/dist/component/{text-area-field-rac-DsIRYi0d.js → text-area-field-rac-DLBgla0L.js} +27 -27
- package/dist/component/{text-area-rac-CF9pDP9d.js → text-area-rac-Bfsl2gSn.js} +1 -1
- package/dist/component/{text-input-field-rac-BwIDZACz.js → text-input-field-rac-hLsUcQNw.js} +4 -4
- package/dist/component/{text-input-headless-5kQs2_Xu.js → text-input-headless-Otd7Uy7V.js} +13 -13
- package/dist/component/{text-input-rac-CRmSuw1k.js → text-input-rac-jpnc-v91.js} +1 -1
- package/dist/component/{time-input-rac-BRMNpe51.js → time-input-rac-DnjrmZZw.js} +26 -26
- package/dist/component/url-input-field-rac-C90NYHb8.js +77 -0
- package/dist/component/{url-input-rac-Dv-kp50D.js → url-input-rac-C3wfEnqs.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-BQi_qE_-.js → use-dropdown-option-class-name-CYkLlKBs.js} +12 -12
- package/dist/component/{use-dropdown-trigger-class-name-bAK8aHiG.js → use-dropdown-trigger-class-name-CTt4Z67m.js} +17 -17
- package/dist/component/{use-element-state-class-name-rXM_lHug.js → use-element-state-class-name-ByDw6j7c.js} +1 -1
- package/dist/component/{use-hoverable-input-class-name-BnV_uerV.js → use-hoverable-input-class-name-Duhgtn2I.js} +3 -3
- package/dist/component/use-is-forced-open-dropdown-B5gNY4Zm.js +53 -0
- package/dist/component/{use-service-options-base-CLeE9-Tx.js → use-service-options-base-DE-QaNDw.js} +8 -8
- package/dist/component/use-text-input-class-name-CmxSw6bY.js +6 -0
- package/dist/form.d.ts +3 -0
- package/package.json +2 -2
- package/dist/component/field-rac.module-DP0lkkEv.js +0 -25
- package/dist/component/image-choice-rac-CtoA_KDp.js +0 -155
- package/dist/component/url-input-field-rac-CKLS3QDk.js +0 -77
- package/dist/component/use-is-forced-open-dropdown-Bp-5Xpmw.js +0 -53
- package/dist/component/use-text-input-class-name-DIKWvfkm.js +0 -6
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import t, { useRef as V, useCallback as
|
|
1
|
+
import t, { useRef as V, useCallback as z } from "react";
|
|
2
2
|
import X from "@wix/editor-react-components/AnimatedIcon";
|
|
3
3
|
import p from "classnames";
|
|
4
|
-
import {
|
|
4
|
+
import { by as B, bs as q, as as $, ar as j, ap as G, ao as J, ax as K, aw as Q, aq as Y, b as Z, an as tt, av as et } from "./form-GAuLAdjq.js";
|
|
5
5
|
import { ProgressBar as nt, Button as w } from "react-aria-components";
|
|
6
6
|
import { f as i } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { u as x } from "./use-element-state-class-name-
|
|
7
|
+
import { u as x } from "./use-element-state-class-name-ByDw6j7c.js";
|
|
8
8
|
function ot(e) {
|
|
9
9
|
const s = "calc(50% - 2px)";
|
|
10
10
|
return /* @__PURE__ */ t.createElement(nt, {
|
|
@@ -131,10 +131,10 @@ const at = "_navigationContainer_i93zw_1", rt = "_rowSpacing_i93zw_6", ut = "_na
|
|
|
131
131
|
buttonHover: vt,
|
|
132
132
|
progress: St
|
|
133
133
|
}, P = () => {
|
|
134
|
-
const e = V(null), o =
|
|
134
|
+
const e = V(null), o = z(() => {
|
|
135
135
|
var n;
|
|
136
136
|
return (n = e.current) == null ? void 0 : n.runAnimationForward();
|
|
137
|
-
}, []), s =
|
|
137
|
+
}, []), s = z(() => {
|
|
138
138
|
var n;
|
|
139
139
|
return (n = e.current) == null ? void 0 : n.runAnimationBackward();
|
|
140
140
|
}, []);
|
|
@@ -151,8 +151,8 @@ const at = "_navigationContainer_i93zw_1", rt = "_rowSpacing_i93zw_6", ut = "_na
|
|
|
151
151
|
className: p(Z, s, a)
|
|
152
152
|
}) : null;
|
|
153
153
|
}, Et = () => {
|
|
154
|
-
var A, F, h, U, M,
|
|
155
|
-
const { hasSteps: e, showPreviousButton: o, isDisabled: s, isInProgress: n, isSubmitting: a } = B(), v = !s && !(a || n), c = q(), m = (F = (A = c.submitButton) == null ? void 0 : A.elementProps) == null ? void 0 : F.icon, C = (U = (h = c.nextButton) == null ? void 0 : h.elementProps) == null ? void 0 : U.icon, f = (
|
|
154
|
+
var A, F, h, U, M, y;
|
|
155
|
+
const { hasSteps: e, showPreviousButton: o, isDisabled: s, isInProgress: n, isSubmitting: a } = B(), v = !s && !(a || n), c = q(), m = (F = (A = c.submitButton) == null ? void 0 : A.elementProps) == null ? void 0 : F.icon, C = (U = (h = c.nextButton) == null ? void 0 : h.elementProps) == null ? void 0 : U.icon, f = (y = (M = c.previousButton) == null ? void 0 : M.elementProps) == null ? void 0 : y.icon, I = x({
|
|
156
156
|
globalClasses: Y,
|
|
157
157
|
moduleClasses: {
|
|
158
158
|
base: p(u.navigationButton, u.previousButton),
|
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
import { RicosViewer as
|
|
1
|
+
import { RicosViewer as j } from "@wix/ricos/viewer";
|
|
2
2
|
import F from "classnames";
|
|
3
|
-
import t, { useMemo as I, useState as
|
|
4
|
-
import { CheckboxGroup as
|
|
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-
|
|
3
|
+
import t, { useMemo as I, useState as w, useRef as V, useLayoutEffect as z, useCallback as k } from "react";
|
|
4
|
+
import { CheckboxGroup as B, TextField as J, Input as X, CheckboxField as Y, CheckboxButton as Z } from "react-aria-components";
|
|
5
|
+
import { by as D, bv as M, bI as S, bA as U, U as ee, aa as te, ak as oe, K as ne, G as ae, al as re } from "./form-GAuLAdjq.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-DAc8FpKI.js";
|
|
8
|
+
import { L as $ } from "./field-label-headless-DxxwJtjh.js";
|
|
9
9
|
import { F as se } from "./fieldset-headless-CD3fds9J.js";
|
|
10
10
|
import { E as le } from "./error-icon-hZxQ6DEy.js";
|
|
11
|
-
import { s as y } from "./field-rac.module-
|
|
12
|
-
import { u as ie } from "./use-element-state-class-name-
|
|
13
|
-
import { u as ce } from "./use-text-input-class-name-
|
|
11
|
+
import { s as y } from "./field-rac.module-ts2t4WUO.js";
|
|
12
|
+
import { u as ie } from "./use-element-state-class-name-ByDw6j7c.js";
|
|
13
|
+
import { u as ce } from "./use-text-input-class-name-CmxSw6bY.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
|
})({});
|
|
17
|
-
const
|
|
18
|
-
const i =
|
|
19
|
-
return (e.find((l) => l.startsWith(`${
|
|
20
|
-
}, me = (e) => e.map((
|
|
21
|
-
const { label: r } =
|
|
17
|
+
const R = "Other", de = (e, o) => {
|
|
18
|
+
const i = o.length + 2;
|
|
19
|
+
return (e.find((l) => l.startsWith(`${o}: `)) || "").slice(i);
|
|
20
|
+
}, me = (e) => e.map((o) => o.value ?? o.label), P = ({ className: e, ...o }) => {
|
|
21
|
+
const { label: r } = o;
|
|
22
22
|
return /* @__PURE__ */ t.createElement("span", {
|
|
23
23
|
className: e
|
|
24
24
|
}, r);
|
|
25
25
|
}, q = ({ className: e }) => {
|
|
26
|
-
const { value:
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
]), [c, L] =
|
|
30
|
-
|
|
26
|
+
const { value: o, onChange: r, addOtherLabel: i, addOtherPlaceholder: s, otherInputCharacterLimit: l, disabled: u, readOnly: m, hasError: d } = D(), { t: p } = S(), n = i || p("add-other.default-other-option-label") || R, b = I(() => de(o || [], n), [
|
|
27
|
+
o,
|
|
28
|
+
n
|
|
29
|
+
]), [c, L] = w(b), f = V(r);
|
|
30
|
+
z(() => {
|
|
31
31
|
f.current = r;
|
|
32
32
|
});
|
|
33
33
|
const g = k((h) => {
|
|
34
34
|
L(h);
|
|
35
|
-
const C = (
|
|
35
|
+
const C = (o || []).filter((E) => !E.startsWith(`${n}:`) && E !== n), _ = h ? `${n}: ${h}` : n;
|
|
36
36
|
f.current([
|
|
37
37
|
...C,
|
|
38
38
|
_
|
|
39
39
|
]);
|
|
40
40
|
}, [
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
o,
|
|
42
|
+
n
|
|
43
43
|
]);
|
|
44
|
-
return /* @__PURE__ */ t.createElement(
|
|
44
|
+
return /* @__PURE__ */ t.createElement(J, {
|
|
45
45
|
value: c,
|
|
46
46
|
onChange: g,
|
|
47
47
|
isDisabled: u,
|
|
48
48
|
isReadOnly: m,
|
|
49
49
|
isInvalid: d,
|
|
50
|
-
"aria-label":
|
|
50
|
+
"aria-label": n
|
|
51
51
|
}, /* @__PURE__ */ t.createElement(X, {
|
|
52
52
|
"data-hook": "tags-other-input",
|
|
53
53
|
"data-filled": c ? !0 : void 0,
|
|
@@ -55,8 +55,8 @@ const v = "Other", de = (e, n) => {
|
|
|
55
55
|
maxLength: l,
|
|
56
56
|
className: e
|
|
57
57
|
}));
|
|
58
|
-
}, T = ({ children: e, className:
|
|
59
|
-
const { value: i, label: s, isOther: l, isFirstOption: u } = r, { id: m, value: d, onChange: p, options:
|
|
58
|
+
}, T = ({ children: e, className: o, ...r }) => {
|
|
59
|
+
const { value: i, label: s, isOther: l, isFirstOption: u } = r, { id: m, value: d, onChange: p, options: n, disabled: b, readOnly: c, hasError: L } = D(), f = V(null);
|
|
60
60
|
U(() => {
|
|
61
61
|
var E;
|
|
62
62
|
u && ((E = f.current) == null || E.focus({
|
|
@@ -71,7 +71,7 @@ const v = "Other", de = (e, n) => {
|
|
|
71
71
|
s,
|
|
72
72
|
i
|
|
73
73
|
]), _ = k((E) => {
|
|
74
|
-
const
|
|
74
|
+
const K = me(n || []), A = h.filter((Q) => K.includes(Q));
|
|
75
75
|
p(E ? [
|
|
76
76
|
...A,
|
|
77
77
|
s
|
|
@@ -79,7 +79,7 @@ const v = "Other", de = (e, n) => {
|
|
|
79
79
|
}, [
|
|
80
80
|
s,
|
|
81
81
|
p,
|
|
82
|
-
|
|
82
|
+
n,
|
|
83
83
|
h
|
|
84
84
|
]);
|
|
85
85
|
return /* @__PURE__ */ t.createElement(Y, {
|
|
@@ -90,60 +90,60 @@ const v = "Other", de = (e, n) => {
|
|
|
90
90
|
isReadOnly: c,
|
|
91
91
|
isInvalid: L
|
|
92
92
|
}, /* @__PURE__ */ t.createElement(Z, {
|
|
93
|
-
className:
|
|
94
|
-
"data-hook": `tags-${l ?
|
|
95
|
-
},
|
|
93
|
+
className: o,
|
|
94
|
+
"data-hook": `tags-${l ? R : i}`
|
|
95
|
+
}, N(g, {
|
|
96
96
|
value: i,
|
|
97
97
|
label: s,
|
|
98
98
|
isOther: l,
|
|
99
99
|
isFirstOption: u
|
|
100
100
|
})));
|
|
101
|
-
},
|
|
102
|
-
const { options: r, addOther: i, addOtherLabel: s, numberOfColumns: l = ue.FREE_FLOW } = D(), { t: u } = S(), m = s || u("add-other.default-other-option-label") ||
|
|
103
|
-
const
|
|
101
|
+
}, x = ({ children: e, className: o }) => {
|
|
102
|
+
const { options: r, addOther: i, addOtherLabel: s, numberOfColumns: l = ue.FREE_FLOW } = D(), { t: u } = S(), m = s || u("add-other.default-other-option-label") || R, d = O(e, T), p = I(() => {
|
|
103
|
+
const n = r || [];
|
|
104
104
|
return i ? [
|
|
105
|
-
...
|
|
105
|
+
...n,
|
|
106
106
|
{
|
|
107
107
|
label: m,
|
|
108
108
|
value: m,
|
|
109
109
|
isOther: !0
|
|
110
110
|
}
|
|
111
|
-
] :
|
|
111
|
+
] : n;
|
|
112
112
|
}, [
|
|
113
113
|
r,
|
|
114
114
|
i,
|
|
115
115
|
m
|
|
116
116
|
]);
|
|
117
117
|
return p.length === 0 ? null : /* @__PURE__ */ t.createElement("div", {
|
|
118
|
-
className:
|
|
118
|
+
className: o,
|
|
119
119
|
"data-columns": l
|
|
120
|
-
}, p.map((
|
|
121
|
-
const c =
|
|
122
|
-
return
|
|
123
|
-
key:
|
|
120
|
+
}, p.map((n, b) => {
|
|
121
|
+
const c = n.value ?? n.label;
|
|
122
|
+
return N(d, {
|
|
123
|
+
key: n.isOther ? R : c,
|
|
124
124
|
value: c,
|
|
125
|
-
label:
|
|
126
|
-
isOther:
|
|
125
|
+
label: n.label,
|
|
126
|
+
isOther: n.isOther,
|
|
127
127
|
isFirstOption: b === 0
|
|
128
128
|
});
|
|
129
129
|
}));
|
|
130
|
-
}, G = ({ children: e, className:
|
|
131
|
-
const { addOther: r, addOtherLabel: i, hasError: s, readOnly: l, value: u } = D(), { t: m } = S(), d = i || m("add-other.default-other-option-label") ||
|
|
130
|
+
}, G = ({ children: e, className: o }) => {
|
|
131
|
+
const { addOther: r, addOtherLabel: i, hasError: s, readOnly: l, value: u } = D(), { t: m } = S(), d = i || m("add-other.default-other-option-label") || R, p = O(e, x), n = O(e, q), b = I(() => !r || !u ? !1 : u.some((c) => c === d || c.startsWith(`${d}:`)), [
|
|
132
132
|
r,
|
|
133
133
|
u,
|
|
134
134
|
d
|
|
135
135
|
]);
|
|
136
136
|
return /* @__PURE__ */ t.createElement("div", {
|
|
137
|
-
className:
|
|
137
|
+
className: o,
|
|
138
138
|
"data-invalid": s,
|
|
139
139
|
"data-readonly": l
|
|
140
|
-
}, p, b &&
|
|
140
|
+
}, p, b && n);
|
|
141
141
|
}, a = ({ children: e }) => {
|
|
142
|
-
const { id:
|
|
142
|
+
const { id: o, value: r, onChange: i, FieldLayout: s, required: l, disabled: u, readOnly: m, hasError: d, onBlur: p, onFocus: n } = D(), { inputId: b, labelId: c, ariaDescribedBy: L } = M(), f = I(() => r || [], [
|
|
143
143
|
r
|
|
144
144
|
]), g = O(e, $), h = O(e, G), C = O(e, H), _ = O(e, W);
|
|
145
145
|
return /* @__PURE__ */ t.createElement(s, {
|
|
146
|
-
fieldId:
|
|
146
|
+
fieldId: o,
|
|
147
147
|
renderLabel: () => g,
|
|
148
148
|
renderInput: () => /* @__PURE__ */ t.createElement(se, {
|
|
149
149
|
id: b,
|
|
@@ -151,8 +151,8 @@ const v = "Other", de = (e, n) => {
|
|
|
151
151
|
ariaDescribedBy: L,
|
|
152
152
|
required: l,
|
|
153
153
|
onBlur: p,
|
|
154
|
-
onFocus:
|
|
155
|
-
}, /* @__PURE__ */ t.createElement(
|
|
154
|
+
onFocus: n
|
|
155
|
+
}, /* @__PURE__ */ t.createElement(B, {
|
|
156
156
|
"aria-labelledby": c,
|
|
157
157
|
value: f,
|
|
158
158
|
onChange: i,
|
|
@@ -164,50 +164,50 @@ const v = "Other", de = (e, n) => {
|
|
|
164
164
|
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, _, C)
|
|
165
165
|
});
|
|
166
166
|
};
|
|
167
|
-
|
|
167
|
+
x.Option = T;
|
|
168
168
|
T.Label = P;
|
|
169
169
|
a.Label = $;
|
|
170
170
|
a.Control = G;
|
|
171
|
-
a.Options =
|
|
171
|
+
a.Options = x;
|
|
172
172
|
a.OtherInput = q;
|
|
173
173
|
a.Description = H;
|
|
174
174
|
a.Error = W;
|
|
175
|
-
const pe = "
|
|
175
|
+
const pe = "_control_hoxuh_1", he = "_options_hoxuh_7", Ee = "_option_hoxuh_7", be = "_optionHover_hoxuh_76", Oe = "_optionSelected_hoxuh_76", v = {
|
|
176
176
|
control: pe,
|
|
177
177
|
options: he,
|
|
178
178
|
option: Ee,
|
|
179
179
|
optionHover: be,
|
|
180
180
|
optionSelected: Oe
|
|
181
|
-
}, fe = ({ content: e, locale:
|
|
181
|
+
}, fe = ({ content: e, locale: o }) => /* @__PURE__ */ t.createElement(j, {
|
|
182
182
|
content: e,
|
|
183
|
-
locale:
|
|
183
|
+
locale: o
|
|
184
184
|
}), Ie = {
|
|
185
|
-
base:
|
|
186
|
-
selected:
|
|
187
|
-
hover:
|
|
188
|
-
},
|
|
185
|
+
base: v.option,
|
|
186
|
+
selected: v.optionSelected,
|
|
187
|
+
hover: v.optionHover
|
|
188
|
+
}, Ve = () => {
|
|
189
189
|
const e = ie({
|
|
190
190
|
globalClasses: re,
|
|
191
191
|
moduleClasses: Ie
|
|
192
|
-
}),
|
|
192
|
+
}), o = ce();
|
|
193
193
|
return /* @__PURE__ */ t.createElement(a, null, /* @__PURE__ */ t.createElement(a.Label, {
|
|
194
194
|
className: F(ee, y.label)
|
|
195
195
|
}, /* @__PURE__ */ t.createElement(a.Label.Required, {
|
|
196
196
|
className: F(te, y.requiredMark)
|
|
197
197
|
})), /* @__PURE__ */ t.createElement(a.Control, {
|
|
198
|
-
className:
|
|
198
|
+
className: v.control
|
|
199
199
|
}, /* @__PURE__ */ t.createElement(a.Options, {
|
|
200
|
-
className: F(
|
|
200
|
+
className: F(oe, v.options)
|
|
201
201
|
}, /* @__PURE__ */ t.createElement(a.Options.Option, {
|
|
202
202
|
className: e
|
|
203
203
|
}, /* @__PURE__ */ t.createElement(a.Options.Option.Label, null))), /* @__PURE__ */ t.createElement(a.OtherInput, {
|
|
204
|
-
className:
|
|
204
|
+
className: o
|
|
205
205
|
})), /* @__PURE__ */ t.createElement(a.Error, {
|
|
206
|
-
className: F(
|
|
206
|
+
className: F(ne, y.error)
|
|
207
207
|
}, /* @__PURE__ */ t.createElement(le, null), /* @__PURE__ */ t.createElement(a.Error.Text, null)), /* @__PURE__ */ t.createElement(a.Description, {
|
|
208
208
|
className: F(ae, y.description)
|
|
209
209
|
}, fe));
|
|
210
210
|
};
|
|
211
211
|
export {
|
|
212
|
-
|
|
212
|
+
Ve as T
|
|
213
213
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { RicosViewer as N } from "@wix/ricos/viewer";
|
|
2
2
|
import o from "classnames";
|
|
3
3
|
import r, { useCallback as S, useRef as T } from "react";
|
|
4
|
-
import { TextField as
|
|
5
|
-
import {
|
|
4
|
+
import { TextField as y, TextArea as O } from "react-aria-components";
|
|
5
|
+
import { by as p, bv as d, bA as x, U as v, aa as g, K as h, G as M } from "./form-GAuLAdjq.js";
|
|
6
6
|
import { f as i } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as
|
|
8
|
-
import { L as
|
|
9
|
-
import { E as
|
|
10
|
-
import { s as c } from "./field-rac.module-
|
|
11
|
-
import { u as
|
|
7
|
+
import { D as q, E as B } from "./field-error-headless-DAc8FpKI.js";
|
|
8
|
+
import { L as k } from "./field-label-headless-DxxwJtjh.js";
|
|
9
|
+
import { E as P } from "./error-icon-hZxQ6DEy.js";
|
|
10
|
+
import { s as c } from "./field-rac.module-ts2t4WUO.js";
|
|
11
|
+
import { u as U } from "./use-text-input-class-name-CmxSw6bY.js";
|
|
12
12
|
const e = ({ children: t }) => {
|
|
13
|
-
const { id: a, value: m, onChange: s, disabled: u, required: n, readOnly: l, onBlur: E, onFocus: b, FieldLayout: I, hasError: f } = p(), { labelId:
|
|
13
|
+
const { id: a, value: m, onChange: s, disabled: u, required: n, readOnly: l, onBlur: E, onFocus: b, FieldLayout: I, hasError: f } = p(), { labelId: F } = d(), L = S((A) => {
|
|
14
14
|
s(A);
|
|
15
15
|
}, [
|
|
16
16
|
s
|
|
@@ -18,10 +18,10 @@ const e = ({ children: t }) => {
|
|
|
18
18
|
return /* @__PURE__ */ r.createElement(I, {
|
|
19
19
|
fieldId: a,
|
|
20
20
|
renderLabel: () => R,
|
|
21
|
-
renderInput: () => /* @__PURE__ */ r.createElement(
|
|
22
|
-
"aria-labelledby":
|
|
21
|
+
renderInput: () => /* @__PURE__ */ r.createElement(y, {
|
|
22
|
+
"aria-labelledby": F,
|
|
23
23
|
value: m ?? "",
|
|
24
|
-
onChange:
|
|
24
|
+
onChange: L,
|
|
25
25
|
isDisabled: u,
|
|
26
26
|
isReadOnly: l,
|
|
27
27
|
isRequired: n,
|
|
@@ -31,14 +31,14 @@ const e = ({ children: t }) => {
|
|
|
31
31
|
}, D),
|
|
32
32
|
renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, C, _)
|
|
33
33
|
});
|
|
34
|
-
},
|
|
34
|
+
}, V = ({ className: t }) => {
|
|
35
35
|
const { inputId: a, ariaDescribedBy: m } = d(), { id: s, placeholder: u } = p(), n = T(null);
|
|
36
36
|
return x(() => {
|
|
37
37
|
var l;
|
|
38
38
|
(l = n.current) == null || l.focus({
|
|
39
39
|
preventScroll: !0
|
|
40
40
|
});
|
|
41
|
-
}, s), /* @__PURE__ */ r.createElement(
|
|
41
|
+
}, s), /* @__PURE__ */ r.createElement(O, {
|
|
42
42
|
ref: n,
|
|
43
43
|
id: a,
|
|
44
44
|
"aria-describedby": m,
|
|
@@ -46,28 +46,28 @@ const e = ({ children: t }) => {
|
|
|
46
46
|
className: t
|
|
47
47
|
});
|
|
48
48
|
};
|
|
49
|
-
e.Label =
|
|
50
|
-
e.Input =
|
|
51
|
-
e.Description =
|
|
52
|
-
e.Error =
|
|
53
|
-
const
|
|
54
|
-
input:
|
|
55
|
-
},
|
|
49
|
+
e.Label = k;
|
|
50
|
+
e.Input = V;
|
|
51
|
+
e.Description = q;
|
|
52
|
+
e.Error = B;
|
|
53
|
+
const w = "_input_ug5v8_1", G = {
|
|
54
|
+
input: w
|
|
55
|
+
}, K = ({ content: t, locale: a }) => /* @__PURE__ */ r.createElement(N, {
|
|
56
56
|
content: t,
|
|
57
57
|
locale: a
|
|
58
58
|
}), re = () => {
|
|
59
|
-
const t =
|
|
59
|
+
const t = U(G.input);
|
|
60
60
|
return /* @__PURE__ */ r.createElement(e, null, /* @__PURE__ */ r.createElement(e.Label, {
|
|
61
|
-
className: o(
|
|
61
|
+
className: o(v, c.label)
|
|
62
62
|
}, /* @__PURE__ */ r.createElement(e.Label.Required, {
|
|
63
|
-
className: o(
|
|
63
|
+
className: o(g, c.requiredMark)
|
|
64
64
|
})), /* @__PURE__ */ r.createElement(e.Input, {
|
|
65
65
|
className: t
|
|
66
66
|
}), /* @__PURE__ */ r.createElement(e.Error, {
|
|
67
|
-
className: o(
|
|
68
|
-
}, /* @__PURE__ */ r.createElement(
|
|
69
|
-
className: o(
|
|
70
|
-
},
|
|
67
|
+
className: o(h, c.error)
|
|
68
|
+
}, /* @__PURE__ */ r.createElement(P, null), /* @__PURE__ */ r.createElement(e.Error.Text, null)), /* @__PURE__ */ r.createElement(e.Description, {
|
|
69
|
+
className: o(M, c.description)
|
|
70
|
+
}, K));
|
|
71
71
|
};
|
|
72
72
|
export {
|
|
73
73
|
re as T
|
package/dist/component/{text-input-field-rac-BwIDZACz.js → text-input-field-rac-hLsUcQNw.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-Otd7Uy7V.js";
|
|
5
5
|
import { E as o } from "./error-icon-hZxQ6DEy.js";
|
|
6
|
-
import { s as a } from "./field-rac.module-
|
|
7
|
-
import {
|
|
8
|
-
import { u as p } from "./use-text-input-class-name-
|
|
6
|
+
import { s as a } from "./field-rac.module-ts2t4WUO.js";
|
|
7
|
+
import { U as n, aa as c, K as E, G as i } from "./form-GAuLAdjq.js";
|
|
8
|
+
import { u as p } from "./use-text-input-class-name-CmxSw6bY.js";
|
|
9
9
|
const I = ({ content: s, locale: m }) => /* @__PURE__ */ e.createElement(l, {
|
|
10
10
|
content: s,
|
|
11
11
|
locale: m
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import t, { useRef as
|
|
1
|
+
import t, { useRef as L } from "react";
|
|
2
2
|
import { TextField as C, Input as R } from "react-aria-components";
|
|
3
|
-
import {
|
|
3
|
+
import { by as c, bv as d, bA as T } from "./form-GAuLAdjq.js";
|
|
4
4
|
import { f as s } from "./find-child-C60k4CxG.js";
|
|
5
|
-
import { D as
|
|
6
|
-
import { L as
|
|
5
|
+
import { D as g, E as h } from "./field-error-headless-DAc8FpKI.js";
|
|
6
|
+
import { L as x } from "./field-label-headless-DxxwJtjh.js";
|
|
7
7
|
const e = ({ children: r }) => {
|
|
8
|
-
const { id: a, value: l, onChange: i, disabled: u, readOnly: n, required: o, hasError: p, onBlur: m, onFocus: b, autoComplete: f, FieldLayout: E } = c(), { labelId: I } = d(), F = s(r, e.Label), y = s(r, e.Input), D = s(r, e.Description),
|
|
8
|
+
const { id: a, value: l, onChange: i, disabled: u, readOnly: n, required: o, hasError: p, onBlur: m, onFocus: b, autoComplete: f, FieldLayout: E } = c(), { labelId: I } = d(), F = s(r, e.Label), y = s(r, e.Input), D = s(r, e.Description), v = s(r, e.Error);
|
|
9
9
|
return /* @__PURE__ */ t.createElement(E, {
|
|
10
10
|
fieldId: a,
|
|
11
11
|
renderLabel: () => F,
|
|
@@ -21,11 +21,11 @@ const e = ({ children: r }) => {
|
|
|
21
21
|
onBlur: m,
|
|
22
22
|
onFocus: b
|
|
23
23
|
}, y),
|
|
24
|
-
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null,
|
|
24
|
+
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, v, D)
|
|
25
25
|
});
|
|
26
|
-
},
|
|
27
|
-
const { id: a, placeholder: l } = c(), { inputId: i, ariaDescribedBy: u } = d(), n =
|
|
28
|
-
return
|
|
26
|
+
}, B = ({ className: r }) => {
|
|
27
|
+
const { id: a, placeholder: l } = c(), { inputId: i, ariaDescribedBy: u } = d(), n = L(null);
|
|
28
|
+
return T(() => {
|
|
29
29
|
var o;
|
|
30
30
|
(o = n.current) == null || o.focus({
|
|
31
31
|
preventScroll: !0
|
|
@@ -38,10 +38,10 @@ const e = ({ children: r }) => {
|
|
|
38
38
|
placeholder: l
|
|
39
39
|
});
|
|
40
40
|
};
|
|
41
|
-
e.Label =
|
|
42
|
-
e.Input =
|
|
43
|
-
e.Description =
|
|
44
|
-
e.Error =
|
|
41
|
+
e.Label = x;
|
|
42
|
+
e.Input = B;
|
|
43
|
+
e.Description = g;
|
|
44
|
+
e.Error = h;
|
|
45
45
|
export {
|
|
46
46
|
e as T
|
|
47
47
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import e, { useCallback as
|
|
2
|
-
import { RicosViewer as
|
|
1
|
+
import e, { useCallback as v, useRef as V, useContext as x } from "react";
|
|
2
|
+
import { RicosViewer as q } from "@wix/ricos/viewer";
|
|
3
3
|
import m from "classnames";
|
|
4
|
-
import { parseTime as
|
|
5
|
-
import { TimeField as
|
|
6
|
-
import {
|
|
4
|
+
import { parseTime as B } from "@internationalized/date";
|
|
5
|
+
import { TimeField as U, DateInput as k, DateSegment as _, TimeFieldStateContext as w } from "react-aria-components";
|
|
6
|
+
import { by as p, bv as j, bI as T, bA as G, U as K, aa as Q, K as z, G as J } from "./form-GAuLAdjq.js";
|
|
7
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-
|
|
9
|
-
import { L as Y } from "./field-label-headless-
|
|
8
|
+
import { D as W, E as X } from "./field-error-headless-DAc8FpKI.js";
|
|
9
|
+
import { L as Y } from "./field-label-headless-DxxwJtjh.js";
|
|
10
10
|
import { E as Z } from "./error-icon-hZxQ6DEy.js";
|
|
11
11
|
import { H as S } from "./custom-focus-class-_483Pkwp.js";
|
|
12
|
-
import { s as f } from "./field-rac.module-
|
|
13
|
-
import { u as $ } from "./use-text-input-class-name-
|
|
12
|
+
import { s as f } from "./field-rac.module-ts2t4WUO.js";
|
|
13
|
+
import { u as $ } from "./use-text-input-class-name-CmxSw6bY.js";
|
|
14
14
|
const r = ({ children: t }) => {
|
|
15
|
-
const { id: n, value: s, onChange: a, disabled: i, readOnly: o, required: c, onBlur: l, onFocus: E, use24HourFormat: b, FieldLayout: C, hasError:
|
|
15
|
+
const { id: n, value: s, onChange: a, disabled: i, readOnly: o, required: c, onBlur: l, onFocus: E, use24HourFormat: b, FieldLayout: C, hasError: I } = p(), { inputId: g, ariaDescribedBy: D, labelId: L } = j(), R = v((M) => {
|
|
16
16
|
const H = ae(M);
|
|
17
17
|
a(H);
|
|
18
18
|
}, [
|
|
@@ -21,15 +21,15 @@ const r = ({ children: t }) => {
|
|
|
21
21
|
return /* @__PURE__ */ e.createElement(C, {
|
|
22
22
|
fieldId: n,
|
|
23
23
|
renderLabel: () => N,
|
|
24
|
-
renderInput: () => /* @__PURE__ */ e.createElement(
|
|
25
|
-
"aria-labelledby":
|
|
26
|
-
id:
|
|
27
|
-
"aria-describedby":
|
|
24
|
+
renderInput: () => /* @__PURE__ */ e.createElement(U, {
|
|
25
|
+
"aria-labelledby": L,
|
|
26
|
+
id: g,
|
|
27
|
+
"aria-describedby": D,
|
|
28
28
|
value: O,
|
|
29
29
|
onChange: R,
|
|
30
30
|
isDisabled: i,
|
|
31
31
|
isReadOnly: o,
|
|
32
|
-
isInvalid:
|
|
32
|
+
isInvalid: I,
|
|
33
33
|
isRequired: c,
|
|
34
34
|
onBlur: l,
|
|
35
35
|
onFocus: E,
|
|
@@ -39,7 +39,7 @@ const r = ({ children: t }) => {
|
|
|
39
39
|
});
|
|
40
40
|
}, d = ({ children: t, className: n }) => {
|
|
41
41
|
const { hasError: s, hidePlaceholder: a } = p(), i = u(t, d.Hour), o = u(t, d.Minute), c = u(t, d.Period);
|
|
42
|
-
return /* @__PURE__ */ e.createElement(
|
|
42
|
+
return /* @__PURE__ */ e.createElement(k, {
|
|
43
43
|
className: n,
|
|
44
44
|
"data-invalid": s || void 0,
|
|
45
45
|
"data-placeholder-hidden": a || void 0
|
|
@@ -66,8 +66,8 @@ const r = ({ children: t }) => {
|
|
|
66
66
|
}
|
|
67
67
|
});
|
|
68
68
|
}, ee = ({ className: t, ...n }) => {
|
|
69
|
-
const { id: s, hidePlaceholder: a } = p(), { segment: i } = n, { t: o } = T(), c =
|
|
70
|
-
|
|
69
|
+
const { id: s, hidePlaceholder: a } = p(), { segment: i } = n, { t: o } = T(), c = V(null);
|
|
70
|
+
G(() => {
|
|
71
71
|
var E;
|
|
72
72
|
(E = c.current) == null || E.focus({
|
|
73
73
|
preventScroll: !0
|
|
@@ -92,7 +92,7 @@ const r = ({ children: t }) => {
|
|
|
92
92
|
}
|
|
93
93
|
});
|
|
94
94
|
}, re = ({ className: t, ...n }) => {
|
|
95
|
-
const { hidePlaceholder: s } = p(), { segment: a } = n, { t: i } = T(), o = x(
|
|
95
|
+
const { hidePlaceholder: s } = p(), { segment: a } = n, { t: i } = T(), o = x(w), c = s ? void 0 : i("field.date.placeholder.period"), l = () => o == null ? void 0 : o.increment("dayPeriod");
|
|
96
96
|
return /* @__PURE__ */ e.createElement(_, {
|
|
97
97
|
segment: a,
|
|
98
98
|
className: t,
|
|
@@ -113,7 +113,7 @@ function ne(t) {
|
|
|
113
113
|
if (!t)
|
|
114
114
|
return null;
|
|
115
115
|
try {
|
|
116
|
-
return
|
|
116
|
+
return B(t);
|
|
117
117
|
} catch {
|
|
118
118
|
return null;
|
|
119
119
|
}
|
|
@@ -133,13 +133,13 @@ const oe = "_time_5p151_1", le = "_hour_5p151_17", se = "_minute_5p151_18", ie =
|
|
|
133
133
|
hour: le,
|
|
134
134
|
minute: se,
|
|
135
135
|
period: ie
|
|
136
|
-
}, ce = ({ content: t, locale: n }) => /* @__PURE__ */ e.createElement(
|
|
136
|
+
}, ce = ({ content: t, locale: n }) => /* @__PURE__ */ e.createElement(q, {
|
|
137
137
|
content: t,
|
|
138
138
|
locale: n
|
|
139
139
|
}), me = () => {
|
|
140
140
|
const t = $(h.time);
|
|
141
141
|
return /* @__PURE__ */ e.createElement(r, null, /* @__PURE__ */ e.createElement(r.Label, {
|
|
142
|
-
className: m(
|
|
142
|
+
className: m(K, f.label)
|
|
143
143
|
}, /* @__PURE__ */ e.createElement(r.Label.Required, {
|
|
144
144
|
className: m(Q, f.requiredMark)
|
|
145
145
|
})), /* @__PURE__ */ e.createElement(r.Time, {
|
|
@@ -151,11 +151,11 @@ const oe = "_time_5p151_1", le = "_hour_5p151_17", se = "_minute_5p151_18", ie =
|
|
|
151
151
|
}), /* @__PURE__ */ e.createElement(r.Time.Period, {
|
|
152
152
|
className: m(h.period, S)
|
|
153
153
|
})), /* @__PURE__ */ e.createElement(r.Error, {
|
|
154
|
-
className: m(
|
|
154
|
+
className: m(z, f.error)
|
|
155
155
|
}, /* @__PURE__ */ e.createElement(Z, null), /* @__PURE__ */ e.createElement(r.Error.Text, null)), /* @__PURE__ */ e.createElement(r.Description, {
|
|
156
|
-
className: m(
|
|
156
|
+
className: m(J, f.description)
|
|
157
157
|
}, ce));
|
|
158
|
-
},
|
|
158
|
+
}, ge = () => /* @__PURE__ */ e.createElement(me, null);
|
|
159
159
|
export {
|
|
160
|
-
|
|
160
|
+
ge as TimeInputRAC
|
|
161
161
|
};
|