@wix/form-elements 1.186.0 → 1.188.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-B_kU3lTx.js → appointment-rac-Biwj0bKe.js} +78 -78
- package/dist/component/{bookings-address-rac-BZR-Loac.js → bookings-address-rac-B_o25LOI.js} +1 -1
- package/dist/component/{bookings-email-rac-CCvIRZYM.js → bookings-email-rac-BBcusxbS.js} +1 -1
- package/dist/component/{bookings-first-name-rac-B5AEOOre.js → bookings-first-name-rac-CNTGannm.js} +1 -1
- package/dist/component/{bookings-header-rac-BcvixPiY.js → bookings-header-rac-BTvG2vnk.js} +1 -1
- package/dist/component/{bookings-last-name-rac-JiEUxaqi.js → bookings-last-name-rac-BQumGsz9.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-zPJ3u2Kn.js → bookings-login-bar-rac-Cl_rwWhO.js} +8 -8
- package/dist/component/{bookings-phone-rac-CNNlCp66.js → bookings-phone-rac-B_gXe9Fa.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-Rl9b7r3g.js → bookings-rich-text-rac-CbMuPVCB.js} +1 -1
- package/dist/component/{checkbox-field-rac-DP6HkB2N.js → checkbox-field-rac-QwFSqEgs.js} +43 -43
- package/dist/component/{checkbox-group-field-headless-DOFTwxeh.js → checkbox-group-field-headless-CTDMO0TM.js} +38 -38
- package/dist/component/{checkbox-group-field-rac-DhcC_N8m.js → checkbox-group-field-rac-DFUST9Th.js} +4 -4
- package/dist/component/{checkbox-group-rac-Gec8xcgN.js → checkbox-group-rac-CBAE-o1Q.js} +1 -1
- package/dist/component/{checkbox-rac-CAuZNb4B.js → checkbox-rac-DkYPhGTU.js} +1 -1
- package/dist/component/{contacts-address-rac-2WX8POCZ.js → contacts-address-rac-DKf42iJk.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-36zloipl.js → contacts-birthdate-rac-ffPSb2YW.js} +1 -1
- package/dist/component/{contacts-company-rac-skt6F4i0.js → contacts-company-rac-DLVdNbYz.js} +1 -1
- package/dist/component/{contacts-email-rac-BAftc4kl.js → contacts-email-rac-CW8SdcYX.js} +1 -1
- package/dist/component/{contacts-first-name-rac-u6Wiuwxe.js → contacts-first-name-rac-CGdzgpkw.js} +1 -1
- package/dist/component/{contacts-last-name-rac-DCh0xW6C.js → contacts-last-name-rac-DNQj7UcW.js} +1 -1
- package/dist/component/{contacts-phone-rac-lhdYji46.js → contacts-phone-rac-zAMIceti.js} +1 -1
- package/dist/component/{contacts-position-rac-jOQ8Zayq.js → contacts-position-rac-DLwn9B2T.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-q4sRxs2n.js → contacts-subscribe-rac-Cy5rxTkC.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-DpzneATH.js → contacts-tax-id-rac-CEfU6N6C.js} +1 -1
- package/dist/component/{date-availability-CKFxphlT.js → date-availability-C9EOQUiy.js} +1 -1
- package/dist/component/{date-input-field-rac-DgwRr6tR.js → date-input-field-rac-F4QQeEtO.js} +57 -57
- package/dist/component/{date-input-rac-CONL_9I5.js → date-input-rac-CJeOgyF5.js} +1 -1
- package/dist/component/{date-picker-field-rac-C1ckFkSh.js → date-picker-field-rac-33ARKAxQ.js} +35 -35
- package/dist/component/{date-picker-rac-CTms7Rxx.js → date-picker-rac-Beaqh84V.js} +1 -1
- package/dist/component/{date-time-input-field-rac-BkjASrCJ.js → date-time-input-field-rac-CB8FfYUM.js} +44 -44
- package/dist/component/{date-time-input-rac-Bc3gu8--.js → date-time-input-rac-DQ9P6IVp.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-BYEHlsBv.js → dext-checkbox-group-rac-Cho-hueW.js} +2 -2
- package/dist/component/{dext-checkbox-rac-C6nce0nR.js → dext-checkbox-rac-BIwIwy-y.js} +1 -1
- package/dist/component/{dext-date-picker-rac-COIoyTuy.js → dext-date-picker-rac-C03HJdvX.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-DFuslGXT.js → dext-date-time-input-rac-Bo4XfnRA.js} +1 -1
- package/dist/component/{dext-dropdown-rac-GecDU_NU.js → dext-dropdown-rac-CadT1tMH.js} +1 -1
- package/dist/component/{dext-email-rac-C9qXogI5.js → dext-email-rac-DbiEws8H.js} +1 -1
- package/dist/component/{dext-number-input-rac-BO_MqKpQ.js → dext-number-input-rac-XoW8CLvX.js} +1 -1
- package/dist/component/{dext-phone-rac-CZZBLRSj.js → dext-phone-rac-9rFyUD8e.js} +1 -1
- package/dist/component/{dext-radio-group-rac-baaOfskN.js → dext-radio-group-rac-U6BNL7IT.js} +2 -2
- package/dist/component/{dext-rating-input-rac-Cyz7F31J.js → dext-rating-input-rac-BDGUv8jU.js} +1 -1
- package/dist/component/{dext-tags-rac-DiWEHPna.js → dext-tags-rac-CAFGVcIi.js} +2 -2
- package/dist/component/{dext-text-area-rac-BpZnhr2z.js → dext-text-area-rac-DXyzm9oe.js} +1 -1
- package/dist/component/{dext-text-input-rac-CZWOoFkx.js → dext-text-input-rac-C27gdfyG.js} +1 -1
- package/dist/component/{dext-url-input-rac-l98Wixh2.js → dext-url-input-rac-DovYH3_G.js} +1 -1
- package/dist/component/{donation-rac-BcdtetWT.js → donation-rac-DV2aRsDt.js} +60 -60
- package/dist/component/{dropdown-field-rac-Bgjtp3L4.js → dropdown-field-rac-D58C7YZG.js} +3 -3
- package/dist/component/{dropdown-rac-D3x_39ML.js → dropdown-rac-57yZf_yZ.js} +1 -1
- package/dist/component/{ecom-address-rac-Bdk-Q07X.js → ecom-address-rac-Co3WhA7m.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-BoAls9a3.js → ecom-subscription-checkbox-rac-CYjsuRA9.js} +2 -2
- package/dist/component/{email-input-field-rac-77Oc4dDD.js → email-input-field-rac-C5G3pVkR.js} +14 -14
- package/dist/component/{events-repeater-rac-GfDVt3z5.js → events-repeater-rac-D5PXSDIH.js} +72 -70
- package/dist/component/{events-rsvp-rac-CsCMAtdq.js → events-rsvp-rac-BfyQNZh6.js} +3 -3
- package/dist/component/{field-error-headless-GKAj6Pxj.js → field-error-headless-RTyrenpC.js} +8 -8
- package/dist/component/{field-label-headless-PD3fGcax.js → field-label-headless-Bd00Hl2z.js} +4 -4
- package/dist/component/{file-upload-rac-CUxGzs3a.js → file-upload-rac-D5pTnsHO.js} +61 -61
- package/dist/component/{fixed-payment-rac-o5xHi-ra.js → fixed-payment-rac-ByxSjPu5.js} +9 -9
- package/dist/component/{form-RdPwfrvb.js → form-BG5UjjLA.js} +3547 -3403
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-C9xA5iqV.js → header-field-rac-Bql6VoAi.js} +2 -2
- package/dist/component/{header-rac-CF1VP6hb.js → header-rac-DWAIn4eY.js} +1 -1
- package/dist/component/{image-choice-rac-BEYEQpY1.js → image-choice-rac-D5dSQ4Xd.js} +11 -11
- package/dist/component/{index-S0Acbl6c.js → index-37eV-JEp.js} +5 -5
- package/dist/component/{index-RuCFDOGc.js → index-DlcCtz4h.js} +4 -4
- package/dist/component/{isObjectLike-Ber_X_Dh.js → isObjectLike-ClPDcTiq.js} +1 -1
- package/dist/component/{multiline-address-field-rac-B2TgOTXA.js → multiline-address-field-rac-CpvwzmpC.js} +345 -345
- package/dist/component/{multiline-address-rac-CmWUcCpu.js → multiline-address-rac-ENim2Bn6.js} +1 -1
- package/dist/component/{number-input-field-rac-Objw_lY1.js → number-input-field-rac-DTRnmRDk.js} +21 -21
- package/dist/component/{number-input-rac-DZSYFSGa.js → number-input-rac-QROlEpkx.js} +1 -1
- package/dist/component/{password-rac-CHJ-pfD8.js → password-rac-jMoyzIP2.js} +47 -47
- package/dist/component/{payment-input-rac-Z_KAjeub.js → payment-input-rac-DOOV4P4b.js} +31 -31
- package/dist/component/{phone-input-field-rac-CyEuc3c9.js → phone-input-field-rac-BA_mTcND.js} +47 -47
- package/dist/component/{phone-rac-DLvx-8X_.js → phone-rac-DXcbIqHK.js} +1 -1
- package/dist/component/{product-list-rac-D17el6c9.js → product-list-rac-CsxR7Ut6.js} +63 -63
- package/dist/component/{quiz-radio-group-rac-Ci8TptOw.js → quiz-radio-group-rac-IQgqvqjs.js} +1 -1
- package/dist/component/{radio-button-module-classes-FofhK-mq.js → radio-button-module-classes-DIFYfYiH.js} +36 -36
- package/dist/component/{radio-group-field-rac-BkSMEX4O.js → radio-group-field-rac-Ca2RlxOl.js} +4 -4
- package/dist/component/{radio-group-rac-BTn-Cxxa.js → radio-group-rac-DDervEEb.js} +1 -1
- package/dist/component/{rating-input-field-rac-CocnyJZF.js → rating-input-field-rac-0kyPo9cU.js} +12 -12
- package/dist/component/{rating-input-rac-BvBiBfeB.js → rating-input-rac-DqPsqUKR.js} +1 -1
- package/dist/component/{rich-content-rac.module-QspdFAOQ.js → rich-content-rac.module-2T_-7jvb.js} +5 -5
- package/dist/component/{rich-text-field-rac-Bhx9hioT.js → rich-text-field-rac-W-eKzhuC.js} +4 -4
- package/dist/component/{rich-text-rac-BQh8FwwS.js → rich-text-rac-CzJfbAyx.js} +1 -1
- package/dist/component/{service-dropdown-rac-BIXPgFFy.js → service-dropdown-rac-BMJy2pZ5.js} +25 -25
- package/dist/component/{services-multi-choice-rac-COQ1PA73.js → services-multi-choice-rac-BBAWlI7U.js} +7 -7
- package/dist/component/{signature-rac-Dg-moI_C.js → signature-rac-Y1GLswrp.js} +22 -22
- package/dist/component/{submit-button-rac-DeDYBkOM.js → submit-button-rac-CSKbrgQ3.js} +17 -17
- package/dist/component/{tags-field-rac-Ddd5j-Rm.js → tags-field-rac-D3zOYcC5.js} +19 -19
- package/dist/component/{tags-rac-CSN4Qj7H.js → tags-rac-Cs77Abgs.js} +1 -1
- package/dist/component/text-area-field-rac-DZZW7rAX.js +74 -0
- package/dist/component/{text-area-rac-CqdvWp7s.js → text-area-rac-BRPp0HnX.js} +1 -1
- package/dist/component/{text-input-field-rac-3fkKXrfo.js → text-input-field-rac-tPDZmLdU.js} +3 -3
- package/dist/component/text-input-headless-tkwEZWs7.js +47 -0
- package/dist/component/{text-input-rac-DAMMZiaZ.js → text-input-rac-DnHt4vkM.js} +1 -1
- package/dist/component/{time-input-rac-CsF1NYzf.js → time-input-rac-Dbg4Nqb5.js} +18 -18
- package/dist/component/url-input-field-rac-3ODFXFRP.js +77 -0
- package/dist/component/{url-input-rac-xe-Fv62_.js → url-input-rac-CPb5o8Of.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-D2bfB7mX.js → use-dropdown-option-class-name-Dd4ncVaY.js} +2 -2
- package/dist/component/{use-dropdown-trigger-class-name-C70Rbjnj.js → use-dropdown-trigger-class-name-zVniRqM7.js} +29 -29
- package/dist/component/{use-element-state-class-name-BxTnecG_.js → use-element-state-class-name-C8jFeDrq.js} +3 -3
- package/dist/component/{use-hoverable-input-class-name-CjyA3fHd.js → use-hoverable-input-class-name-B9diy0Mr.js} +2 -2
- package/dist/component/{use-is-forced-open-dropdown-CzLh9VIQ.js → use-is-forced-open-dropdown-BR1U1l5w.js} +6 -6
- package/dist/component/{use-service-options-base-DcTiL5qj.js → use-service-options-base-yM4rJlq1.js} +3 -3
- package/dist/component/use-text-input-class-name-D6AnBbJx.js +6 -0
- package/package.json +4 -2
- package/dist/component/text-area-field-rac-VYumrKBq.js +0 -74
- package/dist/component/text-input-headless-DMWwlrhh.js +0 -47
- package/dist/component/url-input-field-rac-Cs2W0Y3s.js +0 -77
- package/dist/component/use-text-input-class-name-B-OzR1SQ.js +0 -6
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import i from "classnames";
|
|
2
|
-
import {
|
|
2
|
+
import { bF as s, bc as v } from "./form-BG5UjjLA.js";
|
|
3
3
|
const x = ({ globalClasses: e, moduleClasses: r }) => {
|
|
4
4
|
var d;
|
|
5
5
|
const c = ((d = s(...v(e))) == null ? void 0 : d.split(/\s+/)) ?? [], o = [
|
|
6
6
|
e.selected,
|
|
7
7
|
e.hover
|
|
8
8
|
], h = !!e.selected && c.includes(e.selected), u = c.includes(e.hover);
|
|
9
|
-
return ({ isSelected: n, isHovered:
|
|
10
|
-
const m =
|
|
9
|
+
return ({ isSelected: n, isHovered: N, isFocused: p, isFocusWithin: E, isInteractive: t = !0 }) => {
|
|
10
|
+
const m = N || !!p || !!E;
|
|
11
11
|
return i(e.base, r.base, t ? c : c.filter((f) => !o.includes(f)), {
|
|
12
12
|
[e.hover]: t && m,
|
|
13
13
|
[r.hover]: t && (m || u)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { bM as n } from "./form-BG5UjjLA.js";
|
|
2
2
|
import { s as e } from "./field-rac.module-DcyJyi2B.js";
|
|
3
|
-
import { u } from "./use-element-state-class-name-
|
|
3
|
+
import { u } from "./use-element-state-class-name-C8jFeDrq.js";
|
|
4
4
|
const b = (s, a) => {
|
|
5
5
|
const { disabled: t, readOnly: o } = n(), r = u({
|
|
6
6
|
globalClasses: s,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useContext as u, useMemo as a } from "react";
|
|
2
|
-
import {
|
|
3
|
-
const
|
|
2
|
+
import { bG as c, aR as p, bE as E, F as o } from "./form-BG5UjjLA.js";
|
|
3
|
+
const D = [
|
|
4
4
|
o.DROPDOWN,
|
|
5
5
|
o.DEXT_DROPDOWN,
|
|
6
6
|
o.SERVICES_DROPDOWN
|
|
@@ -27,9 +27,9 @@ const E = [
|
|
|
27
27
|
}, _ = ({ properties: e }) => {
|
|
28
28
|
var n, t;
|
|
29
29
|
return ((t = (n = e.fieldSettings) == null ? void 0 : n.country) == null ? void 0 : t.show) !== !1;
|
|
30
|
-
}, S = (e, n) => T.includes(e.fieldType) && !n && P(e), A = (e) =>
|
|
31
|
-
const n = u(p), { isMobile: t = !1 } =
|
|
32
|
-
return a(() => !n || n.parentId ? [] : n.fields.filter((s) => e(s, t) &&
|
|
30
|
+
}, S = (e, n) => T.includes(e.fieldType) && !n && P(e), A = (e) => D.includes(e.fieldType), C = (e) => l.includes(e.fieldType), N = (e) => O.includes(e.fieldType) && _(e), h = (e) => I.includes(e.fieldType), F = ({ properties: e }) => !e.disabled && !e.readOnly, i = (e) => {
|
|
31
|
+
const n = u(p), { isMobile: t = !1 } = E();
|
|
32
|
+
return a(() => !n || n.parentId ? [] : n.fields.filter((s) => e(s, t) && F(s)).map((s) => s.id), [
|
|
33
33
|
n,
|
|
34
34
|
t,
|
|
35
35
|
e
|
|
@@ -52,7 +52,7 @@ const E = [
|
|
|
52
52
|
return n && t.includes(e);
|
|
53
53
|
}, L = (e) => {
|
|
54
54
|
var s;
|
|
55
|
-
const n = ((s = c().datePicker) == null ? void 0 : s.open) === !0, t = i(
|
|
55
|
+
const n = ((s = c().datePicker) == null ? void 0 : s.open) === !0, t = i(h);
|
|
56
56
|
return n && t.includes(e);
|
|
57
57
|
};
|
|
58
58
|
export {
|
package/dist/component/{use-service-options-base-DcTiL5qj.js → use-service-options-base-yM4rJlq1.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useState as o, useCallback as y, useEffect as m, useMemo as D } from "react";
|
|
2
|
-
import {
|
|
3
|
-
const k = (
|
|
4
|
-
const { fieldType:
|
|
2
|
+
import { bL as v } from "./form-BG5UjjLA.js";
|
|
3
|
+
const k = (L) => {
|
|
4
|
+
const { fieldType: I, isEditor: t = !1, postProcessOptions: i, customFetchLogic: a, onInitialDataLoaded: n } = L, [O, h] = o(!1), [g, p] = o([]), [E, u] = o(!1), [c, f] = o(!1), s = v(I), r = y((e) => {
|
|
5
5
|
let d = e.map((l) => ({
|
|
6
6
|
value: l.id ?? "",
|
|
7
7
|
label: l.name ?? "",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/form-elements",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.188.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": [
|
|
@@ -56,6 +56,7 @@
|
|
|
56
56
|
"@wix/ricos": "^11.22.0",
|
|
57
57
|
"@wix/sdk-runtime": "^1.0.31",
|
|
58
58
|
"@wix/services-definitions": "^1.0.5",
|
|
59
|
+
"@wix/site-service-captcha": "^1.0.1",
|
|
59
60
|
"@wix/site-service-editor-context": "^1.0.7",
|
|
60
61
|
"@wix/site-service-lightbox": "^1.0.6",
|
|
61
62
|
"@wix/site-service-locale": "^1.0.10",
|
|
@@ -112,6 +113,7 @@
|
|
|
112
113
|
"@wix/react-component-schema": "^1.11.0",
|
|
113
114
|
"@wix/react-component-utils": "^1.16.0",
|
|
114
115
|
"@wix/sdk-types": "^1.17.12",
|
|
116
|
+
"@wix/services-manager": "^1.0.7",
|
|
115
117
|
"@wix/services-manager-react": "^1.0.8",
|
|
116
118
|
"@wix/sled-playwright": "^1.422.0",
|
|
117
119
|
"oxfmt": "^0.62.0",
|
|
@@ -156,5 +158,5 @@
|
|
|
156
158
|
]
|
|
157
159
|
}
|
|
158
160
|
},
|
|
159
|
-
"falconPackageHash": "
|
|
161
|
+
"falconPackageHash": "788b93ddd1888156fdceaf4a89dff85ee0d3cf5f0963b965365b9738"
|
|
160
162
|
}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { RicosViewer as N } from "@wix/ricos/viewer";
|
|
2
|
-
import o from "classnames";
|
|
3
|
-
import r, { useCallback as S, useRef as T } from "react";
|
|
4
|
-
import { TextField as O, TextArea as y } from "react-aria-components";
|
|
5
|
-
import { bL as p, bI as d, bN as x, X as g, am as h, M as v, I as M } from "./form-RdPwfrvb.js";
|
|
6
|
-
import { f as i } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as q, E as B } from "./field-error-headless-GKAj6Pxj.js";
|
|
8
|
-
import { L as k } from "./field-label-headless-PD3fGcax.js";
|
|
9
|
-
import { E as P } from "./error-icon-hZxQ6DEy.js";
|
|
10
|
-
import { s as c } from "./field-rac.module-DcyJyi2B.js";
|
|
11
|
-
import { u as V } from "./use-text-input-class-name-B-OzR1SQ.js";
|
|
12
|
-
const e = ({ children: t }) => {
|
|
13
|
-
const { id: a, value: m, onChange: s, disabled: u, required: n, readOnly: l, onBlur: E, onFocus: I, FieldLayout: b, hasError: f } = p(), { labelId: L } = d(), F = S((A) => {
|
|
14
|
-
s(A);
|
|
15
|
-
}, [
|
|
16
|
-
s
|
|
17
|
-
]), R = i(t, e.Label), D = i(t, e.Input), _ = i(t, e.Description), C = i(t, e.Error);
|
|
18
|
-
return /* @__PURE__ */ r.createElement(b, {
|
|
19
|
-
fieldId: a,
|
|
20
|
-
renderLabel: () => R,
|
|
21
|
-
renderInput: () => /* @__PURE__ */ r.createElement(O, {
|
|
22
|
-
"aria-labelledby": L,
|
|
23
|
-
value: m ?? "",
|
|
24
|
-
onChange: F,
|
|
25
|
-
isDisabled: u,
|
|
26
|
-
isReadOnly: l,
|
|
27
|
-
isRequired: n,
|
|
28
|
-
isInvalid: f,
|
|
29
|
-
onBlur: E,
|
|
30
|
-
onFocus: I
|
|
31
|
-
}, D),
|
|
32
|
-
renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, C, _)
|
|
33
|
-
});
|
|
34
|
-
}, w = ({ className: t }) => {
|
|
35
|
-
const { inputId: a, ariaDescribedBy: m } = d(), { id: s, placeholder: u } = p(), n = T(null);
|
|
36
|
-
return x(() => {
|
|
37
|
-
var l;
|
|
38
|
-
(l = n.current) == null || l.focus({
|
|
39
|
-
preventScroll: !0
|
|
40
|
-
});
|
|
41
|
-
}, s), /* @__PURE__ */ r.createElement(y, {
|
|
42
|
-
ref: n,
|
|
43
|
-
id: a,
|
|
44
|
-
"aria-describedby": m,
|
|
45
|
-
placeholder: u,
|
|
46
|
-
className: t
|
|
47
|
-
});
|
|
48
|
-
};
|
|
49
|
-
e.Label = k;
|
|
50
|
-
e.Input = w;
|
|
51
|
-
e.Description = q;
|
|
52
|
-
e.Error = B;
|
|
53
|
-
const Q = "_input_ug5v8_1", U = {
|
|
54
|
-
input: Q
|
|
55
|
-
}, X = ({ content: t, locale: a }) => /* @__PURE__ */ r.createElement(N, {
|
|
56
|
-
content: t,
|
|
57
|
-
locale: a
|
|
58
|
-
}), re = () => {
|
|
59
|
-
const t = V(U.input);
|
|
60
|
-
return /* @__PURE__ */ r.createElement(e, null, /* @__PURE__ */ r.createElement(e.Label, {
|
|
61
|
-
className: o(g, c.label)
|
|
62
|
-
}, /* @__PURE__ */ r.createElement(e.Label.Required, {
|
|
63
|
-
className: o(h, c.requiredMark)
|
|
64
|
-
})), /* @__PURE__ */ r.createElement(e.Input, {
|
|
65
|
-
className: t
|
|
66
|
-
}), /* @__PURE__ */ r.createElement(e.Error, {
|
|
67
|
-
className: o(v, c.error)
|
|
68
|
-
}, /* @__PURE__ */ r.createElement(P, null), /* @__PURE__ */ r.createElement(e.Error.Text, null)), /* @__PURE__ */ r.createElement(e.Description, {
|
|
69
|
-
className: o(M, c.description)
|
|
70
|
-
}, X));
|
|
71
|
-
};
|
|
72
|
-
export {
|
|
73
|
-
re as T
|
|
74
|
-
};
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import t, { useRef as v } from "react";
|
|
2
|
-
import { TextField as C, Input as R } from "react-aria-components";
|
|
3
|
-
import { bL as c, bI as d, bN as T } from "./form-RdPwfrvb.js";
|
|
4
|
-
import { f as s } from "./find-child-C60k4CxG.js";
|
|
5
|
-
import { D as g, E as h } from "./field-error-headless-GKAj6Pxj.js";
|
|
6
|
-
import { L as x } from "./field-label-headless-PD3fGcax.js";
|
|
7
|
-
const e = ({ children: r }) => {
|
|
8
|
-
const { id: a, value: l, onChange: i, disabled: u, readOnly: n, required: o, hasError: p, onBlur: m, onFocus: b, autoComplete: f, FieldLayout: E } = c(), { labelId: I } = d(), F = s(r, e.Label), y = s(r, e.Input), D = s(r, e.Description), L = s(r, e.Error);
|
|
9
|
-
return /* @__PURE__ */ t.createElement(E, {
|
|
10
|
-
fieldId: a,
|
|
11
|
-
renderLabel: () => F,
|
|
12
|
-
renderInput: () => /* @__PURE__ */ t.createElement(C, {
|
|
13
|
-
autoComplete: f,
|
|
14
|
-
"aria-labelledby": I,
|
|
15
|
-
value: l ?? "",
|
|
16
|
-
onChange: i,
|
|
17
|
-
isDisabled: u,
|
|
18
|
-
isReadOnly: n,
|
|
19
|
-
isRequired: o,
|
|
20
|
-
isInvalid: p,
|
|
21
|
-
onBlur: m,
|
|
22
|
-
onFocus: b
|
|
23
|
-
}, y),
|
|
24
|
-
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, L, D)
|
|
25
|
-
});
|
|
26
|
-
}, B = ({ className: r }) => {
|
|
27
|
-
const { id: a, placeholder: l } = c(), { inputId: i, ariaDescribedBy: u } = d(), n = v(null);
|
|
28
|
-
return T(() => {
|
|
29
|
-
var o;
|
|
30
|
-
(o = n.current) == null || o.focus({
|
|
31
|
-
preventScroll: !0
|
|
32
|
-
});
|
|
33
|
-
}, a), /* @__PURE__ */ t.createElement(R, {
|
|
34
|
-
ref: n,
|
|
35
|
-
id: i,
|
|
36
|
-
"aria-describedby": u,
|
|
37
|
-
className: r,
|
|
38
|
-
placeholder: l
|
|
39
|
-
});
|
|
40
|
-
};
|
|
41
|
-
e.Label = x;
|
|
42
|
-
e.Input = B;
|
|
43
|
-
e.Description = g;
|
|
44
|
-
e.Error = h;
|
|
45
|
-
export {
|
|
46
|
-
e as T
|
|
47
|
-
};
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { RicosViewer as S } from "@wix/ricos/viewer";
|
|
2
|
-
import i from "classnames";
|
|
3
|
-
import r, { useCallback as h, useRef as O } from "react";
|
|
4
|
-
import { TextField as y, Input as A } from "react-aria-components";
|
|
5
|
-
import { bL as d, bI as E, bN as v, X as B, am as M, M as T, I as g } from "./form-RdPwfrvb.js";
|
|
6
|
-
import { f as c } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as k, E as P } from "./field-error-headless-GKAj6Pxj.js";
|
|
8
|
-
import { L as q } from "./field-label-headless-PD3fGcax.js";
|
|
9
|
-
import { u as x } from "./use-invoke-callback-UH73A_J3.js";
|
|
10
|
-
import { E as U } from "./error-icon-hZxQ6DEy.js";
|
|
11
|
-
import { s as u } from "./field-rac.module-DcyJyi2B.js";
|
|
12
|
-
import { u as w } from "./use-text-input-class-name-B-OzR1SQ.js";
|
|
13
|
-
const V = (t) => t ? `https://${String(t).replace(/^https?:\/\//, "")}` : "", e = ({ children: t }) => {
|
|
14
|
-
const { id: o, value: l, onChange: n, disabled: m, readOnly: s, required: a, hasError: I, onBlur: b, onFocus: f, FieldLayout: L } = d(), { labelId: R } = E(), p = x(b), F = c(t, e.Label), D = c(t, e.Input), C = c(t, e.Description), _ = c(t, e.Error), N = h(() => {
|
|
15
|
-
n(V(l)), p();
|
|
16
|
-
}, [
|
|
17
|
-
p,
|
|
18
|
-
n,
|
|
19
|
-
l
|
|
20
|
-
]);
|
|
21
|
-
return /* @__PURE__ */ r.createElement(L, {
|
|
22
|
-
fieldId: o,
|
|
23
|
-
renderLabel: () => F,
|
|
24
|
-
renderInput: () => /* @__PURE__ */ r.createElement(y, {
|
|
25
|
-
"aria-labelledby": R,
|
|
26
|
-
value: l ?? "",
|
|
27
|
-
onChange: n,
|
|
28
|
-
isDisabled: m,
|
|
29
|
-
isReadOnly: s,
|
|
30
|
-
isRequired: a,
|
|
31
|
-
isInvalid: I,
|
|
32
|
-
onBlur: N,
|
|
33
|
-
onFocus: f
|
|
34
|
-
}, D),
|
|
35
|
-
renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, _, C)
|
|
36
|
-
});
|
|
37
|
-
}, W = ({ className: t }) => {
|
|
38
|
-
const { id: o, placeholder: l } = d(), { inputId: n, ariaDescribedBy: m } = E(), s = O(null);
|
|
39
|
-
return v(() => {
|
|
40
|
-
var a;
|
|
41
|
-
(a = s.current) == null || a.focus({
|
|
42
|
-
preventScroll: !0
|
|
43
|
-
});
|
|
44
|
-
}, o), /* @__PURE__ */ r.createElement(A, {
|
|
45
|
-
ref: s,
|
|
46
|
-
id: n,
|
|
47
|
-
type: "url",
|
|
48
|
-
autoComplete: "url",
|
|
49
|
-
"aria-describedby": m,
|
|
50
|
-
className: t,
|
|
51
|
-
placeholder: l
|
|
52
|
-
});
|
|
53
|
-
};
|
|
54
|
-
e.Label = q;
|
|
55
|
-
e.Input = W;
|
|
56
|
-
e.Description = k;
|
|
57
|
-
e.Error = P;
|
|
58
|
-
const $ = ({ content: t, locale: o }) => /* @__PURE__ */ r.createElement(S, {
|
|
59
|
-
content: t,
|
|
60
|
-
locale: o
|
|
61
|
-
}), te = () => {
|
|
62
|
-
const t = w();
|
|
63
|
-
return /* @__PURE__ */ r.createElement(e, null, /* @__PURE__ */ r.createElement(e.Label, {
|
|
64
|
-
className: i(B, u.label)
|
|
65
|
-
}, /* @__PURE__ */ r.createElement(e.Label.Required, {
|
|
66
|
-
className: i(M, u.requiredMark)
|
|
67
|
-
})), /* @__PURE__ */ r.createElement(e.Input, {
|
|
68
|
-
className: t
|
|
69
|
-
}), /* @__PURE__ */ r.createElement(e.Error, {
|
|
70
|
-
className: i(T, u.error)
|
|
71
|
-
}, /* @__PURE__ */ r.createElement(U, null), /* @__PURE__ */ r.createElement(e.Error.Text, null)), /* @__PURE__ */ r.createElement(e.Description, {
|
|
72
|
-
className: i(g, u.description)
|
|
73
|
-
}, $));
|
|
74
|
-
};
|
|
75
|
-
export {
|
|
76
|
-
te as U
|
|
77
|
-
};
|