@wix/form-elements 1.118.0 → 1.119.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-DOX_XA8U.js → appointment-rac-BmwzUTfZ.js} +4 -4
- package/dist/component/{bookings-address-rac-D6F3YmWd.js → bookings-address-rac-CDpBaBGi.js} +1 -1
- package/dist/component/{bookings-email-rac-D3fVHUXL.js → bookings-email-rac-8AonBAEP.js} +1 -1
- package/dist/component/{bookings-first-name-rac-BSsIcog-.js → bookings-first-name-rac-BAF3OLyL.js} +1 -1
- package/dist/component/{bookings-header-rac-Cv0Z9j_F.js → bookings-header-rac-DIXxOHe1.js} +1 -1
- package/dist/component/{bookings-last-name-rac-Cj2lIAjK.js → bookings-last-name-rac-Cm-58BWq.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-DBvDJu_E.js → bookings-login-bar-rac-DvaiFVqg.js} +1 -1
- package/dist/component/{bookings-phone-rac-D-9o627J.js → bookings-phone-rac-znrjfRwm.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-Cf-IPS0I.js → bookings-rich-text-rac-DFPeWcrH.js} +1 -1
- package/dist/component/{checkbox-field-rac-6Udo3s6p.js → checkbox-field-rac-COvxqyF7.js} +4 -4
- package/dist/component/{checkbox-group-field-headless-CDK-eDUl.js → checkbox-group-field-headless-DT1HX61N.js} +3 -3
- package/dist/component/{checkbox-group-field-rac-tCFCFYGV.js → checkbox-group-field-rac-Db1w6Vzm.js} +4 -4
- package/dist/component/{checkbox-group-rac-DPh0zkBi.js → checkbox-group-rac-BCgFQJ4P.js} +1 -1
- package/dist/component/{checkbox-rac-BkWlb25s.js → checkbox-rac-C1dKq2AT.js} +1 -1
- package/dist/component/{contacts-address-rac-Kbkylw5w.js → contacts-address-rac-BoZ2LExb.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-D69wSEFU.js → contacts-birthdate-rac-CX-oJkwP.js} +1 -1
- package/dist/component/{contacts-company-rac-B3YJjFvh.js → contacts-company-rac-ByY9oaOX.js} +1 -1
- package/dist/component/{contacts-email-rac-C5Duwxh1.js → contacts-email-rac-DBnTEm82.js} +1 -1
- package/dist/component/{contacts-first-name-rac-CoLLOnGW.js → contacts-first-name-rac-Jn-ubMoS.js} +1 -1
- package/dist/component/{contacts-last-name-rac-0Z7X9SUh.js → contacts-last-name-rac-Wea7_JU-.js} +1 -1
- package/dist/component/{contacts-phone-rac-BQKx39UA.js → contacts-phone-rac-POYGTwBr.js} +1 -1
- package/dist/component/{contacts-position-rac-DAPmVCNi.js → contacts-position-rac-DjDHNTfL.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-ON47-g2O.js → contacts-subscribe-rac-C7vOLrLV.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-Db7VL880.js → contacts-tax-id-rac-C-CVis0b.js} +1 -1
- package/dist/component/{date-availability-Cyych3R5.js → date-availability-B3unFx4z.js} +1 -1
- package/dist/component/{date-input-field-rac-DsfxwpA-.js → date-input-field-rac-BW0c1-Kl.js} +53 -52
- package/dist/component/{date-input-rac-Dpx6hbK8.js → date-input-rac-BW_WuabB.js} +1 -1
- package/dist/component/{date-picker-field-rac-l8CuNLev.js → date-picker-field-rac-DgBfvDRc.js} +5 -5
- package/dist/component/{date-picker-rac-CoyfVxOX.js → date-picker-rac-B2v-E9tZ.js} +1 -1
- package/dist/component/{date-time-input-field-rac-BAhjfIcJ.js → date-time-input-field-rac-DNxauQLv.js} +108 -107
- package/dist/component/{date-time-input-rac-BGFakUbz.js → date-time-input-rac-DZMQuMlD.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-B876yIKn.js → dext-checkbox-group-rac-B0u3i1v1.js} +2 -2
- package/dist/component/{dext-checkbox-rac-Ci14Mfa1.js → dext-checkbox-rac-BngAFLbm.js} +1 -1
- package/dist/component/{dext-date-picker-rac-CUsowZYX.js → dext-date-picker-rac-CyPtZQQp.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-DG14fGJr.js → dext-date-time-input-rac-DBm_ZVMr.js} +1 -1
- package/dist/component/{dext-dropdown-rac-BaJegaba.js → dext-dropdown-rac-DBDOigJS.js} +1 -1
- package/dist/component/{dext-email-rac-C49ceNke.js → dext-email-rac-Cj-eerfr.js} +1 -1
- package/dist/component/{dext-number-input-rac-CxIJpFXl.js → dext-number-input-rac-WdUIM6bV.js} +1 -1
- package/dist/component/{dext-phone-rac-DneuzL2U.js → dext-phone-rac-CH-UDDKr.js} +1 -1
- package/dist/component/{dext-radio-group-rac-yRrF0Zu7.js → dext-radio-group-rac-umexCSNY.js} +2 -2
- package/dist/component/{dext-rating-input-rac-Bp1SEpJ-.js → dext-rating-input-rac-ukMPDLxU.js} +1 -1
- package/dist/component/{dext-tags-rac-CnXMe-Kt.js → dext-tags-rac-BE8aqyRm.js} +2 -2
- package/dist/component/{dext-text-area-rac-DLiYTHQf.js → dext-text-area-rac-GtNDPetb.js} +1 -1
- package/dist/component/{dext-text-input-rac-DUkhZFqN.js → dext-text-input-rac-DQhaKaoe.js} +1 -1
- package/dist/component/{dext-url-input-rac-BcTNeWpI.js → dext-url-input-rac-DogsntOO.js} +1 -1
- package/dist/component/{donation-rac-BfhuRU5h.js → donation-rac-C1Se3wmU.js} +5 -5
- package/dist/component/dropdown-field-headless-5vi45azS.js +91 -0
- package/dist/component/{dropdown-field-rac-DYCQacRr.js → dropdown-field-rac-B0PeCuG6.js} +3 -3
- package/dist/component/{dropdown-rac-DXeZuaZ7.js → dropdown-rac--ZgcFbpH.js} +1 -1
- package/dist/component/{ecom-address-rac-BGLRC130.js → ecom-address-rac-C1p-fN1j.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-C7qp-tpL.js → ecom-subscription-checkbox-rac-uplYmDWZ.js} +2 -2
- package/dist/component/{email-input-field-rac-BqXze1u_.js → email-input-field-rac-C6nqydVv.js} +3 -3
- package/dist/component/{events-repeater-rac-Bvet0Fqq.js → events-repeater-rac-CqKFo75H.js} +4 -4
- package/dist/component/{events-rsvp-rac-B661R2PY.js → events-rsvp-rac-BBQwW-Jk.js} +3 -3
- package/dist/component/{field-error-headless-Tx25j-Iy.js → field-error-headless-COObBNJG.js} +1 -1
- package/dist/component/{field-label-headless-D3fAmFRO.js → field-label-headless-DhXceghb.js} +1 -1
- package/dist/component/{file-upload-rac-DCBEIiOZ.js → file-upload-rac-B5CnpgIo.js} +4 -4
- package/dist/component/{fixed-payment-rac-BqCVDK1W.js → fixed-payment-rac-B8yKRpQV.js} +3 -3
- package/dist/component/{form-CJlXWndz.js → form-CimhBiBc.js} +69 -69
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-C1SCqCGi.js → header-field-rac-BHgFF-LG.js} +2 -2
- package/dist/component/{header-rac-31u5nkR9.js → header-rac-DJttTbow.js} +1 -1
- package/dist/component/{image-choice-rac-BAmDUdu_.js → image-choice-rac-C-qj1WBS.js} +4 -4
- package/dist/component/{index-B7Ed5GmZ.js → index-9nfSsqJo.js} +4 -4
- package/dist/component/{index-BWTxklLR.js → index-Qe91Dgi2.js} +2 -2
- package/dist/component/{isObjectLike-CL_ZXuU5.js → isObjectLike-VICRth8V.js} +1 -1
- package/dist/component/{multiline-address-field-rac-DgmmawQq.js → multiline-address-field-rac-DMg6V-0L.js} +353 -350
- package/dist/component/{multiline-address-rac-T5pfy6VT.js → multiline-address-rac-DpvB5bX9.js} +1 -1
- package/dist/component/{number-input-field-rac-C4vBmxka.js → number-input-field-rac-DQERdWaA.js} +4 -4
- package/dist/component/{number-input-rac-FXy8C6OS.js → number-input-rac-DY9uyE-k.js} +1 -1
- package/dist/component/{password-rac-BLVM1iY1.js → password-rac-cSWH1LPy.js} +4 -4
- package/dist/component/{payment-input-rac-BCjR13AI.js → payment-input-rac-BiUNnsQx.js} +4 -4
- package/dist/component/{phone-input-field-rac-Dcn7NY2J.js → phone-input-field-rac-CtPGbnw_.js} +27 -26
- package/dist/component/{phone-rac-CZysHw73.js → phone-rac-CFeNcp2U.js} +1 -1
- package/dist/component/{product-list-rac-CQ5dtVQ7.js → product-list-rac-DzhnEmL_.js} +4 -4
- package/dist/component/{quiz-radio-group-rac-DYt0ayX-.js → quiz-radio-group-rac-BpsPgebu.js} +1 -1
- package/dist/component/{radio-button-module-classes-z_fzw3Xa.js → radio-button-module-classes-NBKHsJH7.js} +3 -3
- package/dist/component/{radio-group-field-rac-DRatTDFh.js → radio-group-field-rac-C2oTt1mT.js} +4 -4
- package/dist/component/{radio-group-rac-BBtqYnNc.js → radio-group-rac-oINHZ5yY.js} +1 -1
- package/dist/component/{rating-input-field-rac-CmhwF5vm.js → rating-input-field-rac-fnv2RdUA.js} +4 -4
- package/dist/component/{rating-input-rac-COXzdcQ2.js → rating-input-rac-BFofFzSX.js} +1 -1
- package/dist/component/{rich-content-rac.module--2mwLD8u.js → rich-content-rac.module-BplXvCt6.js} +1 -1
- package/dist/component/{rich-text-field-rac-XxbjaZ7E.js → rich-text-field-rac-Csi4_gCV.js} +2 -2
- package/dist/component/{rich-text-rac-DRLWz1SC.js → rich-text-rac-Btu1y3LR.js} +1 -1
- package/dist/component/{service-dropdown-rac-DDrq6eWp.js → service-dropdown-rac-CzZW7Bp1.js} +4 -4
- package/dist/component/{services-multi-choice-rac-Dbc_AWQt.js → services-multi-choice-rac-B2rAg7VN.js} +5 -5
- package/dist/component/{signature-rac-BL_38fV-.js → signature-rac-tznFgZ4j.js} +3 -3
- package/dist/component/{submit-button-rac-7jEdBomF.js → submit-button-rac-DnHWbtTC.js} +1 -1
- package/dist/component/{tags-field-rac-D0IkpR9t.js → tags-field-rac-DFm9o85s.js} +5 -5
- package/dist/component/{tags-rac-B-2Uj1av.js → tags-rac-CJFccYp5.js} +1 -1
- package/dist/component/{text-area-field-rac-viHeHjEN.js → text-area-field-rac-C4UEZOjz.js} +4 -4
- package/dist/component/{text-area-rac-BAERMJFz.js → text-area-rac-Dhsq1l8f.js} +1 -1
- package/dist/component/{text-input-field-rac-C5DpFoUx.js → text-input-field-rac-DiW0Sqj_.js} +3 -3
- package/dist/component/{text-input-headless-VO6IlfBC.js → text-input-headless-u1_aFnZ1.js} +3 -3
- package/dist/component/{text-input-rac-B2W3Z2v6.js → text-input-rac-COy-c4N_.js} +1 -1
- package/dist/component/{time-input-rac-CPbkv18u.js → time-input-rac-DipZQTZN.js} +4 -4
- package/dist/component/{url-input-field-rac-BeJpz4ul.js → url-input-field-rac-DhBCGvKd.js} +4 -4
- package/dist/component/{url-input-rac-BD6Opv2A.js → url-input-rac-kw4gCDbc.js} +1 -1
- package/dist/component/use-dropdown-option-class-name-Bes6rpX4.js +115 -0
- package/dist/component/{use-element-state-class-name-BNSdoQqN.js → use-element-state-class-name-_GWfwpEf.js} +1 -1
- package/dist/component/{use-is-forced-open-dropdown-BiTXTz0Y.js → use-is-forced-open-dropdown-RE1Ml2A3.js} +1 -1
- package/dist/component/{use-service-options-base-C2JFwqLm.js → use-service-options-base-4yrjmSWU.js} +1 -1
- package/dist/component/{use-text-input-class-name-y4KCMeRh.js → use-text-input-class-name-uMLXv54u.js} +2 -2
- package/package.json +2 -2
- package/dist/component/dropdown-field-headless-D_Yo2BrI.js +0 -89
- package/dist/component/use-dropdown-option-class-name-DHYzKeNV.js +0 -21
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { RicosViewer as
|
|
1
|
+
import { RicosViewer as se } from "@wix/ricos/viewer";
|
|
2
2
|
import E from "classnames";
|
|
3
|
-
import t, { useMemo as T, useState as q, useCallback as w, useRef as G, useContext as
|
|
3
|
+
import t, { useMemo as T, useState as q, useCallback as w, useRef as G, useContext as oe } from "react";
|
|
4
4
|
import { parseTime as le } from "@internationalized/date";
|
|
5
5
|
import { UNSAFE_PortalProvider as ie } from "react-aria";
|
|
6
|
-
import { ListBoxItem as ce,
|
|
7
|
-
import { b9 as b, b6 as X, b1 as U, aG as J, aT as Z, au as d, bj as
|
|
6
|
+
import { ListBoxItem as ce, Select as me, TextField as Q, TimeField as de, SelectValue as ue, Input as W, DateInput as pe, DateSegment as x, TimeFieldStateContext as Ee } from "react-aria-components";
|
|
7
|
+
import { b9 as b, b6 as X, b1 as U, aG as J, aT as Z, au as d, bj as F, aX as j, aI as he, aB as fe, a_ as be, aC as K, bb as z, I as R, U as ge, t as Ie, K as De, v as _e, p as Ne } from "./form-CimhBiBc.js";
|
|
8
8
|
import { f as u, a as P } from "./find-child-C60k4CxG.js";
|
|
9
|
-
import { g as
|
|
10
|
-
import { D as
|
|
11
|
-
import { L as Fe } from "./field-label-headless-
|
|
12
|
-
import { F as
|
|
13
|
-
import { N as
|
|
14
|
-
import { u as
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
9
|
+
import { g as ye } from "./helpers-HmkkXrh2.js";
|
|
10
|
+
import { D as Oe, E as Te } from "./field-error-headless-COObBNJG.js";
|
|
11
|
+
import { L as Fe } from "./field-label-headless-DhXceghb.js";
|
|
12
|
+
import { F as Le } from "./fieldset-headless-CD3fds9J.js";
|
|
13
|
+
import { N as Ce, S as Pe } from "./non-modal-popover-DtIMXHbe.js";
|
|
14
|
+
import { u as Me } from "./use-is-forced-open-dropdown-RE1Ml2A3.js";
|
|
15
|
+
import { V as Se, u as Re } from "./use-dropdown-option-class-name-Bes6rpX4.js";
|
|
16
|
+
import { C as Ae } from "./chevron-down-icon-CcpVm6B-.js";
|
|
17
|
+
import { E as Ve } from "./error-icon-hZxQ6DEy.js";
|
|
17
18
|
import { H } from "./custom-focus-class-_483Pkwp.js";
|
|
18
19
|
import { s as f } from "./field-rac.module-B4l_0KRU.js";
|
|
19
|
-
import { u as
|
|
20
|
-
import { u as k } from "./use-text-input-class-name-y4KCMeRh.js";
|
|
20
|
+
import { u as k } from "./use-text-input-class-name-uMLXv54u.js";
|
|
21
21
|
const l = ({ children: e, className: a }) => {
|
|
22
|
-
const { id: n, required:
|
|
22
|
+
const { id: n, required: s, onBlur: o, onFocus: r, FieldLayout: i } = b(), { inputId: m, labelId: c, ariaDescribedBy: g } = X(), { regionalFormat: p } = U(), N = T(() => J(p).filter(Z).map((S) => S.toUpperCase()), [
|
|
23
23
|
p
|
|
24
|
-
]), M = u(e, l.Label),
|
|
24
|
+
]), M = u(e, l.Label), v = u(e, l.Description), D = u(e, l.Error), _ = {
|
|
25
25
|
[d.MONTH]: u(e, l.Month),
|
|
26
26
|
[d.DAY]: u(e, l.Day),
|
|
27
27
|
[d.YEAR]: u(e, l.Year)
|
|
@@ -31,28 +31,28 @@ const l = ({ children: e, className: a }) => {
|
|
|
31
31
|
renderLabel: () => P(M, {
|
|
32
32
|
as: "div"
|
|
33
33
|
}),
|
|
34
|
-
renderInput: () => /* @__PURE__ */ t.createElement(
|
|
34
|
+
renderInput: () => /* @__PURE__ */ t.createElement(Le, {
|
|
35
35
|
id: m,
|
|
36
36
|
ariaLabelledBy: c,
|
|
37
37
|
ariaDescribedBy: g,
|
|
38
|
-
required:
|
|
39
|
-
onBlur:
|
|
38
|
+
required: s,
|
|
39
|
+
onBlur: o,
|
|
40
40
|
onFocus: r,
|
|
41
41
|
className: a
|
|
42
42
|
}, _[N[0]], _[N[1]], _[N[2]], y),
|
|
43
|
-
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, D,
|
|
43
|
+
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, D, v)
|
|
44
44
|
});
|
|
45
|
-
},
|
|
46
|
-
const { id: n, disabled:
|
|
47
|
-
|
|
45
|
+
}, L = ({ children: e, className: a }) => {
|
|
46
|
+
const { id: n, disabled: s, readOnly: o, showDateLabels: r, hidePlaceholder: i } = b(), { labelId: m } = O(d.MONTH), { partValue: c, partError: g, onPartChange: p } = C(d.MONTH), { t: N } = F(), [M, v] = q(!1), D = Me(n), [_, y] = q(null), S = i ? void 0 : N("field.date.placeholder.month"), ee = w((Y) => {
|
|
47
|
+
o || p(typeof Y == "string" ? Y : "");
|
|
48
48
|
}, [
|
|
49
49
|
p,
|
|
50
|
-
|
|
50
|
+
o
|
|
51
51
|
]), te = w((Y) => {
|
|
52
|
-
|
|
52
|
+
v(Y && !o);
|
|
53
53
|
}, [
|
|
54
|
-
|
|
55
|
-
]), ae = u(e,
|
|
54
|
+
o
|
|
55
|
+
]), ae = u(e, L.Label), ne = u(e, L.Trigger), re = u(e, L.Options);
|
|
56
56
|
return /* @__PURE__ */ t.createElement("div", {
|
|
57
57
|
className: a,
|
|
58
58
|
"data-date-field": !0
|
|
@@ -63,11 +63,11 @@ const l = ({ children: e, className: a }) => {
|
|
|
63
63
|
}
|
|
64
64
|
}), /* @__PURE__ */ t.createElement(ie, {
|
|
65
65
|
getContainer: () => _
|
|
66
|
-
}, /* @__PURE__ */ t.createElement(
|
|
66
|
+
}, /* @__PURE__ */ t.createElement(me, {
|
|
67
67
|
"aria-labelledby": r ? m : void 0,
|
|
68
68
|
value: c || null,
|
|
69
69
|
onChange: ee,
|
|
70
|
-
isDisabled:
|
|
70
|
+
isDisabled: s,
|
|
71
71
|
isInvalid: g,
|
|
72
72
|
placeholder: S,
|
|
73
73
|
isOpen: D || M,
|
|
@@ -75,73 +75,74 @@ const l = ({ children: e, className: a }) => {
|
|
|
75
75
|
}, ne, P(re, {
|
|
76
76
|
isForcedOpen: D
|
|
77
77
|
}))));
|
|
78
|
-
},
|
|
78
|
+
}, ve = ({ className: e }) => /* @__PURE__ */ t.createElement($, {
|
|
79
79
|
datePart: d.MONTH,
|
|
80
80
|
className: e
|
|
81
81
|
}), Ye = ({ children: e, className: a }) => {
|
|
82
|
-
const { id: n, readOnly:
|
|
82
|
+
const { id: n, readOnly: s } = b(), { inputId: o } = O(d.MONTH), { partError: r, isFirstPart: i } = C(d.MONTH), m = G(null);
|
|
83
83
|
return z(() => {
|
|
84
84
|
var c;
|
|
85
85
|
i && ((c = m.current) == null || c.focus());
|
|
86
|
-
}, n), /* @__PURE__ */ t.createElement(
|
|
86
|
+
}, n), /* @__PURE__ */ t.createElement(Pe, {
|
|
87
87
|
ref: m,
|
|
88
|
-
id:
|
|
88
|
+
id: o,
|
|
89
89
|
className: a,
|
|
90
90
|
"data-hook": d.MONTH,
|
|
91
91
|
"data-invalid": r || void 0,
|
|
92
|
-
"data-readonly":
|
|
93
|
-
}, /* @__PURE__ */ t.createElement(
|
|
92
|
+
"data-readonly": s || void 0
|
|
93
|
+
}, /* @__PURE__ */ t.createElement(ue, null), e);
|
|
94
94
|
}, B = ({ children: e, className: a, ...n }) => {
|
|
95
|
-
const { isForcedOpen:
|
|
96
|
-
|
|
95
|
+
const { isForcedOpen: s } = n, { language: o } = U(), r = T(() => ye(o), [
|
|
96
|
+
o
|
|
97
97
|
]), i = u(e, B.Option) ?? /* @__PURE__ */ t.createElement(B.Option, null);
|
|
98
|
-
return /* @__PURE__ */ t.createElement(
|
|
98
|
+
return /* @__PURE__ */ t.createElement(Ce, {
|
|
99
99
|
className: a,
|
|
100
100
|
containerPadding: 0,
|
|
101
101
|
offset: 0
|
|
102
|
-
}, /* @__PURE__ */ t.createElement(
|
|
103
|
-
|
|
102
|
+
}, /* @__PURE__ */ t.createElement(Se, {
|
|
103
|
+
isForcedOpen: s,
|
|
104
|
+
autoFocus: s ? !1 : void 0
|
|
104
105
|
}, r.map((m, c) => P(i, {
|
|
105
106
|
key: String(c + 1),
|
|
106
107
|
value: String(c + 1),
|
|
107
108
|
label: m
|
|
108
109
|
}))));
|
|
109
110
|
}, He = ({ className: e, ...a }) => {
|
|
110
|
-
const { value: n, label:
|
|
111
|
+
const { value: n, label: s } = a;
|
|
111
112
|
return /* @__PURE__ */ t.createElement(ce, {
|
|
112
113
|
className: e,
|
|
113
114
|
id: n,
|
|
114
|
-
textValue:
|
|
115
|
-
},
|
|
115
|
+
textValue: s
|
|
116
|
+
}, s);
|
|
116
117
|
};
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
118
|
+
L.Label = ve;
|
|
119
|
+
L.Trigger = Ye;
|
|
120
|
+
L.Options = B;
|
|
120
121
|
B.Option = He;
|
|
121
122
|
const A = ({ children: e, className: a }) => {
|
|
122
|
-
const { disabled: n, readOnly:
|
|
123
|
+
const { disabled: n, readOnly: s, showDateLabels: o } = b(), { labelId: r } = O(d.DAY), { partValue: i, partError: m, onPartChange: c } = C(d.DAY), g = u(e, A.Label), p = u(e, A.Input);
|
|
123
124
|
return /* @__PURE__ */ t.createElement("div", {
|
|
124
125
|
className: a,
|
|
125
126
|
"data-date-field": !0
|
|
126
|
-
},
|
|
127
|
-
"aria-labelledby":
|
|
127
|
+
}, o && g, /* @__PURE__ */ t.createElement(Q, {
|
|
128
|
+
"aria-labelledby": o ? r : void 0,
|
|
128
129
|
value: i,
|
|
129
130
|
onChange: c,
|
|
130
131
|
isDisabled: n,
|
|
131
|
-
isReadOnly:
|
|
132
|
+
isReadOnly: s,
|
|
132
133
|
isInvalid: m
|
|
133
134
|
}, p));
|
|
134
135
|
}, we = ({ className: e }) => /* @__PURE__ */ t.createElement($, {
|
|
135
136
|
datePart: d.DAY,
|
|
136
137
|
className: e
|
|
137
138
|
}), Be = ({ className: e }) => {
|
|
138
|
-
const { id: a, hidePlaceholder: n } = b(), { inputId:
|
|
139
|
+
const { id: a, hidePlaceholder: n } = b(), { inputId: s } = O(d.DAY), { isFirstPart: o } = C(d.DAY), { t: r } = F(), i = G(null), m = n ? void 0 : r("field.date.placeholder.day");
|
|
139
140
|
return z(() => {
|
|
140
141
|
var c;
|
|
141
|
-
|
|
142
|
+
o && ((c = i.current) == null || c.focus());
|
|
142
143
|
}, a), /* @__PURE__ */ t.createElement(W, {
|
|
143
144
|
ref: i,
|
|
144
|
-
id:
|
|
145
|
+
id: s,
|
|
145
146
|
className: e,
|
|
146
147
|
placeholder: m,
|
|
147
148
|
maxLength: 2,
|
|
@@ -151,30 +152,30 @@ const A = ({ children: e, className: a }) => {
|
|
|
151
152
|
};
|
|
152
153
|
A.Label = we;
|
|
153
154
|
A.Input = Be;
|
|
154
|
-
const
|
|
155
|
-
const { disabled: n, readOnly:
|
|
155
|
+
const V = ({ children: e, className: a }) => {
|
|
156
|
+
const { disabled: n, readOnly: s, showDateLabels: o } = b(), { labelId: r } = O(d.YEAR), { partValue: i, partError: m, onPartChange: c } = C(d.YEAR), g = u(e, V.Label), p = u(e, V.Input);
|
|
156
157
|
return /* @__PURE__ */ t.createElement("div", {
|
|
157
158
|
className: a,
|
|
158
159
|
"data-date-field": !0
|
|
159
|
-
},
|
|
160
|
-
"aria-labelledby":
|
|
160
|
+
}, o && g, /* @__PURE__ */ t.createElement(Q, {
|
|
161
|
+
"aria-labelledby": o ? r : void 0,
|
|
161
162
|
value: i,
|
|
162
163
|
onChange: c,
|
|
163
164
|
isDisabled: n,
|
|
164
|
-
isReadOnly:
|
|
165
|
+
isReadOnly: s,
|
|
165
166
|
isInvalid: m
|
|
166
167
|
}, p));
|
|
167
168
|
}, xe = ({ className: e }) => /* @__PURE__ */ t.createElement($, {
|
|
168
169
|
datePart: d.YEAR,
|
|
169
170
|
className: e
|
|
170
171
|
}), ke = ({ className: e }) => {
|
|
171
|
-
const { id: a, hidePlaceholder: n } = b(), { inputId:
|
|
172
|
+
const { id: a, hidePlaceholder: n } = b(), { inputId: s } = O(d.YEAR), { isFirstPart: o } = C(d.YEAR), { t: r } = F(), i = G(null), m = n ? void 0 : r("field.date.placeholder.year");
|
|
172
173
|
return z(() => {
|
|
173
174
|
var c;
|
|
174
|
-
|
|
175
|
+
o && ((c = i.current) == null || c.focus());
|
|
175
176
|
}, a), /* @__PURE__ */ t.createElement(W, {
|
|
176
177
|
ref: i,
|
|
177
|
-
id:
|
|
178
|
+
id: s,
|
|
178
179
|
className: e,
|
|
179
180
|
placeholder: m,
|
|
180
181
|
maxLength: 4,
|
|
@@ -182,32 +183,32 @@ const v = ({ children: e, className: a }) => {
|
|
|
182
183
|
"data-hook": d.YEAR
|
|
183
184
|
});
|
|
184
185
|
};
|
|
185
|
-
|
|
186
|
-
|
|
186
|
+
V.Label = xe;
|
|
187
|
+
V.Input = ke;
|
|
187
188
|
const I = ({ children: e, className: a }) => {
|
|
188
|
-
const { disabled: n, readOnly:
|
|
189
|
+
const { disabled: n, readOnly: s, use24HourFormat: o, showDateLabels: r } = b(), { labelId: i } = O("time"), { partValue: m, partError: c, onPartChange: g } = C("time"), p = u(e, I.Label), N = u(e, I.Input);
|
|
189
190
|
return /* @__PURE__ */ t.createElement("div", {
|
|
190
191
|
className: a,
|
|
191
192
|
"data-date-field": !0
|
|
192
|
-
}, r && p, /* @__PURE__ */ t.createElement(
|
|
193
|
+
}, r && p, /* @__PURE__ */ t.createElement(de, {
|
|
193
194
|
"aria-labelledby": r ? i : void 0,
|
|
194
195
|
value: m,
|
|
195
196
|
onChange: g,
|
|
196
197
|
isDisabled: n,
|
|
197
|
-
isReadOnly:
|
|
198
|
+
isReadOnly: s,
|
|
198
199
|
isInvalid: c,
|
|
199
|
-
hourCycle:
|
|
200
|
+
hourCycle: o ? 24 : 12
|
|
200
201
|
}, N));
|
|
201
202
|
}, Ge = ({ className: e }) => {
|
|
202
|
-
const { inputId: a, labelId: n } = O("time"), { t:
|
|
203
|
+
const { inputId: a, labelId: n } = O("time"), { t: s } = F(), o = s("field.date.label.time");
|
|
203
204
|
return /* @__PURE__ */ t.createElement("label", {
|
|
204
205
|
id: n,
|
|
205
206
|
htmlFor: a,
|
|
206
207
|
className: e
|
|
207
|
-
},
|
|
208
|
+
}, o);
|
|
208
209
|
}, Ue = ({ children: e, className: a }) => {
|
|
209
|
-
const n = u(e, I.Hour),
|
|
210
|
-
return /* @__PURE__ */ t.createElement(
|
|
210
|
+
const n = u(e, I.Hour), s = u(e, I.Minute), o = u(e, I.Period);
|
|
211
|
+
return /* @__PURE__ */ t.createElement(pe, {
|
|
211
212
|
className: a,
|
|
212
213
|
"data-hook": "time"
|
|
213
214
|
}, (r) => {
|
|
@@ -217,11 +218,11 @@ const I = ({ children: e, className: a }) => {
|
|
|
217
218
|
segment: r
|
|
218
219
|
}) || /* @__PURE__ */ t.createElement(t.Fragment, null);
|
|
219
220
|
case "minute":
|
|
220
|
-
return P(
|
|
221
|
+
return P(s, {
|
|
221
222
|
segment: r
|
|
222
223
|
}) || /* @__PURE__ */ t.createElement(t.Fragment, null);
|
|
223
224
|
case "dayPeriod":
|
|
224
|
-
return P(
|
|
225
|
+
return P(o, {
|
|
225
226
|
segment: r
|
|
226
227
|
}) || /* @__PURE__ */ t.createElement(t.Fragment, null);
|
|
227
228
|
case "literal":
|
|
@@ -233,27 +234,27 @@ const I = ({ children: e, className: a }) => {
|
|
|
233
234
|
}
|
|
234
235
|
});
|
|
235
236
|
}, ze = ({ className: e, ...a }) => {
|
|
236
|
-
const { hidePlaceholder: n } = b(), { segment:
|
|
237
|
+
const { hidePlaceholder: n } = b(), { segment: s } = a, { t: o } = F(), r = n ? void 0 : o("field.date.placeholder.hour");
|
|
237
238
|
return /* @__PURE__ */ t.createElement(x, {
|
|
238
|
-
segment:
|
|
239
|
+
segment: s,
|
|
239
240
|
className: e,
|
|
240
241
|
...r && {
|
|
241
242
|
placeholder: r
|
|
242
243
|
}
|
|
243
244
|
});
|
|
244
245
|
}, $e = ({ className: e, ...a }) => {
|
|
245
|
-
const { hidePlaceholder: n } = b(), { segment:
|
|
246
|
+
const { hidePlaceholder: n } = b(), { segment: s } = a, { t: o } = F(), r = n ? void 0 : o("field.date.placeholder.minute");
|
|
246
247
|
return /* @__PURE__ */ t.createElement(x, {
|
|
247
|
-
segment:
|
|
248
|
+
segment: s,
|
|
248
249
|
className: e,
|
|
249
250
|
...r && {
|
|
250
251
|
placeholder: r
|
|
251
252
|
}
|
|
252
253
|
});
|
|
253
254
|
}, qe = ({ className: e, ...a }) => {
|
|
254
|
-
const { hidePlaceholder: n } = b(), { segment:
|
|
255
|
+
const { hidePlaceholder: n } = b(), { segment: s } = a, { t: o } = F(), r = oe(Ee), i = n ? void 0 : o("field.date.placeholder.period"), m = () => r == null ? void 0 : r.increment("dayPeriod");
|
|
255
256
|
return /* @__PURE__ */ t.createElement(x, {
|
|
256
|
-
segment:
|
|
257
|
+
segment: s,
|
|
257
258
|
className: e,
|
|
258
259
|
onClick: m,
|
|
259
260
|
...i && {
|
|
@@ -267,12 +268,12 @@ I.Hour = ze;
|
|
|
267
268
|
I.Minute = $e;
|
|
268
269
|
I.Period = qe;
|
|
269
270
|
l.Label = Fe;
|
|
270
|
-
l.Month =
|
|
271
|
+
l.Month = L;
|
|
271
272
|
l.Day = A;
|
|
272
|
-
l.Year =
|
|
273
|
+
l.Year = V;
|
|
273
274
|
l.Time = I;
|
|
274
|
-
l.Description =
|
|
275
|
-
l.Error =
|
|
275
|
+
l.Description = Oe;
|
|
276
|
+
l.Error = Te;
|
|
276
277
|
function O(e) {
|
|
277
278
|
const { inputId: a } = X();
|
|
278
279
|
return T(() => {
|
|
@@ -287,12 +288,12 @@ function O(e) {
|
|
|
287
288
|
]);
|
|
288
289
|
}
|
|
289
290
|
function C(e) {
|
|
290
|
-
const { value: a, onChange: n, hasError:
|
|
291
|
+
const { value: a, onChange: n, hasError: s = !1 } = b(), { regionalFormat: o } = U(), [r, i] = T(() => j(a ?? ""), [
|
|
291
292
|
a
|
|
292
|
-
]), m = T(() =>
|
|
293
|
+
]), m = T(() => he(s, a ?? ""), [
|
|
293
294
|
a,
|
|
294
|
-
|
|
295
|
-
]), c = T(() =>
|
|
295
|
+
s
|
|
296
|
+
]), c = T(() => fe(r), [
|
|
296
297
|
r
|
|
297
298
|
]), g = T(() => je(i), [
|
|
298
299
|
i
|
|
@@ -303,15 +304,15 @@ function C(e) {
|
|
|
303
304
|
n,
|
|
304
305
|
r
|
|
305
306
|
]), N = w((D) => {
|
|
306
|
-
const [, _] = j(a ?? ""), y =
|
|
307
|
+
const [, _] = j(a ?? ""), y = be(D, e, c), S = K(y, _);
|
|
307
308
|
n(S);
|
|
308
309
|
}, [
|
|
309
310
|
n,
|
|
310
311
|
a,
|
|
311
312
|
c,
|
|
312
313
|
e
|
|
313
|
-
]), M = T(() => e === "time" ? !1 : J(
|
|
314
|
-
|
|
314
|
+
]), M = T(() => e === "time" ? !1 : J(o).filter(Z).map((y) => y.toUpperCase())[0] === e, [
|
|
315
|
+
o,
|
|
315
316
|
e
|
|
316
317
|
]);
|
|
317
318
|
return e === "time" ? {
|
|
@@ -327,9 +328,9 @@ function C(e) {
|
|
|
327
328
|
};
|
|
328
329
|
}
|
|
329
330
|
function $({ datePart: e, className: a }) {
|
|
330
|
-
const { inputId: n, labelId:
|
|
331
|
+
const { inputId: n, labelId: s } = O(e), { t: o } = F(), r = `field.date.label.${e.toLowerCase()}`, i = o(r);
|
|
331
332
|
return /* @__PURE__ */ t.createElement("label", {
|
|
332
|
-
id:
|
|
333
|
+
id: s,
|
|
333
334
|
htmlFor: n,
|
|
334
335
|
className: a
|
|
335
336
|
}, i);
|
|
@@ -346,14 +347,14 @@ function je(e) {
|
|
|
346
347
|
function Ke(e) {
|
|
347
348
|
if (!e)
|
|
348
349
|
return null;
|
|
349
|
-
const a = String(e.hour).padStart(2, "0"), n = String(e.minute).padStart(2, "0"),
|
|
350
|
+
const a = String(e.hour).padStart(2, "0"), n = String(e.minute).padStart(2, "0"), s = String(e.second).padStart(2, "0");
|
|
350
351
|
return [
|
|
351
352
|
a,
|
|
352
353
|
n,
|
|
353
|
-
|
|
354
|
+
s
|
|
354
355
|
].join(":");
|
|
355
356
|
}
|
|
356
|
-
const Qe = "_fields_h99r9_1", We = "_month_h99r9_10", Xe = "_day_h99r9_11", Je = "_year_h99r9_12", Ze = "_timeGroup_h99r9_13", et = "_dayInput_h99r9_34", tt = "_yearInput_h99r9_35", at = "_monthTrigger_h99r9_39", nt = "_monthOption_h99r9_59", rt = "_time_h99r9_13",
|
|
357
|
+
const Qe = "_fields_h99r9_1", We = "_month_h99r9_10", Xe = "_day_h99r9_11", Je = "_year_h99r9_12", Ze = "_timeGroup_h99r9_13", et = "_dayInput_h99r9_34", tt = "_yearInput_h99r9_35", at = "_monthTrigger_h99r9_39", nt = "_monthOption_h99r9_59", rt = "_time_h99r9_13", st = "_hour_h99r9_78", ot = "_minute_h99r9_79", lt = "_period_h99r9_80", h = {
|
|
357
358
|
fields: Qe,
|
|
358
359
|
month: We,
|
|
359
360
|
day: Xe,
|
|
@@ -364,30 +365,30 @@ const Qe = "_fields_h99r9_1", We = "_month_h99r9_10", Xe = "_day_h99r9_11", Je =
|
|
|
364
365
|
monthTrigger: at,
|
|
365
366
|
monthOption: nt,
|
|
366
367
|
time: rt,
|
|
367
|
-
hour:
|
|
368
|
-
minute:
|
|
368
|
+
hour: st,
|
|
369
|
+
minute: ot,
|
|
369
370
|
period: lt
|
|
370
|
-
}, it = ({ content: e, locale: a }) => /* @__PURE__ */ t.createElement(
|
|
371
|
+
}, it = ({ content: e, locale: a }) => /* @__PURE__ */ t.createElement(se, {
|
|
371
372
|
content: e,
|
|
372
373
|
locale: a
|
|
373
374
|
}), Pt = () => {
|
|
374
|
-
const e =
|
|
375
|
+
const e = Re(h.monthOption, H), a = k(h.dayInput), n = k(h.yearInput), s = k(h.time);
|
|
375
376
|
return /* @__PURE__ */ t.createElement(l, {
|
|
376
377
|
className: h.fields
|
|
377
378
|
}, /* @__PURE__ */ t.createElement(l.Label, {
|
|
378
379
|
className: E(R, f.label)
|
|
379
380
|
}, /* @__PURE__ */ t.createElement(l.Label.Required, {
|
|
380
|
-
className: E(
|
|
381
|
+
className: E(ge, f.requiredMark)
|
|
381
382
|
})), /* @__PURE__ */ t.createElement(l.Month, {
|
|
382
383
|
className: h.month
|
|
383
384
|
}, /* @__PURE__ */ t.createElement(l.Month.Label, {
|
|
384
385
|
className: E(R, f.label)
|
|
385
386
|
}), /* @__PURE__ */ t.createElement(l.Month.Trigger, {
|
|
386
|
-
className: E(
|
|
387
|
-
}, /* @__PURE__ */ t.createElement(
|
|
387
|
+
className: E(Ie, f.input, h.monthTrigger)
|
|
388
|
+
}, /* @__PURE__ */ t.createElement(Ae, {
|
|
388
389
|
className: f.dropdownIcon
|
|
389
390
|
})), /* @__PURE__ */ t.createElement(l.Month.Options, {
|
|
390
|
-
className: E(
|
|
391
|
+
className: E(De, f.selectPopover, f.dropdownPopover)
|
|
391
392
|
}, /* @__PURE__ */ t.createElement(l.Month.Options.Option, {
|
|
392
393
|
className: e
|
|
393
394
|
}))), /* @__PURE__ */ t.createElement(l.Day, {
|
|
@@ -407,7 +408,7 @@ const Qe = "_fields_h99r9_1", We = "_month_h99r9_10", Xe = "_day_h99r9_11", Je =
|
|
|
407
408
|
}, /* @__PURE__ */ t.createElement(l.Time.Label, {
|
|
408
409
|
className: E(R, f.label)
|
|
409
410
|
}), /* @__PURE__ */ t.createElement(l.Time.Input, {
|
|
410
|
-
className:
|
|
411
|
+
className: s
|
|
411
412
|
}, /* @__PURE__ */ t.createElement(l.Time.Hour, {
|
|
412
413
|
className: E(h.hour, H)
|
|
413
414
|
}), /* @__PURE__ */ t.createElement(l.Time.Minute, {
|
|
@@ -415,9 +416,9 @@ const Qe = "_fields_h99r9_1", We = "_month_h99r9_10", Xe = "_day_h99r9_11", Je =
|
|
|
415
416
|
}), /* @__PURE__ */ t.createElement(l.Time.Period, {
|
|
416
417
|
className: E(h.period, H)
|
|
417
418
|
}))), /* @__PURE__ */ t.createElement(l.Error, {
|
|
418
|
-
className: E(
|
|
419
|
-
}, /* @__PURE__ */ t.createElement(
|
|
420
|
-
className: E(
|
|
419
|
+
className: E(_e, f.error)
|
|
420
|
+
}, /* @__PURE__ */ t.createElement(Ve, null), /* @__PURE__ */ t.createElement(l.Error.Text, null)), /* @__PURE__ */ t.createElement(l.Description, {
|
|
421
|
+
className: E(Ne, f.description)
|
|
421
422
|
}, it));
|
|
422
423
|
};
|
|
423
424
|
export {
|
package/dist/component/{dext-checkbox-group-rac-B876yIKn.js → dext-checkbox-group-rac-B0u3i1v1.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import o from "react";
|
|
2
|
-
import { b9 as e, ac as t } from "./form-
|
|
3
|
-
import { C as p } from "./checkbox-group-field-rac-
|
|
2
|
+
import { b9 as e, ac as t } from "./form-CimhBiBc.js";
|
|
3
|
+
import { C as p } from "./checkbox-group-field-rac-Db1w6Vzm.js";
|
|
4
4
|
import { D as s } from "./default-limits-D7qVv_Hv.js";
|
|
5
5
|
const C = () => {
|
|
6
6
|
const r = {
|
package/dist/component/{dext-radio-group-rac-yRrF0Zu7.js → dext-radio-group-rac-umexCSNY.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import r from "react";
|
|
2
|
-
import { b9 as e, ac as t } from "./form-
|
|
3
|
-
import { R as p } from "./radio-group-field-rac-
|
|
2
|
+
import { b9 as e, ac as t } from "./form-CimhBiBc.js";
|
|
3
|
+
import { R as p } from "./radio-group-field-rac-C2oTt1mT.js";
|
|
4
4
|
import { a } from "./default-limits-D7qVv_Hv.js";
|
|
5
5
|
const c = () => {
|
|
6
6
|
const o = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import r from "react";
|
|
2
|
-
import { b9 as e, ac as o } from "./form-
|
|
3
|
-
import { T as s } from "./tags-field-rac-
|
|
2
|
+
import { b9 as e, ac as o } from "./form-CimhBiBc.js";
|
|
3
|
+
import { T as s } from "./tags-field-rac-DFm9o85s.js";
|
|
4
4
|
import { b as a } from "./default-limits-D7qVv_Hv.js";
|
|
5
5
|
const c = () => {
|
|
6
6
|
const t = {
|
|
@@ -3,19 +3,19 @@ import { RicosViewer as re } from "@wix/ricos/viewer";
|
|
|
3
3
|
import D from "classnames";
|
|
4
4
|
import { RadioGroup as se, RadioField as G, RadioButton as Y, TextField as ae, Group as le, Input as ie } from "react-aria-components";
|
|
5
5
|
import { debounce as ce } from "ts-debounce";
|
|
6
|
-
import { aq as Q, b9 as L, b6 as B, bj as ue, b1 as j, bb as me, I as pe, U as de, q as Ie, v as fe, p as Ce, r as Ee } from "./form-
|
|
6
|
+
import { aq as Q, b9 as L, b6 as B, bj as ue, b1 as j, bb as me, I as pe, U as de, q as Ie, v as fe, p as Ce, r as Ee } from "./form-CimhBiBc.js";
|
|
7
7
|
import { f as E, a as y } from "./find-child-C60k4CxG.js";
|
|
8
8
|
import { a as W } from "./format-currency-BwShJ9vM.js";
|
|
9
|
-
import { D as he, E as Oe } from "./field-error-headless-
|
|
10
|
-
import { L as be } from "./field-label-headless-
|
|
9
|
+
import { D as he, E as Oe } from "./field-error-headless-COObBNJG.js";
|
|
10
|
+
import { L as be } from "./field-label-headless-DhXceghb.js";
|
|
11
11
|
import { a as _e, b as ye } from "./numeric-input-utils-CuBMi4-a.js";
|
|
12
12
|
import { g as Ne } from "./payment-field-utils-DobiK5Xh.js";
|
|
13
13
|
import { u as ge } from "./use-synced-display-value-DcAxdn3M.js";
|
|
14
14
|
import { E as Fe } from "./error-icon-hZxQ6DEy.js";
|
|
15
15
|
import { s as v } from "./field-rac.module-B4l_0KRU.js";
|
|
16
16
|
import { o as De } from "./options-rac.module-_THNq6Qq.js";
|
|
17
|
-
import { u as ve } from "./use-element-state-class-name-
|
|
18
|
-
import { u as Se } from "./use-text-input-class-name-
|
|
17
|
+
import { u as ve } from "./use-element-state-class-name-_GWfwpEf.js";
|
|
18
|
+
import { u as Se } from "./use-text-input-class-name-uMLXv54u.js";
|
|
19
19
|
function Re(e, t) {
|
|
20
20
|
return e.reduce((o, r) => (o[r[t]] = r, o), {});
|
|
21
21
|
}
|