@wix/form-elements 1.98.0 → 1.99.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-BKgRKq3j.js → appointment-rac-CP8gfFze.js} +382 -385
- package/dist/component/{bookings-address-rac-C87x19gw.js → bookings-address-rac-CWs0gEUJ.js} +1 -1
- package/dist/component/{bookings-email-rac-f4nuC_pb.js → bookings-email-rac-D-HYHHg-.js} +1 -1
- package/dist/component/{bookings-first-name-rac-BGmuAmbu.js → bookings-first-name-rac-Sk9e2_l9.js} +1 -1
- package/dist/component/{bookings-header-rac-CoyxHljp.js → bookings-header-rac-idz-09i9.js} +1 -1
- package/dist/component/{bookings-last-name-rac-D2mBYwcR.js → bookings-last-name-rac-C4cCmRVy.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-BH2Mi6TR.js → bookings-login-bar-rac-BdVG5M2b.js} +1 -1
- package/dist/component/{bookings-phone-rac-Dz78ybFV.js → bookings-phone-rac-D09RuttH.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-8_h0cOoy.js → bookings-rich-text-rac-Ci26IHTA.js} +1 -1
- package/dist/component/{checkbox-field-rac-CJnegjvL.js → checkbox-field-rac-Blko_wMR.js} +4 -4
- package/dist/component/{checkbox-group-field-headless-CrA7Gx2Y.js → checkbox-group-field-headless-DhV4VwZq.js} +3 -3
- package/dist/component/{checkbox-group-field-rac-DMg75l5Q.js → checkbox-group-field-rac-BtPnVYiW.js} +3 -3
- package/dist/component/{checkbox-group-rac-C9XWlO5D.js → checkbox-group-rac-eyClfhOO.js} +1 -1
- package/dist/component/{checkbox-rac-CrqhH4z9.js → checkbox-rac-I0i6q5tn.js} +1 -1
- package/dist/component/{contacts-address-rac-C2mqTiPg.js → contacts-address-rac-8UPBA_Nx.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-i7_RMona.js → contacts-birthdate-rac-BuMsx4tn.js} +1 -1
- package/dist/component/{contacts-company-rac-7sdIosaG.js → contacts-company-rac-C4GszTsX.js} +1 -1
- package/dist/component/{contacts-email-rac-CrsksJ9G.js → contacts-email-rac-BdNzRUNL.js} +1 -1
- package/dist/component/{contacts-first-name-rac-I5xIYxgD.js → contacts-first-name-rac-D7otJsfF.js} +1 -1
- package/dist/component/{contacts-last-name-rac-DnzJYJh7.js → contacts-last-name-rac-DE2dfvRQ.js} +1 -1
- package/dist/component/{contacts-phone-rac-Cx1jpYmv.js → contacts-phone-rac-C-P4QUzI.js} +1 -1
- package/dist/component/{contacts-position-rac-CxddG_cE.js → contacts-position-rac-CD_mT8at.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-C1nTAhnd.js → contacts-subscribe-rac-CyBwegiP.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-B1lzfrj_.js → contacts-tax-id-rac-BVwa6_pq.js} +1 -1
- package/dist/component/{date-availability-LN33GU7O.js → date-availability-6u7UHGAa.js} +1 -1
- package/dist/component/{date-input-field-rac-zTcw6Mxx.js → date-input-field-rac-Dpb3imSq.js} +98 -101
- package/dist/component/{date-input-rac-NfVbrcoO.js → date-input-rac-CaRUO8qF.js} +1 -1
- package/dist/component/date-picker-field-rac-BuZ2Vdqw.js +311 -0
- package/dist/component/{date-picker-rac-C5iXyKdf.js → date-picker-rac-CQ0HLYC_.js} +1 -1
- package/dist/component/{date-time-input-field-rac-Cp34u7cC.js → date-time-input-field-rac-D-6fSa7K.js} +101 -104
- package/dist/component/{date-time-input-rac-CfFd56Xf.js → date-time-input-rac-DJvGnasb.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-BVx7XXwR.js → dext-checkbox-group-rac-4Xv2Yx1Q.js} +2 -2
- package/dist/component/{dext-checkbox-rac-CmUOLx_w.js → dext-checkbox-rac-MUiHjntT.js} +1 -1
- package/dist/component/{dext-date-picker-rac-XDrLGVTQ.js → dext-date-picker-rac-B7V77fPs.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-ZLCq_taK.js → dext-date-time-input-rac-LDrnt4fH.js} +1 -1
- package/dist/component/{dext-dropdown-rac-C74zBq3M.js → dext-dropdown-rac-BP83OElK.js} +1 -1
- package/dist/component/{dext-email-rac-CqS9HcdY.js → dext-email-rac-Bi9qANCo.js} +1 -1
- package/dist/component/{dext-number-input-rac-DszjJDT-.js → dext-number-input-rac-BU4SEily.js} +1 -1
- package/dist/component/{dext-phone-rac-wt7T8hpM.js → dext-phone-rac-D5s8DrCc.js} +1 -1
- package/dist/component/{dext-radio-group-rac-BvRnaWP0.js → dext-radio-group-rac-DaTuyxUL.js} +2 -2
- package/dist/component/{dext-rating-input-rac-D1Lt9M3c.js → dext-rating-input-rac-CfMKqHHZ.js} +1 -1
- package/dist/component/{dext-tags-rac-70YO5CJH.js → dext-tags-rac-CyFzVZFw.js} +2 -2
- package/dist/component/{dext-text-area-rac-CC5RCvWh.js → dext-text-area-rac-D-kfFMUj.js} +1 -1
- package/dist/component/{dext-text-input-rac-s487DzPW.js → dext-text-input-rac-BOFj2FyN.js} +1 -1
- package/dist/component/{dext-url-input-rac-DEKwUh2a.js → dext-url-input-rac-BGPDEwNb.js} +1 -1
- package/dist/component/{donation-rac-C2bCFVHP.js → donation-rac-BMX9KxJP.js} +5 -5
- package/dist/component/{dropdown-field-headless-BMWwkydq.js → dropdown-field-headless-CIXH608w.js} +4 -4
- package/dist/component/{dropdown-field-rac-Cw5Cbpg0.js → dropdown-field-rac-daLrun-E.js} +2 -2
- package/dist/component/{dropdown-rac-CEmlDY3w.js → dropdown-rac-BTYSH3Zy.js} +1 -1
- package/dist/component/{ecom-address-rac-Dv6asnf_.js → ecom-address-rac-BDhiTREn.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-DOwH-Ebd.js → ecom-subscription-checkbox-rac-Dbpa4fFi.js} +2 -2
- package/dist/component/{email-input-field-rac-CeFXPibq.js → email-input-field-rac-BJUszqvR.js} +3 -3
- package/dist/component/{events-repeater-rac-BUk5Qc8n.js → events-repeater-rac-DJrTlOGT.js} +4 -4
- package/dist/component/{events-rsvp-rac-CtFkVzUy.js → events-rsvp-rac-DDASk2XH.js} +2 -2
- package/dist/component/{field-error-headless-B6x_cVEi.js → field-error-headless-DJVkE5yv.js} +1 -1
- package/dist/component/{field-label-headless-BibCD8xx.js → field-label-headless-CyCHxPkd.js} +1 -1
- package/dist/component/{file-upload-rac-BUcktluW.js → file-upload-rac-BOpYihdw.js} +3 -3
- package/dist/component/{fixed-payment-rac-BMSBSo5c.js → fixed-payment-rac-DFi_YPyN.js} +3 -3
- package/dist/component/{form-9WmwgGNc.js → form-CVz1PefD.js} +69 -69
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-CxUuHOic.js → header-field-rac-C2PfSwil.js} +2 -2
- package/dist/component/{header-rac-DejI69X7.js → header-rac-D9YqB-O1.js} +1 -1
- package/dist/component/{image-choice-rac-BjI5a_co.js → image-choice-rac-t_I06vvU.js} +4 -4
- package/dist/component/{index-Dz2hV2_S.js → index-DLjekrTD.js} +4 -4
- package/dist/component/{index-Csso-2QH.js → index-yjAwk9mS.js} +2 -2
- package/dist/component/{isObjectLike-BN_BZMhy.js → isObjectLike-Cgzv4nCC.js} +1 -1
- package/dist/component/{multiline-address-field-rac-CYfphmfr.js → multiline-address-field-rac-Dnjmc0tO.js} +7 -7
- package/dist/component/{multiline-address-rac-Ccujt2bd.js → multiline-address-rac-ByL_NcH7.js} +1 -1
- package/dist/component/{number-input-field-rac-CfnRCRar.js → number-input-field-rac-BPTuhBlo.js} +4 -4
- package/dist/component/{number-input-rac-DnTO9d8P.js → number-input-rac-hLoHm0Ul.js} +1 -1
- package/dist/component/{password-rac-Be_YSb-Q.js → password-rac-DYqRtXl0.js} +4 -4
- package/dist/component/{payment-input-rac-DXUf5iYb.js → payment-input-rac-D9WtGI5n.js} +4 -4
- package/dist/component/{phone-input-field-rac-DYAwLuvJ.js → phone-input-field-rac-D2Emh-lo.js} +6 -6
- package/dist/component/{phone-rac-BlsvDmER.js → phone-rac-B8-6Mw36.js} +1 -1
- package/dist/component/{product-list-rac-DdXwRSc2.js → product-list-rac-B_wLuARQ.js} +4 -4
- package/dist/component/{quiz-radio-group-rac-B0yiKdbu.js → quiz-radio-group-rac-CcnfdObW.js} +1 -1
- package/dist/component/{radio-button-module-classes-t1jsWYpT.js → radio-button-module-classes-CyZYs0BH.js} +3 -3
- package/dist/component/{radio-group-field-rac-Cug1TtSq.js → radio-group-field-rac-BdNA6UOq.js} +3 -3
- package/dist/component/{radio-group-rac-_O5T0Pt8.js → radio-group-rac-CvhHM6v5.js} +1 -1
- package/dist/component/{rating-input-field-rac-BSKzQ3fq.js → rating-input-field-rac-wjWNPfRZ.js} +4 -4
- package/dist/component/{rating-input-rac-B71q44YO.js → rating-input-rac-qqUycDFh.js} +1 -1
- package/dist/component/{rich-content-rac.module-BJuoKIOt.js → rich-content-rac.module-BAMOVeFc.js} +1 -1
- package/dist/component/{rich-text-field-rac-CiSR82Fw.js → rich-text-field-rac-DRC3nap3.js} +2 -2
- package/dist/component/{rich-text-rac-Bo6UBwOg.js → rich-text-rac-DPgt6Zb4.js} +1 -1
- package/dist/component/{service-dropdown-rac-BJ7V-g8M.js → service-dropdown-rac-C79afx6z.js} +4 -4
- package/dist/component/{services-multi-choice-rac-CtBcc9WH.js → services-multi-choice-rac-Dv_3PkqW.js} +5 -5
- package/dist/component/{signature-rac-yvrHr1he.js → signature-rac-D2NLRFu0.js} +3 -3
- package/dist/component/{submit-button-rac-s-JdZgq7.js → submit-button-rac-CnmlHY57.js} +1 -1
- package/dist/component/{tags-field-rac-g_W0RMod.js → tags-field-rac-B5v917df.js} +5 -5
- package/dist/component/{tags-rac-DmvIH6HU.js → tags-rac-DCUcssn5.js} +1 -1
- package/dist/component/{text-area-field-rac-Duja5xOA.js → text-area-field-rac-7YmznS1S.js} +4 -4
- package/dist/component/{text-area-rac-DzRxgG6u.js → text-area-rac-C0Yuh6D2.js} +1 -1
- package/dist/component/{text-input-field-rac-C2eXeoBC.js → text-input-field-rac-Bpmukqyp.js} +2 -2
- package/dist/component/{text-input-headless-d1WK0nqR.js → text-input-headless-Cdpzu_eE.js} +3 -3
- package/dist/component/{text-input-rac-DM9MnoQs.js → text-input-rac-D7zsAary.js} +1 -1
- package/dist/component/{time-input-rac-CxVZ3USX.js → time-input-rac-CDiPbISF.js} +4 -4
- package/dist/component/{url-input-field-rac-4oVJMr1a.js → url-input-field-rac-oi5ViIKm.js} +4 -4
- package/dist/component/{url-input-rac--T-FnskQ.js → url-input-rac-Bs8MYm-g.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-BFHRYpVL.js → use-dropdown-option-class-name-BqtzLp8Y.js} +1 -1
- package/dist/component/{use-element-state-class-name-De5YnxMK.js → use-element-state-class-name-Cego6EXH.js} +1 -1
- package/dist/component/{use-is-forced-open-dropdown-CWvcd9Ex.js → use-is-forced-open-dropdown-Do-gps07.js} +1 -1
- package/dist/component/{use-service-options-base-CD1EVWRE.js → use-service-options-base-CoXyq3zH.js} +1 -1
- package/dist/component/{use-text-input-class-name-BYwXccvO.js → use-text-input-class-name-BUFPGIgC.js} +2 -2
- package/package.json +2 -2
- package/dist/component/date-picker-field-rac-Cc9hJloJ.js +0 -317
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { RicosViewer as
|
|
2
|
-
import
|
|
3
|
-
import t, { useMemo as T, useState as q, useCallback as w, useRef as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
1
|
+
import { RicosViewer as oe } from "@wix/ricos/viewer";
|
|
2
|
+
import E from "classnames";
|
|
3
|
+
import t, { useMemo as T, useState as q, useCallback as w, useRef as z, useContext as se } from "react";
|
|
4
|
+
import { parseTime as le } from "@internationalized/date";
|
|
5
|
+
import { UNSAFE_PortalProvider as ie } from "react-aria";
|
|
6
|
+
import { ListBoxItem as ce, ListBox as me, Select as de, TextField as Q, TimeField as ue, SelectValue as pe, Input as W, DateInput as Ee, DateSegment as B, TimeFieldStateContext as he } from "react-aria-components";
|
|
7
|
+
import { ak as b, ah as J, ac as G, K as X, a2 as Z, s as d, au as L, a6 as j, Q as fe, y as be, a9 as ge, z as K, am as U } from "./form-CVz1PefD.js";
|
|
8
8
|
import { f as u, a as P } from "./find-child-C60k4CxG.js";
|
|
9
9
|
import { g as Ie } from "./helpers-HmkkXrh2.js";
|
|
10
|
-
import { D as
|
|
11
|
-
import { L as
|
|
10
|
+
import { D as De, E as Ne } from "./field-error-headless-DJVkE5yv.js";
|
|
11
|
+
import { L as _e } from "./field-label-headless-CyCHxPkd.js";
|
|
12
12
|
import { F as ye } from "./fieldset-headless-CD3fds9J.js";
|
|
13
13
|
import { N as Oe, S as Te } from "./non-modal-popover-DtIMXHbe.js";
|
|
14
|
-
import { u as Le } from "./use-is-forced-open-dropdown-
|
|
14
|
+
import { u as Le } from "./use-is-forced-open-dropdown-Do-gps07.js";
|
|
15
15
|
import { C as Fe } from "./chevron-down-icon-CcpVm6B-.js";
|
|
16
16
|
import { E as Ce } from "./error-icon-hZxQ6DEy.js";
|
|
17
17
|
import { H } from "./custom-focus-class-_483Pkwp.js";
|
|
18
|
-
import { s as
|
|
18
|
+
import { s as f } from "./field-rac.module-DobpyqOd.js";
|
|
19
19
|
import { C as v, S as Pe, n as Me, E as Se, r as ve, j as Re } from "./form-element-classes-BtKlobUX.js";
|
|
20
|
-
import { u as Ae } from "./use-dropdown-option-class-name-
|
|
21
|
-
import { u as
|
|
20
|
+
import { u as Ae } from "./use-dropdown-option-class-name-BqtzLp8Y.js";
|
|
21
|
+
import { u as k } from "./use-text-input-class-name-BUFPGIgC.js";
|
|
22
22
|
const l = ({ children: e, className: a }) => {
|
|
23
|
-
const { id: n, required: o, onBlur: s, onFocus: r, FieldLayout: i } = b(), { inputId: m, labelId: c, ariaDescribedBy: g } =
|
|
24
|
-
|
|
25
|
-
]), M = u(e, l.Label), V = u(e, l.Description),
|
|
23
|
+
const { id: n, required: o, onBlur: s, onFocus: r, FieldLayout: i } = b(), { inputId: m, labelId: c, ariaDescribedBy: g } = J(), { regionalFormat: p } = G(), _ = T(() => X(p).filter(Z).map((S) => S.toUpperCase()), [
|
|
24
|
+
p
|
|
25
|
+
]), M = u(e, l.Label), V = u(e, l.Description), D = u(e, l.Error), N = {
|
|
26
26
|
[d.MONTH]: u(e, l.Month),
|
|
27
27
|
[d.DAY]: u(e, l.Day),
|
|
28
28
|
[d.YEAR]: u(e, l.Year)
|
|
@@ -40,14 +40,14 @@ const l = ({ children: e, className: a }) => {
|
|
|
40
40
|
onBlur: s,
|
|
41
41
|
onFocus: r,
|
|
42
42
|
className: a
|
|
43
|
-
},
|
|
44
|
-
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null,
|
|
43
|
+
}, N[_[0]], N[_[1]], N[_[2]], y),
|
|
44
|
+
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, D, V)
|
|
45
45
|
});
|
|
46
46
|
}, F = ({ children: e, className: a }) => {
|
|
47
|
-
const { id: n, disabled: o, readOnly: s, showDateLabels: r, hidePlaceholder: i } = b(), { labelId: m } = O(d.MONTH), { partValue: c, partError: g, onPartChange:
|
|
48
|
-
s ||
|
|
47
|
+
const { id: n, disabled: o, readOnly: s, showDateLabels: r, hidePlaceholder: i } = b(), { labelId: m } = O(d.MONTH), { partValue: c, partError: g, onPartChange: p } = C(d.MONTH), { t: _ } = L(), [M, V] = q(!1), D = Le(n), [N, y] = q(null), S = i ? void 0 : _("field.date.placeholder.month"), ee = w((Y) => {
|
|
48
|
+
s || p(typeof Y == "string" ? Y : "");
|
|
49
49
|
}, [
|
|
50
|
-
|
|
50
|
+
p,
|
|
51
51
|
s
|
|
52
52
|
]), te = w((Y) => {
|
|
53
53
|
V(Y && !s);
|
|
@@ -62,25 +62,25 @@ const l = ({ children: e, className: a }) => {
|
|
|
62
62
|
style: {
|
|
63
63
|
display: "contents"
|
|
64
64
|
}
|
|
65
|
-
}), /* @__PURE__ */ t.createElement(
|
|
66
|
-
getContainer: () =>
|
|
67
|
-
}, /* @__PURE__ */ t.createElement(
|
|
65
|
+
}), /* @__PURE__ */ t.createElement(ie, {
|
|
66
|
+
getContainer: () => N
|
|
67
|
+
}, /* @__PURE__ */ t.createElement(de, {
|
|
68
68
|
"aria-labelledby": r ? m : void 0,
|
|
69
69
|
value: c || null,
|
|
70
70
|
onChange: ee,
|
|
71
71
|
isDisabled: o,
|
|
72
72
|
isInvalid: g,
|
|
73
73
|
placeholder: S,
|
|
74
|
-
isOpen:
|
|
75
|
-
onOpenChange:
|
|
74
|
+
isOpen: D || M,
|
|
75
|
+
onOpenChange: D ? void 0 : te
|
|
76
76
|
}, ne, P(re, {
|
|
77
|
-
isForcedOpen:
|
|
77
|
+
isForcedOpen: D
|
|
78
78
|
}))));
|
|
79
79
|
}, Ve = ({ className: e }) => /* @__PURE__ */ t.createElement($, {
|
|
80
80
|
datePart: d.MONTH,
|
|
81
81
|
className: e
|
|
82
82
|
}), Ye = ({ children: e, className: a }) => {
|
|
83
|
-
const { id: n, readOnly: o } = b(), { inputId: s } = O(d.MONTH), { partError: r, isFirstPart: i } = C(d.MONTH), m =
|
|
83
|
+
const { id: n, readOnly: o } = b(), { inputId: s } = O(d.MONTH), { partError: r, isFirstPart: i } = C(d.MONTH), m = z(null);
|
|
84
84
|
return U(() => {
|
|
85
85
|
var c;
|
|
86
86
|
i && ((c = m.current) == null || c.focus());
|
|
@@ -91,16 +91,16 @@ const l = ({ children: e, className: a }) => {
|
|
|
91
91
|
"data-hook": d.MONTH,
|
|
92
92
|
"data-invalid": r || void 0,
|
|
93
93
|
"data-readonly": o || void 0
|
|
94
|
-
}, /* @__PURE__ */ t.createElement(
|
|
94
|
+
}, /* @__PURE__ */ t.createElement(pe, null), e);
|
|
95
95
|
}, x = ({ children: e, className: a, ...n }) => {
|
|
96
|
-
const { isForcedOpen: o } = n, { language: s } =
|
|
96
|
+
const { isForcedOpen: o } = n, { language: s } = G(), r = T(() => Ie(s), [
|
|
97
97
|
s
|
|
98
98
|
]), i = u(e, x.Option) ?? /* @__PURE__ */ t.createElement(x.Option, null);
|
|
99
99
|
return /* @__PURE__ */ t.createElement(Oe, {
|
|
100
100
|
className: a,
|
|
101
101
|
containerPadding: 0,
|
|
102
102
|
offset: 0
|
|
103
|
-
}, /* @__PURE__ */ t.createElement(
|
|
103
|
+
}, /* @__PURE__ */ t.createElement(me, {
|
|
104
104
|
autoFocus: o ? !1 : void 0
|
|
105
105
|
}, r.map((m, c) => P(i, {
|
|
106
106
|
key: String(c + 1),
|
|
@@ -109,7 +109,7 @@ const l = ({ children: e, className: a }) => {
|
|
|
109
109
|
}))));
|
|
110
110
|
}, He = ({ className: e, ...a }) => {
|
|
111
111
|
const { value: n, label: o } = a;
|
|
112
|
-
return /* @__PURE__ */ t.createElement(
|
|
112
|
+
return /* @__PURE__ */ t.createElement(ce, {
|
|
113
113
|
className: e,
|
|
114
114
|
id: n,
|
|
115
115
|
textValue: o
|
|
@@ -120,27 +120,27 @@ F.Trigger = Ye;
|
|
|
120
120
|
F.Options = x;
|
|
121
121
|
x.Option = He;
|
|
122
122
|
const R = ({ children: e, className: a }) => {
|
|
123
|
-
const { disabled: n, readOnly: o, showDateLabels: s } = b(), { labelId: r } = O(d.DAY), { partValue: i, partError: m, onPartChange: c } = C(d.DAY), g = u(e, R.Label),
|
|
123
|
+
const { disabled: n, readOnly: o, showDateLabels: s } = b(), { labelId: r } = O(d.DAY), { partValue: i, partError: m, onPartChange: c } = C(d.DAY), g = u(e, R.Label), p = u(e, R.Input);
|
|
124
124
|
return /* @__PURE__ */ t.createElement("div", {
|
|
125
125
|
className: a,
|
|
126
126
|
"data-date-field": !0
|
|
127
|
-
}, s && g, /* @__PURE__ */ t.createElement(
|
|
127
|
+
}, s && g, /* @__PURE__ */ t.createElement(Q, {
|
|
128
128
|
"aria-labelledby": s ? r : void 0,
|
|
129
129
|
value: i,
|
|
130
130
|
onChange: c,
|
|
131
131
|
isDisabled: n,
|
|
132
132
|
isReadOnly: o,
|
|
133
133
|
isInvalid: m
|
|
134
|
-
},
|
|
134
|
+
}, p));
|
|
135
135
|
}, we = ({ className: e }) => /* @__PURE__ */ t.createElement($, {
|
|
136
136
|
datePart: d.DAY,
|
|
137
137
|
className: e
|
|
138
138
|
}), xe = ({ className: e }) => {
|
|
139
|
-
const { id: a, hidePlaceholder: n } = b(), { inputId: o } = O(d.DAY), { isFirstPart: s } = C(d.DAY), { t: r } = L(), i =
|
|
139
|
+
const { id: a, hidePlaceholder: n } = b(), { inputId: o } = O(d.DAY), { isFirstPart: s } = C(d.DAY), { t: r } = L(), i = z(null), m = n ? void 0 : r("field.date.placeholder.day");
|
|
140
140
|
return U(() => {
|
|
141
141
|
var c;
|
|
142
142
|
s && ((c = i.current) == null || c.focus());
|
|
143
|
-
}, a), /* @__PURE__ */ t.createElement(
|
|
143
|
+
}, a), /* @__PURE__ */ t.createElement(W, {
|
|
144
144
|
ref: i,
|
|
145
145
|
id: o,
|
|
146
146
|
className: e,
|
|
@@ -153,27 +153,27 @@ const R = ({ children: e, className: a }) => {
|
|
|
153
153
|
R.Label = we;
|
|
154
154
|
R.Input = xe;
|
|
155
155
|
const A = ({ children: e, className: a }) => {
|
|
156
|
-
const { disabled: n, readOnly: o, showDateLabels: s } = b(), { labelId: r } = O(d.YEAR), { partValue: i, partError: m, onPartChange: c } = C(d.YEAR), g = u(e, A.Label),
|
|
156
|
+
const { disabled: n, readOnly: o, showDateLabels: s } = b(), { labelId: r } = O(d.YEAR), { partValue: i, partError: m, onPartChange: c } = C(d.YEAR), g = u(e, A.Label), p = u(e, A.Input);
|
|
157
157
|
return /* @__PURE__ */ t.createElement("div", {
|
|
158
158
|
className: a,
|
|
159
159
|
"data-date-field": !0
|
|
160
|
-
}, s && g, /* @__PURE__ */ t.createElement(
|
|
160
|
+
}, s && g, /* @__PURE__ */ t.createElement(Q, {
|
|
161
161
|
"aria-labelledby": s ? r : void 0,
|
|
162
162
|
value: i,
|
|
163
163
|
onChange: c,
|
|
164
164
|
isDisabled: n,
|
|
165
165
|
isReadOnly: o,
|
|
166
166
|
isInvalid: m
|
|
167
|
-
},
|
|
167
|
+
}, p));
|
|
168
168
|
}, Be = ({ className: e }) => /* @__PURE__ */ t.createElement($, {
|
|
169
169
|
datePart: d.YEAR,
|
|
170
170
|
className: e
|
|
171
171
|
}), ke = ({ className: e }) => {
|
|
172
|
-
const { id: a, hidePlaceholder: n } = b(), { inputId: o } = O(d.YEAR), { isFirstPart: s } = C(d.YEAR), { t: r } = L(), i =
|
|
172
|
+
const { id: a, hidePlaceholder: n } = b(), { inputId: o } = O(d.YEAR), { isFirstPart: s } = C(d.YEAR), { t: r } = L(), i = z(null), m = n ? void 0 : r("field.date.placeholder.year");
|
|
173
173
|
return U(() => {
|
|
174
174
|
var c;
|
|
175
175
|
s && ((c = i.current) == null || c.focus());
|
|
176
|
-
}, a), /* @__PURE__ */ t.createElement(
|
|
176
|
+
}, a), /* @__PURE__ */ t.createElement(W, {
|
|
177
177
|
ref: i,
|
|
178
178
|
id: o,
|
|
179
179
|
className: e,
|
|
@@ -186,11 +186,11 @@ const A = ({ children: e, className: a }) => {
|
|
|
186
186
|
A.Label = Be;
|
|
187
187
|
A.Input = ke;
|
|
188
188
|
const I = ({ children: e, className: a }) => {
|
|
189
|
-
const { disabled: n, readOnly: o, use24HourFormat: s, showDateLabels: r } = b(), { labelId: i } = O("time"), { partValue: m, partError: c, onPartChange: g } = C("time"),
|
|
189
|
+
const { disabled: n, readOnly: o, use24HourFormat: s, showDateLabels: r } = b(), { labelId: i } = O("time"), { partValue: m, partError: c, onPartChange: g } = C("time"), p = u(e, I.Label), _ = u(e, I.Input);
|
|
190
190
|
return /* @__PURE__ */ t.createElement("div", {
|
|
191
191
|
className: a,
|
|
192
192
|
"data-date-field": !0
|
|
193
|
-
}, r &&
|
|
193
|
+
}, r && p, /* @__PURE__ */ t.createElement(ue, {
|
|
194
194
|
"aria-labelledby": r ? i : void 0,
|
|
195
195
|
value: m,
|
|
196
196
|
onChange: g,
|
|
@@ -198,7 +198,7 @@ const I = ({ children: e, className: a }) => {
|
|
|
198
198
|
isReadOnly: o,
|
|
199
199
|
isInvalid: c,
|
|
200
200
|
hourCycle: s ? 24 : 12
|
|
201
|
-
},
|
|
201
|
+
}, _));
|
|
202
202
|
}, ze = ({ className: e }) => {
|
|
203
203
|
const { inputId: a, labelId: n } = O("time"), { t: o } = L(), s = o("field.date.label.time");
|
|
204
204
|
return /* @__PURE__ */ t.createElement("label", {
|
|
@@ -208,7 +208,7 @@ const I = ({ children: e, className: a }) => {
|
|
|
208
208
|
}, s);
|
|
209
209
|
}, Ge = ({ children: e, className: a }) => {
|
|
210
210
|
const n = u(e, I.Hour), o = u(e, I.Minute), s = u(e, I.Period);
|
|
211
|
-
return /* @__PURE__ */ t.createElement(
|
|
211
|
+
return /* @__PURE__ */ t.createElement(Ee, {
|
|
212
212
|
className: a,
|
|
213
213
|
"data-hook": "time"
|
|
214
214
|
}, (r) => {
|
|
@@ -226,7 +226,7 @@ const I = ({ children: e, className: a }) => {
|
|
|
226
226
|
segment: r
|
|
227
227
|
}) || /* @__PURE__ */ t.createElement(t.Fragment, null);
|
|
228
228
|
case "literal":
|
|
229
|
-
return /* @__PURE__ */ t.createElement(
|
|
229
|
+
return /* @__PURE__ */ t.createElement(B, {
|
|
230
230
|
segment: r
|
|
231
231
|
});
|
|
232
232
|
default:
|
|
@@ -235,7 +235,7 @@ const I = ({ children: e, className: a }) => {
|
|
|
235
235
|
});
|
|
236
236
|
}, Ue = ({ className: e, ...a }) => {
|
|
237
237
|
const { hidePlaceholder: n } = b(), { segment: o } = a, { t: s } = L(), r = n ? void 0 : s("field.date.placeholder.hour");
|
|
238
|
-
return /* @__PURE__ */ t.createElement(
|
|
238
|
+
return /* @__PURE__ */ t.createElement(B, {
|
|
239
239
|
segment: o,
|
|
240
240
|
className: e,
|
|
241
241
|
...r && {
|
|
@@ -244,7 +244,7 @@ const I = ({ children: e, className: a }) => {
|
|
|
244
244
|
});
|
|
245
245
|
}, $e = ({ className: e, ...a }) => {
|
|
246
246
|
const { hidePlaceholder: n } = b(), { segment: o } = a, { t: s } = L(), r = n ? void 0 : s("field.date.placeholder.minute");
|
|
247
|
-
return /* @__PURE__ */ t.createElement(
|
|
247
|
+
return /* @__PURE__ */ t.createElement(B, {
|
|
248
248
|
segment: o,
|
|
249
249
|
className: e,
|
|
250
250
|
...r && {
|
|
@@ -252,8 +252,8 @@ const I = ({ children: e, className: a }) => {
|
|
|
252
252
|
}
|
|
253
253
|
});
|
|
254
254
|
}, qe = ({ className: e, ...a }) => {
|
|
255
|
-
const { hidePlaceholder: n } = b(), { segment: o } = a, { t: s } = L(), r =
|
|
256
|
-
return /* @__PURE__ */ t.createElement(
|
|
255
|
+
const { hidePlaceholder: n } = b(), { segment: o } = a, { t: s } = L(), r = se(he), i = n ? void 0 : s("field.date.placeholder.period"), m = () => r == null ? void 0 : r.increment("dayPeriod");
|
|
256
|
+
return /* @__PURE__ */ t.createElement(B, {
|
|
257
257
|
segment: o,
|
|
258
258
|
className: e,
|
|
259
259
|
onClick: m,
|
|
@@ -267,15 +267,15 @@ I.Input = Ge;
|
|
|
267
267
|
I.Hour = Ue;
|
|
268
268
|
I.Minute = $e;
|
|
269
269
|
I.Period = qe;
|
|
270
|
-
l.Label =
|
|
270
|
+
l.Label = _e;
|
|
271
271
|
l.Month = F;
|
|
272
272
|
l.Day = R;
|
|
273
273
|
l.Year = A;
|
|
274
274
|
l.Time = I;
|
|
275
|
-
l.Description =
|
|
276
|
-
l.Error =
|
|
275
|
+
l.Description = De;
|
|
276
|
+
l.Error = Ne;
|
|
277
277
|
function O(e) {
|
|
278
|
-
const { inputId: a } =
|
|
278
|
+
const { inputId: a } = J();
|
|
279
279
|
return T(() => {
|
|
280
280
|
const n = e.toLowerCase();
|
|
281
281
|
return {
|
|
@@ -288,42 +288,42 @@ function O(e) {
|
|
|
288
288
|
]);
|
|
289
289
|
}
|
|
290
290
|
function C(e) {
|
|
291
|
-
const { value: a, onChange: n, hasError: o = !1 } = b(), { regionalFormat: s } =
|
|
291
|
+
const { value: a, onChange: n, hasError: o = !1 } = b(), { regionalFormat: s } = G(), [r, i] = T(() => j(a ?? ""), [
|
|
292
292
|
a
|
|
293
|
-
]), m = T(() =>
|
|
293
|
+
]), m = T(() => fe(o, a ?? ""), [
|
|
294
294
|
a,
|
|
295
295
|
o
|
|
296
|
-
]), c = T(() =>
|
|
296
|
+
]), c = T(() => be(r), [
|
|
297
297
|
r
|
|
298
298
|
]), g = T(() => je(i), [
|
|
299
299
|
i
|
|
300
|
-
]),
|
|
301
|
-
const
|
|
300
|
+
]), p = w((D) => {
|
|
301
|
+
const N = Ke(D), y = K(r, N);
|
|
302
302
|
n(y);
|
|
303
303
|
}, [
|
|
304
304
|
n,
|
|
305
305
|
r
|
|
306
|
-
]),
|
|
307
|
-
const [,
|
|
306
|
+
]), _ = w((D) => {
|
|
307
|
+
const [, N] = j(a ?? ""), y = ge(D, e, c), S = K(y, N);
|
|
308
308
|
n(S);
|
|
309
309
|
}, [
|
|
310
310
|
n,
|
|
311
311
|
a,
|
|
312
312
|
c,
|
|
313
313
|
e
|
|
314
|
-
]), M = T(() => e === "time" ? !1 :
|
|
314
|
+
]), M = T(() => e === "time" ? !1 : X(s).filter(Z).map((y) => y.toUpperCase())[0] === e, [
|
|
315
315
|
s,
|
|
316
316
|
e
|
|
317
317
|
]);
|
|
318
318
|
return e === "time" ? {
|
|
319
319
|
partValue: g,
|
|
320
320
|
partError: m.TIME,
|
|
321
|
-
onPartChange:
|
|
321
|
+
onPartChange: p,
|
|
322
322
|
isFirstPart: !1
|
|
323
323
|
} : {
|
|
324
324
|
partValue: c[e] || "",
|
|
325
325
|
partError: m[e],
|
|
326
|
-
onPartChange:
|
|
326
|
+
onPartChange: _,
|
|
327
327
|
isFirstPart: M
|
|
328
328
|
};
|
|
329
329
|
}
|
|
@@ -339,7 +339,7 @@ function je(e) {
|
|
|
339
339
|
if (!e)
|
|
340
340
|
return null;
|
|
341
341
|
try {
|
|
342
|
-
return
|
|
342
|
+
return le(e);
|
|
343
343
|
} catch {
|
|
344
344
|
return null;
|
|
345
345
|
}
|
|
@@ -354,76 +354,73 @@ function Ke(e) {
|
|
|
354
354
|
o
|
|
355
355
|
].join(":");
|
|
356
356
|
}
|
|
357
|
-
const Qe = "
|
|
357
|
+
const Qe = "_fields_9mv0h_1", We = "_month_9mv0h_11", Je = "_day_9mv0h_12", Xe = "_year_9mv0h_13", Ze = "_timeGroup_9mv0h_14", et = "_dayInput_9mv0h_42", tt = "_yearInput_9mv0h_43", at = "_monthTrigger_9mv0h_47", nt = "_monthOption_9mv0h_67", rt = "_time_9mv0h_14", ot = "_hour_9mv0h_86", st = "_minute_9mv0h_87", lt = "_period_9mv0h_88", h = {
|
|
358
358
|
fields: Qe,
|
|
359
359
|
month: We,
|
|
360
360
|
day: Je,
|
|
361
361
|
year: Xe,
|
|
362
362
|
timeGroup: Ze,
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
time: st,
|
|
363
|
+
dayInput: et,
|
|
364
|
+
yearInput: tt,
|
|
365
|
+
monthTrigger: at,
|
|
366
|
+
monthOption: nt,
|
|
367
|
+
time: rt,
|
|
369
368
|
hour: ot,
|
|
370
|
-
minute:
|
|
371
|
-
period:
|
|
372
|
-
},
|
|
369
|
+
minute: st,
|
|
370
|
+
period: lt
|
|
371
|
+
}, it = ({ content: e, locale: a }) => /* @__PURE__ */ t.createElement(oe, {
|
|
373
372
|
content: e,
|
|
374
373
|
locale: a
|
|
375
|
-
}),
|
|
376
|
-
const e = Ae(
|
|
374
|
+
}), Mt = () => {
|
|
375
|
+
const e = Ae(h.monthOption, H), a = k(h.dayInput), n = k(h.yearInput), o = k(h.time);
|
|
377
376
|
return /* @__PURE__ */ t.createElement(l, {
|
|
378
|
-
className:
|
|
379
|
-
[E.mobile]: a
|
|
380
|
-
})
|
|
377
|
+
className: h.fields
|
|
381
378
|
}, /* @__PURE__ */ t.createElement(l.Label, {
|
|
382
|
-
className:
|
|
379
|
+
className: E(v, f.label)
|
|
383
380
|
}, /* @__PURE__ */ t.createElement(l.Label.Required, {
|
|
384
|
-
className:
|
|
381
|
+
className: E(Pe, f.requiredMark)
|
|
385
382
|
})), /* @__PURE__ */ t.createElement(l.Month, {
|
|
386
|
-
className:
|
|
383
|
+
className: h.month
|
|
387
384
|
}, /* @__PURE__ */ t.createElement(l.Month.Label, {
|
|
388
|
-
className:
|
|
385
|
+
className: E(v, f.label)
|
|
389
386
|
}), /* @__PURE__ */ t.createElement(l.Month.Trigger, {
|
|
390
|
-
className:
|
|
387
|
+
className: E(Me, f.input, h.monthTrigger)
|
|
391
388
|
}, /* @__PURE__ */ t.createElement(Fe, {
|
|
392
|
-
className:
|
|
389
|
+
className: f.dropdownIcon
|
|
393
390
|
})), /* @__PURE__ */ t.createElement(l.Month.Options, {
|
|
394
|
-
className:
|
|
391
|
+
className: E(Se, f.selectPopover, f.dropdownPopover)
|
|
395
392
|
}, /* @__PURE__ */ t.createElement(l.Month.Options.Option, {
|
|
396
393
|
className: e
|
|
397
394
|
}))), /* @__PURE__ */ t.createElement(l.Day, {
|
|
398
|
-
className:
|
|
395
|
+
className: h.day
|
|
399
396
|
}, /* @__PURE__ */ t.createElement(l.Day.Label, {
|
|
400
|
-
className:
|
|
397
|
+
className: E(v, f.label)
|
|
401
398
|
}), /* @__PURE__ */ t.createElement(l.Day.Input, {
|
|
402
|
-
className:
|
|
399
|
+
className: a
|
|
403
400
|
})), /* @__PURE__ */ t.createElement(l.Year, {
|
|
404
|
-
className:
|
|
401
|
+
className: h.year
|
|
405
402
|
}, /* @__PURE__ */ t.createElement(l.Year.Label, {
|
|
406
|
-
className:
|
|
403
|
+
className: E(v, f.label)
|
|
407
404
|
}), /* @__PURE__ */ t.createElement(l.Year.Input, {
|
|
408
|
-
className:
|
|
405
|
+
className: n
|
|
409
406
|
})), /* @__PURE__ */ t.createElement(l.Time, {
|
|
410
|
-
className:
|
|
407
|
+
className: h.timeGroup
|
|
411
408
|
}, /* @__PURE__ */ t.createElement(l.Time.Label, {
|
|
412
|
-
className:
|
|
409
|
+
className: E(v, f.label)
|
|
413
410
|
}), /* @__PURE__ */ t.createElement(l.Time.Input, {
|
|
414
|
-
className:
|
|
411
|
+
className: o
|
|
415
412
|
}, /* @__PURE__ */ t.createElement(l.Time.Hour, {
|
|
416
|
-
className:
|
|
413
|
+
className: E(h.hour, H)
|
|
417
414
|
}), /* @__PURE__ */ t.createElement(l.Time.Minute, {
|
|
418
|
-
className:
|
|
415
|
+
className: E(h.minute, H)
|
|
419
416
|
}), /* @__PURE__ */ t.createElement(l.Time.Period, {
|
|
420
|
-
className:
|
|
417
|
+
className: E(h.period, H)
|
|
421
418
|
}))), /* @__PURE__ */ t.createElement(l.Error, {
|
|
422
|
-
className:
|
|
419
|
+
className: E(ve, f.error)
|
|
423
420
|
}, /* @__PURE__ */ t.createElement(Ce, null), /* @__PURE__ */ t.createElement(l.Error.Text, null)), /* @__PURE__ */ t.createElement(l.Description, {
|
|
424
|
-
className:
|
|
425
|
-
},
|
|
421
|
+
className: E(Re, f.description)
|
|
422
|
+
}, it));
|
|
426
423
|
};
|
|
427
424
|
export {
|
|
428
|
-
|
|
425
|
+
Mt as D
|
|
429
426
|
};
|
package/dist/component/{dext-checkbox-group-rac-BVx7XXwR.js → dext-checkbox-group-rac-4Xv2Yx1Q.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import o from "react";
|
|
2
|
-
import { ak as e, h as t } from "./form-
|
|
3
|
-
import { C as p } from "./checkbox-group-field-rac-
|
|
2
|
+
import { ak as e, h as t } from "./form-CVz1PefD.js";
|
|
3
|
+
import { C as p } from "./checkbox-group-field-rac-BtPnVYiW.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-BvRnaWP0.js → dext-radio-group-rac-DaTuyxUL.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import r from "react";
|
|
2
|
-
import { ak as e, h as t } from "./form-
|
|
3
|
-
import { R as p } from "./radio-group-field-rac-
|
|
2
|
+
import { ak as e, h as t } from "./form-CVz1PefD.js";
|
|
3
|
+
import { R as p } from "./radio-group-field-rac-BdNA6UOq.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 { ak as e, h as o } from "./form-
|
|
3
|
-
import { T as s } from "./tags-field-rac-
|
|
2
|
+
import { ak as e, h as o } from "./form-CVz1PefD.js";
|
|
3
|
+
import { T as s } from "./tags-field-rac-B5v917df.js";
|
|
4
4
|
import { b as a } from "./default-limits-D7qVv_Hv.js";
|
|
5
5
|
const l = () => {
|
|
6
6
|
const t = {
|
|
@@ -3,11 +3,11 @@ 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 { P as Q, ak as L, ah as B, au as ue, ac as A, am as me } from "./form-
|
|
6
|
+
import { P as Q, ak as L, ah as B, au as ue, ac as A, am as me } from "./form-CVz1PefD.js";
|
|
7
7
|
import { f, a as y } from "./find-child-C60k4CxG.js";
|
|
8
8
|
import { a as W } from "./format-currency-BwShJ9vM.js";
|
|
9
|
-
import { D as pe, E as de } from "./field-error-headless-
|
|
10
|
-
import { L as Ce } from "./field-label-headless-
|
|
9
|
+
import { D as pe, E as de } from "./field-error-headless-DJVkE5yv.js";
|
|
10
|
+
import { L as Ce } from "./field-label-headless-CyCHxPkd.js";
|
|
11
11
|
import { N as Ie } from "./options-layout-constants-DEfIEJWD.js";
|
|
12
12
|
import { a as Ee, b as fe } from "./numeric-input-utils-CuBMi4-a.js";
|
|
13
13
|
import { g as Oe } from "./payment-field-utils-DobiK5Xh.js";
|
|
@@ -16,8 +16,8 @@ import { E as _e } from "./error-icon-hZxQ6DEy.js";
|
|
|
16
16
|
import { s as S } from "./field-rac.module-DobpyqOd.js";
|
|
17
17
|
import { C as be, S as ye, k as Ne, r as ge, j as Fe, l as De } from "./form-element-classes-BtKlobUX.js";
|
|
18
18
|
import { o as Se } from "./options-rac.module-KM-VT_KY.js";
|
|
19
|
-
import { u as Re } from "./use-element-state-class-name-
|
|
20
|
-
import { u as ve } from "./use-text-input-class-name-
|
|
19
|
+
import { u as Re } from "./use-element-state-class-name-Cego6EXH.js";
|
|
20
|
+
import { u as ve } from "./use-text-input-class-name-BUFPGIgC.js";
|
|
21
21
|
function Le(e, t) {
|
|
22
22
|
return e.reduce((o, r) => (o[r[t]] = r, o), {});
|
|
23
23
|
}
|
package/dist/component/{dropdown-field-headless-BMWwkydq.js → dropdown-field-headless-CIXH608w.js}
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import e, { useState as g, useCallback as b, useRef as A } from "react";
|
|
2
2
|
import { UNSAFE_PortalProvider as M } from "react-aria";
|
|
3
3
|
import { Select as U, SelectValue as _, ListBox as j, ListBoxItem as z } from "react-aria-components";
|
|
4
|
-
import { ak as f, ah as O, am as G } from "./form-
|
|
4
|
+
import { ak as f, ah as O, am as G } from "./form-CVz1PefD.js";
|
|
5
5
|
import { f as d, a as F } from "./find-child-C60k4CxG.js";
|
|
6
|
-
import { D as H, E as J } from "./field-error-headless-
|
|
7
|
-
import { L as K } from "./field-label-headless-
|
|
6
|
+
import { D as H, E as J } from "./field-error-headless-DJVkE5yv.js";
|
|
7
|
+
import { L as K } from "./field-label-headless-CyCHxPkd.js";
|
|
8
8
|
import { S as Q, N as W } from "./non-modal-popover-DtIMXHbe.js";
|
|
9
|
-
import { u as X } from "./use-is-forced-open-dropdown-
|
|
9
|
+
import { u as X } from "./use-is-forced-open-dropdown-Do-gps07.js";
|
|
10
10
|
const r = ({ children: n }) => {
|
|
11
11
|
const { id: l, value: a, defaultValue: s, options: u = [], readOnly: o, onChange: t, placeholder: m, disabled: i, required: v, onBlur: y, onFocus: D, FieldLayout: h, hasError: C } = f(), [I, L] = g(!1), p = X(l), [B, N] = g(null), P = a && u.some((c) => (c.value ?? c.label) === a) ? a : s || null, { labelId: S } = O(), T = b((c) => {
|
|
12
12
|
o || t(typeof c == "string" ? c : null);
|