@wix/form-elements 1.242.0 → 1.243.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-Bab9tSUj.js → appointment-rac-D-dMrhRb.js} +43 -43
- package/dist/component/{bookings-address-rac-DcpXlUvQ.js → bookings-address-rac-B6aQ4P5I.js} +1 -1
- package/dist/component/{bookings-email-rac-Bp0i-XuQ.js → bookings-email-rac-Bh849hrc.js} +1 -1
- package/dist/component/{bookings-first-name-rac-BWSlc38n.js → bookings-first-name-rac-C69Ind1o.js} +1 -1
- package/dist/component/{bookings-header-rac-C2jB1zfG.js → bookings-header-rac-DGUzMGRj.js} +1 -1
- package/dist/component/{bookings-last-name-rac-BkwCVLE2.js → bookings-last-name-rac-Ch9Bm-sr.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-DpGFo3D_.js → bookings-login-bar-rac-CUhHuZm-.js} +1 -1
- package/dist/component/{bookings-phone-rac-BtgTVsj2.js → bookings-phone-rac-BI4PoSu3.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-DsOs6O8q.js → bookings-rich-text-rac-B4D2ZCJs.js} +1 -1
- package/dist/component/{checkbox-field-rac-DysYJ41o.js → checkbox-field-rac-zE0dzJYu.js} +81 -81
- package/dist/component/{checkbox-group-field-headless-Df-A3KXl.js → checkbox-group-field-headless-C2x-la-e.js} +44 -44
- package/dist/component/{checkbox-group-field-rac-DFnJDZWN.js → checkbox-group-field-rac-iJkQGTiJ.js} +4 -4
- package/dist/component/{checkbox-group-rac-B7TaGbZy.js → checkbox-group-rac-DoK5e4c8.js} +1 -1
- package/dist/component/{checkbox-rac-Di0BHQqP.js → checkbox-rac-8i-6GMze.js} +1 -1
- package/dist/component/{contacts-address-rac-DhSjIORz.js → contacts-address-rac-CHcRQBjy.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-B3nWdWka.js → contacts-birthdate-rac-CkSsvQ6R.js} +1 -1
- package/dist/component/{contacts-company-rac-DFYyTkvq.js → contacts-company-rac-CIsmil8s.js} +1 -1
- package/dist/component/{contacts-email-rac-DGzgN38U.js → contacts-email-rac-AEvRJfWd.js} +1 -1
- package/dist/component/{contacts-first-name-rac-CZ3e4Pxp.js → contacts-first-name-rac-CLSJ2cna.js} +1 -1
- package/dist/component/{contacts-last-name-rac-Dvu7FY_c.js → contacts-last-name-rac-o59dmvVn.js} +1 -1
- package/dist/component/{contacts-phone-rac-DeLq3Efe.js → contacts-phone-rac-jh-YSD-N.js} +1 -1
- package/dist/component/{contacts-position-rac-YhEGkgEL.js → contacts-position-rac-Ak4X2gV_.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-DzVP-ujl.js → contacts-subscribe-rac-By9Bk1YL.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-CU4sTn5G.js → contacts-tax-id-rac-B1enZgKk.js} +1 -1
- package/dist/component/{date-availability-1nR4MMNM.js → date-availability--3J2b6Ur.js} +1 -1
- package/dist/component/{date-input-field-rac-CM_aSFwq.js → date-input-field-rac-BFt0DKA9.js} +66 -66
- package/dist/component/{date-input-rac-BKDGvMhS.js → date-input-rac-D8BA8S1A.js} +1 -1
- package/dist/component/{date-picker-field-rac-Cy3E6oIi.js → date-picker-field-rac-cwYdVf60.js} +40 -40
- package/dist/component/{date-picker-rac-P7Rt52yN.js → date-picker-rac-B7uR5ZnA.js} +1 -1
- package/dist/component/{date-time-input-field-rac-Dy0yHP_r.js → date-time-input-field-rac-PaKyrMb9.js} +98 -98
- package/dist/component/{date-time-input-rac-Bte2ExkW.js → date-time-input-rac-Ck8Edatx.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-aDNIkDPY.js → dext-checkbox-group-rac-Cru3Lq4c.js} +2 -2
- package/dist/component/{dext-checkbox-rac-7cCDU8rx.js → dext-checkbox-rac-wtMsRxly.js} +1 -1
- package/dist/component/{dext-date-picker-rac-CiKlP583.js → dext-date-picker-rac-B34DtxLN.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-Cg0rG4Qg.js → dext-date-time-input-rac-BsdfLty5.js} +1 -1
- package/dist/component/{dext-dropdown-rac-BqQfNIBY.js → dext-dropdown-rac-DeZYnwo7.js} +1 -1
- package/dist/component/{dext-email-rac-BfeJHd-1.js → dext-email-rac-B4GTK5H8.js} +1 -1
- package/dist/component/{dext-number-input-rac-Co2-0GIg.js → dext-number-input-rac-BIyJJ9h0.js} +1 -1
- package/dist/component/{dext-phone-rac-nruJqfOS.js → dext-phone-rac-lf64Ywlp.js} +1 -1
- package/dist/component/{dext-radio-group-rac-D4dpTCbP.js → dext-radio-group-rac-CGt1_jue.js} +2 -2
- package/dist/component/{dext-rating-input-rac-DZdFsFwX.js → dext-rating-input-rac-CbaW1lxS.js} +1 -1
- package/dist/component/{dext-tags-rac-Bo06MMsK.js → dext-tags-rac-DnHDnzD_.js} +2 -2
- package/dist/component/{dext-text-area-rac-DFilJP7d.js → dext-text-area-rac-C8DVKWKo.js} +1 -1
- package/dist/component/{dext-text-input-rac-Btnz_-2P.js → dext-text-input-rac-DVl-1SDY.js} +1 -1
- package/dist/component/{dext-url-input-rac-YpJVis2h.js → dext-url-input-rac-CkpAMLF9.js} +1 -1
- package/dist/component/{dismiss-icon-DNnhVj3P.js → dismiss-icon-CwZIlL7w.js} +6 -6
- package/dist/component/{donation-rac-CgrtVdQ9.js → donation-rac-DCNG5ByO.js} +44 -44
- package/dist/component/{dropdown-field-rac-CWdttDy1.js → dropdown-field-rac-CVbM-0KX.js} +3 -3
- package/dist/component/{dropdown-rac-Bn29r6Vt.js → dropdown-rac-CE9IjTvE.js} +1 -1
- package/dist/component/{ecom-address-rac-DPSadNy1.js → ecom-address-rac-BD_okFDt.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-C5RN2TfZ.js → ecom-subscription-checkbox-rac-C7zdxqra.js} +2 -2
- package/dist/component/{email-input-field-rac-Bl_i7BQ3.js → email-input-field-rac-CY4wE0eP.js} +35 -35
- package/dist/component/{events-repeater-rac-8MaxRBKl.js → events-repeater-rac-Bh-TBEQG.js} +26 -26
- package/dist/component/{events-rsvp-rac-DgduOqZJ.js → events-rsvp-rac-BPhzKqUb.js} +3 -3
- package/dist/component/{field-error-headless-CBz8B75M.js → field-error-headless-D3lVhOaC.js} +1 -1
- package/dist/component/{field-label-headless-5GuAGL0Y.js → field-label-headless-CrZoTwxs.js} +5 -5
- package/dist/component/{file-upload-rac-BQbXxpk9.js → file-upload-rac-DYP83swC.js} +187 -186
- package/dist/component/{fixed-payment-rac-zRYih9qW.js → fixed-payment-rac-DY7hXK7g.js} +11 -11
- package/dist/component/{form-Bc8sA308.js → form-DpFQ9uO1.js} +3059 -2934
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-C6f6tpfn.js → header-field-rac-9wOBV_rW.js} +2 -2
- package/dist/component/{header-rac-Dv-9gQlw.js → header-rac-gzKNBkq_.js} +1 -1
- package/dist/component/{image-choice-rac-DgmQKZLT.js → image-choice-rac-B6dvv6Jc.js} +25 -25
- package/dist/component/{index-Btc2rtde.js → index-CbCZUvYt.js} +2 -2
- package/dist/component/{index-BH3c1lm6.js → index-DCl2274b.js} +4 -4
- package/dist/component/{isObjectLike-DUAmJpnS.js → isObjectLike-DDBjMXgH.js} +1 -1
- package/dist/component/{multiline-address-field-rac-CD692gBt.js → multiline-address-field-rac-CPkSpMMb.js} +210 -210
- package/dist/component/{multiline-address-rac-DRInxa21.js → multiline-address-rac-DCnk-LvE.js} +1 -1
- package/dist/component/{number-input-field-rac-D7Uf9yNQ.js → number-input-field-rac-Dt0hM2jA.js} +19 -19
- package/dist/component/{number-input-rac-C600LCBk.js → number-input-rac-pjmjC2-7.js} +1 -1
- package/dist/component/{password-rac-BLi1E4nU.js → password-rac-D9Gmp1yw.js} +32 -32
- package/dist/component/{payment-input-rac-DhtjMf3j.js → payment-input-rac-CI78trIl.js} +33 -33
- package/dist/component/{phone-input-field-rac-DcmI5WGt.js → phone-input-field-rac-BCPj6vEP.js} +39 -39
- package/dist/component/{phone-rac-KcmTZZ9n.js → phone-rac-FAGNDAR-.js} +1 -1
- package/dist/component/{product-list-rac-DqcTH4Uz.js → product-list-rac-D7n9P2wQ.js} +14 -14
- package/dist/component/{quiz-radio-group-rac-BhE36x3f.js → quiz-radio-group-rac-BO55azn2.js} +1 -1
- package/dist/component/{radio-button-module-classes-Bb8FJ98H.js → radio-button-module-classes-BIraDyOu.js} +35 -35
- package/dist/component/{radio-group-field-rac-ZRFBSw-k.js → radio-group-field-rac-BvUZ-DmS.js} +4 -4
- package/dist/component/{radio-group-rac-DJzh_9Rz.js → radio-group-rac-qc0JijX9.js} +1 -1
- package/dist/component/{rating-input-field-rac-O761Lr7O.js → rating-input-field-rac-D3u_T_la.js} +18 -18
- package/dist/component/{rating-input-rac-N5UUwsk9.js → rating-input-rac-CqlPfSQQ.js} +1 -1
- package/dist/component/{rich-content-rac.module-CyyY4g0Y.js → rich-content-rac.module-B4TapWZL.js} +7 -7
- package/dist/component/{rich-text-field-rac-G1dCddAG.js → rich-text-field-rac-LgoEQuKS.js} +4 -4
- package/dist/component/{rich-text-rac-DRls3PAt.js → rich-text-rac-1IcHKfEb.js} +1 -1
- package/dist/component/{service-dropdown-rac-CQtdLY6W.js → service-dropdown-rac-CMkRaLmg.js} +22 -22
- package/dist/component/{services-multi-choice-rac-GXHhjMdj.js → services-multi-choice-rac-DzwHkD-j.js} +7 -7
- package/dist/component/{signature-rac-Bthr2qFV.js → signature-rac-D3X5-ScB.js} +71 -71
- package/dist/component/{submit-button-rac-CZpKTkAI.js → submit-button-rac-BWL76gny.js} +15 -15
- package/dist/component/{tags-field-rac-C7tkzxNX.js → tags-field-rac-BwGeFDfH.js} +24 -24
- package/dist/component/{tags-rac-CWgu9IXx.js → tags-rac-DU7-Kl1T.js} +1 -1
- package/dist/component/{text-area-field-rac-BFRW0mfT.js → text-area-field-rac-BO_9zG3x.js} +19 -19
- package/dist/component/{text-area-rac-DaJColM3.js → text-area-rac-CG7vi5-F.js} +1 -1
- package/dist/component/{text-input-field-rac-D4QPznxH.js → text-input-field-rac-FWkVzsiY.js} +3 -3
- package/dist/component/{text-input-headless-B3LeZbMa.js → text-input-headless-COFlfx6N.js} +9 -9
- package/dist/component/{text-input-rac-D6t913v4.js → text-input-rac-D_7yUDzw.js} +1 -1
- package/dist/component/{time-input-rac-BRXeAxLy.js → time-input-rac-0Ggsm6qE.js} +24 -24
- package/dist/component/{url-input-field-rac-C7AeMSCu.js → url-input-field-rac-CH7kG_Qf.js} +25 -25
- package/dist/component/{url-input-rac-Crya6SOE.js → url-input-rac-CjBn6ZWh.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-CF6Nkoi8.js → use-dropdown-option-class-name-Cy_iJyiA.js} +2 -2
- package/dist/component/{use-dropdown-trigger-class-name-CPKkbYSD.js → use-dropdown-trigger-class-name-Ddu4_w_z.js} +26 -26
- package/dist/component/{use-element-state-class-name-c_YzmI-w.js → use-element-state-class-name-DNjpnp27.js} +2 -2
- package/dist/component/{use-hoverable-input-class-name-DPft9EoC.js → use-hoverable-input-class-name-Wy3Ujp2_.js} +2 -2
- package/dist/component/{use-is-forced-open-dropdown-DTCIHm6F.js → use-is-forced-open-dropdown-Vu0JjNY7.js} +4 -4
- package/dist/component/{use-native-mobile-input-CuS4DTkh.js → use-native-mobile-input-l8hf9N2p.js} +3 -3
- package/dist/component/{use-service-options-base-D_sHL_KM.js → use-service-options-base-Di4c__b_.js} +3 -3
- package/dist/component/use-text-input-class-name-BBZXre-_.js +6 -0
- package/package.json +2 -2
- package/dist/component/use-text-input-class-name-BCtZ8l6Q.js +0 -6
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import { RicosViewer as ue } from "@wix/ricos/viewer";
|
|
2
2
|
import I from "classnames";
|
|
3
3
|
import t, { useMemo as P, useRef as H, Children as pe, isValidElement as Ee, useState as se, useCallback as G, useContext as be } from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { bO as _, bL as ae, bG as ne, bi as le, bv as ie, b5 as u, bQ as j, bZ as T, bz as Q, be as te, bk as fe, bc as Ne, bD as De, u as he, X as Ie, am as _e, w as $, x as ye, M as ge, I as Te, v as Le, y as Ce, z } from "./form-DpFQ9uO1.js";
|
|
5
5
|
import { parseTime as Oe } from "@internationalized/date";
|
|
6
6
|
import { mergeProps as Fe, UNSAFE_PortalProvider as Pe } from "react-aria";
|
|
7
|
-
import { ListBoxItem as ve, Select as Me, TextField as ce, TimeField as Se, SelectValue as Ae, Input as me, DateInput as Re, DateSegment as
|
|
7
|
+
import { ListBoxItem as ve, Select as Me, TextField as ce, TimeField as Se, SelectValue as Ae, Input as me, DateInput as Re, DateSegment as K, TimeFieldStateContext as Ve } from "react-aria-components";
|
|
8
8
|
import { f as d, a as M } from "./find-child-C60k4CxG.js";
|
|
9
|
-
import { g as we, H as
|
|
10
|
-
import { D as Be, E as Ye } from "./field-error-headless-
|
|
11
|
-
import { L as He } from "./field-label-headless-
|
|
9
|
+
import { g as we, H as Z } from "./hidden-part-label-Dc5eP4S0.js";
|
|
10
|
+
import { D as Be, E as Ye } from "./field-error-headless-D3lVhOaC.js";
|
|
11
|
+
import { L as He } from "./field-label-headless-CrZoTwxs.js";
|
|
12
12
|
import { F as Ue } from "./fieldset-headless-CD3fds9J.js";
|
|
13
|
-
import { u as
|
|
14
|
-
import { u as
|
|
15
|
-
import { N as
|
|
16
|
-
import { t as
|
|
17
|
-
import { t as
|
|
18
|
-
import { u as
|
|
13
|
+
import { u as ke, a as xe, N as $e, D as ze } from "./dismiss-icon-CwZIlL7w.js";
|
|
14
|
+
import { u as qe, N as Ge } from "./use-native-mobile-input-l8hf9N2p.js";
|
|
15
|
+
import { N as Qe, E as We, S as Xe } from "./non-modal-popover-D-u13tmp.js";
|
|
16
|
+
import { t as je, C as Ke } from "./calendar-icon-DOeHn3jt.js";
|
|
17
|
+
import { t as Ze } from "./to-native-time-Co_gOLkc.js";
|
|
18
|
+
import { u as Je } from "./use-is-forced-open-dropdown-Vu0JjNY7.js";
|
|
19
19
|
import { u as et } from "./use-native-state-class-name-B0m2ghbS.js";
|
|
20
|
-
import { V as tt, a as at } from "./use-dropdown-option-class-name-
|
|
20
|
+
import { V as tt, a as at } from "./use-dropdown-option-class-name-Cy_iJyiA.js";
|
|
21
21
|
import { C as nt } from "./chevron-down-icon-CcpVm6B-.js";
|
|
22
22
|
import { E as rt } from "./error-icon-hZxQ6DEy.js";
|
|
23
|
-
import { H as
|
|
23
|
+
import { H as q } from "./custom-focus-class-_483Pkwp.js";
|
|
24
24
|
import { s as b } from "./field-rac.module-D0QzJXUv.js";
|
|
25
|
-
import { u as Y } from "./use-hoverable-input-class-name-
|
|
25
|
+
import { u as Y } from "./use-hoverable-input-class-name-Wy3Ujp2_.js";
|
|
26
26
|
const l = ({ children: e, className: a }) => {
|
|
27
|
-
const { id: n, required: r, onBlur: o, onFocus: s, FieldLayout: i } = _(), { inputId: m, labelId: c, ariaDescribedBy: y } = ae(), { regionalFormat: f } = ne(), N =
|
|
27
|
+
const { id: n, required: r, onBlur: o, onFocus: s, FieldLayout: i } = _(), { inputId: m, labelId: c, ariaDescribedBy: y } = ae(), { regionalFormat: f } = ne(), N = qe(), p = P(() => le(f).filter(ie).map((B) => B.toUpperCase()), [
|
|
28
28
|
f
|
|
29
|
-
]),
|
|
29
|
+
]), D = d(e, l.Label), h = d(e, l.Description), L = d(e, l.Error), E = {
|
|
30
30
|
[u.MONTH]: d(e, l.Month),
|
|
31
31
|
[u.DAY]: d(e, l.Day),
|
|
32
32
|
[u.YEAR]: d(e, l.Year)
|
|
33
|
-
}, v = d(e, l.Time), R = d(e, l.NativeDateTime), V = N ?
|
|
33
|
+
}, v = d(e, l.Time), R = d(e, l.NativeDateTime), V = N ? D : M(D, {
|
|
34
34
|
as: "div"
|
|
35
35
|
}), w = N ? R : /* @__PURE__ */ t.createElement(Ue, {
|
|
36
36
|
id: m,
|
|
@@ -45,25 +45,25 @@ const l = ({ children: e, className: a }) => {
|
|
|
45
45
|
fieldId: n,
|
|
46
46
|
renderLabel: () => V,
|
|
47
47
|
renderInput: () => w,
|
|
48
|
-
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null,
|
|
48
|
+
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, L, h)
|
|
49
49
|
});
|
|
50
50
|
}, S = ({ children: e, className: a }) => {
|
|
51
|
-
const { id: n, disabled: r, readOnly: o, showDateLabels: s, hidePlaceholder: i } = _(), { labelId: m, partAriaLabelledBy: c, ariaDescribedBy: y } = F(u.MONTH), { partValue: f, partError: N, onPartChange: p } = A(u.MONTH), { t:
|
|
52
|
-
o || p(typeof
|
|
51
|
+
const { id: n, disabled: r, readOnly: o, showDateLabels: s, hidePlaceholder: i } = _(), { labelId: m, partAriaLabelledBy: c, ariaDescribedBy: y } = F(u.MONTH), { partValue: f, partError: N, onPartChange: p } = A(u.MONTH), { t: D } = T(), [h, L] = se(!1), E = Je(n), [v, R] = se(null), V = i ? We : D("field.date.placeholder.month"), w = G((x) => {
|
|
52
|
+
o || p(typeof x == "string" ? x : "");
|
|
53
53
|
}, [
|
|
54
54
|
p,
|
|
55
55
|
o
|
|
56
|
-
]), B = G((
|
|
57
|
-
|
|
56
|
+
]), B = G((x) => {
|
|
57
|
+
L(x && !o);
|
|
58
58
|
}, [
|
|
59
59
|
o
|
|
60
|
-
]),
|
|
60
|
+
]), J = d(e, S.Label), ee = d(e, S.Trigger), O = d(e, S.Options);
|
|
61
61
|
return /* @__PURE__ */ t.createElement("div", {
|
|
62
62
|
className: a,
|
|
63
63
|
"data-date-field": !0
|
|
64
|
-
}, s ?
|
|
64
|
+
}, s ? J : /* @__PURE__ */ t.createElement(Z, {
|
|
65
65
|
id: m
|
|
66
|
-
},
|
|
66
|
+
}, D("field.date.label.month")), /* @__PURE__ */ t.createElement("div", {
|
|
67
67
|
ref: R,
|
|
68
68
|
style: {
|
|
69
69
|
display: "contents"
|
|
@@ -78,7 +78,7 @@ const l = ({ children: e, className: a }) => {
|
|
|
78
78
|
isDisabled: r,
|
|
79
79
|
isInvalid: N,
|
|
80
80
|
placeholder: V,
|
|
81
|
-
isOpen: E ||
|
|
81
|
+
isOpen: E || h,
|
|
82
82
|
onOpenChange: E ? void 0 : B
|
|
83
83
|
}, ee, M(O, {
|
|
84
84
|
isForcedOpen: E
|
|
@@ -88,12 +88,12 @@ const l = ({ children: e, className: a }) => {
|
|
|
88
88
|
className: e
|
|
89
89
|
}), st = ({ children: e, className: a }) => {
|
|
90
90
|
const { id: n, readOnly: r } = _(), { inputId: o } = F(u.MONTH), { partError: s, isFirstPart: i } = A(u.MONTH), m = H(null);
|
|
91
|
-
return
|
|
91
|
+
return j(() => {
|
|
92
92
|
var c;
|
|
93
93
|
i && ((c = m.current) == null || c.focus({
|
|
94
94
|
preventScroll: !0
|
|
95
95
|
}));
|
|
96
|
-
}, n), /* @__PURE__ */ t.createElement(
|
|
96
|
+
}, n), /* @__PURE__ */ t.createElement(Xe, {
|
|
97
97
|
ref: m,
|
|
98
98
|
id: o,
|
|
99
99
|
className: a,
|
|
@@ -101,11 +101,11 @@ const l = ({ children: e, className: a }) => {
|
|
|
101
101
|
"data-invalid": s || void 0,
|
|
102
102
|
"data-readonly": r || void 0
|
|
103
103
|
}, /* @__PURE__ */ t.createElement(Ae, null), e);
|
|
104
|
-
},
|
|
104
|
+
}, W = ({ children: e, className: a, ...n }) => {
|
|
105
105
|
const { isForcedOpen: r } = n, { language: o } = ne(), s = P(() => we(o), [
|
|
106
106
|
o
|
|
107
|
-
]), i = d(e,
|
|
108
|
-
return /* @__PURE__ */ t.createElement(
|
|
107
|
+
]), i = d(e, W.Option) ?? /* @__PURE__ */ t.createElement(W.Option, null);
|
|
108
|
+
return /* @__PURE__ */ t.createElement(Qe, {
|
|
109
109
|
className: a,
|
|
110
110
|
containerPadding: 0,
|
|
111
111
|
offset: 0
|
|
@@ -127,14 +127,14 @@ const l = ({ children: e, className: a }) => {
|
|
|
127
127
|
};
|
|
128
128
|
S.Label = ot;
|
|
129
129
|
S.Trigger = st;
|
|
130
|
-
S.Options =
|
|
131
|
-
|
|
130
|
+
S.Options = W;
|
|
131
|
+
W.Option = lt;
|
|
132
132
|
const U = ({ children: e, className: a }) => {
|
|
133
|
-
const { disabled: n, readOnly: r, showDateLabels: o } = _(), { labelId: s, partAriaLabelledBy: i, ariaDescribedBy: m } = F(u.DAY), { t: c } = T(), { partValue: y, partError: f, onPartChange: N } = A(u.DAY), p = d(e, U.Label),
|
|
133
|
+
const { disabled: n, readOnly: r, showDateLabels: o } = _(), { labelId: s, partAriaLabelledBy: i, ariaDescribedBy: m } = F(u.DAY), { t: c } = T(), { partValue: y, partError: f, onPartChange: N } = A(u.DAY), p = d(e, U.Label), D = d(e, U.Input);
|
|
134
134
|
return /* @__PURE__ */ t.createElement("div", {
|
|
135
135
|
className: a,
|
|
136
136
|
"data-date-field": !0
|
|
137
|
-
}, o ? p : /* @__PURE__ */ t.createElement(
|
|
137
|
+
}, o ? p : /* @__PURE__ */ t.createElement(Z, {
|
|
138
138
|
id: s
|
|
139
139
|
}, c("field.date.label.day")), /* @__PURE__ */ t.createElement(ce, {
|
|
140
140
|
"aria-labelledby": i,
|
|
@@ -144,13 +144,13 @@ const U = ({ children: e, className: a }) => {
|
|
|
144
144
|
isDisabled: n,
|
|
145
145
|
isReadOnly: r,
|
|
146
146
|
isInvalid: f
|
|
147
|
-
},
|
|
147
|
+
}, D));
|
|
148
148
|
}, it = ({ className: e }) => /* @__PURE__ */ t.createElement(re, {
|
|
149
149
|
datePart: u.DAY,
|
|
150
150
|
className: e
|
|
151
151
|
}), ct = ({ className: e }) => {
|
|
152
152
|
const { id: a, hidePlaceholder: n } = _(), { inputId: r } = F(u.DAY), { isFirstPart: o } = A(u.DAY), { t: s } = T(), i = H(null), m = n ? void 0 : s("field.date.placeholder.day");
|
|
153
|
-
return
|
|
153
|
+
return j(() => {
|
|
154
154
|
var c;
|
|
155
155
|
o && ((c = i.current) == null || c.focus({
|
|
156
156
|
preventScroll: !0
|
|
@@ -167,12 +167,12 @@ const U = ({ children: e, className: a }) => {
|
|
|
167
167
|
};
|
|
168
168
|
U.Label = it;
|
|
169
169
|
U.Input = ct;
|
|
170
|
-
const
|
|
171
|
-
const { disabled: n, readOnly: r, showDateLabels: o } = _(), { labelId: s, partAriaLabelledBy: i, ariaDescribedBy: m } = F(u.YEAR), { t: c } = T(), { partValue: y, partError: f, onPartChange: N } = A(u.YEAR), p = d(e,
|
|
170
|
+
const k = ({ children: e, className: a }) => {
|
|
171
|
+
const { disabled: n, readOnly: r, showDateLabels: o } = _(), { labelId: s, partAriaLabelledBy: i, ariaDescribedBy: m } = F(u.YEAR), { t: c } = T(), { partValue: y, partError: f, onPartChange: N } = A(u.YEAR), p = d(e, k.Label), D = d(e, k.Input);
|
|
172
172
|
return /* @__PURE__ */ t.createElement("div", {
|
|
173
173
|
className: a,
|
|
174
174
|
"data-date-field": !0
|
|
175
|
-
}, o ? p : /* @__PURE__ */ t.createElement(
|
|
175
|
+
}, o ? p : /* @__PURE__ */ t.createElement(Z, {
|
|
176
176
|
id: s
|
|
177
177
|
}, c("field.date.label.year")), /* @__PURE__ */ t.createElement(ce, {
|
|
178
178
|
"aria-labelledby": i,
|
|
@@ -182,13 +182,13 @@ const x = ({ children: e, className: a }) => {
|
|
|
182
182
|
isDisabled: n,
|
|
183
183
|
isReadOnly: r,
|
|
184
184
|
isInvalid: f
|
|
185
|
-
},
|
|
185
|
+
}, D));
|
|
186
186
|
}, mt = ({ className: e }) => /* @__PURE__ */ t.createElement(re, {
|
|
187
187
|
datePart: u.YEAR,
|
|
188
188
|
className: e
|
|
189
189
|
}), dt = ({ className: e }) => {
|
|
190
190
|
const { id: a, hidePlaceholder: n } = _(), { inputId: r } = F(u.YEAR), { isFirstPart: o } = A(u.YEAR), { t: s } = T(), i = H(null), m = n ? void 0 : s("field.date.placeholder.year");
|
|
191
|
-
return
|
|
191
|
+
return j(() => {
|
|
192
192
|
var c;
|
|
193
193
|
o && ((c = i.current) == null || c.focus({
|
|
194
194
|
preventScroll: !0
|
|
@@ -203,14 +203,14 @@ const x = ({ children: e, className: a }) => {
|
|
|
203
203
|
"data-hook": u.YEAR
|
|
204
204
|
});
|
|
205
205
|
};
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
const
|
|
209
|
-
const { disabled: n, readOnly: r, use24HourFormat: o, showDateLabels: s } = _(), { labelId: i, partAriaLabelledBy: m, ariaDescribedBy: c } = F("time"), { t: y } = T(), { partValue: f, partError: N, onPartChange: p } = A("time"),
|
|
206
|
+
k.Label = mt;
|
|
207
|
+
k.Input = dt;
|
|
208
|
+
const C = ({ children: e, className: a }) => {
|
|
209
|
+
const { disabled: n, readOnly: r, use24HourFormat: o, showDateLabels: s } = _(), { labelId: i, partAriaLabelledBy: m, ariaDescribedBy: c } = F("time"), { t: y } = T(), { partValue: f, partError: N, onPartChange: p } = A("time"), D = d(e, C.Label), h = d(e, C.Input);
|
|
210
210
|
return /* @__PURE__ */ t.createElement("div", {
|
|
211
211
|
className: a,
|
|
212
212
|
"data-date-field": !0
|
|
213
|
-
}, s ?
|
|
213
|
+
}, s ? D : /* @__PURE__ */ t.createElement(Z, {
|
|
214
214
|
id: i
|
|
215
215
|
}, y("field.date.label.time")), /* @__PURE__ */ t.createElement(Se, {
|
|
216
216
|
"aria-labelledby": m,
|
|
@@ -221,7 +221,7 @@ const L = ({ children: e, className: a }) => {
|
|
|
221
221
|
isReadOnly: r,
|
|
222
222
|
isInvalid: N,
|
|
223
223
|
hourCycle: o ? 24 : 12
|
|
224
|
-
},
|
|
224
|
+
}, h));
|
|
225
225
|
}, ut = ({ className: e }) => {
|
|
226
226
|
const { inputId: a, labelId: n } = F("time"), { t: r } = T(), o = r("field.date.label.time");
|
|
227
227
|
return /* @__PURE__ */ t.createElement("label", {
|
|
@@ -230,7 +230,7 @@ const L = ({ children: e, className: a }) => {
|
|
|
230
230
|
className: e
|
|
231
231
|
}, o);
|
|
232
232
|
}, pt = ({ children: e, className: a }) => {
|
|
233
|
-
const { hidePlaceholder: n } = _(), r = d(e,
|
|
233
|
+
const { hidePlaceholder: n } = _(), r = d(e, C.Hour), o = d(e, C.Minute), s = d(e, C.Period);
|
|
234
234
|
return /* @__PURE__ */ t.createElement(Re, {
|
|
235
235
|
className: a,
|
|
236
236
|
"data-hook": "time",
|
|
@@ -250,7 +250,7 @@ const L = ({ children: e, className: a }) => {
|
|
|
250
250
|
segment: i
|
|
251
251
|
}) || /* @__PURE__ */ t.createElement(t.Fragment, null);
|
|
252
252
|
case "literal":
|
|
253
|
-
return /* @__PURE__ */ t.createElement(
|
|
253
|
+
return /* @__PURE__ */ t.createElement(K, {
|
|
254
254
|
segment: i
|
|
255
255
|
});
|
|
256
256
|
default:
|
|
@@ -259,7 +259,7 @@ const L = ({ children: e, className: a }) => {
|
|
|
259
259
|
});
|
|
260
260
|
}, Et = ({ className: e, ...a }) => {
|
|
261
261
|
const { hidePlaceholder: n } = _(), { segment: r } = a, { t: o } = T(), s = n ? void 0 : o("field.date.placeholder.hour");
|
|
262
|
-
return /* @__PURE__ */ t.createElement(
|
|
262
|
+
return /* @__PURE__ */ t.createElement(K, {
|
|
263
263
|
segment: r,
|
|
264
264
|
className: e,
|
|
265
265
|
...s && {
|
|
@@ -268,7 +268,7 @@ const L = ({ children: e, className: a }) => {
|
|
|
268
268
|
});
|
|
269
269
|
}, bt = ({ className: e, ...a }) => {
|
|
270
270
|
const { hidePlaceholder: n } = _(), { segment: r } = a, { t: o } = T(), s = n ? void 0 : o("field.date.placeholder.minute");
|
|
271
|
-
return /* @__PURE__ */ t.createElement(
|
|
271
|
+
return /* @__PURE__ */ t.createElement(K, {
|
|
272
272
|
segment: r,
|
|
273
273
|
className: e,
|
|
274
274
|
...s && {
|
|
@@ -277,7 +277,7 @@ const L = ({ children: e, className: a }) => {
|
|
|
277
277
|
});
|
|
278
278
|
}, ft = ({ className: e, ...a }) => {
|
|
279
279
|
const { hidePlaceholder: n } = _(), { segment: r } = a, { t: o } = T(), s = be(Ve), i = n ? void 0 : o("field.date.placeholder.period"), m = () => s == null ? void 0 : s.increment("dayPeriod");
|
|
280
|
-
return /* @__PURE__ */ t.createElement(
|
|
280
|
+
return /* @__PURE__ */ t.createElement(K, {
|
|
281
281
|
segment: r,
|
|
282
282
|
className: e,
|
|
283
283
|
onClick: m,
|
|
@@ -286,57 +286,57 @@ const L = ({ children: e, className: a }) => {
|
|
|
286
286
|
}
|
|
287
287
|
});
|
|
288
288
|
};
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
const
|
|
295
|
-
const { id: n, value: r, onChange: o, required: s, disabled: i, readOnly: m, hasError: c, onBlur: y, onFocus: f } = _(), { inputId: N, labelId: p, ariaDescribedBy:
|
|
296
|
-
|
|
289
|
+
C.Label = ut;
|
|
290
|
+
C.Input = pt;
|
|
291
|
+
C.Hour = Et;
|
|
292
|
+
C.Minute = bt;
|
|
293
|
+
C.Period = ft;
|
|
294
|
+
const X = ({ className: e, children: a }) => {
|
|
295
|
+
const { id: n, value: r, onChange: o, required: s, disabled: i, readOnly: m, hasError: c, onBlur: y, onFocus: f } = _(), { inputId: N, labelId: p, ariaDescribedBy: D } = ae(), h = H(null), L = H(null);
|
|
296
|
+
j(() => {
|
|
297
297
|
var O;
|
|
298
|
-
(O =
|
|
298
|
+
(O = h.current) == null || O.focus({
|
|
299
299
|
preventScroll: !0
|
|
300
300
|
});
|
|
301
301
|
}, n);
|
|
302
|
-
const E = Nt(r), { announcement: v, announceCleared: R } =
|
|
302
|
+
const E = Nt(r), { announcement: v, announceCleared: R } = ke(!!E), V = !!E && !s && !i && !m, w = d(a, X.Clear), B = pe.map(a, (O) => /* @__PURE__ */ Ee(O) && O.type === X.Clear ? null : O), { className: J, stateProps: ee } = et(e);
|
|
303
303
|
return /* @__PURE__ */ t.createElement(Ge, {
|
|
304
|
-
ref:
|
|
304
|
+
ref: L,
|
|
305
305
|
groupLabelId: p,
|
|
306
306
|
announcement: v
|
|
307
|
-
}, /* @__PURE__ */ t.createElement(
|
|
308
|
-
ref:
|
|
307
|
+
}, /* @__PURE__ */ t.createElement(xe, {
|
|
308
|
+
ref: h,
|
|
309
309
|
type: "datetime-local",
|
|
310
310
|
id: N,
|
|
311
|
-
className:
|
|
311
|
+
className: J,
|
|
312
312
|
...Fe(ee, {
|
|
313
313
|
onFocus: f,
|
|
314
314
|
onBlur: y
|
|
315
315
|
}),
|
|
316
316
|
"aria-labelledby": p,
|
|
317
|
-
"aria-describedby":
|
|
317
|
+
"aria-describedby": D,
|
|
318
318
|
"aria-invalid": c || void 0,
|
|
319
319
|
value: E,
|
|
320
|
-
onChange: (O) => o(
|
|
320
|
+
onChange: (O) => o(Dt(O)),
|
|
321
321
|
disabled: i,
|
|
322
322
|
readOnly: m,
|
|
323
323
|
required: s
|
|
324
324
|
}), B, V ? M(w, {
|
|
325
|
-
input:
|
|
326
|
-
control:
|
|
325
|
+
input: h,
|
|
326
|
+
control: L,
|
|
327
327
|
labelId: p,
|
|
328
328
|
onClear: () => {
|
|
329
329
|
o(""), R();
|
|
330
330
|
}
|
|
331
331
|
}) : null);
|
|
332
332
|
};
|
|
333
|
-
|
|
333
|
+
X.Clear = $e;
|
|
334
334
|
l.Label = He;
|
|
335
|
-
l.NativeDateTime =
|
|
335
|
+
l.NativeDateTime = X;
|
|
336
336
|
l.Month = S;
|
|
337
337
|
l.Day = U;
|
|
338
|
-
l.Year =
|
|
339
|
-
l.Time =
|
|
338
|
+
l.Year = k;
|
|
339
|
+
l.Time = C;
|
|
340
340
|
l.Description = Be;
|
|
341
341
|
l.Error = Ye;
|
|
342
342
|
function F(e) {
|
|
@@ -360,7 +360,7 @@ function F(e) {
|
|
|
360
360
|
]);
|
|
361
361
|
}
|
|
362
362
|
function A(e) {
|
|
363
|
-
const { value: a, onChange: n, hasError: r = !1 } = _(), { regionalFormat: o } = ne(), [s, i] = P(() =>
|
|
363
|
+
const { value: a, onChange: n, hasError: r = !1 } = _(), { regionalFormat: o } = ne(), [s, i] = P(() => Q(a ?? ""), [
|
|
364
364
|
a
|
|
365
365
|
]), m = P(() => fe(r, a ?? ""), [
|
|
366
366
|
a,
|
|
@@ -369,14 +369,14 @@ function A(e) {
|
|
|
369
369
|
s
|
|
370
370
|
]), y = P(() => oe(i), [
|
|
371
371
|
i
|
|
372
|
-
]), f = G((
|
|
373
|
-
const
|
|
372
|
+
]), f = G((h) => {
|
|
373
|
+
const L = de(h), E = te(s, L);
|
|
374
374
|
n(E);
|
|
375
375
|
}, [
|
|
376
376
|
n,
|
|
377
377
|
s
|
|
378
|
-
]), N = G((
|
|
379
|
-
const [,
|
|
378
|
+
]), N = G((h) => {
|
|
379
|
+
const [, L] = Q(a ?? ""), E = De(h, e, c), v = te(E, L);
|
|
380
380
|
n(v);
|
|
381
381
|
}, [
|
|
382
382
|
n,
|
|
@@ -408,13 +408,13 @@ function re({ datePart: e, className: a }) {
|
|
|
408
408
|
}, i);
|
|
409
409
|
}
|
|
410
410
|
function Nt(e) {
|
|
411
|
-
const [a, n] =
|
|
411
|
+
const [a, n] = Q(e ?? ""), r = je(a), o = Ze(oe(n));
|
|
412
412
|
return r && o ? `${r}T${o}` : "";
|
|
413
413
|
}
|
|
414
|
-
function
|
|
414
|
+
function Dt(e) {
|
|
415
415
|
if (!e)
|
|
416
416
|
return "";
|
|
417
|
-
const [a, n] =
|
|
417
|
+
const [a, n] = Q(e);
|
|
418
418
|
return te(a, de(oe(n)));
|
|
419
419
|
}
|
|
420
420
|
function oe(e) {
|
|
@@ -436,15 +436,15 @@ function de(e) {
|
|
|
436
436
|
r
|
|
437
437
|
].join(":");
|
|
438
438
|
}
|
|
439
|
-
const
|
|
440
|
-
fields:
|
|
439
|
+
const ht = "_fields_1ofw4_1", It = "_month_1ofw4_10", _t = "_day_1ofw4_11", yt = "_year_1ofw4_12", gt = "_timeGroup_1ofw4_13", Tt = "_dayInput_1ofw4_34", Lt = "_yearInput_1ofw4_35", Ct = "_monthTrigger_1ofw4_39", Ot = "_monthOption_1ofw4_59", Ft = "_time_1ofw4_13", Pt = "_hour_1ofw4_81", vt = "_minute_1ofw4_82", Mt = "_period_1ofw4_83", g = {
|
|
440
|
+
fields: ht,
|
|
441
441
|
month: It,
|
|
442
442
|
day: _t,
|
|
443
443
|
year: yt,
|
|
444
444
|
timeGroup: gt,
|
|
445
445
|
dayInput: Tt,
|
|
446
|
-
yearInput:
|
|
447
|
-
monthTrigger:
|
|
446
|
+
yearInput: Lt,
|
|
447
|
+
monthTrigger: Ct,
|
|
448
448
|
monthOption: Ot,
|
|
449
449
|
time: Ft,
|
|
450
450
|
hour: Pt,
|
|
@@ -454,20 +454,20 @@ const Dt = "_fields_1ofw4_1", It = "_month_1ofw4_10", _t = "_day_1ofw4_11", yt =
|
|
|
454
454
|
content: e,
|
|
455
455
|
locale: a
|
|
456
456
|
}), ra = () => {
|
|
457
|
-
const { t: e } = T(), a = Y(
|
|
457
|
+
const { t: e } = T(), a = Y(Le, [
|
|
458
458
|
g.monthTrigger
|
|
459
|
-
]), n = at(
|
|
459
|
+
]), n = at(Ce, g.monthOption, q), r = Y(z, [
|
|
460
460
|
g.dayInput
|
|
461
|
-
]), o = Y(
|
|
461
|
+
]), o = Y(z, [
|
|
462
462
|
g.yearInput
|
|
463
|
-
]), s = Y(
|
|
463
|
+
]), s = Y(z, [
|
|
464
464
|
g.time
|
|
465
|
-
]), i = Y(
|
|
465
|
+
]), i = Y(z, [
|
|
466
466
|
b.nativeInput,
|
|
467
467
|
b.nativeWithLeadingIcon
|
|
468
468
|
]);
|
|
469
469
|
return /* @__PURE__ */ t.createElement(l, {
|
|
470
|
-
className: I(
|
|
470
|
+
className: I(he, g.fields)
|
|
471
471
|
}, /* @__PURE__ */ t.createElement(l.Label, {
|
|
472
472
|
className: I(Ie, b.label)
|
|
473
473
|
}, /* @__PURE__ */ t.createElement(l.Label.Required, {
|
|
@@ -503,19 +503,19 @@ const Dt = "_fields_1ofw4_1", It = "_month_1ofw4_10", _t = "_day_1ofw4_11", yt =
|
|
|
503
503
|
}), /* @__PURE__ */ t.createElement(l.Time.Input, {
|
|
504
504
|
className: s
|
|
505
505
|
}, /* @__PURE__ */ t.createElement(l.Time.Hour, {
|
|
506
|
-
className: I(g.hour,
|
|
506
|
+
className: I(g.hour, q)
|
|
507
507
|
}), /* @__PURE__ */ t.createElement(l.Time.Minute, {
|
|
508
|
-
className: I(g.minute,
|
|
508
|
+
className: I(g.minute, q)
|
|
509
509
|
}), /* @__PURE__ */ t.createElement(l.Time.Period, {
|
|
510
|
-
className: I(g.period,
|
|
510
|
+
className: I(g.period, q)
|
|
511
511
|
}))), /* @__PURE__ */ t.createElement(l.NativeDateTime, {
|
|
512
512
|
className: i
|
|
513
|
-
}, /* @__PURE__ */ t.createElement(
|
|
513
|
+
}, /* @__PURE__ */ t.createElement(Ke, {
|
|
514
514
|
className: I(b.nativeDecoration, b.nativeLeadingIcon)
|
|
515
515
|
}), /* @__PURE__ */ t.createElement(l.NativeDateTime.Clear, {
|
|
516
516
|
className: b.nativeClearButton,
|
|
517
517
|
"aria-label": e("date-picker.a11y.clear-button")
|
|
518
|
-
}, /* @__PURE__ */ t.createElement(
|
|
518
|
+
}, /* @__PURE__ */ t.createElement(ze, null))), /* @__PURE__ */ t.createElement(l.Error, {
|
|
519
519
|
className: I(ge, b.error)
|
|
520
520
|
}, /* @__PURE__ */ t.createElement(rt, null), /* @__PURE__ */ t.createElement(l.Error.Text, null)), /* @__PURE__ */ t.createElement(l.Description, {
|
|
521
521
|
className: I(Te, b.description)
|
package/dist/component/{dext-checkbox-group-rac-aDNIkDPY.js → dext-checkbox-group-rac-Cru3Lq4c.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import o from "react";
|
|
2
|
-
import {
|
|
3
|
-
import { C as p } from "./checkbox-group-field-rac-
|
|
2
|
+
import { bO as e, aN as t } from "./form-DpFQ9uO1.js";
|
|
3
|
+
import { C as p } from "./checkbox-group-field-rac-iJkQGTiJ.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-D4dpTCbP.js → dext-radio-group-rac-CGt1_jue.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import r from "react";
|
|
2
|
-
import {
|
|
3
|
-
import { R as p } from "./radio-group-field-rac-
|
|
2
|
+
import { bO as e, aN as t } from "./form-DpFQ9uO1.js";
|
|
3
|
+
import { R as p } from "./radio-group-field-rac-BvUZ-DmS.js";
|
|
4
4
|
import { a } from "./default-limits-D7qVv_Hv.js";
|
|
5
5
|
const l = () => {
|
|
6
6
|
const o = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import r from "react";
|
|
2
|
-
import {
|
|
3
|
-
import { T as s } from "./tags-field-rac-
|
|
2
|
+
import { bO as e, aN as o } from "./form-DpFQ9uO1.js";
|
|
3
|
+
import { T as s } from "./tags-field-rac-BwGeFDfH.js";
|
|
4
4
|
import { b as a } from "./default-limits-D7qVv_Hv.js";
|
|
5
5
|
const l = () => {
|
|
6
6
|
const t = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import o, { useId as m, forwardRef as b, useState as L, useEffect as p, useCallback as y } from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { bO as h, bZ as C } from "./form-DpFQ9uO1.js";
|
|
3
3
|
const I = ({ className: e, "aria-label": n, children: t, ...s }) => {
|
|
4
4
|
const { input: r, control: a, labelId: c, onClear: d } = s, i = m();
|
|
5
5
|
return /* @__PURE__ */ o.createElement("button", {
|
|
@@ -13,14 +13,14 @@ const I = ({ className: e, "aria-label": n, children: t, ...s }) => {
|
|
|
13
13
|
d(), f.detail === 0 ? (l = r.current) == null || l.focus() : (u = a.current) == null || u.focus();
|
|
14
14
|
}
|
|
15
15
|
}, t);
|
|
16
|
-
},
|
|
16
|
+
}, v = (e) => {
|
|
17
17
|
if (!(e.disabled || e.readOnly || !("showPicker" in e)))
|
|
18
18
|
try {
|
|
19
19
|
e.showPicker();
|
|
20
20
|
} catch {
|
|
21
21
|
return;
|
|
22
22
|
}
|
|
23
|
-
},
|
|
23
|
+
}, N = /* @__PURE__ */ b(({ value: e, onChange: n, onClick: t, ...s }, r) => /* @__PURE__ */ o.createElement("input", {
|
|
24
24
|
...s,
|
|
25
25
|
ref: r,
|
|
26
26
|
"data-native-input": "",
|
|
@@ -28,10 +28,10 @@ const I = ({ className: e, "aria-label": n, children: t, ...s }) => {
|
|
|
28
28
|
value: e,
|
|
29
29
|
onChange: (a) => n(a.target.value),
|
|
30
30
|
onClick: (a) => {
|
|
31
|
-
|
|
31
|
+
v(a.currentTarget), t == null || t(a);
|
|
32
32
|
}
|
|
33
33
|
}));
|
|
34
|
-
|
|
34
|
+
N.displayName = "NativeInput";
|
|
35
35
|
const k = (e) => {
|
|
36
36
|
const { label: n } = h(), { t } = C(), [s, r] = L("");
|
|
37
37
|
p(() => {
|
|
@@ -64,6 +64,6 @@ const k = (e) => {
|
|
|
64
64
|
export {
|
|
65
65
|
P as D,
|
|
66
66
|
I as N,
|
|
67
|
-
|
|
67
|
+
N as a,
|
|
68
68
|
k as u
|
|
69
69
|
};
|