@wix/form-elements 1.224.0 → 1.225.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-UcRjJTHp.js → appointment-rac-DfglpMHC.js} +5 -5
- package/dist/component/{bookings-address-rac-DDjZGEhk.js → bookings-address-rac-BsAUAgUH.js} +1 -1
- package/dist/component/{bookings-email-rac-Dy2vh3dy.js → bookings-email-rac-DL0Q3omz.js} +1 -1
- package/dist/component/{bookings-first-name-rac-fDHMNznn.js → bookings-first-name-rac-C3eHsd6U.js} +1 -1
- package/dist/component/{bookings-header-rac-DLOeNNQf.js → bookings-header-rac-YVCqWtfu.js} +1 -1
- package/dist/component/{bookings-last-name-rac-Bx19ROVT.js → bookings-last-name-rac-BzBQBIMy.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-8FbvPiv1.js → bookings-login-bar-rac-MJvhVfsH.js} +1 -1
- package/dist/component/{bookings-phone-rac-CvPQgtvq.js → bookings-phone-rac-BTEB2Mzf.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-CO8bHRpD.js → bookings-rich-text-rac-BopQG6gV.js} +1 -1
- package/dist/component/calendar-icon-DOeHn3jt.js +19 -0
- package/dist/component/{checkbox-field-rac-tzsGw10P.js → checkbox-field-rac-NvQt_qcN.js} +6 -6
- package/dist/component/{checkbox-group-field-headless-CL18dpkq.js → checkbox-group-field-headless-CwLaBukh.js} +3 -3
- package/dist/component/{checkbox-group-field-rac-BmbxaprJ.js → checkbox-group-field-rac-BKQhos1K.js} +6 -6
- package/dist/component/{checkbox-group-rac-shsbUvRc.js → checkbox-group-rac-DMeC2rsZ.js} +1 -1
- package/dist/component/{checkbox-indicator-module-classes-DOxE4UQg.js → checkbox-indicator-module-classes-Cozvs_kk.js} +1 -1
- package/dist/component/{checkbox-rac-CobYYayd.js → checkbox-rac-Dea1HbEL.js} +1 -1
- package/dist/component/{contacts-address-rac-BoDqJCi1.js → contacts-address-rac-B64jiofc.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-GAujbm-z.js → contacts-birthdate-rac-CM4GjTBV.js} +1 -1
- package/dist/component/{contacts-company-rac-CLcEz04V.js → contacts-company-rac-DTf9dwuR.js} +1 -1
- package/dist/component/{contacts-email-rac-D9q7TJwy.js → contacts-email-rac-B2vhNF_y.js} +1 -1
- package/dist/component/{contacts-first-name-rac-BAecbeNQ.js → contacts-first-name-rac-C5ywHnnX.js} +1 -1
- package/dist/component/{contacts-last-name-rac-Ccrw8BDa.js → contacts-last-name-rac-C2JbeG_J.js} +1 -1
- package/dist/component/{contacts-phone-rac-DA2N033V.js → contacts-phone-rac-Dm0PS175.js} +1 -1
- package/dist/component/{contacts-position-rac-0lAd-nCW.js → contacts-position-rac-t6bWP1Yh.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-DB2ssF-E.js → contacts-subscribe-rac-D5EWQfGj.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-B-Sn92Ho.js → contacts-tax-id-rac-CXqezyXg.js} +1 -1
- package/dist/component/{date-availability-CtfWLvii.js → date-availability-CtrbZvl3.js} +1 -1
- package/dist/component/date-input-field-rac-CPLAqaMS.js +365 -0
- package/dist/component/{date-input-rac-BnWwBe2i.js → date-input-rac-DjQc-F8G.js} +1 -1
- package/dist/component/date-picker-field-rac-pA2HwauY.js +386 -0
- package/dist/component/{date-picker-rac-BhI6jOQE.js → date-picker-rac-B6M3C8dN.js} +1 -1
- package/dist/component/date-time-input-field-rac-Qz6g31Eu.js +507 -0
- package/dist/component/{date-time-input-rac-DAbopLQt.js → date-time-input-rac-D7bS3bUX.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-D_HLv0tP.js → dext-checkbox-group-rac-caVwDBtB.js} +2 -2
- package/dist/component/{dext-checkbox-rac-BnBTlqEI.js → dext-checkbox-rac-CMxPnPT3.js} +1 -1
- package/dist/component/{dext-date-picker-rac-Co_yfhuz.js → dext-date-picker-rac-5WBCluMk.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-BSpUehb2.js → dext-date-time-input-rac-C5d1PKMu.js} +1 -1
- package/dist/component/{dext-dropdown-rac-DPApx74L.js → dext-dropdown-rac-BPeVs1gI.js} +1 -1
- package/dist/component/{dext-email-rac-Dns6jFl4.js → dext-email-rac-BTXfUaaY.js} +1 -1
- package/dist/component/{dext-number-input-rac-DfN-xRID.js → dext-number-input-rac-DJt_dDVj.js} +1 -1
- package/dist/component/{dext-phone-rac-b5Ix3aTQ.js → dext-phone-rac-DDtneNPi.js} +1 -1
- package/dist/component/{dext-radio-group-rac-BAwIkDsJ.js → dext-radio-group-rac-DzLW_As4.js} +2 -2
- package/dist/component/{dext-rating-input-rac-mwQpCQUI.js → dext-rating-input-rac-0wwq1TR3.js} +1 -1
- package/dist/component/{dext-tags-rac-BGmElgw8.js → dext-tags-rac-Cj7nIZWu.js} +2 -2
- package/dist/component/{dext-text-area-rac-DN5HPqdg.js → dext-text-area-rac-D4Ej9MYY.js} +1 -1
- package/dist/component/{dext-text-input-rac-DEyDRhQ2.js → dext-text-input-rac-DgqBl2cb.js} +1 -1
- package/dist/component/{dext-url-input-rac-B1o3BAZE.js → dext-url-input-rac-CH-5gGxA.js} +1 -1
- package/dist/component/dismiss-icon-ejA47noY.js +69 -0
- package/dist/component/{donation-rac-Dp6PmATz.js → donation-rac-BwpE1YTR.js} +6 -6
- package/dist/component/dropdown-field-rac-CeywMN1E.js +40 -0
- package/dist/component/{dropdown-rac-eqQW-Z9k.js → dropdown-rac-DiXJLvXK.js} +1 -1
- package/dist/component/{ecom-address-rac-Q02N1v6i.js → ecom-address-rac-MD0hbW1w.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-CmqVje9n.js → ecom-subscription-checkbox-rac-BssVeeXB.js} +2 -2
- package/dist/component/{email-input-field-rac-HmrdF3g7.js → email-input-field-rac-BXoueQNf.js} +4 -4
- package/dist/component/{events-repeater-rac-BSML2My0.js → events-repeater-rac-fm6lHaJ2.js} +6 -6
- package/dist/component/{events-rsvp-rac-0pI3cb2e.js → events-rsvp-rac-QV9f5chX.js} +4 -4
- package/dist/component/{field-error-headless-B3U_Gymg.js → field-error-headless-BIzDViIC.js} +1 -1
- package/dist/component/{field-label-headless-Cyy9_5qJ.js → field-label-headless-D_ubs4wp.js} +1 -1
- package/dist/component/field-rac.module-D0QzJXUv.js +32 -0
- package/dist/component/{file-upload-rac-hR9TZqk2.js → file-upload-rac-Csmt20hK.js} +5 -5
- package/dist/component/{fixed-payment-rac-CghZp6bR.js → fixed-payment-rac-BXr53Q8H.js} +4 -4
- package/dist/component/{form-BmSV4tOz.js → form-Dnq7LxSl.js} +1701 -1688
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-C7LDm89o.js → header-field-rac-9750XSxD.js} +2 -2
- package/dist/component/{header-rac-BNNzF5wQ.js → header-rac-DGSENeOk.js} +1 -1
- package/dist/component/{image-choice-rac-DLgxkKIZ.js → image-choice-rac-HX8H18Z3.js} +5 -5
- package/dist/component/{index-Dg8Fefid.js → index-pgW3uSoZ.js} +2 -2
- package/dist/component/{index-B8ObIJtL.js → index-vs-qkVQt.js} +4 -4
- package/dist/component/{isObjectLike-oBQcCfqW.js → isObjectLike-DoUrU0Hj.js} +1 -1
- package/dist/component/multiline-address-field-rac-B3gKz3u_.js +1818 -0
- package/dist/component/{multiline-address-rac-8MZkKfqY.js → multiline-address-rac-BBign7ot.js} +1 -1
- package/dist/component/native-select-BbxBpe3S.js +32 -0
- package/dist/component/{number-input-field-rac-Dmp8pNIq.js → number-input-field-rac-CO6DG443.js} +5 -5
- package/dist/component/{number-input-rac-2cN_bN_s.js → number-input-rac-C_Ndaqs4.js} +1 -1
- package/dist/component/{password-rac-CFdC1hoi.js → password-rac-pq-CaSkt.js} +5 -5
- package/dist/component/{payment-input-rac-BWElGzuv.js → payment-input-rac-Dco8O86k.js} +5 -5
- package/dist/component/phone-input-field-rac-BmcADPkC.js +558 -0
- package/dist/component/{phone-rac-CE9-90C3.js → phone-rac-B3aFMUMq.js} +1 -1
- package/dist/component/{product-list-rac-QU7Ocwvy.js → product-list-rac-Cw21coVk.js} +6 -6
- package/dist/component/{quiz-radio-group-rac-Hm7B7RlU.js → quiz-radio-group-rac-ChkNtxix.js} +1 -1
- package/dist/component/{radio-button-module-classes-CcGF7N_Y.js → radio-button-module-classes-BtiG6yqb.js} +3 -3
- package/dist/component/{radio-group-field-rac-Bk1JBBts.js → radio-group-field-rac-6SefZCE6.js} +5 -5
- package/dist/component/{radio-group-rac-D_YZnpID.js → radio-group-rac-BRhOFR2j.js} +1 -1
- package/dist/component/{rating-input-field-rac-zvA6QBGo.js → rating-input-field-rac-DaVnkb6k.js} +5 -5
- package/dist/component/{rating-input-rac-CXVQUoi-.js → rating-input-rac-B-2pZ61H.js} +1 -1
- package/dist/component/{rich-content-rac.module-CnZ4lMBG.js → rich-content-rac.module-C6LD--Ql.js} +1 -1
- package/dist/component/{rich-text-field-rac-DYQgVXdV.js → rich-text-field-rac-C-rfA6pQ.js} +2 -2
- package/dist/component/{rich-text-rac-Dk8396e-.js → rich-text-rac-1s5CGO8u.js} +1 -1
- package/dist/component/service-dropdown-rac-Bcr83doj.js +150 -0
- package/dist/component/{services-multi-choice-rac-D1RiVaLW.js → services-multi-choice-rac-C9nSuz9x.js} +7 -7
- package/dist/component/{signature-rac-DcGKMX84.js → signature-rac-pgob6vV_.js} +5 -5
- package/dist/component/{submit-button-rac-DbMxQlNH.js → submit-button-rac-CzcFB8hM.js} +2 -2
- package/dist/component/{tags-field-rac-Bi4lKutL.js → tags-field-rac-BBFxSNch.js} +6 -6
- package/dist/component/{tags-rac-DDCPnT8M.js → tags-rac-DkwugVvK.js} +1 -1
- package/dist/component/{text-area-field-rac-cre_K0MD.js → text-area-field-rac-DHT-fc0i.js} +5 -5
- package/dist/component/{text-area-rac-61wsMj-j.js → text-area-rac-cTq-i-bf.js} +1 -1
- package/dist/component/{text-input-field-rac-CV5_ba0x.js → text-input-field-rac-D3v-e_5R.js} +4 -4
- package/dist/component/{text-input-headless-kRv3KpSL.js → text-input-headless-B-DwvpWg.js} +3 -3
- package/dist/component/{text-input-rac-CwqZ6NXO.js → text-input-rac-CpG9qt33.js} +1 -1
- package/dist/component/time-input-rac-iL1G8Uwo.js +212 -0
- package/dist/component/to-native-time-Co_gOLkc.js +9 -0
- package/dist/component/{url-input-field-rac-C1JL_m6D.js → url-input-field-rac-1P81rK_4.js} +5 -5
- package/dist/component/{url-input-rac-C1CiGrCn.js → url-input-rac-D9c0BJKG.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-COGEk5d6.js → use-dropdown-option-class-name-CyC7rDCE.js} +3 -3
- package/dist/component/use-dropdown-trigger-class-name-BvRCjLXG.js +137 -0
- package/dist/component/{use-element-state-class-name-pSOX0Y0p.js → use-element-state-class-name-Cpdx_lRm.js} +1 -1
- package/dist/component/{use-hoverable-input-class-name-DGEpOAdi.js → use-hoverable-input-class-name-zEk2Vnct.js} +3 -3
- package/dist/component/{use-is-forced-open-dropdown-DPG1e5E9.js → use-is-forced-open-dropdown-_YI6RNG3.js} +1 -1
- package/dist/component/use-native-mobile-input-Czyhb-0V.js +31 -0
- package/dist/component/use-native-state-class-name-B0m2ghbS.js +18 -0
- package/dist/component/{use-service-options-base-BgIZ94V9.js → use-service-options-base-CbFG_r1u.js} +1 -1
- package/dist/component/use-text-input-class-name-CL-b4_Ph.js +6 -0
- package/package.json +3 -2
- package/dist/component/date-input-field-rac-CiAaOiYY.js +0 -309
- package/dist/component/date-picker-field-rac-Dg-chlTL.js +0 -320
- package/dist/component/date-time-input-field-rac-CbDvEPIp.js +0 -441
- package/dist/component/dropdown-field-rac-DY3GGJgP.js +0 -36
- package/dist/component/field-rac.module-DcyJyi2B.js +0 -25
- package/dist/component/multiline-address-field-rac-CgH7lDce.js +0 -1738
- package/dist/component/phone-input-field-rac-CsJGw_OE.js +0 -520
- package/dist/component/service-dropdown-rac-BSXYuBPJ.js +0 -145
- package/dist/component/time-input-rac-DuQar6zW.js +0 -161
- package/dist/component/use-dropdown-trigger-class-name-D6c-3Lyw.js +0 -98
- package/dist/component/use-text-input-class-name-BcbHdFV-.js +0 -6
|
@@ -2,19 +2,19 @@ import t, { useMemo as H, useCallback as v, useRef as x } from "react";
|
|
|
2
2
|
import { RicosViewer as $ } from "@wix/ricos/viewer";
|
|
3
3
|
import y from "classnames";
|
|
4
4
|
import { CheckboxField as z, CheckboxButton as X, NumberField as Y, Group as j, Button as Q, Input as J } from "react-aria-components";
|
|
5
|
-
import { bN as U, bK as W, bF as V, bY as Z, bP as ee, X as te, am as ne, a6 as ae, a7 as oe, aa as re, a9 as le, ab as se, M as ie, I as ce, a8 as ue } from "./form-
|
|
5
|
+
import { bN as U, bK as W, bF as V, bY as Z, bP as ee, X as te, am as ne, a6 as ae, a7 as oe, aa as re, a9 as le, ab as se, M as ie, I as ce, a8 as ue } from "./form-Dnq7LxSl.js";
|
|
6
6
|
import { f, a as b } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { L as me, g as pe } from "./field-label-headless-
|
|
7
|
+
import { L as me, g as pe } from "./field-label-headless-D_ubs4wp.js";
|
|
8
8
|
import { f as de } from "./format-currency-BwShJ9vM.js";
|
|
9
|
-
import { D as Ee, E as _e } from "./field-error-headless-
|
|
9
|
+
import { D as Ee, E as _e } from "./field-error-headless-BIzDViIC.js";
|
|
10
10
|
import { F as ye } from "./fieldset-headless-CD3fds9J.js";
|
|
11
11
|
import { g as Ie } from "./payment-field-utils-DobiK5Xh.js";
|
|
12
12
|
import { S as be } from "./selection-indicator-XQ8MYHUQ.js";
|
|
13
13
|
import { E as fe } from "./error-icon-hZxQ6DEy.js";
|
|
14
|
-
import { C as Le } from "./checkbox-indicator-module-classes-
|
|
15
|
-
import { s as A } from "./field-rac.module-
|
|
14
|
+
import { C as Le } from "./checkbox-indicator-module-classes-Cozvs_kk.js";
|
|
15
|
+
import { s as A } from "./field-rac.module-D0QzJXUv.js";
|
|
16
16
|
import { o as w } from "./options-rac.module-_THNq6Qq.js";
|
|
17
|
-
import { u as Oe } from "./use-element-state-class-name-
|
|
17
|
+
import { u as Oe } from "./use-element-state-class-name-Cpdx_lRm.js";
|
|
18
18
|
var Ce = /* @__PURE__ */ (function(e) {
|
|
19
19
|
return e.crop = "CROP", e.fit = "FIT", e;
|
|
20
20
|
})({}), k = /* @__PURE__ */ (function(e) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import a, { useRef as S, useState as B, useEffect as H, useCallback as P } from "react";
|
|
2
2
|
import { RadioGroup as k, RadioField as A, RadioButton as G, TextField as $, Input as q } from "react-aria-components";
|
|
3
|
-
import { bN as g, bK as x, bW as K, bY as D, bP as U } from "./form-
|
|
3
|
+
import { bN as g, bK as x, bW as K, bY as D, bP as U } from "./form-Dnq7LxSl.js";
|
|
4
4
|
import { f as u, a as L } from "./find-child-C60k4CxG.js";
|
|
5
|
-
import { D as M, E as W } from "./field-error-headless-
|
|
6
|
-
import { L as Y } from "./field-label-headless-
|
|
5
|
+
import { D as M, E as W } from "./field-error-headless-BIzDViIC.js";
|
|
6
|
+
import { L as Y } from "./field-label-headless-D_ubs4wp.js";
|
|
7
7
|
import { S as j } from "./selection-indicator-XQ8MYHUQ.js";
|
|
8
8
|
const v = "Other", w = (e, t) => e == null ? void 0 : e.find((n) => (n.value ?? n.label) === t), F = (e, t) => !!t && !w(e, t), z = (e, t) => {
|
|
9
9
|
const l = t ? t.length + 2 : 0;
|
package/dist/component/{radio-group-field-rac-Bk1JBBts.js → radio-group-field-rac-6SefZCE6.js}
RENAMED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { RicosViewer as m } from "@wix/ricos/viewer";
|
|
2
2
|
import t from "classnames";
|
|
3
3
|
import e from "react";
|
|
4
|
-
import { a, s, R as n } from "./radio-button-module-classes-
|
|
4
|
+
import { a, s, R as n } from "./radio-button-module-classes-BtiG6yqb.js";
|
|
5
5
|
import { E as c } from "./error-icon-hZxQ6DEy.js";
|
|
6
|
-
import { s as r } from "./field-rac.module-
|
|
7
|
-
import { X as i, am as E, ac as p, ad as O, M as R, I as _, ae as I } from "./form-
|
|
6
|
+
import { s as r } from "./field-rac.module-D0QzJXUv.js";
|
|
7
|
+
import { X as i, am as E, ac as p, ad as O, M as R, I as _, ae as I } from "./form-Dnq7LxSl.js";
|
|
8
8
|
import { o as L } from "./options-rac.module-_THNq6Qq.js";
|
|
9
|
-
import { u as N } from "./use-element-state-class-name-
|
|
10
|
-
import { u } from "./use-text-input-class-name-
|
|
9
|
+
import { u as N } from "./use-element-state-class-name-Cpdx_lRm.js";
|
|
10
|
+
import { u } from "./use-text-input-class-name-CL-b4_Ph.js";
|
|
11
11
|
const D = ({ content: o, locale: l }) => /* @__PURE__ */ e.createElement(m, {
|
|
12
12
|
content: o,
|
|
13
13
|
locale: l
|
package/dist/component/{rating-input-field-rac-zvA6QBGo.js → rating-input-field-rac-DaVnkb6k.js}
RENAMED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { RicosViewer as N } from "@wix/ricos/viewer";
|
|
2
2
|
import u from "classnames";
|
|
3
3
|
import e, { useCallback as O, useState as A, useRef as M } from "react";
|
|
4
|
-
import { bN as S, bK as I, bW as T, bY as H, X as w, am as P, af as B, M as q, I as G, ag as k } from "./form-
|
|
4
|
+
import { bN as S, bK as I, bW as T, bY as H, X as w, am as P, af as B, M as q, I as G, ag as k } from "./form-Dnq7LxSl.js";
|
|
5
5
|
import { RadioGroup as x, RadioField as K, RadioButton as U } from "react-aria-components";
|
|
6
6
|
import { f as E, a as z } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as Q, E as W } from "./field-error-headless-
|
|
8
|
-
import { L as X } from "./field-label-headless-
|
|
7
|
+
import { D as Q, E as W } from "./field-error-headless-BIzDViIC.js";
|
|
8
|
+
import { L as X } from "./field-label-headless-D_ubs4wp.js";
|
|
9
9
|
import { E as Y } from "./error-icon-hZxQ6DEy.js";
|
|
10
|
-
import { s as p } from "./field-rac.module-
|
|
11
|
-
import { u as Z } from "./use-element-state-class-name-
|
|
10
|
+
import { s as p } from "./field-rac.module-D0QzJXUv.js";
|
|
11
|
+
import { u as Z } from "./use-element-state-class-name-Cpdx_lRm.js";
|
|
12
12
|
const t = ({ children: a }) => {
|
|
13
13
|
const { id: n, value: r, onChange: i, disabled: l, readOnly: m, required: d, hasError: o, onBlur: c, onFocus: g, FieldLayout: R } = S(), { labelId: _, ariaDescribedBy: L } = I(), s = O((D) => i(Number(D)), [
|
|
14
14
|
i
|
package/dist/component/{rich-content-rac.module-CnZ4lMBG.js → rich-content-rac.module-C6LD--Ql.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import c, { useState as u } from "react";
|
|
2
|
-
import { bN as a, bF as i, bY as T } from "./form-
|
|
2
|
+
import { bN as a, bF as i, bY as T } from "./form-Dnq7LxSl.js";
|
|
3
3
|
import { Button as d } from "react-aria-components";
|
|
4
4
|
import { D as r } from "./data-hooks-Dkw1pbRj.js";
|
|
5
5
|
import { truncateRichContent as _ } from "@wix/ricos/content";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import l from "classnames";
|
|
2
2
|
import e from "react";
|
|
3
|
-
import { bN as m, aY as i, aG as u, bn as R, bq as T } from "./form-
|
|
4
|
-
import { u as C, R as d, s as g, T as p } from "./rich-content-rac.module-
|
|
3
|
+
import { bN as m, aY as i, aG as u, bn as R, bq as T } from "./form-Dnq7LxSl.js";
|
|
4
|
+
import { u as C, R as d, s as g, T as p } from "./rich-content-rac.module-C6LD--Ql.js";
|
|
5
5
|
const h = {
|
|
6
6
|
colorPalette: T(),
|
|
7
7
|
customStyles: R()
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import t, { useRef as b, useMemo as _, useCallback as C, useEffect as P } from "react";
|
|
2
|
+
import { RicosViewer as A } from "@wix/ricos/viewer";
|
|
3
|
+
import d from "classnames";
|
|
4
|
+
import { bJ as M, bY as y, F as V, bN as x, bF as H, aN as U, X as W, am as k, J as q, M as B, I as J } from "./form-Dnq7LxSl.js";
|
|
5
|
+
import { u as Y } from "./use-service-options-base-CbFG_r1u.js";
|
|
6
|
+
import { D as m, u as v } from "./use-dropdown-trigger-class-name-BvRCjLXG.js";
|
|
7
|
+
import { C as L } from "./chevron-down-icon-CcpVm6B-.js";
|
|
8
|
+
import { E as Q } from "./error-icon-hZxQ6DEy.js";
|
|
9
|
+
import { H as X } from "./custom-focus-class-_483Pkwp.js";
|
|
10
|
+
import { s as n } from "./field-rac.module-D0QzJXUv.js";
|
|
11
|
+
import { u as j } from "./use-dropdown-option-class-name-CyC7rDCE.js";
|
|
12
|
+
const z = "00000000-0000-0000-0000-000000000000", G = (e) => {
|
|
13
|
+
const { actions: r } = M(), { t: E } = y(), { addOther: a, addOtherLabel: O } = e, c = O || E("add-other.default-other-option-label"), i = b(!0), p = _(() => {
|
|
14
|
+
var s;
|
|
15
|
+
return ((s = e.options) == null ? void 0 : s.map((u) => u.id ?? "")) ?? [];
|
|
16
|
+
}, [
|
|
17
|
+
e.options
|
|
18
|
+
]), S = C((s) => a ? [
|
|
19
|
+
...s,
|
|
20
|
+
{
|
|
21
|
+
value: c,
|
|
22
|
+
label: c,
|
|
23
|
+
id: z
|
|
24
|
+
}
|
|
25
|
+
] : s, [
|
|
26
|
+
a,
|
|
27
|
+
c
|
|
28
|
+
]), { isLoading: f, options: l, isEmpty: D, shouldRender: I, setIsLoading: h, setOptions: N, setIsEmpty: g, processOptions: F } = Y({
|
|
29
|
+
fieldType: V.SERVICES_DROPDOWN,
|
|
30
|
+
isEditor: e.isEditor,
|
|
31
|
+
postProcessOptions: S
|
|
32
|
+
}), R = C(async () => {
|
|
33
|
+
if (i.current && (r != null && r.fetchServices) && p.length > 0) {
|
|
34
|
+
i.current = !1, h(!0);
|
|
35
|
+
let s;
|
|
36
|
+
try {
|
|
37
|
+
s = await r.fetchServices({
|
|
38
|
+
serviceIds: p
|
|
39
|
+
});
|
|
40
|
+
} catch (u) {
|
|
41
|
+
console.error(u);
|
|
42
|
+
}
|
|
43
|
+
if (s) {
|
|
44
|
+
const u = F(s);
|
|
45
|
+
g(!a && u.length === 0), N(u);
|
|
46
|
+
} else
|
|
47
|
+
i.current = !0;
|
|
48
|
+
h(!1);
|
|
49
|
+
}
|
|
50
|
+
}, [
|
|
51
|
+
r,
|
|
52
|
+
p,
|
|
53
|
+
F,
|
|
54
|
+
a,
|
|
55
|
+
h,
|
|
56
|
+
N,
|
|
57
|
+
g
|
|
58
|
+
]);
|
|
59
|
+
P(() => {
|
|
60
|
+
if (!e.isEditor && l.length > 0) {
|
|
61
|
+
const s = a ? l.length - 1 : l.length;
|
|
62
|
+
g(s === 0);
|
|
63
|
+
}
|
|
64
|
+
}, [
|
|
65
|
+
l,
|
|
66
|
+
a,
|
|
67
|
+
g,
|
|
68
|
+
e.isEditor
|
|
69
|
+
]);
|
|
70
|
+
const w = C(() => {
|
|
71
|
+
e.onFocus && e.onFocus(), i.current && R();
|
|
72
|
+
}, [
|
|
73
|
+
R,
|
|
74
|
+
e.onFocus
|
|
75
|
+
]), T = C(
|
|
76
|
+
(s) => {
|
|
77
|
+
e.onChange && e.onChange(s), i.current = !0;
|
|
78
|
+
},
|
|
79
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
80
|
+
[
|
|
81
|
+
e.onChange
|
|
82
|
+
]
|
|
83
|
+
);
|
|
84
|
+
return {
|
|
85
|
+
isLoading: f,
|
|
86
|
+
options: l,
|
|
87
|
+
isEmpty: D,
|
|
88
|
+
onFocus: w,
|
|
89
|
+
onChange: T,
|
|
90
|
+
shouldRender: I
|
|
91
|
+
};
|
|
92
|
+
}, o = ({ children: e }) => {
|
|
93
|
+
const r = x(), { addOther: E } = r, a = H(), O = r.isEditor || a.isEditor || a.isComposer, { isLoading: c, options: i, isEmpty: p, onFocus: S, onChange: f, shouldRender: l } = G({
|
|
94
|
+
...r,
|
|
95
|
+
isEditor: O
|
|
96
|
+
}), D = _(() => ({
|
|
97
|
+
...r,
|
|
98
|
+
options: c ? [] : i,
|
|
99
|
+
isLoading: c,
|
|
100
|
+
onFocus: S,
|
|
101
|
+
onChange: f
|
|
102
|
+
}), [
|
|
103
|
+
r,
|
|
104
|
+
i,
|
|
105
|
+
c,
|
|
106
|
+
S,
|
|
107
|
+
f
|
|
108
|
+
]);
|
|
109
|
+
return !O && p && !E || !l ? null : /* @__PURE__ */ t.createElement(U.Provider, {
|
|
110
|
+
value: {
|
|
111
|
+
v2: D
|
|
112
|
+
}
|
|
113
|
+
}, /* @__PURE__ */ t.createElement(m, null, e));
|
|
114
|
+
};
|
|
115
|
+
o.Label = m.Label;
|
|
116
|
+
o.Trigger = m.Trigger;
|
|
117
|
+
o.Options = m.Options;
|
|
118
|
+
o.Description = m.Description;
|
|
119
|
+
o.Error = m.Error;
|
|
120
|
+
o.NativeSelect = m.NativeSelect;
|
|
121
|
+
const K = ({ content: e, locale: r }) => /* @__PURE__ */ t.createElement(A, {
|
|
122
|
+
content: e,
|
|
123
|
+
locale: r
|
|
124
|
+
}), Z = () => {
|
|
125
|
+
const e = v(n.dropdownTrigger), r = v(n.nativeInput, n.nativeSelect), E = j(X);
|
|
126
|
+
return /* @__PURE__ */ t.createElement(o, null, /* @__PURE__ */ t.createElement(o.Label, {
|
|
127
|
+
className: d(W, n.label)
|
|
128
|
+
}, /* @__PURE__ */ t.createElement(o.Label.Required, {
|
|
129
|
+
className: d(k, n.requiredMark)
|
|
130
|
+
})), /* @__PURE__ */ t.createElement(o.Trigger, {
|
|
131
|
+
className: e
|
|
132
|
+
}, /* @__PURE__ */ t.createElement(L, {
|
|
133
|
+
className: n.dropdownIcon
|
|
134
|
+
})), /* @__PURE__ */ t.createElement(o.NativeSelect, {
|
|
135
|
+
className: r
|
|
136
|
+
}, /* @__PURE__ */ t.createElement(L, {
|
|
137
|
+
className: d(n.dropdownIcon, n.nativeDecoration)
|
|
138
|
+
})), /* @__PURE__ */ t.createElement(o.Options, {
|
|
139
|
+
className: d(q, n.selectPopover, n.dropdownPopover)
|
|
140
|
+
}, /* @__PURE__ */ t.createElement(o.Options.Option, {
|
|
141
|
+
className: E
|
|
142
|
+
})), /* @__PURE__ */ t.createElement(o.Error, {
|
|
143
|
+
className: d(B, n.error)
|
|
144
|
+
}, /* @__PURE__ */ t.createElement(Q, null), /* @__PURE__ */ t.createElement(o.Error.Text, null)), /* @__PURE__ */ t.createElement(o.Description, {
|
|
145
|
+
className: d(J, n.description)
|
|
146
|
+
}, K));
|
|
147
|
+
}, me = () => /* @__PURE__ */ t.createElement(Z, null);
|
|
148
|
+
export {
|
|
149
|
+
me as ServiceDropdownRAC
|
|
150
|
+
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import e, { useEffect as I, useMemo as L } from "react";
|
|
2
2
|
import { RicosViewer as S } from "@wix/ricos/viewer";
|
|
3
3
|
import a from "classnames";
|
|
4
|
-
import { F as R, bN as d, aN as N, X as D, am as F, p as f, r as h, M as b, I as M, q as A } from "./form-
|
|
5
|
-
import { u as v } from "./use-service-options-base-
|
|
6
|
-
import { C as i } from "./checkbox-group-field-headless-
|
|
4
|
+
import { F as R, bN as d, aN as N, X as D, am as F, p as f, r as h, M as b, I as M, q as A } from "./form-Dnq7LxSl.js";
|
|
5
|
+
import { u as v } from "./use-service-options-base-CbFG_r1u.js";
|
|
6
|
+
import { C as i } from "./checkbox-group-field-headless-CwLaBukh.js";
|
|
7
7
|
import { E as x } from "./error-icon-hZxQ6DEy.js";
|
|
8
|
-
import { C as P } from "./checkbox-indicator-module-classes-
|
|
9
|
-
import { s as n } from "./field-rac.module-
|
|
8
|
+
import { C as P } from "./checkbox-indicator-module-classes-Cozvs_kk.js";
|
|
9
|
+
import { s as n } from "./field-rac.module-D0QzJXUv.js";
|
|
10
10
|
import { o as _ } from "./options-rac.module-_THNq6Qq.js";
|
|
11
|
-
import { u as T } from "./use-element-state-class-name-
|
|
12
|
-
import { u as k } from "./use-text-input-class-name-
|
|
11
|
+
import { u as T } from "./use-element-state-class-name-Cpdx_lRm.js";
|
|
12
|
+
import { u as k } from "./use-text-input-class-name-CL-b4_Ph.js";
|
|
13
13
|
const y = (s) => {
|
|
14
14
|
var C;
|
|
15
15
|
const { isLoading: o, options: r, isEmpty: l, shouldRender: E, setOptions: c, setIsEmpty: m, setHasInitialDataLoaded: p } = v({
|
|
@@ -2,17 +2,17 @@ import r, { useRef as $, useContext as Se, useMemo as he, useCallback as y, useS
|
|
|
2
2
|
import Fe from "@wix/editor-react-components/AnimatedIcon";
|
|
3
3
|
import { RicosViewer as we } from "@wix/ricos/viewer";
|
|
4
4
|
import F from "classnames";
|
|
5
|
-
import { be as xe, bH as Le, aR as Ue, F as Be, bJ as Oe, bF as Pe, bV as Te, E as me, aH as oe, bN as x, bK as W, bP as Ce, bY as Me, bG as He, X as We, am as Ye, an as Ge, ao as Ze, b as ke, au as Ve, av as pe, M as $e, I as ze, ap as Xe, as as qe, aq as je, at as Je, f as ne, ar as Ke } from "./form-
|
|
5
|
+
import { be as xe, bH as Le, aR as Ue, F as Be, bJ as Oe, bF as Pe, bV as Te, E as me, aH as oe, bN as x, bK as W, bP as Ce, bY as Me, bG as He, X as We, am as Ye, an as Ge, ao as Ze, b as ke, au as Ve, av as pe, M as $e, I as ze, ap as Xe, as as qe, aq as je, at as Je, f as ne, ar as Ke } from "./form-Dnq7LxSl.js";
|
|
6
6
|
import { useHover as Qe, useFocusRing as et, mergeProps as tt } from "react-aria";
|
|
7
7
|
import { RadioGroup as nt, Button as Ie, TextField as at, DropZone as ot, Input as st, FileTrigger as rt, RadioField as lt, RadioButton as it } from "react-aria-components";
|
|
8
8
|
import _e from "signature_pad";
|
|
9
9
|
import { f as I, a as N } from "./find-child-C60k4CxG.js";
|
|
10
|
-
import { D as ct, E as ut } from "./field-error-headless-
|
|
11
|
-
import { L as dt } from "./field-label-headless-
|
|
10
|
+
import { D as ct, E as ut } from "./field-error-headless-BIzDViIC.js";
|
|
11
|
+
import { L as dt } from "./field-label-headless-D_ubs4wp.js";
|
|
12
12
|
import { D as mt } from "./data-hooks-Dkw1pbRj.js";
|
|
13
13
|
import { E as pt } from "./error-icon-hZxQ6DEy.js";
|
|
14
|
-
import { s as ae } from "./field-rac.module-
|
|
15
|
-
import { u as X } from "./use-element-state-class-name-
|
|
14
|
+
import { s as ae } from "./field-rac.module-D0QzJXUv.js";
|
|
15
|
+
import { u as X } from "./use-element-state-class-name-Cpdx_lRm.js";
|
|
16
16
|
const ft = typeof r.useId == "function" ? r.useId : () => $(xe()).current, Et = ({ properties: e }) => e.uploadEnabled === !0, gt = (e, t) => e.fieldType === Be.SIGNATURE && !e.properties.hidden && !e.properties.disabled && !e.properties.readOnly && (t !== "upload" || Et(e)), ht = (e, t) => e.layout.row - t.layout.row || e.layout.column - t.layout.column, bt = (e) => {
|
|
17
17
|
var o;
|
|
18
18
|
const t = (o = Le().signature) == null ? void 0 : o.signatureMode, a = Se(Ue);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import t, { useRef as X, useCallback as y } from "react";
|
|
2
2
|
import J from "@wix/editor-react-components/AnimatedIcon";
|
|
3
3
|
import p from "classnames";
|
|
4
|
-
import { bN as b, bH as K, aF as $, aE as j, aC as q, aB as z, aK as G, aJ as Q, aD as Y, b as Z, aA as tt, aI as et } from "./form-
|
|
4
|
+
import { bN as b, bH as K, aF as $, aE as j, aC as q, aB as z, aK as G, aJ as Q, aD as Y, b as Z, aA as tt, aI as et } from "./form-Dnq7LxSl.js";
|
|
5
5
|
import { ProgressBar as nt, Button as w } from "react-aria-components";
|
|
6
6
|
import { f as c } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { u as x } from "./use-element-state-class-name-
|
|
7
|
+
import { u as x } from "./use-element-state-class-name-Cpdx_lRm.js";
|
|
8
8
|
function ot(e) {
|
|
9
9
|
const s = "calc(50% - 2px)";
|
|
10
10
|
return /* @__PURE__ */ t.createElement(nt, {
|
|
@@ -2,15 +2,15 @@ import { RicosViewer as Q } from "@wix/ricos/viewer";
|
|
|
2
2
|
import F from "classnames";
|
|
3
3
|
import t, { useRef as S, useMemo as I, useState as X, useLayoutEffect as Y, useCallback as x } from "react";
|
|
4
4
|
import { CheckboxGroup as w, TextField as z, Input as B, CheckboxField as J, CheckboxButton as Z } from "react-aria-components";
|
|
5
|
-
import { bN as y, bK as M, bW as U, bY as T, bP as ee, X as te, am as oe, ax as ne, M as ae, I as se, ay as re } from "./form-
|
|
5
|
+
import { bN as y, bK as M, bW as U, bY as T, bP as ee, X as te, am as oe, ax as ne, M as ae, I as se, ay as re } from "./form-Dnq7LxSl.js";
|
|
6
6
|
import { f, a as W } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { E as k, D as H } from "./field-error-headless-
|
|
8
|
-
import { L as P } from "./field-label-headless-
|
|
7
|
+
import { E as k, D as H } from "./field-error-headless-BIzDViIC.js";
|
|
8
|
+
import { L as P } from "./field-label-headless-D_ubs4wp.js";
|
|
9
9
|
import { F as le } from "./fieldset-headless-CD3fds9J.js";
|
|
10
10
|
import { E as ie } from "./error-icon-hZxQ6DEy.js";
|
|
11
|
-
import { s as D } from "./field-rac.module-
|
|
12
|
-
import { u as ce } from "./use-element-state-class-name-
|
|
13
|
-
import { u as ue } from "./use-text-input-class-name-
|
|
11
|
+
import { s as D } from "./field-rac.module-D0QzJXUv.js";
|
|
12
|
+
import { u as ce } from "./use-element-state-class-name-Cpdx_lRm.js";
|
|
13
|
+
import { u as ue } from "./use-text-input-class-name-CL-b4_Ph.js";
|
|
14
14
|
var de = /* @__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
|
})({});
|
|
@@ -2,13 +2,13 @@ import { RicosViewer as N } from "@wix/ricos/viewer";
|
|
|
2
2
|
import o from "classnames";
|
|
3
3
|
import r, { useCallback as S, useRef as T } from "react";
|
|
4
4
|
import { TextField as y, TextArea as O } from "react-aria-components";
|
|
5
|
-
import { bN as p, bK as d, bP as x, bW as h, X as g, am as v, M, I as q } from "./form-
|
|
5
|
+
import { bN as p, bK as d, bP as x, bW as h, X as g, am as v, M, I as q } from "./form-Dnq7LxSl.js";
|
|
6
6
|
import { f as i } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as B, E as P } from "./field-error-headless-
|
|
8
|
-
import { L as V } from "./field-label-headless-
|
|
7
|
+
import { D as B, E as P } from "./field-error-headless-BIzDViIC.js";
|
|
8
|
+
import { L as V } from "./field-label-headless-D_ubs4wp.js";
|
|
9
9
|
import { E as k } from "./error-icon-hZxQ6DEy.js";
|
|
10
|
-
import { s as c } from "./field-rac.module-
|
|
11
|
-
import { u as K } from "./use-text-input-class-name-
|
|
10
|
+
import { s as c } from "./field-rac.module-D0QzJXUv.js";
|
|
11
|
+
import { u as K } from "./use-text-input-class-name-CL-b4_Ph.js";
|
|
12
12
|
const e = ({ children: t }) => {
|
|
13
13
|
const { id: a, value: m, onChange: n, disabled: u, required: s, readOnly: l, onBlur: E, onFocus: b, FieldLayout: I, hasError: f } = p(), { labelId: F } = d(), L = S((A) => {
|
|
14
14
|
n(A);
|
package/dist/component/{text-input-field-rac-CV5_ba0x.js → text-input-field-rac-D3v-e_5R.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-B-DwvpWg.js";
|
|
5
5
|
import { E as o } from "./error-icon-hZxQ6DEy.js";
|
|
6
|
-
import { s as a } from "./field-rac.module-
|
|
7
|
-
import { X as n, am as c, M as E, I as i } from "./form-
|
|
8
|
-
import { u as p } from "./use-text-input-class-name-
|
|
6
|
+
import { s as a } from "./field-rac.module-D0QzJXUv.js";
|
|
7
|
+
import { X as n, am as c, M as E, I as i } from "./form-Dnq7LxSl.js";
|
|
8
|
+
import { u as p } from "./use-text-input-class-name-CL-b4_Ph.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 n, { useRef as v } from "react";
|
|
2
2
|
import { TextField as C, Input as R } from "react-aria-components";
|
|
3
|
-
import { bN as d, bK as p, bP as h, bW as T } from "./form-
|
|
3
|
+
import { bN as d, bK as p, bP as h, bW as T } from "./form-Dnq7LxSl.js";
|
|
4
4
|
import { f as a } from "./find-child-C60k4CxG.js";
|
|
5
|
-
import { D as g, E as x } from "./field-error-headless-
|
|
6
|
-
import { L as B } from "./field-label-headless-
|
|
5
|
+
import { D as g, E as x } from "./field-error-headless-BIzDViIC.js";
|
|
6
|
+
import { L as B } from "./field-label-headless-D_ubs4wp.js";
|
|
7
7
|
const e = ({ children: r }) => {
|
|
8
8
|
const { id: s, value: l, onChange: i, disabled: u, readOnly: t, required: o, hasError: c, onBlur: m, onFocus: b, autoComplete: f, FieldLayout: E } = d(), { labelId: I } = p(), F = a(r, e.Label), y = a(r, e.Input), D = a(r, e.Description), L = a(r, e.Error);
|
|
9
9
|
return /* @__PURE__ */ n.createElement(E, {
|