@wix/form-elements 1.224.0 → 1.226.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-C2ClvRys.js} +5 -5
- package/dist/component/{bookings-address-rac-DDjZGEhk.js → bookings-address-rac-CPQjosbZ.js} +1 -1
- package/dist/component/{bookings-email-rac-Dy2vh3dy.js → bookings-email-rac-DWvVUcBN.js} +1 -1
- package/dist/component/{bookings-first-name-rac-fDHMNznn.js → bookings-first-name-rac-_iG2xJiA.js} +1 -1
- package/dist/component/{bookings-header-rac-DLOeNNQf.js → bookings-header-rac-BbGm_Z8W.js} +1 -1
- package/dist/component/{bookings-last-name-rac-Bx19ROVT.js → bookings-last-name-rac-77Z29aHO.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-8FbvPiv1.js → bookings-login-bar-rac-DfqRpARE.js} +1 -1
- package/dist/component/{bookings-phone-rac-CvPQgtvq.js → bookings-phone-rac-BKoU7X0X.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-CO8bHRpD.js → bookings-rich-text-rac-DgSN4_f0.js} +1 -1
- package/dist/component/calendar-icon-DOeHn3jt.js +19 -0
- package/dist/component/{checkbox-field-rac-tzsGw10P.js → checkbox-field-rac-BLJ3Xb7C.js} +6 -6
- package/dist/component/{checkbox-group-field-headless-CL18dpkq.js → checkbox-group-field-headless-BeU8DG0A.js} +3 -3
- package/dist/component/{checkbox-group-field-rac-BmbxaprJ.js → checkbox-group-field-rac-ClRi6Ljp.js} +6 -6
- package/dist/component/{checkbox-group-rac-shsbUvRc.js → checkbox-group-rac--cM57qqw.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-DnslW6as.js} +1 -1
- package/dist/component/{contacts-address-rac-BoDqJCi1.js → contacts-address-rac-Bpq_0vvi.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-GAujbm-z.js → contacts-birthdate-rac-CB1h6kRm.js} +1 -1
- package/dist/component/{contacts-company-rac-CLcEz04V.js → contacts-company-rac-DvYX4SLX.js} +1 -1
- package/dist/component/{contacts-email-rac-D9q7TJwy.js → contacts-email-rac-sxbgKBUR.js} +1 -1
- package/dist/component/{contacts-first-name-rac-BAecbeNQ.js → contacts-first-name-rac-C4_o2nwv.js} +1 -1
- package/dist/component/{contacts-last-name-rac-Ccrw8BDa.js → contacts-last-name-rac-B3s96wWt.js} +1 -1
- package/dist/component/{contacts-phone-rac-DA2N033V.js → contacts-phone-rac-B5NZeYaI.js} +1 -1
- package/dist/component/{contacts-position-rac-0lAd-nCW.js → contacts-position-rac-CO4Bo4jG.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-DB2ssF-E.js → contacts-subscribe-rac-CWmo3C6c.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-B-Sn92Ho.js → contacts-tax-id-rac-pi_bJeA7.js} +1 -1
- package/dist/component/{date-availability-CtfWLvii.js → date-availability-DL8Xboob.js} +1 -1
- package/dist/component/date-input-field-rac-Di2pwVW7.js +365 -0
- package/dist/component/{date-input-rac-BnWwBe2i.js → date-input-rac-C5xC7fbz.js} +1 -1
- package/dist/component/date-picker-field-rac-DyPkuVVe.js +386 -0
- package/dist/component/{date-picker-rac-BhI6jOQE.js → date-picker-rac-CKNlOGZG.js} +1 -1
- package/dist/component/date-time-input-field-rac-Dk15pWyb.js +507 -0
- package/dist/component/{date-time-input-rac-DAbopLQt.js → date-time-input-rac-oOUelldq.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-D_HLv0tP.js → dext-checkbox-group-rac--jmNDOV2.js} +2 -2
- package/dist/component/{dext-checkbox-rac-BnBTlqEI.js → dext-checkbox-rac-BOjbBRrg.js} +1 -1
- package/dist/component/{dext-date-picker-rac-Co_yfhuz.js → dext-date-picker-rac-CHi5TisB.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-BSpUehb2.js → dext-date-time-input-rac-CcF4ocHx.js} +1 -1
- package/dist/component/{dext-dropdown-rac-DPApx74L.js → dext-dropdown-rac-LLYhuGt_.js} +1 -1
- package/dist/component/{dext-email-rac-Dns6jFl4.js → dext-email-rac-CbC1crzT.js} +1 -1
- package/dist/component/{dext-number-input-rac-DfN-xRID.js → dext-number-input-rac-3-U9Hxre.js} +1 -1
- package/dist/component/{dext-phone-rac-b5Ix3aTQ.js → dext-phone-rac-CdMFXUNf.js} +1 -1
- package/dist/component/{dext-radio-group-rac-BAwIkDsJ.js → dext-radio-group-rac-Bg33r95T.js} +2 -2
- package/dist/component/{dext-rating-input-rac-mwQpCQUI.js → dext-rating-input-rac-DV8jA90b.js} +1 -1
- package/dist/component/{dext-tags-rac-BGmElgw8.js → dext-tags-rac-B-hpvZgE.js} +2 -2
- package/dist/component/{dext-text-area-rac-DN5HPqdg.js → dext-text-area-rac-kBBc0Xjo.js} +1 -1
- package/dist/component/{dext-text-input-rac-DEyDRhQ2.js → dext-text-input-rac-CImXblhX.js} +1 -1
- package/dist/component/{dext-url-input-rac-B1o3BAZE.js → dext-url-input-rac-J-7QABnD.js} +1 -1
- package/dist/component/dismiss-icon-Bw_zbdk_.js +69 -0
- package/dist/component/{donation-rac-Dp6PmATz.js → donation-rac-CvWwng6S.js} +6 -6
- package/dist/component/dropdown-field-rac-Dm9Qs8bh.js +40 -0
- package/dist/component/{dropdown-rac-eqQW-Z9k.js → dropdown-rac-BHqeUIje.js} +1 -1
- package/dist/component/{ecom-address-rac-Q02N1v6i.js → ecom-address-rac-NtuG7Q_T.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-CmqVje9n.js → ecom-subscription-checkbox-rac-DAJnX_RJ.js} +2 -2
- package/dist/component/{email-input-field-rac-HmrdF3g7.js → email-input-field-rac-ompvaCLM.js} +4 -4
- package/dist/component/{events-repeater-rac-BSML2My0.js → events-repeater-rac-kHEFBH7l.js} +6 -6
- package/dist/component/{events-rsvp-rac-0pI3cb2e.js → events-rsvp-rac-R4F9aw6y.js} +4 -4
- package/dist/component/{field-error-headless-B3U_Gymg.js → field-error-headless-o2u5ldAp.js} +1 -1
- package/dist/component/{field-label-headless-Cyy9_5qJ.js → field-label-headless-DvNWYzXc.js} +1 -1
- package/dist/component/field-rac.module-D0QzJXUv.js +32 -0
- package/dist/component/{file-upload-rac-hR9TZqk2.js → file-upload-rac-DlE4dp0D.js} +5 -5
- package/dist/component/{fixed-payment-rac-CghZp6bR.js → fixed-payment-rac-BxsFHhXP.js} +4 -4
- package/dist/component/{form-BmSV4tOz.js → form-Co7SkMqj.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-D56CKAtM.js} +2 -2
- package/dist/component/{header-rac-BNNzF5wQ.js → header-rac-DdYSBcq1.js} +1 -1
- package/dist/component/{image-choice-rac-DLgxkKIZ.js → image-choice-rac-g23R5qLL.js} +5 -5
- package/dist/component/{index-Dg8Fefid.js → index-BmOwghzn.js} +2 -2
- package/dist/component/{index-B8ObIJtL.js → index-C0yPsVXz.js} +4 -4
- package/dist/component/{isObjectLike-oBQcCfqW.js → isObjectLike-mlNAmhLJ.js} +1 -1
- package/dist/component/multiline-address-field-rac-ApBLSWB_.js +1818 -0
- package/dist/component/{multiline-address-rac-8MZkKfqY.js → multiline-address-rac-tdENoXBT.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-CCIuPPeP.js} +5 -5
- package/dist/component/{number-input-rac-2cN_bN_s.js → number-input-rac-DxodjaRb.js} +1 -1
- package/dist/component/{password-rac-CFdC1hoi.js → password-rac-h9U6siGg.js} +5 -5
- package/dist/component/{payment-input-rac-BWElGzuv.js → payment-input-rac-YFXgnLS6.js} +5 -5
- package/dist/component/phone-input-field-rac-B9PUQJUP.js +558 -0
- package/dist/component/{phone-rac-CE9-90C3.js → phone-rac-B1Q9HXAB.js} +1 -1
- package/dist/component/{product-list-rac-QU7Ocwvy.js → product-list-rac-D63k_IAW.js} +6 -6
- package/dist/component/{quiz-radio-group-rac-Hm7B7RlU.js → quiz-radio-group-rac-Bl6DYjmg.js} +1 -1
- package/dist/component/{radio-button-module-classes-CcGF7N_Y.js → radio-button-module-classes-BRHKk6XZ.js} +3 -3
- package/dist/component/{radio-group-field-rac-Bk1JBBts.js → radio-group-field-rac-B8yEmx79.js} +5 -5
- package/dist/component/{radio-group-rac-D_YZnpID.js → radio-group-rac-xX_sfxL0.js} +1 -1
- package/dist/component/{rating-input-field-rac-zvA6QBGo.js → rating-input-field-rac-_p1u5oCL.js} +5 -5
- package/dist/component/{rating-input-rac-CXVQUoi-.js → rating-input-rac-C_i6Nwdz.js} +1 -1
- package/dist/component/{rich-content-rac.module-CnZ4lMBG.js → rich-content-rac.module-BlHWoitq.js} +1 -1
- package/dist/component/{rich-text-field-rac-DYQgVXdV.js → rich-text-field-rac-EiH-NdJm.js} +2 -2
- package/dist/component/{rich-text-rac-Dk8396e-.js → rich-text-rac-eZvghmFV.js} +1 -1
- package/dist/component/service-dropdown-rac-bujnhWyl.js +150 -0
- package/dist/component/{services-multi-choice-rac-D1RiVaLW.js → services-multi-choice-rac-FXrJOBdY.js} +7 -7
- package/dist/component/{signature-rac-DcGKMX84.js → signature-rac-CoVHMOpK.js} +5 -5
- package/dist/component/{submit-button-rac-DbMxQlNH.js → submit-button-rac-B8w753Be.js} +36 -36
- package/dist/component/{tags-field-rac-Bi4lKutL.js → tags-field-rac-iitBlZ8l.js} +6 -6
- package/dist/component/{tags-rac-DDCPnT8M.js → tags-rac-DJSUQlkc.js} +1 -1
- package/dist/component/{text-area-field-rac-cre_K0MD.js → text-area-field-rac-CePWfCbx.js} +5 -5
- package/dist/component/{text-area-rac-61wsMj-j.js → text-area-rac-m18L6Zwk.js} +1 -1
- package/dist/component/{text-input-field-rac-CV5_ba0x.js → text-input-field-rac-BSo_dbkm.js} +4 -4
- package/dist/component/{text-input-headless-kRv3KpSL.js → text-input-headless-D-o9wyGb.js} +3 -3
- package/dist/component/{text-input-rac-CwqZ6NXO.js → text-input-rac-CcGgoWaF.js} +1 -1
- package/dist/component/time-input-rac-DRIFM107.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-Dpn9-sDD.js} +5 -5
- package/dist/component/{url-input-rac-C1CiGrCn.js → url-input-rac-CDSl1LX1.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-COGEk5d6.js → use-dropdown-option-class-name-CHg44uaJ.js} +3 -3
- package/dist/component/use-dropdown-trigger-class-name-Dpwl6OCY.js +137 -0
- package/dist/component/{use-element-state-class-name-pSOX0Y0p.js → use-element-state-class-name-BUu6zq-d.js} +1 -1
- package/dist/component/{use-hoverable-input-class-name-DGEpOAdi.js → use-hoverable-input-class-name-B1V7zCNe.js} +3 -3
- package/dist/component/{use-is-forced-open-dropdown-DPG1e5E9.js → use-is-forced-open-dropdown-BbHOZTaj.js} +1 -1
- package/dist/component/use-native-mobile-input-Ct8ysLL3.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-u-WCeJHQ.js} +1 -1
- package/dist/component/use-text-input-class-name-DfNU2oQf.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-Co7SkMqj.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-DvNWYzXc.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-o2u5ldAp.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-BUu6zq-d.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-Co7SkMqj.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-o2u5ldAp.js";
|
|
6
|
+
import { L as Y } from "./field-label-headless-DvNWYzXc.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-B8yEmx79.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-BRHKk6XZ.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-Co7SkMqj.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-BUu6zq-d.js";
|
|
10
|
+
import { u } from "./use-text-input-class-name-DfNU2oQf.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-_p1u5oCL.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-Co7SkMqj.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-o2u5ldAp.js";
|
|
8
|
+
import { L as X } from "./field-label-headless-DvNWYzXc.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-BUu6zq-d.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-BlHWoitq.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-Co7SkMqj.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-Co7SkMqj.js";
|
|
4
|
+
import { u as C, R as d, s as g, T as p } from "./rich-content-rac.module-BlHWoitq.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-Co7SkMqj.js";
|
|
5
|
+
import { u as Y } from "./use-service-options-base-u-WCeJHQ.js";
|
|
6
|
+
import { D as m, u as v } from "./use-dropdown-trigger-class-name-Dpwl6OCY.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-CHg44uaJ.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-Co7SkMqj.js";
|
|
5
|
+
import { u as v } from "./use-service-options-base-u-WCeJHQ.js";
|
|
6
|
+
import { C as i } from "./checkbox-group-field-headless-BeU8DG0A.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-BUu6zq-d.js";
|
|
12
|
+
import { u as k } from "./use-text-input-class-name-DfNU2oQf.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-Co7SkMqj.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-o2u5ldAp.js";
|
|
11
|
+
import { L as dt } from "./field-label-headless-DvNWYzXc.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-BUu6zq-d.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
|
-
import t, { useRef as
|
|
2
|
-
import
|
|
1
|
+
import t, { useRef as V, useCallback as k } from "react";
|
|
2
|
+
import X from "@wix/editor-react-components/AnimatedIcon";
|
|
3
3
|
import p from "classnames";
|
|
4
|
-
import { bN as b, bH as
|
|
4
|
+
import { bN as b, bH as J, aF as K, aE as $, aC as j, aB as q, aK as G, aJ as Q, aD as Y, b as Z, aA as tt, aI as et } from "./form-Co7SkMqj.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-BUu6zq-d.js";
|
|
8
8
|
function ot(e) {
|
|
9
9
|
const s = "calc(50% - 2px)";
|
|
10
10
|
return /* @__PURE__ */ t.createElement(nt, {
|
|
@@ -51,55 +51,55 @@ const r = ({ children: e }) => {
|
|
|
51
51
|
className: e
|
|
52
52
|
}, s, n, a);
|
|
53
53
|
}, S = ({ className: e, onHoverStart: o, onHoverEnd: s, children: n }) => {
|
|
54
|
-
const { showPreviousButton: a, onPreviousClick:
|
|
54
|
+
const { showPreviousButton: a, onPreviousClick: l, previousText: v } = b();
|
|
55
55
|
if (!a)
|
|
56
56
|
return null;
|
|
57
|
-
const
|
|
57
|
+
const i = c(n, S.Label), m = c(n, S.Icon);
|
|
58
58
|
return /* @__PURE__ */ t.createElement(w, {
|
|
59
59
|
className: e,
|
|
60
60
|
"aria-label": v,
|
|
61
|
-
onPress:
|
|
61
|
+
onPress: l,
|
|
62
62
|
onHoverStart: o,
|
|
63
63
|
onHoverEnd: s
|
|
64
|
-
}, m,
|
|
64
|
+
}, m, i ?? /* @__PURE__ */ t.createElement(D, null));
|
|
65
65
|
}, E = ({ className: e, onHoverStart: o, onHoverEnd: s, children: n }) => {
|
|
66
|
-
const { showNextButton: a, onNextClick:
|
|
66
|
+
const { showNextButton: a, onNextClick: l, nextText: v } = b();
|
|
67
67
|
if (!a)
|
|
68
68
|
return null;
|
|
69
|
-
const
|
|
69
|
+
const i = c(n, E.Label), m = c(n, E.Icon);
|
|
70
70
|
return /* @__PURE__ */ t.createElement(w, {
|
|
71
71
|
className: e,
|
|
72
72
|
"aria-label": v,
|
|
73
|
-
onPress:
|
|
73
|
+
onPress: l,
|
|
74
74
|
onHoverStart: o,
|
|
75
75
|
onHoverEnd: s
|
|
76
|
-
},
|
|
76
|
+
}, i ?? /* @__PURE__ */ t.createElement(W, null), m);
|
|
77
77
|
}, B = ({ className: e, onHoverStart: o, onHoverEnd: s, children: n }) => {
|
|
78
|
-
const { showSubmitButton: a, onSubmitClick:
|
|
78
|
+
const { showSubmitButton: a, onSubmitClick: l, submitText: v, isDisabled: i, isInProgress: m, isSubmitting: C } = b();
|
|
79
79
|
if (!a)
|
|
80
80
|
return null;
|
|
81
81
|
const f = c(n, B.Label), I = c(n, B.Icon), d = c(n, B.Loader), _ = C || m;
|
|
82
82
|
return /* @__PURE__ */ t.createElement(w, {
|
|
83
83
|
className: e,
|
|
84
84
|
"aria-label": v,
|
|
85
|
-
onPress: _ ? void 0 :
|
|
85
|
+
onPress: _ ? void 0 : l,
|
|
86
86
|
onHoverStart: o,
|
|
87
87
|
onHoverEnd: s,
|
|
88
|
-
isDisabled:
|
|
88
|
+
isDisabled: i && !_,
|
|
89
89
|
"aria-disabled": _ || void 0,
|
|
90
90
|
"data-in-progress": m
|
|
91
|
-
}, m && d ? d : /* @__PURE__ */ t.createElement(t.Fragment, null, f ?? /* @__PURE__ */ t.createElement(
|
|
92
|
-
},
|
|
91
|
+
}, m && d ? d : /* @__PURE__ */ t.createElement(t.Fragment, null, f ?? /* @__PURE__ */ t.createElement(y, null), I));
|
|
92
|
+
}, y = ({ className: e }) => {
|
|
93
93
|
const { submitText: o } = b();
|
|
94
94
|
return /* @__PURE__ */ t.createElement("span", {
|
|
95
95
|
className: e
|
|
96
96
|
}, o);
|
|
97
|
-
},
|
|
97
|
+
}, D = ({ className: e }) => {
|
|
98
98
|
const { previousText: o } = b();
|
|
99
99
|
return /* @__PURE__ */ t.createElement("span", {
|
|
100
100
|
className: e
|
|
101
101
|
}, o);
|
|
102
|
-
},
|
|
102
|
+
}, W = ({ className: e }) => {
|
|
103
103
|
const { nextText: o } = b();
|
|
104
104
|
return /* @__PURE__ */ t.createElement("span", {
|
|
105
105
|
className: e
|
|
@@ -107,34 +107,34 @@ const r = ({ children: e }) => {
|
|
|
107
107
|
}, R = ({ children: e }) => /* @__PURE__ */ t.createElement(t.Fragment, null, e), st = ({ className: e }) => /* @__PURE__ */ t.createElement("span", {
|
|
108
108
|
className: e
|
|
109
109
|
}, /* @__PURE__ */ t.createElement(ot, null));
|
|
110
|
-
B.Label =
|
|
110
|
+
B.Label = y;
|
|
111
111
|
B.Icon = R;
|
|
112
112
|
B.Loader = st;
|
|
113
|
-
S.Label =
|
|
113
|
+
S.Label = D;
|
|
114
114
|
S.Icon = R;
|
|
115
|
-
E.Label =
|
|
115
|
+
E.Label = W;
|
|
116
116
|
E.Icon = R;
|
|
117
117
|
g.PreviousButton = S;
|
|
118
118
|
g.NextButton = E;
|
|
119
119
|
g.SubmitButton = B;
|
|
120
120
|
r.SubmitButton = g;
|
|
121
|
-
const at = "
|
|
121
|
+
const at = "_navigationContainer_zmwct_1", rt = "_rowSpacing_zmwct_6", ut = "_navigationButton_zmwct_10", ct = "_nextButton_zmwct_33", lt = "_previousButton_zmwct_59", it = "_navigationButtonHover_zmwct_97", mt = "_button_zmwct_135", Bt = "_buttonNoSteps_zmwct_181", bt = "_buttonWithSteps_zmwct_185", vt = "_buttonHover_zmwct_189", St = "_progress_zmwct_255", u = {
|
|
122
122
|
navigationContainer: at,
|
|
123
123
|
rowSpacing: rt,
|
|
124
124
|
navigationButton: ut,
|
|
125
125
|
nextButton: ct,
|
|
126
|
-
previousButton:
|
|
127
|
-
navigationButtonHover:
|
|
126
|
+
previousButton: lt,
|
|
127
|
+
navigationButtonHover: it,
|
|
128
128
|
button: mt,
|
|
129
129
|
buttonNoSteps: Bt,
|
|
130
130
|
buttonWithSteps: bt,
|
|
131
131
|
buttonHover: vt,
|
|
132
132
|
progress: St
|
|
133
133
|
}, P = () => {
|
|
134
|
-
const e =
|
|
134
|
+
const e = V(null), o = k(() => {
|
|
135
135
|
var n;
|
|
136
136
|
return (n = e.current) == null ? void 0 : n.runAnimationForward();
|
|
137
|
-
}, []), s =
|
|
137
|
+
}, []), s = k(() => {
|
|
138
138
|
var n;
|
|
139
139
|
return (n = e.current) == null ? void 0 : n.runAnimationBackward();
|
|
140
140
|
}, []);
|
|
@@ -144,15 +144,15 @@ const at = "_navigationContainer_16wic_1", rt = "_rowSpacing_16wic_6", ut = "_na
|
|
|
144
144
|
onHoverEnd: s
|
|
145
145
|
};
|
|
146
146
|
}, O = ({ icon: e, iconRef: o, iconClassName: s }) => {
|
|
147
|
-
const { wix: n, className: a, ...
|
|
148
|
-
return
|
|
149
|
-
...
|
|
147
|
+
const { wix: n, className: a, ...l } = e ?? {};
|
|
148
|
+
return l.svg ? /* @__PURE__ */ t.createElement(X, {
|
|
149
|
+
...l,
|
|
150
150
|
ref: o,
|
|
151
151
|
className: p(Z, s, a)
|
|
152
152
|
}) : null;
|
|
153
153
|
}, Et = () => {
|
|
154
|
-
var A, F, h, U, M,
|
|
155
|
-
const { hasSteps: e, showPreviousButton: o, isDisabled: s, isInProgress: n, isSubmitting: a } = b(), v = !s && !(a || n),
|
|
154
|
+
var A, F, h, U, M, z;
|
|
155
|
+
const { hasSteps: e, showPreviousButton: o, isDisabled: s, isInProgress: n, isSubmitting: a } = b(), v = !s && !(a || n), i = J(), m = (F = (A = i.submitButton) == null ? void 0 : A.elementProps) == null ? void 0 : F.icon, C = (U = (h = i.nextButton) == null ? void 0 : h.elementProps) == null ? void 0 : U.icon, f = (z = (M = i.previousButton) == null ? void 0 : M.elementProps) == null ? void 0 : z.icon, I = x({
|
|
156
156
|
globalClasses: Y,
|
|
157
157
|
moduleClasses: {
|
|
158
158
|
base: p(u.navigationButton, u.previousButton),
|
|
@@ -187,11 +187,11 @@ const at = "_navigationContainer_16wic_1", rt = "_rowSpacing_16wic_6", ut = "_na
|
|
|
187
187
|
onHoverStart: T.onHoverStart,
|
|
188
188
|
onHoverEnd: T.onHoverEnd
|
|
189
189
|
}, /* @__PURE__ */ t.createElement(r.SubmitButton.PreviousButton.Label, {
|
|
190
|
-
className:
|
|
190
|
+
className: K
|
|
191
191
|
}), /* @__PURE__ */ t.createElement(r.SubmitButton.PreviousButton.Icon, null, /* @__PURE__ */ t.createElement(O, {
|
|
192
192
|
icon: f,
|
|
193
193
|
iconRef: T.iconRef,
|
|
194
|
-
iconClassName:
|
|
194
|
+
iconClassName: $
|
|
195
195
|
}))), /* @__PURE__ */ t.createElement(r.SubmitButton.NextButton, {
|
|
196
196
|
className: ({ isHovered: N }) => d({
|
|
197
197
|
isSelected: !1,
|
|
@@ -200,11 +200,11 @@ const at = "_navigationContainer_16wic_1", rt = "_rowSpacing_16wic_6", ut = "_na
|
|
|
200
200
|
onHoverStart: L.onHoverStart,
|
|
201
201
|
onHoverEnd: L.onHoverEnd
|
|
202
202
|
}, /* @__PURE__ */ t.createElement(r.SubmitButton.NextButton.Label, {
|
|
203
|
-
className:
|
|
203
|
+
className: j
|
|
204
204
|
}), /* @__PURE__ */ t.createElement(r.SubmitButton.NextButton.Icon, null, /* @__PURE__ */ t.createElement(O, {
|
|
205
205
|
icon: C,
|
|
206
206
|
iconRef: L.iconRef,
|
|
207
|
-
iconClassName:
|
|
207
|
+
iconClassName: q
|
|
208
208
|
}))), /* @__PURE__ */ t.createElement(r.SubmitButton.SubmitButton, {
|
|
209
209
|
className: ({ isHovered: N }) => _({
|
|
210
210
|
isSelected: !1,
|
|
@@ -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-Co7SkMqj.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-o2u5ldAp.js";
|
|
8
|
+
import { L as P } from "./field-label-headless-DvNWYzXc.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-BUu6zq-d.js";
|
|
13
|
+
import { u as ue } from "./use-text-input-class-name-DfNU2oQf.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-Co7SkMqj.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-o2u5ldAp.js";
|
|
8
|
+
import { L as V } from "./field-label-headless-DvNWYzXc.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-DfNU2oQf.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-BSo_dbkm.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-D-o9wyGb.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-Co7SkMqj.js";
|
|
8
|
+
import { u as p } from "./use-text-input-class-name-DfNU2oQf.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-Co7SkMqj.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-o2u5ldAp.js";
|
|
6
|
+
import { L as B } from "./field-label-headless-DvNWYzXc.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, {
|