@wix/form-elements 1.125.0 → 1.127.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-Z-zuUkSk.js → appointment-rac-BrC7gcpn.js} +5 -5
- package/dist/component/{bookings-address-rac-CKDBaGLn.js → bookings-address-rac-D-UmBxjD.js} +1 -1
- package/dist/component/{bookings-email-rac-D4aI_Jzq.js → bookings-email-rac-CjHDzU0Q.js} +1 -1
- package/dist/component/{bookings-first-name-rac-zzQHBi06.js → bookings-first-name-rac-ChBkkkWm.js} +1 -1
- package/dist/component/{bookings-header-rac-Ck8ODZZj.js → bookings-header-rac-ERfGeYyw.js} +1 -1
- package/dist/component/{bookings-last-name-rac-Bf6GZjrX.js → bookings-last-name-rac-CuTJ7Y8w.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-DFDj9-BP.js → bookings-login-bar-rac-pudlQ67l.js} +6 -6
- package/dist/component/{bookings-phone-rac-Bv1-qlMw.js → bookings-phone-rac-nLPnLRfS.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-D7B-s_XR.js → bookings-rich-text-rac-DOmGQlyG.js} +1 -1
- package/dist/component/{checkbox-field-rac-CiKYZvTz.js → checkbox-field-rac-DLazY-iO.js} +86 -86
- package/dist/component/{checkbox-group-field-headless-CV6U8eSj.js → checkbox-group-field-headless-CPyWmFBH.js} +3 -3
- package/dist/component/{checkbox-group-field-rac-BQlPsFkN.js → checkbox-group-field-rac-Bir3gaI9.js} +6 -6
- package/dist/component/{checkbox-group-rac-DS3C_O04.js → checkbox-group-rac-BGXUl-sJ.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-dUEfjEya.js → checkbox-rac-D_wZVUFV.js} +1 -1
- package/dist/component/{contacts-address-rac-CpszOK8V.js → contacts-address-rac-CNldSQbf.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-8VQHFq-M.js → contacts-birthdate-rac-AVyldaRF.js} +1 -1
- package/dist/component/{contacts-company-rac-BOBr0Kk7.js → contacts-company-rac-CiP1Ctpa.js} +1 -1
- package/dist/component/{contacts-email-rac-CTLHE5HL.js → contacts-email-rac-CzjMVEJZ.js} +1 -1
- package/dist/component/{contacts-first-name-rac-nYNH569s.js → contacts-first-name-rac-G0kE0HmA.js} +1 -1
- package/dist/component/{contacts-last-name-rac-BX1D0mI7.js → contacts-last-name-rac-cnTTtnMZ.js} +1 -1
- package/dist/component/{contacts-phone-rac-DKbEfOsH.js → contacts-phone-rac-DJ9oxox4.js} +1 -1
- package/dist/component/{contacts-position-rac-B0y-O-4j.js → contacts-position-rac-e0uQ-eqL.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-5yYJn7F0.js → contacts-subscribe-rac-D4J2x78f.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-BB5ngpkv.js → contacts-tax-id-rac-DwJuNH-C.js} +1 -1
- package/dist/component/{date-availability-C87SaTKG.js → date-availability-D2BSwZ_r.js} +1 -1
- package/dist/component/{date-input-field-rac-CS8QQO3m.js → date-input-field-rac-ztJ02C60.js} +42 -42
- package/dist/component/{date-input-rac-VHB7v5UL.js → date-input-rac-D-SFsC6P.js} +1 -1
- package/dist/component/{date-picker-field-rac-Cri5p6Ms.js → date-picker-field-rac-DaNwsa8z.js} +15 -15
- package/dist/component/{date-picker-rac-B57G3x5E.js → date-picker-rac-Bn0sA6P1.js} +1 -1
- package/dist/component/{date-time-input-field-rac-4Qka-NnP.js → date-time-input-field-rac-D-ArMpcJ.js} +64 -64
- package/dist/component/{date-time-input-rac-DGCjjMFb.js → date-time-input-rac-qYLa3IDx.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-DWvCwPTc.js → dext-checkbox-group-rac-Dir6tyvo.js} +2 -2
- package/dist/component/{dext-checkbox-rac-33LSTC36.js → dext-checkbox-rac-ByiMc3BH.js} +1 -1
- package/dist/component/{dext-date-picker-rac-Bf7NykP3.js → dext-date-picker-rac-BwOozu5y.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-Bao0DdBz.js → dext-date-time-input-rac-CaJEzZa4.js} +1 -1
- package/dist/component/{dext-dropdown-rac-DmcOs3JV.js → dext-dropdown-rac-DJnMjggU.js} +1 -1
- package/dist/component/{dext-email-rac-BQZuGJyR.js → dext-email-rac-CF4SQ86l.js} +1 -1
- package/dist/component/{dext-number-input-rac-BkRW3syI.js → dext-number-input-rac--3goVI8C.js} +1 -1
- package/dist/component/{dext-phone-rac-BQTtIO3M.js → dext-phone-rac-MYJYG040.js} +1 -1
- package/dist/component/{dext-radio-group-rac-8OX3bK1R.js → dext-radio-group-rac-Q2J5Hk5W.js} +4 -4
- package/dist/component/{dext-rating-input-rac-DzsAbe6_.js → dext-rating-input-rac-CAWhD-lI.js} +1 -1
- package/dist/component/{dext-tags-rac-vBL9kqB4.js → dext-tags-rac-DyxI5ooy.js} +4 -4
- package/dist/component/{dext-text-area-rac-DnaX_wQ4.js → dext-text-area-rac-CZpM-r49.js} +1 -1
- package/dist/component/{dext-text-input-rac-D94mFw2C.js → dext-text-input-rac-Bv5Mhyw6.js} +1 -1
- package/dist/component/{dext-url-input-rac-BbGsxHGa.js → dext-url-input-rac-BkbTjbAI.js} +1 -1
- package/dist/component/{donation-rac-BMSQOEKY.js → donation-rac-DZjFeJFy.js} +36 -36
- package/dist/component/{dropdown-field-headless-DfV7Hu_x.js → dropdown-field-headless-C7l2TQYy.js} +16 -16
- package/dist/component/{dropdown-field-rac-DV8KVcfL.js → dropdown-field-rac-DOAlecw8.js} +5 -5
- package/dist/component/{dropdown-rac-CWxp-u5t.js → dropdown-rac-D8HtaeBe.js} +1 -1
- package/dist/component/{ecom-address-rac-DDUa9lKf.js → ecom-address-rac-B25o-GVv.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-C6Bl1HwZ.js → ecom-subscription-checkbox-rac-NvdWnD0v.js} +2 -2
- package/dist/component/{email-input-field-rac-DssxRa6A.js → email-input-field-rac-rWyojsu0.js} +19 -19
- package/dist/component/{events-repeater-rac-C-Y70-hO.js → events-repeater-rac-D2HvNt0y.js} +11 -11
- package/dist/component/{events-rsvp-rac-CH8cmC73.js → events-rsvp-rac-D4WLn0Bx.js} +4 -4
- package/dist/component/{field-error-headless-B-dJmWQP.js → field-error-headless-DU0YsEXR.js} +6 -6
- package/dist/component/{field-label-headless-BMozN-s1.js → field-label-headless-CvdTZi6i.js} +1 -1
- package/dist/component/field-rac.module-BIBNQEOK.js +25 -0
- package/dist/component/{file-upload-rac-q-JbJbUf.js → file-upload-rac-CMelyfA8.js} +68 -68
- package/dist/component/{fixed-payment-rac-BUeec_59.js → fixed-payment-rac-CewsqE-k.js} +9 -9
- package/dist/component/{form-D_BE2Fzt.js → form-D9IxiDXP.js} +2400 -2346
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +3 -3
- package/dist/component/{header-field-rac-DWDGXZ-1.js → header-field-rac-CYBfb_5D.js} +6 -6
- package/dist/component/{header-rac-DSJRq-aS.js → header-rac-BIq3DmbL.js} +1 -1
- package/dist/component/{image-choice-rac-CZhE0M_b.js → image-choice-rac-aOObRIMi.js} +12 -12
- package/dist/component/{index-COa1NdN9.js → index-BXqA4oNj.js} +15 -15
- package/dist/component/{index-CbQKmL2D.js → index-D-g3wQ-z.js} +43 -43
- package/dist/component/{isObjectLike-OXbnWiQZ.js → isObjectLike-BNDXzCto.js} +7 -7
- package/dist/component/{multiline-address-field-rac-uwvOu2s8.js → multiline-address-field-rac-BcTa7Von.js} +8 -8
- package/dist/component/{multiline-address-rac-dechT7TO.js → multiline-address-rac-Cd_BFreP.js} +1 -1
- package/dist/component/{number-input-field-rac-Dzd1zIZ3.js → number-input-field-rac-_JlH34_3.js} +9 -9
- package/dist/component/{number-input-rac-CEkIm28k.js → number-input-rac-CiM20ScT.js} +1 -1
- package/dist/component/{password-rac-CWitmbZm.js → password-rac-DrpXSY74.js} +32 -32
- package/dist/component/{payment-input-rac-CM0uC5on.js → payment-input-rac-RnMeVWDc.js} +15 -15
- package/dist/component/{phone-input-field-rac-fWGQuICi.js → phone-input-field-rac-nNp7D7gK.js} +39 -39
- package/dist/component/{phone-rac-Yz8_o8zI.js → phone-rac-B2JjPT2w.js} +1 -1
- package/dist/component/{product-list-rac-CEWFFKC_.js → product-list-rac-Cv_fjFn3.js} +28 -28
- package/dist/component/{quiz-radio-group-rac-D0x2dT8O.js → quiz-radio-group-rac-CNqF6Tq3.js} +1 -1
- package/dist/component/{radio-button-module-classes-ByzyRWGZ.js → radio-button-module-classes-vqR4TN-z.js} +3 -3
- package/dist/component/{radio-group-field-rac-Bp-gAa8G.js → radio-group-field-rac-Bpyr40q-.js} +5 -5
- package/dist/component/{radio-group-rac-v2iHQ7Do.js → radio-group-rac-DBLPP0YC.js} +1 -1
- package/dist/component/{rating-input-field-rac-Cy2FMWGM.js → rating-input-field-rac-BOi0G37L.js} +10 -10
- package/dist/component/{rating-input-rac-BbVp3WB3.js → rating-input-rac-CxpmV0Pa.js} +1 -1
- package/dist/component/{rich-content-rac.module-CD6SVCbh.js → rich-content-rac.module-Dmm9GyQq.js} +1 -1
- package/dist/component/{rich-text-field-rac-BpNrx6yp.js → rich-text-field-rac-C466OrTf.js} +9 -9
- package/dist/component/{rich-text-rac-Dhy7uiP1.js → rich-text-rac-BvVxD7oJ.js} +1 -1
- package/dist/component/{service-dropdown-rac-CAneRKHw.js → service-dropdown-rac-pmUKH0sP.js} +14 -14
- package/dist/component/{services-multi-choice-rac-D6sXFbh-.js → services-multi-choice-rac-B65i6q2D.js} +7 -7
- package/dist/component/signature-rac-BRyM06Vz.js +918 -0
- package/dist/component/{submit-button-rac-BXXTjOsT.js → submit-button-rac-DaCRjZlQ.js} +15 -15
- package/dist/component/{tags-field-rac-C5UfRny_.js → tags-field-rac-CEdfh-EQ.js} +17 -17
- package/dist/component/{tags-rac-B9CeCJ7N.js → tags-rac-CGSTQ0qK.js} +1 -1
- package/dist/component/{text-area-field-rac-CPRcMTLB.js → text-area-field-rac-C-EHPWwQ.js} +15 -15
- package/dist/component/{text-area-rac-DTP1F7-n.js → text-area-rac-Df1nSb2q.js} +1 -1
- package/dist/component/{text-input-field-rac-BNWvKfLB.js → text-input-field-rac-DmCZtBi_.js} +4 -4
- package/dist/component/{text-input-headless-CLQsDBPq.js → text-input-headless-DAxEZP1P.js} +8 -8
- package/dist/component/{text-input-rac-D-x0vJ11.js → text-input-rac-DgpO17dl.js} +1 -1
- package/dist/component/{time-input-rac-CDyfV8is.js → time-input-rac-Dld_tLub.js} +10 -10
- package/dist/component/{url-input-field-rac-DS-y2pYu.js → url-input-field-rac-DHZ6bpxZ.js} +10 -10
- package/dist/component/{url-input-rac-mPuawQc5.js → url-input-rac-CZlWy5RB.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-C8fUy9a7.js → use-dropdown-option-class-name-opBd-YJA.js} +3 -3
- package/dist/component/{use-dropdown-trigger-class-name-TB7azWxx.js → use-dropdown-trigger-class-name-BGQH0WCO.js} +10 -10
- package/dist/component/use-element-state-class-name-B2ecLjwN.js +20 -0
- package/dist/component/{use-hoverable-input-class-name-Dd0kMkOT.js → use-hoverable-input-class-name-B42rAp82.js} +3 -3
- package/dist/component/{use-service-options-base-CZXMLBQ0.js → use-service-options-base-D60-jNUT.js} +4 -4
- package/dist/component/use-text-input-class-name-DGpCdZ_e.js +6 -0
- package/dist/form.d.ts +11 -1
- package/package.json +23 -23
- package/dist/component/field-rac.module-DQxyEwK7.js +0 -26
- package/dist/component/signature-rac-D_mfewhJ.js +0 -794
- package/dist/component/use-element-state-class-name-BUWRj3G2.js +0 -22
- package/dist/component/use-text-input-class-name-BJ6Qm1bq.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-D9IxiDXP.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-B2ecLjwN.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-D9IxiDXP.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-DU0YsEXR.js";
|
|
8
|
+
import { L as $ } from "./field-label-headless-CvdTZi6i.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-B2ecLjwN.js";
|
|
13
|
+
import { u as ce } from "./use-text-input-class-name-DGpCdZ_e.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-D9IxiDXP.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-DU0YsEXR.js";
|
|
8
|
+
import { L as k } from "./field-label-headless-CvdTZi6i.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-DGpCdZ_e.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-BNWvKfLB.js → text-input-field-rac-DmCZtBi_.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-DAxEZP1P.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-D9IxiDXP.js";
|
|
8
|
+
import { u as p } from "./use-text-input-class-name-DGpCdZ_e.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-D9IxiDXP.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-DU0YsEXR.js";
|
|
6
|
+
import { L as x } from "./field-label-headless-CvdTZi6i.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-D9IxiDXP.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-DU0YsEXR.js";
|
|
9
|
+
import { L as Y } from "./field-label-headless-CvdTZi6i.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-DGpCdZ_e.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-D9IxiDXP.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-DU0YsEXR.js";
|
|
8
|
+
import { L as U } from "./field-label-headless-CvdTZi6i.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-DGpCdZ_e.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-D9IxiDXP.js";
|
|
6
|
+
import { u as I } from "./use-element-state-class-name-B2ecLjwN.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-D9IxiDXP.js";
|
|
3
|
+
import { u as I } from "./use-hoverable-input-class-name-B42rAp82.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-D9IxiDXP.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-D9IxiDXP.js";
|
|
2
|
+
import { s as e } from "./field-rac.module-BIBNQEOK.js";
|
|
3
|
+
import { u as m } from "./use-element-state-class-name-B2ecLjwN.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-CZXMLBQ0.js → use-service-options-base-D60-jNUT.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-D9IxiDXP.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;
|
|
@@ -7004,7 +7014,7 @@ type FormHandle = {
|
|
|
7004
7014
|
validateStep?: (stepId: string) => Promise<boolean>;
|
|
7005
7015
|
getValues?: () => FormValues;
|
|
7006
7016
|
};
|
|
7007
|
-
type FormState = 'success' | 'hiddenFields';
|
|
7017
|
+
type FormState = 'success' | 'closed' | 'hiddenFields';
|
|
7008
7018
|
type FormProps = {
|
|
7009
7019
|
id?: string;
|
|
7010
7020
|
className?: string;
|