@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
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import d, { useContext as _, useRef as D, useState as m, Children as L, useLayoutEffect as p, useMemo as M } from "react";
|
|
2
|
+
import { CollectionRendererContext as g, DefaultCollectionRenderer as E, ListBox as N } from "react-aria-components";
|
|
3
|
+
import T from "classnames";
|
|
4
|
+
import { s as h } from "./field-rac.module-B4l_0KRU.js";
|
|
5
|
+
import { s as H } from "./form-CimhBiBc.js";
|
|
6
|
+
import { u as I } from "./use-element-state-class-name-_GWfwpEf.js";
|
|
7
|
+
const R = 1 / 0, B = {
|
|
8
|
+
position: "absolute",
|
|
9
|
+
width: 0,
|
|
10
|
+
height: "var(--popoverMaxHeight, 240px)",
|
|
11
|
+
visibility: "hidden",
|
|
12
|
+
pointerEvents: "none"
|
|
13
|
+
}, P = (e, o) => Object.create(e, {
|
|
14
|
+
[Symbol.iterator]: {
|
|
15
|
+
value: function* () {
|
|
16
|
+
let n = 0;
|
|
17
|
+
for (const s of e) {
|
|
18
|
+
if (n >= o)
|
|
19
|
+
return;
|
|
20
|
+
n += 1, yield s;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}), S = (e) => e.querySelector('[role="option"]') !== null, A = (e, o) => {
|
|
25
|
+
const n = e.getBoundingClientRect().top - e.scrollTop;
|
|
26
|
+
let s = 0;
|
|
27
|
+
for (const r of e.querySelectorAll('[role="option"]')) {
|
|
28
|
+
const f = r.getBoundingClientRect().top - n;
|
|
29
|
+
if (s > 0 && f >= o)
|
|
30
|
+
break;
|
|
31
|
+
s += 1;
|
|
32
|
+
}
|
|
33
|
+
return s;
|
|
34
|
+
}, X = ({ isForcedOpen: e, ...o }) => {
|
|
35
|
+
const n = _(g), s = D(null), [r, f] = m(null), [c, b] = m(R), [v, w] = m(0), x = L.count(o.children);
|
|
36
|
+
p(() => {
|
|
37
|
+
b(R);
|
|
38
|
+
}, [
|
|
39
|
+
r,
|
|
40
|
+
x,
|
|
41
|
+
v
|
|
42
|
+
]), p(() => {
|
|
43
|
+
const t = s.current;
|
|
44
|
+
if (!r || !t || c !== R)
|
|
45
|
+
return;
|
|
46
|
+
const a = () => {
|
|
47
|
+
const l = r.getBoundingClientRect().height;
|
|
48
|
+
l > 0 && b(A(t, l));
|
|
49
|
+
};
|
|
50
|
+
if (S(t)) {
|
|
51
|
+
a();
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
const i = new MutationObserver(() => {
|
|
55
|
+
S(t) && (i.disconnect(), a());
|
|
56
|
+
});
|
|
57
|
+
return i.observe(t, {
|
|
58
|
+
childList: !0,
|
|
59
|
+
subtree: !0
|
|
60
|
+
}), () => i.disconnect();
|
|
61
|
+
}, [
|
|
62
|
+
r,
|
|
63
|
+
c,
|
|
64
|
+
v
|
|
65
|
+
]), p(() => {
|
|
66
|
+
const t = s.current;
|
|
67
|
+
if (!r || !t || typeof ResizeObserver > "u")
|
|
68
|
+
return;
|
|
69
|
+
const a = /* @__PURE__ */ new Map(), i = new ResizeObserver((l) => {
|
|
70
|
+
l.some(({ target: u, contentRect: O }) => {
|
|
71
|
+
const C = a.get(u);
|
|
72
|
+
return a.set(u, O.height), C !== void 0 && C !== O.height;
|
|
73
|
+
}) && w((u) => u + 1);
|
|
74
|
+
});
|
|
75
|
+
return i.observe(r), t.querySelectorAll('[role="option"]').forEach((l) => i.observe(l)), () => i.disconnect();
|
|
76
|
+
}, [
|
|
77
|
+
r,
|
|
78
|
+
c
|
|
79
|
+
]);
|
|
80
|
+
const y = M(() => ({
|
|
81
|
+
...E,
|
|
82
|
+
CollectionRoot: (t) => /* @__PURE__ */ d.createElement(E.CollectionRoot, {
|
|
83
|
+
...t,
|
|
84
|
+
collection: P(t.collection, c)
|
|
85
|
+
})
|
|
86
|
+
}), [
|
|
87
|
+
c
|
|
88
|
+
]);
|
|
89
|
+
return /* @__PURE__ */ d.createElement(g.Provider, {
|
|
90
|
+
value: e ? y : n
|
|
91
|
+
}, /* @__PURE__ */ d.createElement(N, {
|
|
92
|
+
ref: s,
|
|
93
|
+
...o
|
|
94
|
+
}), e && /* @__PURE__ */ d.createElement("div", {
|
|
95
|
+
ref: f,
|
|
96
|
+
style: B
|
|
97
|
+
}));
|
|
98
|
+
}, q = {
|
|
99
|
+
base: h.selectOption,
|
|
100
|
+
selected: h.selectOptionSelected,
|
|
101
|
+
hover: h.selectOptionHover
|
|
102
|
+
}, V = ({ isSelected: e, isHovered: o, isFocused: n }) => ({
|
|
103
|
+
isSelected: e,
|
|
104
|
+
isHovered: (o || n) && !e
|
|
105
|
+
}), Y = (...e) => {
|
|
106
|
+
const o = I({
|
|
107
|
+
globalClasses: H,
|
|
108
|
+
moduleClasses: q
|
|
109
|
+
});
|
|
110
|
+
return (n) => T(o(V(n)), e);
|
|
111
|
+
};
|
|
112
|
+
export {
|
|
113
|
+
X as V,
|
|
114
|
+
Y as u
|
|
115
|
+
};
|
package/dist/component/{use-service-options-base-C2JFwqLm.js → use-service-options-base-4yrjmSWU.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useState as o, useCallback as y, useEffect as m, useMemo as D } from "react";
|
|
2
|
-
import { b8 as v } from "./form-
|
|
2
|
+
import { b8 as v } from "./form-CimhBiBc.js";
|
|
3
3
|
const k = (I) => {
|
|
4
4
|
const { fieldType: L, isEditor: t = !1, postProcessOptions: i, customFetchLogic: a, onInitialDataLoaded: n } = I, [O, h] = o(!1), [g, p] = o([]), [E, u] = o(!1), [c, f] = o(!1), s = v(L), r = y((e) => {
|
|
5
5
|
let d = e.map((l) => ({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { b9 as r, _ as i } from "./form-
|
|
1
|
+
import { b9 as r, _ as i } from "./form-CimhBiBc.js";
|
|
2
2
|
import { s } from "./field-rac.module-B4l_0KRU.js";
|
|
3
|
-
import { u as m } from "./use-element-state-class-name-
|
|
3
|
+
import { u as m } from "./use-element-state-class-name-_GWfwpEf.js";
|
|
4
4
|
const d = (...e) => {
|
|
5
5
|
const { disabled: a, readOnly: t } = r(), o = m({
|
|
6
6
|
globalClasses: i,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/form-elements",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.119.0",
|
|
4
4
|
"description": "The Wix Forms rendering element for Builder apps, loaded at runtime as @wix/form-elements/Form",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -156,5 +156,5 @@
|
|
|
156
156
|
]
|
|
157
157
|
}
|
|
158
158
|
},
|
|
159
|
-
"falconPackageHash": "
|
|
159
|
+
"falconPackageHash": "d5472c6932f8080a2b95cb5548b54dd9b0ad6ce72ffb3beeae750fba"
|
|
160
160
|
}
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import e, { useState as E, useCallback as g, useRef as A } from "react";
|
|
2
|
-
import { UNSAFE_PortalProvider as M } from "react-aria";
|
|
3
|
-
import { Select as U, SelectValue as _, ListBox as j, ListBoxItem as z } from "react-aria-components";
|
|
4
|
-
import { b9 as f, b6 as O, bb as G } from "./form-CJlXWndz.js";
|
|
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-Tx25j-Iy.js";
|
|
7
|
-
import { L as K } from "./field-label-headless-D3fAmFRO.js";
|
|
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-BiTXTz0Y.js";
|
|
10
|
-
const r = ({ children: n }) => {
|
|
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: C, hasError: I } = f(), [L, h] = E(!1), p = X(l), [B, N] = E(null), P = a && u.some((c) => (c.value ?? c.label) === a) ? a : s || null, { labelId: S } = O(), T = g((c) => {
|
|
12
|
-
o || t(typeof c == "string" ? c : null);
|
|
13
|
-
}, [
|
|
14
|
-
t,
|
|
15
|
-
o
|
|
16
|
-
]), x = g((c) => h(c && !i && !o), [
|
|
17
|
-
i,
|
|
18
|
-
o
|
|
19
|
-
]), V = d(n, r.Label), R = d(n, r.Trigger), k = d(n, r.Options), q = d(n, r.Description), w = d(n, r.Error);
|
|
20
|
-
return /* @__PURE__ */ e.createElement(C, {
|
|
21
|
-
fieldId: l,
|
|
22
|
-
renderLabel: () => V,
|
|
23
|
-
renderInput: () => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", {
|
|
24
|
-
ref: N,
|
|
25
|
-
style: {
|
|
26
|
-
display: "contents"
|
|
27
|
-
}
|
|
28
|
-
}), /* @__PURE__ */ e.createElement(M, {
|
|
29
|
-
getContainer: () => B
|
|
30
|
-
}, /* @__PURE__ */ e.createElement(U, {
|
|
31
|
-
"aria-labelledby": S,
|
|
32
|
-
value: P,
|
|
33
|
-
isOpen: p || L && !i && !o,
|
|
34
|
-
onOpenChange: p ? void 0 : x,
|
|
35
|
-
onChange: T,
|
|
36
|
-
isDisabled: i,
|
|
37
|
-
isInvalid: I,
|
|
38
|
-
isRequired: v,
|
|
39
|
-
placeholder: m,
|
|
40
|
-
onBlur: y,
|
|
41
|
-
onFocus: D
|
|
42
|
-
}, R, F(k, {
|
|
43
|
-
isForcedOpen: p
|
|
44
|
-
})))),
|
|
45
|
-
renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, w, q)
|
|
46
|
-
});
|
|
47
|
-
}, Y = ({ children: n, className: l }) => {
|
|
48
|
-
const { inputId: a, ariaDescribedBy: s } = O(), { id: u, hasError: o, isLoading: t } = f(), m = A(null);
|
|
49
|
-
return G(() => {
|
|
50
|
-
var i;
|
|
51
|
-
(i = m.current) == null || i.focus();
|
|
52
|
-
}, u), /* @__PURE__ */ e.createElement(Q, {
|
|
53
|
-
ref: m,
|
|
54
|
-
id: a,
|
|
55
|
-
"aria-describedby": s,
|
|
56
|
-
className: l,
|
|
57
|
-
"data-invalid": o || void 0,
|
|
58
|
-
"data-loading": t || void 0
|
|
59
|
-
}, /* @__PURE__ */ e.createElement(_, null), n);
|
|
60
|
-
}, b = ({ children: n, className: l, ...a }) => {
|
|
61
|
-
const { isForcedOpen: s } = a, { options: u = [] } = f(), o = d(n, b.Option);
|
|
62
|
-
return /* @__PURE__ */ e.createElement(W, {
|
|
63
|
-
className: l,
|
|
64
|
-
containerPadding: 0,
|
|
65
|
-
offset: 0
|
|
66
|
-
}, /* @__PURE__ */ e.createElement(j, {
|
|
67
|
-
autoFocus: s ? !1 : void 0
|
|
68
|
-
}, u.map((t) => F(o, {
|
|
69
|
-
key: t.value ?? t.label,
|
|
70
|
-
value: t.value ?? t.label,
|
|
71
|
-
label: t.label
|
|
72
|
-
}))));
|
|
73
|
-
}, Z = ({ className: n, ...l }) => {
|
|
74
|
-
const { value: a, label: s } = l;
|
|
75
|
-
return /* @__PURE__ */ e.createElement(z, {
|
|
76
|
-
className: n,
|
|
77
|
-
id: a,
|
|
78
|
-
textValue: s
|
|
79
|
-
}, s);
|
|
80
|
-
};
|
|
81
|
-
b.Option = Z;
|
|
82
|
-
r.Label = K;
|
|
83
|
-
r.Trigger = Y;
|
|
84
|
-
r.Options = b;
|
|
85
|
-
r.Description = H;
|
|
86
|
-
r.Error = J;
|
|
87
|
-
export {
|
|
88
|
-
r as D
|
|
89
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import a from "classnames";
|
|
2
|
-
import { s as o } from "./field-rac.module-B4l_0KRU.js";
|
|
3
|
-
import { s as r } from "./form-CJlXWndz.js";
|
|
4
|
-
import { u as l } from "./use-element-state-class-name-BNSdoQqN.js";
|
|
5
|
-
const O = {
|
|
6
|
-
base: o.selectOption,
|
|
7
|
-
selected: o.selectOptionSelected,
|
|
8
|
-
hover: o.selectOptionHover
|
|
9
|
-
}, m = ({ isSelected: s, isHovered: e, isFocused: t }) => ({
|
|
10
|
-
isSelected: s,
|
|
11
|
-
isHovered: (e || t) && !s
|
|
12
|
-
}), N = (...s) => {
|
|
13
|
-
const e = l({
|
|
14
|
-
globalClasses: r,
|
|
15
|
-
moduleClasses: O
|
|
16
|
-
});
|
|
17
|
-
return (t) => a(e(m(t)), s);
|
|
18
|
-
};
|
|
19
|
-
export {
|
|
20
|
-
N as u
|
|
21
|
-
};
|