@wix/form-elements 1.126.0 → 1.128.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-CYB_k6uF.js → appointment-rac-S9z3s23G.js} +5 -5
- package/dist/component/{bookings-address-rac-yJjV3u5m.js → bookings-address-rac-B7wL2TjQ.js} +1 -1
- package/dist/component/{bookings-email-rac-WkFgaEv5.js → bookings-email-rac-T2lFRGpg.js} +1 -1
- package/dist/component/{bookings-first-name-rac-CJ1cBR5Z.js → bookings-first-name-rac-BBrENRBf.js} +1 -1
- package/dist/component/{bookings-header-rac-DiC19ttR.js → bookings-header-rac-CWGMiMQz.js} +1 -1
- package/dist/component/{bookings-last-name-rac-Dx0Nt5Z_.js → bookings-last-name-rac-BQWvH_gm.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-CcW2nUYQ.js → bookings-login-bar-rac-tFs0Vioz.js} +6 -6
- package/dist/component/{bookings-phone-rac-BMLrrTf6.js → bookings-phone-rac-BV_BTfAh.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-DIbRjzxZ.js → bookings-rich-text-rac-8cD6QJBZ.js} +1 -1
- package/dist/component/{checkbox-field-rac-3a6NYcNf.js → checkbox-field-rac-YmG26i31.js} +45 -45
- package/dist/component/{checkbox-group-field-headless-CM-2wLJv.js → checkbox-group-field-headless-CE8sEjZj.js} +3 -3
- package/dist/component/{checkbox-group-field-rac-CNWwJ_No.js → checkbox-group-field-rac-CSuJRyk1.js} +6 -6
- package/dist/component/{checkbox-group-rac-F08XYJSA.js → checkbox-group-rac-VDezm9js.js} +1 -1
- package/dist/component/{checkbox-indicator-module-classes-DOAYUQ_Q.js → checkbox-indicator-module-classes-Bqo0QILF.js} +1 -1
- package/dist/component/{checkbox-rac-z98USBLu.js → checkbox-rac-DoC1ZqAq.js} +1 -1
- package/dist/component/{contacts-address-rac-DuodyS7l.js → contacts-address-rac-10AZNzhI.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-BY7L9nWm.js → contacts-birthdate-rac-C7YDiyg2.js} +1 -1
- package/dist/component/{contacts-company-rac-iPNPKhx2.js → contacts-company-rac-xQEtJ_-m.js} +1 -1
- package/dist/component/{contacts-email-rac-C7kBUzQH.js → contacts-email-rac-Bryw_aCU.js} +1 -1
- package/dist/component/{contacts-first-name-rac-DvDNRs2q.js → contacts-first-name-rac-BXmuuhfG.js} +1 -1
- package/dist/component/{contacts-last-name-rac-Cls5_7W0.js → contacts-last-name-rac-CVWVZO8I.js} +1 -1
- package/dist/component/{contacts-phone-rac-DMy2lBJl.js → contacts-phone-rac-C-KSwisV.js} +1 -1
- package/dist/component/{contacts-position-rac-Bn21lF_i.js → contacts-position-rac-od-5Gie5.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-QSC_n_T_.js → contacts-subscribe-rac-CCh9JcQx.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-BvqoePCN.js → contacts-tax-id-rac-DOM7TPQz.js} +1 -1
- package/dist/component/{date-availability-SErYnVtm.js → date-availability-G5IwqtRi.js} +1 -1
- package/dist/component/{date-input-field-rac-H81WktJT.js → date-input-field-rac-BpBqS7LG.js} +42 -42
- package/dist/component/{date-input-rac-C6ZeK0zQ.js → date-input-rac-CQyqRqZK.js} +1 -1
- package/dist/component/{date-picker-field-rac-BwSKny80.js → date-picker-field-rac-BsR_0eAW.js} +15 -15
- package/dist/component/{date-picker-rac-BB5zswk4.js → date-picker-rac-Bl2k363u.js} +1 -1
- package/dist/component/{date-time-input-field-rac-C4srGo4X.js → date-time-input-field-rac-C5TC2nsm.js} +64 -64
- package/dist/component/{date-time-input-rac-6PXunNeR.js → date-time-input-rac-CInfYWxN.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-B1GOhxW8.js → dext-checkbox-group-rac-E36LjEfn.js} +2 -2
- package/dist/component/{dext-checkbox-rac-DVels76t.js → dext-checkbox-rac-DkMAv7aY.js} +1 -1
- package/dist/component/{dext-date-picker-rac-kKH7Nu_c.js → dext-date-picker-rac-BNkJPlYo.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-C2xk0pv1.js → dext-date-time-input-rac-BH3Q0pwI.js} +1 -1
- package/dist/component/{dext-dropdown-rac-bd3XpA-l.js → dext-dropdown-rac-DkF_DD08.js} +1 -1
- package/dist/component/{dext-email-rac-BtEeJsrT.js → dext-email-rac-0x_DN0_O.js} +1 -1
- package/dist/component/{dext-number-input-rac-BLPAbm2q.js → dext-number-input-rac-UiIENkK3.js} +1 -1
- package/dist/component/{dext-phone-rac-ByEP8XRg.js → dext-phone-rac-BZFK4Uq7.js} +1 -1
- package/dist/component/{dext-radio-group-rac-AY271KFi.js → dext-radio-group-rac-CBAdO7kt.js} +4 -4
- package/dist/component/{dext-rating-input-rac-Dp9N8OWT.js → dext-rating-input-rac-fqR1sriq.js} +1 -1
- package/dist/component/{dext-tags-rac-PgZGGDwj.js → dext-tags-rac-mDuiUs9L.js} +4 -4
- package/dist/component/{dext-text-area-rac-BN99TM9O.js → dext-text-area-rac-C-8jKWpK.js} +1 -1
- package/dist/component/{dext-text-input-rac-C5TaQVi8.js → dext-text-input-rac-CCBAM9YO.js} +1 -1
- package/dist/component/{dext-url-input-rac-BvMh_jc6.js → dext-url-input-rac-C4_8Yk0p.js} +1 -1
- package/dist/component/{donation-rac-BSCyAZPx.js → donation-rac-BwDHypVJ.js} +36 -36
- package/dist/component/{dropdown-field-headless-DzDE-6ha.js → dropdown-field-headless-CspX2zV_.js} +16 -16
- package/dist/component/{dropdown-field-rac-mbYavQtS.js → dropdown-field-rac-DduQJ9rO.js} +5 -5
- package/dist/component/{dropdown-rac-BUJag5ow.js → dropdown-rac-BhhECLoH.js} +1 -1
- package/dist/component/{ecom-address-rac-B7_RYjoj.js → ecom-address-rac-BJ1nnEVL.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-BCDyH7x-.js → ecom-subscription-checkbox-rac-4m1XMTDY.js} +2 -2
- package/dist/component/{email-input-field-rac-CUi08-gD.js → email-input-field-rac-bPEcgidt.js} +19 -19
- package/dist/component/{events-repeater-rac-CkHq7ADr.js → events-repeater-rac-CujTGEHx.js} +11 -11
- package/dist/component/{events-rsvp-rac-DBwLvDeR.js → events-rsvp-rac-BPqr_aY9.js} +4 -4
- package/dist/component/{field-error-headless-Ct41F8cQ.js → field-error-headless-Bu_4Huhb.js} +6 -6
- package/dist/component/{field-label-headless-DUqBV42_.js → field-label-headless-DkDmQPFG.js} +1 -1
- package/dist/component/field-rac.module-BIBNQEOK.js +25 -0
- package/dist/component/{file-upload-rac-CkbjhtAl.js → file-upload-rac-DmOQrGe8.js} +68 -68
- package/dist/component/{fixed-payment-rac-Dgnhsx3e.js → fixed-payment-rac-CDsddKrV.js} +9 -9
- package/dist/component/{form-Dx1bK3Fi.js → form-BpJ4Lqbe.js} +668 -617
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +3 -3
- package/dist/component/{header-field-rac-BuUxOZO1.js → header-field-rac-Cr1FVQdq.js} +6 -6
- package/dist/component/{header-rac-CIvWVvYs.js → header-rac-CvAZsqDL.js} +1 -1
- package/dist/component/{image-choice-rac-BBo0PiW4.js → image-choice-rac-D_EKrD73.js} +12 -12
- package/dist/component/{index-BmMiwDw9.js → index-DxsHfkik.js} +44 -44
- package/dist/component/{index-BDSs3l4d.js → index-Tnke1N8m.js} +15 -15
- package/dist/component/{isObjectLike-xZCFQW_t.js → isObjectLike-CMWsWjX8.js} +7 -7
- package/dist/component/{multiline-address-field-rac-C6mRorOw.js → multiline-address-field-rac-BMeMP7J6.js} +8 -8
- package/dist/component/{multiline-address-rac-BOjsVo4R.js → multiline-address-rac-CFprfFXm.js} +1 -1
- package/dist/component/{number-input-field-rac-C89M-zOh.js → number-input-field-rac-CaHySxYH.js} +9 -9
- package/dist/component/{number-input-rac-DttY0Ll3.js → number-input-rac-BezfoU8h.js} +1 -1
- package/dist/component/{password-rac-C2KTrH40.js → password-rac-_wwZFd67.js} +32 -32
- package/dist/component/{payment-input-rac-BhyBxeu1.js → payment-input-rac-CWrSvBDp.js} +15 -15
- package/dist/component/{phone-input-field-rac-BT-Fe6WZ.js → phone-input-field-rac-R3LYdPIs.js} +39 -39
- package/dist/component/{phone-rac-B26qwlDN.js → phone-rac-D6uILVRw.js} +1 -1
- package/dist/component/{product-list-rac-CF4gkfTK.js → product-list-rac-D3WTfC9k.js} +28 -28
- package/dist/component/{quiz-radio-group-rac-Bf2HeDDw.js → quiz-radio-group-rac-B6T7eedk.js} +1 -1
- package/dist/component/{radio-button-module-classes-DtmmP89u.js → radio-button-module-classes-D8Jm-Q6u.js} +3 -3
- package/dist/component/{radio-group-field-rac-BY2OIFFr.js → radio-group-field-rac-R5onZzJd.js} +5 -5
- package/dist/component/{radio-group-rac-BuxVel2l.js → radio-group-rac-DUPHR4tK.js} +1 -1
- package/dist/component/{rating-input-field-rac-CbLzvwyk.js → rating-input-field-rac-C9GpwuRO.js} +10 -10
- package/dist/component/{rating-input-rac-B8QxNYHU.js → rating-input-rac-Iv_2PVqP.js} +1 -1
- package/dist/component/{rich-content-rac.module-wu4JPlkg.js → rich-content-rac.module-Det3BKrI.js} +1 -1
- package/dist/component/{rich-text-field-rac-CTrEe0SQ.js → rich-text-field-rac-DnBtp2d_.js} +9 -9
- package/dist/component/{rich-text-rac-kmzPTMKb.js → rich-text-rac-CXzxap1G.js} +1 -1
- package/dist/component/{service-dropdown-rac-C8nTy49F.js → service-dropdown-rac-CVyd2HYC.js} +14 -14
- package/dist/component/{services-multi-choice-rac-rDkpN2fs.js → services-multi-choice-rac-BY-W0xIt.js} +7 -7
- package/dist/component/signature-rac-BojdPJhg.js +918 -0
- package/dist/component/{submit-button-rac-BFywt2Fn.js → submit-button-rac-Q7KKQbiL.js} +15 -15
- package/dist/component/{tags-field-rac-rpzvIn_0.js → tags-field-rac-CbmR6gi4.js} +17 -17
- package/dist/component/{tags-rac-DVLGSSvh.js → tags-rac-hJo0tMVR.js} +1 -1
- package/dist/component/{text-area-field-rac-BfVrtvl8.js → text-area-field-rac-DHQqkqtu.js} +15 -15
- package/dist/component/{text-area-rac-VP-yXdJ6.js → text-area-rac-BTXxfWyK.js} +1 -1
- package/dist/component/{text-input-field-rac-BlaXiXoF.js → text-input-field-rac-BVTBYjMM.js} +4 -4
- package/dist/component/{text-input-headless-ChCTtqUX.js → text-input-headless-Dk_0y9U-.js} +8 -8
- package/dist/component/{text-input-rac-CG-Oo3nZ.js → text-input-rac-DIwGn0WI.js} +1 -1
- package/dist/component/{time-input-rac-CzUGIr2X.js → time-input-rac-ClyPOKOH.js} +10 -10
- package/dist/component/{url-input-field-rac-BHF6gZlT.js → url-input-field-rac-BhPzHWTI.js} +10 -10
- package/dist/component/{url-input-rac-DouQt3DF.js → url-input-rac-COD7T5wo.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-AklIMCCI.js → use-dropdown-option-class-name-CTDQ4YIC.js} +3 -3
- package/dist/component/{use-dropdown-trigger-class-name-COJhxT4T.js → use-dropdown-trigger-class-name-DapDPNX0.js} +10 -10
- package/dist/component/use-element-state-class-name-BU86oHkX.js +20 -0
- package/dist/component/{use-hoverable-input-class-name-CtHJHqiV.js → use-hoverable-input-class-name-DWkmQfPd.js} +3 -3
- package/dist/component/{use-service-options-base-2u1I6l-t.js → use-service-options-base-jkecu8jY.js} +4 -4
- package/dist/component/use-text-input-class-name-CNTXVb7N.js +6 -0
- package/dist/form.d.ts +10 -0
- package/package.json +2 -2
- package/dist/component/field-rac.module-DQxyEwK7.js +0 -26
- package/dist/component/signature-rac-6r_gWBD2.js +0 -794
- package/dist/component/use-element-state-class-name-CCe7Cvsu.js +0 -22
- package/dist/component/use-text-input-class-name-Bnfv7ZsJ.js +0 -6
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import t, { useRef as w, useCallback as h } from "react";
|
|
2
2
|
import F from "@wix/editor-react-components/AnimatedIcon";
|
|
3
3
|
import p from "classnames";
|
|
4
|
-
import {
|
|
4
|
+
import { bh as b, bb as j, ag as A, b as R, af as k, ab as y, aa as M, ae as U } from "./form-BpJ4Lqbe.js";
|
|
5
5
|
import { ProgressBar as D, Button as C } from "react-aria-components";
|
|
6
6
|
import { f as m } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { u as N } from "./use-element-state-class-name-
|
|
7
|
+
import { u as N } from "./use-element-state-class-name-BU86oHkX.js";
|
|
8
8
|
function W(e) {
|
|
9
9
|
const s = "calc(50% - 2px)";
|
|
10
10
|
return /* @__PURE__ */ t.createElement(D, {
|
|
@@ -38,7 +38,7 @@ function W(e) {
|
|
|
38
38
|
})))));
|
|
39
39
|
}
|
|
40
40
|
const u = ({ children: e }) => {
|
|
41
|
-
const { id: o, FieldLayout: s } =
|
|
41
|
+
const { id: o, FieldLayout: s } = b(), n = m(e, u.SubmitButton);
|
|
42
42
|
return /* @__PURE__ */ t.createElement(s, {
|
|
43
43
|
fieldId: o,
|
|
44
44
|
renderLabel: () => null,
|
|
@@ -51,22 +51,22 @@ const u = ({ children: e }) => {
|
|
|
51
51
|
className: e
|
|
52
52
|
}, s, n, i);
|
|
53
53
|
}, P = ({ className: e }) => {
|
|
54
|
-
const { showPreviousButton: o, onPreviousClick: s, previousText: n } =
|
|
54
|
+
const { showPreviousButton: o, onPreviousClick: s, previousText: n } = b();
|
|
55
55
|
return o ? /* @__PURE__ */ t.createElement(C, {
|
|
56
56
|
className: e,
|
|
57
57
|
onPress: s
|
|
58
58
|
}, n) : null;
|
|
59
59
|
}, L = ({ className: e }) => {
|
|
60
|
-
const { showNextButton: o, onNextClick: s, nextText: n } =
|
|
60
|
+
const { showNextButton: o, onNextClick: s, nextText: n } = b();
|
|
61
61
|
return o ? /* @__PURE__ */ t.createElement(C, {
|
|
62
62
|
className: e,
|
|
63
63
|
onPress: s
|
|
64
64
|
}, n) : null;
|
|
65
65
|
}, l = ({ className: e, onHoverStart: o, onHoverEnd: s, children: n }) => {
|
|
66
|
-
const { showSubmitButton: i, onSubmitClick: f, submitText: E, isDisabled: x, isInProgress:
|
|
66
|
+
const { showSubmitButton: i, onSubmitClick: f, submitText: E, isDisabled: x, isInProgress: B, isSubmitting: S } = b();
|
|
67
67
|
if (!i)
|
|
68
68
|
return null;
|
|
69
|
-
const
|
|
69
|
+
const g = m(n, l.Label), d = m(n, l.Icon), v = m(n, l.Loader), c = S || B;
|
|
70
70
|
return /* @__PURE__ */ t.createElement(C, {
|
|
71
71
|
className: e,
|
|
72
72
|
"aria-label": E,
|
|
@@ -75,10 +75,10 @@ const u = ({ children: e }) => {
|
|
|
75
75
|
onHoverEnd: s,
|
|
76
76
|
isDisabled: x && !c,
|
|
77
77
|
"aria-disabled": c || void 0,
|
|
78
|
-
"data-in-progress":
|
|
79
|
-
},
|
|
78
|
+
"data-in-progress": B
|
|
79
|
+
}, B && v ? v : /* @__PURE__ */ t.createElement(t.Fragment, null, g ?? /* @__PURE__ */ t.createElement(I, null), d));
|
|
80
80
|
}, I = ({ className: e }) => {
|
|
81
|
-
const { submitText: o } =
|
|
81
|
+
const { submitText: o } = b();
|
|
82
82
|
return /* @__PURE__ */ t.createElement("span", {
|
|
83
83
|
className: e
|
|
84
84
|
}, o);
|
|
@@ -106,13 +106,13 @@ const $ = "_navigationContainer_zzjp6_1", q = "_rowSpacing_zzjp6_6", G = "_navig
|
|
|
106
106
|
progress: nt
|
|
107
107
|
}, ot = () => {
|
|
108
108
|
var z, T;
|
|
109
|
-
const { hasSteps: e, showPreviousButton: o, isDisabled: s, isInProgress: n, isSubmitting: i } =
|
|
109
|
+
const { hasSteps: e, showPreviousButton: o, isDisabled: s, isInProgress: n, isSubmitting: i } = b(), E = !s && !(i || n), { wix: x, className: B, ...S } = ((T = (z = j().submitButton) == null ? void 0 : z.elementProps) == null ? void 0 : T.icon) ?? {}, g = N({
|
|
110
110
|
globalClasses: y,
|
|
111
111
|
moduleClasses: {
|
|
112
112
|
base: p(a.navigationButton, a.previousButton),
|
|
113
113
|
hover: a.navigationButtonHover
|
|
114
114
|
}
|
|
115
|
-
}),
|
|
115
|
+
}), d = N({
|
|
116
116
|
globalClasses: M,
|
|
117
117
|
moduleClasses: {
|
|
118
118
|
base: p(a.navigationButton, a.nextButton),
|
|
@@ -140,12 +140,12 @@ const $ = "_navigationContainer_zzjp6_1", q = "_rowSpacing_zzjp6_6", G = "_navig
|
|
|
140
140
|
[a.rowSpacing]: o
|
|
141
141
|
})
|
|
142
142
|
}, /* @__PURE__ */ t.createElement(u.SubmitButton.PreviousButton, {
|
|
143
|
-
className: ({ isHovered: r }) =>
|
|
143
|
+
className: ({ isHovered: r }) => g({
|
|
144
144
|
isSelected: !1,
|
|
145
145
|
isHovered: r
|
|
146
146
|
})
|
|
147
147
|
}), /* @__PURE__ */ t.createElement(u.SubmitButton.NextButton, {
|
|
148
|
-
className: ({ isHovered: r }) =>
|
|
148
|
+
className: ({ isHovered: r }) => d({
|
|
149
149
|
isSelected: !1,
|
|
150
150
|
isHovered: r
|
|
151
151
|
})
|
|
@@ -162,7 +162,7 @@ const $ = "_navigationContainer_zzjp6_1", q = "_rowSpacing_zzjp6_6", G = "_navig
|
|
|
162
162
|
}), /* @__PURE__ */ t.createElement(u.SubmitButton.SubmitButton.Icon, null, S.svg ? /* @__PURE__ */ t.createElement(F, {
|
|
163
163
|
...S,
|
|
164
164
|
ref: c,
|
|
165
|
-
className: p(R, k,
|
|
165
|
+
className: p(R, k, B)
|
|
166
166
|
}) : null), /* @__PURE__ */ t.createElement(u.SubmitButton.SubmitButton.Loader, {
|
|
167
167
|
className: a.progress
|
|
168
168
|
}))));
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { RicosViewer as
|
|
1
|
+
import { RicosViewer as w } from "@wix/ricos/viewer";
|
|
2
2
|
import y from "classnames";
|
|
3
|
-
import t, { useMemo as I, useState as
|
|
4
|
-
import { CheckboxGroup as
|
|
5
|
-
import {
|
|
3
|
+
import t, { useMemo as I, useState as z, useRef as N, useLayoutEffect as B, useCallback as k } from "react";
|
|
4
|
+
import { CheckboxGroup as J, TextField as K, Input as X, CheckboxField as Y, CheckboxButton as Z } from "react-aria-components";
|
|
5
|
+
import { bh as R, be as M, br as S, bj as U, I as ee, U as te, a3 as ne, v as oe, p as ae, a4 as re } from "./form-BpJ4Lqbe.js";
|
|
6
6
|
import { f as O, a as x } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { E as W, D as H } from "./field-error-headless-
|
|
8
|
-
import { L as $ } from "./field-label-headless-
|
|
7
|
+
import { E as W, D as H } from "./field-error-headless-Bu_4Huhb.js";
|
|
8
|
+
import { L as $ } from "./field-label-headless-DkDmQPFG.js";
|
|
9
9
|
import { F as se } from "./fieldset-headless-CD3fds9J.js";
|
|
10
10
|
import { E as le } from "./error-icon-hZxQ6DEy.js";
|
|
11
|
-
import { s as D } from "./field-rac.module-
|
|
12
|
-
import { u as ie } from "./use-element-state-class-name-
|
|
13
|
-
import { u as ce } from "./use-text-input-class-name-
|
|
11
|
+
import { s as D } from "./field-rac.module-BIBNQEOK.js";
|
|
12
|
+
import { u as ie } from "./use-element-state-class-name-BU86oHkX.js";
|
|
13
|
+
import { u as ce } from "./use-text-input-class-name-CNTXVb7N.js";
|
|
14
14
|
var ue = /* @__PURE__ */ (function(e) {
|
|
15
15
|
return e[e.FREE_FLOW = 0] = "FREE_FLOW", e[e.ONE = 1] = "ONE", e[e.TWO = 2] = "TWO", e[e.THREE = 3] = "THREE", e;
|
|
16
16
|
})({});
|
|
@@ -26,8 +26,8 @@ const v = "Other", de = (e, n) => {
|
|
|
26
26
|
const { value: n, onChange: a, addOtherLabel: r, addOtherPlaceholder: l, otherInputCharacterLimit: i, disabled: u, readOnly: m, hasError: d } = R(), { t: p } = S(), o = r || p("add-other.default-other-option-label") || v, b = I(() => de(n || [], o), [
|
|
27
27
|
n,
|
|
28
28
|
o
|
|
29
|
-
]), [c, L] =
|
|
30
|
-
|
|
29
|
+
]), [c, L] = z(b), f = N(a);
|
|
30
|
+
B(() => {
|
|
31
31
|
f.current = a;
|
|
32
32
|
});
|
|
33
33
|
const g = k((h) => {
|
|
@@ -41,14 +41,14 @@ const v = "Other", de = (e, n) => {
|
|
|
41
41
|
n,
|
|
42
42
|
o
|
|
43
43
|
]);
|
|
44
|
-
return /* @__PURE__ */ t.createElement(
|
|
44
|
+
return /* @__PURE__ */ t.createElement(K, {
|
|
45
45
|
value: c,
|
|
46
46
|
onChange: g,
|
|
47
47
|
isDisabled: u,
|
|
48
48
|
isReadOnly: m,
|
|
49
49
|
isInvalid: d,
|
|
50
50
|
"aria-label": o
|
|
51
|
-
}, /* @__PURE__ */ t.createElement(
|
|
51
|
+
}, /* @__PURE__ */ t.createElement(X, {
|
|
52
52
|
"data-hook": "tags-other-input",
|
|
53
53
|
"data-filled": c ? !0 : void 0,
|
|
54
54
|
placeholder: l,
|
|
@@ -82,14 +82,14 @@ const v = "Other", de = (e, n) => {
|
|
|
82
82
|
o,
|
|
83
83
|
h
|
|
84
84
|
]);
|
|
85
|
-
return /* @__PURE__ */ t.createElement(
|
|
85
|
+
return /* @__PURE__ */ t.createElement(Y, {
|
|
86
86
|
inputRef: f,
|
|
87
87
|
value: C,
|
|
88
88
|
onChange: i ? _ : void 0,
|
|
89
89
|
isDisabled: b,
|
|
90
90
|
isReadOnly: c,
|
|
91
91
|
isInvalid: L
|
|
92
|
-
}, /* @__PURE__ */ t.createElement(
|
|
92
|
+
}, /* @__PURE__ */ t.createElement(Z, {
|
|
93
93
|
className: n,
|
|
94
94
|
"data-hook": `tags-${i ? v : r}`
|
|
95
95
|
}, x(g, {
|
|
@@ -152,7 +152,7 @@ const v = "Other", de = (e, n) => {
|
|
|
152
152
|
required: i,
|
|
153
153
|
onBlur: p,
|
|
154
154
|
onFocus: o
|
|
155
|
-
}, /* @__PURE__ */ t.createElement(
|
|
155
|
+
}, /* @__PURE__ */ t.createElement(J, {
|
|
156
156
|
"aria-labelledby": c,
|
|
157
157
|
value: f,
|
|
158
158
|
onChange: r,
|
|
@@ -178,7 +178,7 @@ const pe = "_control_d4biy_1", he = "_options_d4biy_7", Ee = "_option_d4biy_7",
|
|
|
178
178
|
option: Ee,
|
|
179
179
|
optionHover: be,
|
|
180
180
|
optionSelected: Oe
|
|
181
|
-
}, fe = ({ content: e, locale: n }) => /* @__PURE__ */ t.createElement(
|
|
181
|
+
}, fe = ({ content: e, locale: n }) => /* @__PURE__ */ t.createElement(w, {
|
|
182
182
|
content: e,
|
|
183
183
|
locale: n
|
|
184
184
|
}), Ie = {
|
|
@@ -2,20 +2,20 @@ import { RicosViewer as N } from "@wix/ricos/viewer";
|
|
|
2
2
|
import o from "classnames";
|
|
3
3
|
import r, { useCallback as T, useRef as O } from "react";
|
|
4
4
|
import { TextField as S, TextArea as y } from "react-aria-components";
|
|
5
|
-
import {
|
|
5
|
+
import { bh as p, be as d, bj as x, I as h, U as g, v, p as M } from "./form-BpJ4Lqbe.js";
|
|
6
6
|
import { f as i } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as q, E as B } from "./field-error-headless-
|
|
8
|
-
import { L as k } from "./field-label-headless-
|
|
7
|
+
import { D as q, E as B } from "./field-error-headless-Bu_4Huhb.js";
|
|
8
|
+
import { L as k } from "./field-label-headless-DkDmQPFG.js";
|
|
9
9
|
import { E as P } from "./error-icon-hZxQ6DEy.js";
|
|
10
|
-
import { s as c } from "./field-rac.module-
|
|
11
|
-
import { u as U } from "./use-text-input-class-name-
|
|
10
|
+
import { s as c } from "./field-rac.module-BIBNQEOK.js";
|
|
11
|
+
import { u as U } from "./use-text-input-class-name-CNTXVb7N.js";
|
|
12
12
|
const e = ({ children: t }) => {
|
|
13
|
-
const { id: a, value: m, onChange: s, disabled: u, required: n, readOnly: l, onBlur: E, onFocus:
|
|
13
|
+
const { id: a, value: m, onChange: s, disabled: u, required: n, readOnly: l, onBlur: E, onFocus: I, FieldLayout: b, hasError: f } = p(), { labelId: F } = d(), L = T((A) => {
|
|
14
14
|
s(A);
|
|
15
15
|
}, [
|
|
16
16
|
s
|
|
17
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(
|
|
18
|
+
return /* @__PURE__ */ r.createElement(b, {
|
|
19
19
|
fieldId: a,
|
|
20
20
|
renderLabel: () => R,
|
|
21
21
|
renderInput: () => /* @__PURE__ */ r.createElement(S, {
|
|
@@ -27,7 +27,7 @@ const e = ({ children: t }) => {
|
|
|
27
27
|
isRequired: n,
|
|
28
28
|
isInvalid: f,
|
|
29
29
|
onBlur: E,
|
|
30
|
-
onFocus:
|
|
30
|
+
onFocus: I
|
|
31
31
|
}, D),
|
|
32
32
|
renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, C, _)
|
|
33
33
|
});
|
|
@@ -48,24 +48,24 @@ e.Label = k;
|
|
|
48
48
|
e.Input = V;
|
|
49
49
|
e.Description = q;
|
|
50
50
|
e.Error = B;
|
|
51
|
-
const
|
|
52
|
-
input:
|
|
53
|
-
},
|
|
51
|
+
const j = "_input_ug5v8_1", w = {
|
|
52
|
+
input: j
|
|
53
|
+
}, Q = ({ content: t, locale: a }) => /* @__PURE__ */ r.createElement(N, {
|
|
54
54
|
content: t,
|
|
55
55
|
locale: a
|
|
56
56
|
}), re = () => {
|
|
57
|
-
const t = U(
|
|
57
|
+
const t = U(w.input);
|
|
58
58
|
return /* @__PURE__ */ r.createElement(e, null, /* @__PURE__ */ r.createElement(e.Label, {
|
|
59
|
-
className: o(
|
|
59
|
+
className: o(h, c.label)
|
|
60
60
|
}, /* @__PURE__ */ r.createElement(e.Label.Required, {
|
|
61
|
-
className: o(
|
|
61
|
+
className: o(g, c.requiredMark)
|
|
62
62
|
})), /* @__PURE__ */ r.createElement(e.Input, {
|
|
63
63
|
className: t
|
|
64
64
|
}), /* @__PURE__ */ r.createElement(e.Error, {
|
|
65
65
|
className: o(v, c.error)
|
|
66
66
|
}, /* @__PURE__ */ r.createElement(P, null), /* @__PURE__ */ r.createElement(e.Error.Text, null)), /* @__PURE__ */ r.createElement(e.Description, {
|
|
67
67
|
className: o(M, c.description)
|
|
68
|
-
},
|
|
68
|
+
}, Q));
|
|
69
69
|
};
|
|
70
70
|
export {
|
|
71
71
|
re as T
|
package/dist/component/{text-input-field-rac-BlaXiXoF.js → text-input-field-rac-BVTBYjMM.js}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { RicosViewer as l } from "@wix/ricos/viewer";
|
|
2
2
|
import t from "classnames";
|
|
3
3
|
import e from "react";
|
|
4
|
-
import { T as r } from "./text-input-headless-
|
|
4
|
+
import { T as r } from "./text-input-headless-Dk_0y9U-.js";
|
|
5
5
|
import { E as o } from "./error-icon-hZxQ6DEy.js";
|
|
6
|
-
import { s as a } from "./field-rac.module-
|
|
7
|
-
import { I as n, U as c, v as E, p as i } from "./form-
|
|
8
|
-
import { u as p } from "./use-text-input-class-name-
|
|
6
|
+
import { s as a } from "./field-rac.module-BIBNQEOK.js";
|
|
7
|
+
import { I as n, U as c, v as E, p as i } from "./form-BpJ4Lqbe.js";
|
|
8
|
+
import { u as p } from "./use-text-input-class-name-CNTXVb7N.js";
|
|
9
9
|
const I = ({ content: s, locale: m }) => /* @__PURE__ */ e.createElement(l, {
|
|
10
10
|
content: s,
|
|
11
11
|
locale: m
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import t, { useRef as L } from "react";
|
|
2
|
-
import { TextField as R, Input as
|
|
3
|
-
import {
|
|
2
|
+
import { TextField as R, Input as h } from "react-aria-components";
|
|
3
|
+
import { bh as d, be as c, bj as v } from "./form-BpJ4Lqbe.js";
|
|
4
4
|
import { f as s } from "./find-child-C60k4CxG.js";
|
|
5
|
-
import { D as
|
|
6
|
-
import { L as x } from "./field-label-headless-
|
|
5
|
+
import { D as T, E as g } from "./field-error-headless-Bu_4Huhb.js";
|
|
6
|
+
import { L as x } from "./field-label-headless-DkDmQPFG.js";
|
|
7
7
|
const e = ({ children: r }) => {
|
|
8
8
|
const { id: a, value: i, onChange: l, disabled: u, readOnly: n, required: o, hasError: p, onBlur: m, onFocus: b, FieldLayout: f } = d(), { labelId: E } = c(), I = s(r, e.Label), F = s(r, e.Input), y = s(r, e.Description), D = s(r, e.Error);
|
|
9
9
|
return /* @__PURE__ */ t.createElement(f, {
|
|
@@ -24,10 +24,10 @@ const e = ({ children: r }) => {
|
|
|
24
24
|
});
|
|
25
25
|
}, B = ({ className: r }) => {
|
|
26
26
|
const { id: a, placeholder: i } = d(), { inputId: l, ariaDescribedBy: u } = c(), n = L(null);
|
|
27
|
-
return
|
|
27
|
+
return v(() => {
|
|
28
28
|
var o;
|
|
29
29
|
(o = n.current) == null || o.focus();
|
|
30
|
-
}, a), /* @__PURE__ */ t.createElement(
|
|
30
|
+
}, a), /* @__PURE__ */ t.createElement(h, {
|
|
31
31
|
ref: n,
|
|
32
32
|
id: l,
|
|
33
33
|
"aria-describedby": u,
|
|
@@ -37,8 +37,8 @@ const e = ({ children: r }) => {
|
|
|
37
37
|
};
|
|
38
38
|
e.Label = x;
|
|
39
39
|
e.Input = B;
|
|
40
|
-
e.Description =
|
|
41
|
-
e.Error =
|
|
40
|
+
e.Description = T;
|
|
41
|
+
e.Error = g;
|
|
42
42
|
export {
|
|
43
43
|
e as T
|
|
44
44
|
};
|
|
@@ -3,16 +3,16 @@ import { RicosViewer as q } from "@wix/ricos/viewer";
|
|
|
3
3
|
import c from "classnames";
|
|
4
4
|
import { parseTime as B } from "@internationalized/date";
|
|
5
5
|
import { TimeField as U, DateInput as k, DateSegment as _, TimeFieldStateContext as j } from "react-aria-components";
|
|
6
|
-
import {
|
|
6
|
+
import { bh as p, be as w, br as S, bj as Q, I as z, U as G, v as J, p as K } from "./form-BpJ4Lqbe.js";
|
|
7
7
|
import { f as m, a as F } from "./find-child-C60k4CxG.js";
|
|
8
|
-
import { D as W, E as X } from "./field-error-headless-
|
|
9
|
-
import { L as Y } from "./field-label-headless-
|
|
8
|
+
import { D as W, E as X } from "./field-error-headless-Bu_4Huhb.js";
|
|
9
|
+
import { L as Y } from "./field-label-headless-DkDmQPFG.js";
|
|
10
10
|
import { E as Z } from "./error-icon-hZxQ6DEy.js";
|
|
11
11
|
import { H as T } from "./custom-focus-class-_483Pkwp.js";
|
|
12
|
-
import { s as f } from "./field-rac.module-
|
|
13
|
-
import { u as $ } from "./use-text-input-class-name-
|
|
12
|
+
import { s as f } from "./field-rac.module-BIBNQEOK.js";
|
|
13
|
+
import { u as $ } from "./use-text-input-class-name-CNTXVb7N.js";
|
|
14
14
|
const r = ({ children: t }) => {
|
|
15
|
-
const { id: n, value: l, onChange: o, disabled: i, readOnly: s, required: a, onBlur: d, onFocus: E, use24HourFormat:
|
|
15
|
+
const { id: n, value: l, onChange: o, disabled: i, readOnly: s, required: a, onBlur: d, onFocus: E, use24HourFormat: b, FieldLayout: C, hasError: I } = p(), { inputId: g, ariaDescribedBy: D, labelId: L } = w(), R = V((M) => {
|
|
16
16
|
const H = ae(M);
|
|
17
17
|
o(H);
|
|
18
18
|
}, [
|
|
@@ -33,7 +33,7 @@ const r = ({ children: t }) => {
|
|
|
33
33
|
isRequired: a,
|
|
34
34
|
onBlur: d,
|
|
35
35
|
onFocus: E,
|
|
36
|
-
hourCycle:
|
|
36
|
+
hourCycle: b ? 24 : 12
|
|
37
37
|
}, y),
|
|
38
38
|
renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, A, P)
|
|
39
39
|
});
|
|
@@ -65,7 +65,7 @@ const r = ({ children: t }) => {
|
|
|
65
65
|
}
|
|
66
66
|
});
|
|
67
67
|
}, ee = ({ className: t, ...n }) => {
|
|
68
|
-
const { id: l, hidePlaceholder: o } = p(), { segment: i } = n, { t: s } =
|
|
68
|
+
const { id: l, hidePlaceholder: o } = p(), { segment: i } = n, { t: s } = S(), a = v(null);
|
|
69
69
|
Q(() => {
|
|
70
70
|
var E;
|
|
71
71
|
(E = a.current) == null || E.focus();
|
|
@@ -80,7 +80,7 @@ const r = ({ children: t }) => {
|
|
|
80
80
|
}
|
|
81
81
|
});
|
|
82
82
|
}, te = ({ className: t, ...n }) => {
|
|
83
|
-
const { hidePlaceholder: l } = p(), { segment: o } = n, { t: i } =
|
|
83
|
+
const { hidePlaceholder: l } = p(), { segment: o } = n, { t: i } = S(), s = l ? void 0 : i("field.date.placeholder.minute");
|
|
84
84
|
return /* @__PURE__ */ e.createElement(_, {
|
|
85
85
|
segment: o,
|
|
86
86
|
className: t,
|
|
@@ -89,7 +89,7 @@ const r = ({ children: t }) => {
|
|
|
89
89
|
}
|
|
90
90
|
});
|
|
91
91
|
}, re = ({ className: t, ...n }) => {
|
|
92
|
-
const { hidePlaceholder: l } = p(), { segment: o } = n, { t: i } =
|
|
92
|
+
const { hidePlaceholder: l } = p(), { segment: o } = n, { t: i } = S(), s = x(j), a = l ? void 0 : i("field.date.placeholder.period"), d = () => s == null ? void 0 : s.increment("dayPeriod");
|
|
93
93
|
return /* @__PURE__ */ e.createElement(_, {
|
|
94
94
|
segment: o,
|
|
95
95
|
className: t,
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { RicosViewer as
|
|
1
|
+
import { RicosViewer as N } from "@wix/ricos/viewer";
|
|
2
2
|
import i from "classnames";
|
|
3
|
-
import r, { useCallback as
|
|
3
|
+
import r, { useCallback as S, useRef as O } from "react";
|
|
4
4
|
import { TextField as y, Input as A } from "react-aria-components";
|
|
5
|
-
import {
|
|
5
|
+
import { bh as d, be as E, bj as v, I as B, U as T, v as g, p as k } from "./form-BpJ4Lqbe.js";
|
|
6
6
|
import { f as c } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as M, E as P } from "./field-error-headless-
|
|
8
|
-
import { L as U } from "./field-label-headless-
|
|
7
|
+
import { D as M, E as P } from "./field-error-headless-Bu_4Huhb.js";
|
|
8
|
+
import { L as U } from "./field-label-headless-DkDmQPFG.js";
|
|
9
9
|
import { u as q } from "./use-invoke-callback-UH73A_J3.js";
|
|
10
10
|
import { E as x } from "./error-icon-hZxQ6DEy.js";
|
|
11
|
-
import { s as u } from "./field-rac.module-
|
|
12
|
-
import { u as w } from "./use-text-input-class-name-
|
|
11
|
+
import { s as u } from "./field-rac.module-BIBNQEOK.js";
|
|
12
|
+
import { u as w } from "./use-text-input-class-name-CNTXVb7N.js";
|
|
13
13
|
const V = (t) => t ? `https://${String(t).replace(/^https?:\/\//, "")}` : "", e = ({ children: t }) => {
|
|
14
|
-
const { id: o, value: s, onChange: n, disabled: m, readOnly: a, required: l, hasError: I, onBlur: b, onFocus: f, FieldLayout: R } = d(), { labelId: F } = E(), p = q(b), L = c(t, e.Label), D = c(t, e.Input), C = c(t, e.Description), _ = c(t, e.Error),
|
|
14
|
+
const { id: o, value: s, onChange: n, disabled: m, readOnly: a, required: l, hasError: I, onBlur: b, onFocus: f, FieldLayout: R } = d(), { labelId: F } = E(), p = q(b), L = c(t, e.Label), D = c(t, e.Input), C = c(t, e.Description), _ = c(t, e.Error), h = S(() => {
|
|
15
15
|
n(V(s)), p();
|
|
16
16
|
}, [
|
|
17
17
|
p,
|
|
@@ -29,7 +29,7 @@ const V = (t) => t ? `https://${String(t).replace(/^https?:\/\//, "")}` : "", e
|
|
|
29
29
|
isReadOnly: a,
|
|
30
30
|
isRequired: l,
|
|
31
31
|
isInvalid: I,
|
|
32
|
-
onBlur:
|
|
32
|
+
onBlur: h,
|
|
33
33
|
onFocus: f
|
|
34
34
|
}, D),
|
|
35
35
|
renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, _, C)
|
|
@@ -52,7 +52,7 @@ e.Label = U;
|
|
|
52
52
|
e.Input = W;
|
|
53
53
|
e.Description = M;
|
|
54
54
|
e.Error = P;
|
|
55
|
-
const $ = ({ content: t, locale: o }) => /* @__PURE__ */ r.createElement(
|
|
55
|
+
const $ = ({ content: t, locale: o }) => /* @__PURE__ */ r.createElement(N, {
|
|
56
56
|
content: t,
|
|
57
57
|
locale: o
|
|
58
58
|
}), te = () => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import d, { useContext as _, useRef as D, useState as m, Children as L, useLayoutEffect as p, useMemo as M } from "react";
|
|
2
2
|
import { CollectionRendererContext as g, DefaultCollectionRenderer as E, ListBox as N } from "react-aria-components";
|
|
3
3
|
import T from "classnames";
|
|
4
|
-
import { s as h } from "./field-rac.module-
|
|
5
|
-
import { s as H } from "./form-
|
|
6
|
-
import { u as I } from "./use-element-state-class-name-
|
|
4
|
+
import { s as h } from "./field-rac.module-BIBNQEOK.js";
|
|
5
|
+
import { s as H } from "./form-BpJ4Lqbe.js";
|
|
6
|
+
import { u as I } from "./use-element-state-class-name-BU86oHkX.js";
|
|
7
7
|
const R = 1 / 0, B = {
|
|
8
8
|
position: "absolute",
|
|
9
9
|
width: 0,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useContext as i, useMemo as u } from "react";
|
|
2
|
-
import {
|
|
3
|
-
import { u as I } from "./use-hoverable-input-class-name-
|
|
2
|
+
import { bb as T, an as p, b9 as O, F as s, t as _ } from "./form-BpJ4Lqbe.js";
|
|
3
|
+
import { u as I } from "./use-hoverable-input-class-name-DWkmQfPd.js";
|
|
4
4
|
const l = [
|
|
5
5
|
s.DROPDOWN,
|
|
6
6
|
s.DEXT_DROPDOWN,
|
|
@@ -21,19 +21,19 @@ const l = [
|
|
|
21
21
|
s.BOOKINGS_ADDRESS,
|
|
22
22
|
s.ECOM_ADDRESS
|
|
23
23
|
], c = ({ properties: o }) => {
|
|
24
|
-
var e,
|
|
25
|
-
return ((r = (
|
|
24
|
+
var e, n, t, r;
|
|
25
|
+
return ((r = (t = (n = (e = o.validation) == null ? void 0 : e.string) == null ? void 0 : n.phoneOptions) == null ? void 0 : t.allowedCountryCodes) == null ? void 0 : r.length) !== 1;
|
|
26
26
|
}, N = ({ properties: o }) => {
|
|
27
|
-
var e,
|
|
28
|
-
return ((
|
|
27
|
+
var e, n;
|
|
28
|
+
return ((n = (e = o.fieldSettings) == null ? void 0 : e.country) == null ? void 0 : n.show) !== !1;
|
|
29
29
|
}, S = (o, e) => d.includes(o.fieldType) ? !e && c(o) : P.includes(o.fieldType) ? N(o) : l.includes(o.fieldType), C = (o, e) => S(o, e) && !o.properties.hidden && !o.properties.disabled && !o.properties.readOnly, R = (o, e) => o.layout.row - e.layout.row || o.layout.column - e.layout.column, A = (o) => {
|
|
30
30
|
var D;
|
|
31
|
-
const e = ((D = T().dropdown) == null ? void 0 : D.open) === !0,
|
|
31
|
+
const e = ((D = T().dropdown) == null ? void 0 : D.open) === !0, n = i(p), { isMobile: t = !1 } = O(), r = u(() => {
|
|
32
32
|
var E;
|
|
33
|
-
return
|
|
33
|
+
return n && !n.parentId ? (E = n.fields.filter((a) => C(a, t)).sort(R)[0]) == null ? void 0 : E.id : void 0;
|
|
34
34
|
}, [
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
n,
|
|
36
|
+
t
|
|
37
37
|
]);
|
|
38
38
|
return e && r === o;
|
|
39
39
|
}, f = (...o) => I(_, o);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import p from "classnames";
|
|
2
|
+
import { ba as E, aJ as f } from "./form-BpJ4Lqbe.js";
|
|
3
|
+
const J = ({ globalClasses: e, moduleClasses: c }) => {
|
|
4
|
+
var d;
|
|
5
|
+
const r = ((d = E(...f(e))) == null ? void 0 : d.split(/\s+/)) ?? [], h = [
|
|
6
|
+
e.selected,
|
|
7
|
+
e.hover
|
|
8
|
+
], o = !!e.selected && r.includes(e.selected), u = r.includes(e.hover);
|
|
9
|
+
return ({ isSelected: m, isHovered: n, isInteractive: t = !0 }) => p(e.base, c.base, t ? r : r.filter((N) => !h.includes(N)), {
|
|
10
|
+
[e.hover]: t && n,
|
|
11
|
+
[c.hover]: t && (n || u)
|
|
12
|
+
}, e.selected && {
|
|
13
|
+
[e.selected]: t && m
|
|
14
|
+
}, c.selected && {
|
|
15
|
+
[c.selected]: t && (m || o)
|
|
16
|
+
});
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
J as u
|
|
20
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { s as e } from "./field-rac.module-
|
|
3
|
-
import { u as m } from "./use-element-state-class-name-
|
|
1
|
+
import { bh as i } from "./form-BpJ4Lqbe.js";
|
|
2
|
+
import { s as e } from "./field-rac.module-BIBNQEOK.js";
|
|
3
|
+
import { u as m } from "./use-element-state-class-name-BU86oHkX.js";
|
|
4
4
|
const d = (s, a) => {
|
|
5
5
|
const { disabled: t, readOnly: o } = i(), r = m({
|
|
6
6
|
globalClasses: s,
|
package/dist/component/{use-service-options-base-2u1I6l-t.js → use-service-options-base-jkecu8jY.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 {
|
|
2
|
+
import { bg as v } from "./form-BpJ4Lqbe.js";
|
|
3
3
|
const k = (I) => {
|
|
4
|
-
const { fieldType: L, isEditor: t = !1, postProcessOptions: i, customFetchLogic: a, onInitialDataLoaded: n } = I, [O,
|
|
4
|
+
const { fieldType: L, isEditor: t = !1, postProcessOptions: i, customFetchLogic: a, onInitialDataLoaded: n } = I, [O, g] = o(!1), [h, p] = o([]), [E, u] = o(!1), [c, f] = o(!1), s = v(L), r = y((e) => {
|
|
5
5
|
let d = e.map((l) => ({
|
|
6
6
|
value: l.id ?? "",
|
|
7
7
|
label: l.name ?? "",
|
|
@@ -32,11 +32,11 @@ const k = (I) => {
|
|
|
32
32
|
]);
|
|
33
33
|
return {
|
|
34
34
|
isLoading: O,
|
|
35
|
-
options:
|
|
35
|
+
options: h,
|
|
36
36
|
isEmpty: E,
|
|
37
37
|
hasInitialDataLoaded: c,
|
|
38
38
|
shouldRender: b,
|
|
39
|
-
setIsLoading:
|
|
39
|
+
setIsLoading: g,
|
|
40
40
|
setOptions: p,
|
|
41
41
|
setIsEmpty: u,
|
|
42
42
|
setHasInitialDataLoaded: f,
|
package/dist/form.d.ts
CHANGED
|
@@ -6983,6 +6983,16 @@ type ElementProps = ElementTree & {
|
|
|
6983
6983
|
dropdown?: LeafEntry & {
|
|
6984
6984
|
open?: boolean;
|
|
6985
6985
|
};
|
|
6986
|
+
signatureContainer?: ElementEntry<ElementTree & {
|
|
6987
|
+
signatureDropZone?: ElementEntry<{
|
|
6988
|
+
signatureUploadButton?: ElementEntry<{
|
|
6989
|
+
icon?: IconEntry;
|
|
6990
|
+
label?: LeafEntry;
|
|
6991
|
+
}>;
|
|
6992
|
+
}>;
|
|
6993
|
+
}> & {
|
|
6994
|
+
signatureMode?: 'draw' | 'type' | 'upload';
|
|
6995
|
+
};
|
|
6986
6996
|
submitButton?: ElementEntry<{
|
|
6987
6997
|
icon?: IconEntry;
|
|
6988
6998
|
label?: LeafEntry;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/form-elements",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.128.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": "3cc91aee772729660b5f820e19d5ab60df670a2b06211de6b0aa2672"
|
|
160
160
|
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
const n = "_label_nnsss_1", o = "_requiredMark_nnsss_11", s = "_input_nnsss_16", e = "_inputGroup_nnsss_17", t = "_inputHover_nnsss_71", c = "_innerInput_nnsss_132", _ = "_dropdownTrigger_nnsss_182", r = "_dropdownIcon_nnsss_192", p = "_dropdownPopover_nnsss_211", i = "_selectPopover_nnsss_217", u = "_selectOption_nnsss_244", d = "_selectOptionHover_nnsss_267", l = "_selectOptionSelected_nnsss_271", h = "_selectOptionWithoutFocusRing_nnsss_275", b = "_description_nnsss_281", k = "_error_nnsss_297", v = "_checkbox_nnsss_316", I = "_checkboxInput_nnsss_339", x = "_checkboxInputSelected_nnsss_378", O = "_checkboxInputHover_nnsss_382", a = "_uploadButton_nnsss_429", g = {
|
|
2
|
-
label: n,
|
|
3
|
-
requiredMark: o,
|
|
4
|
-
input: s,
|
|
5
|
-
inputGroup: e,
|
|
6
|
-
inputHover: t,
|
|
7
|
-
innerInput: c,
|
|
8
|
-
dropdownTrigger: _,
|
|
9
|
-
dropdownIcon: r,
|
|
10
|
-
dropdownPopover: p,
|
|
11
|
-
selectPopover: i,
|
|
12
|
-
selectOption: u,
|
|
13
|
-
selectOptionHover: d,
|
|
14
|
-
selectOptionSelected: l,
|
|
15
|
-
selectOptionWithoutFocusRing: h,
|
|
16
|
-
description: b,
|
|
17
|
-
error: k,
|
|
18
|
-
checkbox: v,
|
|
19
|
-
checkboxInput: I,
|
|
20
|
-
checkboxInputSelected: x,
|
|
21
|
-
checkboxInputHover: O,
|
|
22
|
-
uploadButton: a
|
|
23
|
-
};
|
|
24
|
-
export {
|
|
25
|
-
g as s
|
|
26
|
-
};
|