@wix/form-elements 1.71.0 → 1.73.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-CrzIERuK.js → appointment-rac-Bze1s2XD.js} +5 -5
- package/dist/component/{bookings-address-rac-Dfkpd7m-.js → bookings-address-rac-BcrkXf63.js} +1 -1
- package/dist/component/{bookings-email-rac-qQ7bgngn.js → bookings-email-rac-DYq5RxOP.js} +1 -1
- package/dist/component/{bookings-first-name-rac-plgTTOzk.js → bookings-first-name-rac-ZJ_sQ-01.js} +1 -1
- package/dist/component/{bookings-header-rac-B3LjHXJs.js → bookings-header-rac-Cv8kl01f.js} +1 -1
- package/dist/component/{bookings-last-name-rac-DwDrEmTT.js → bookings-last-name-rac-BmnulSZ6.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-EGRy_-2H.js → bookings-login-bar-rac-Bdi4xs9y.js} +2 -2
- package/dist/component/{bookings-phone-rac-BgViVOU-.js → bookings-phone-rac-C8DjSzUY.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-CDwCdPHa.js → bookings-rich-text-rac-DYu011oy.js} +1 -1
- package/dist/component/{checkbox-field-rac-wF2nX9PW.js → checkbox-field-rac-BH3yEE5j.js} +43 -43
- package/dist/component/{checkbox-group-field-headless-jNzvn7tN.js → checkbox-group-field-headless-D_GG5LHM.js} +3 -3
- package/dist/component/{checkbox-group-field-rac-6PaMjzeg.js → checkbox-group-field-rac-Cj7Erubs.js} +20 -19
- package/dist/component/{checkbox-group-rac-BV9-hfo0.js → checkbox-group-rac-CgW0DnhX.js} +1 -1
- package/dist/component/{checkbox-rac-BbKD6UEX.js → checkbox-rac-DOAYMMsi.js} +1 -1
- package/dist/component/{contacts-address-rac-pDLwXVYR.js → contacts-address-rac-DXJa4J_k.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-BJx3BjlB.js → contacts-birthdate-rac-CVsuRq3B.js} +1 -1
- package/dist/component/{contacts-company-rac-DyKNlrhE.js → contacts-company-rac-b2bwHSNC.js} +1 -1
- package/dist/component/{contacts-email-rac-DmYj37_A.js → contacts-email-rac-DMPcpQ1c.js} +1 -1
- package/dist/component/{contacts-first-name-rac-DeyEyMG0.js → contacts-first-name-rac-CL2BsHuJ.js} +1 -1
- package/dist/component/{contacts-last-name-rac-SwBI_L_7.js → contacts-last-name-rac-hdBsWaqb.js} +1 -1
- package/dist/component/{contacts-phone-rac-BRDIz_ya.js → contacts-phone-rac-DQF6aV9B.js} +1 -1
- package/dist/component/{contacts-position-rac-DDfta8r4.js → contacts-position-rac-CVX-WCfx.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-Bx6b16b3.js → contacts-subscribe-rac-Dl1ot9qw.js} +2 -2
- package/dist/component/{contacts-tax-id-rac-DICtcCkJ.js → contacts-tax-id-rac-0KTXvF81.js} +1 -1
- package/dist/component/{date-availability-DM6KcDU2.js → date-availability-DBljhBgO.js} +1 -1
- package/dist/component/{date-input-field-rac-F_DfMOXT.js → date-input-field-rac-CfflD2Ar.js} +5 -5
- package/dist/component/{date-input-rac-Ho7shG41.js → date-input-rac-fQclCKoa.js} +1 -1
- package/dist/component/{date-picker-field-rac-BEXQ7hyT.js → date-picker-field-rac-BSmFOaH-.js} +6 -6
- package/dist/component/{date-picker-rac-C32DD1bT.js → date-picker-rac-D7I3ramu.js} +1 -1
- package/dist/component/{date-time-input-field-rac-BVbgkFtL.js → date-time-input-field-rac-vjZDQ_Fp.js} +5 -5
- package/dist/component/{date-time-input-rac-DB4xpq5h.js → date-time-input-rac-CDbS0VZR.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-C2s4IBgt.js → dext-checkbox-group-rac-BBiPt6_a.js} +2 -2
- package/dist/component/{dext-checkbox-rac-NyBGiLzP.js → dext-checkbox-rac-Cqp--0SO.js} +1 -1
- package/dist/component/{dext-date-picker-rac-JKcEE1fQ.js → dext-date-picker-rac-5Wft0w9m.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-DtamPz-x.js → dext-date-time-input-rac-Bbs7bgtn.js} +1 -1
- package/dist/component/{dext-dropdown-rac-194Qq0or.js → dext-dropdown-rac-CSvhtqbc.js} +1 -1
- package/dist/component/{dext-email-rac-Chwg6ePI.js → dext-email-rac-BoLeXqyI.js} +1 -1
- package/dist/component/{dext-number-input-rac-DORye-Si.js → dext-number-input-rac-DzaJYTSz.js} +1 -1
- package/dist/component/{dext-phone-rac-jykmsttk.js → dext-phone-rac-BagPg_CT.js} +1 -1
- package/dist/component/{dext-radio-group-rac-MvkExS4d.js → dext-radio-group-rac-B5HSQt7a.js} +2 -2
- package/dist/component/{dext-rating-input-rac-DUsqZg7A.js → dext-rating-input-rac-DrtaAf-E.js} +1 -1
- package/dist/component/{dext-tags-rac-DnMlv2wO.js → dext-tags-rac-Cg4jJ4jr.js} +2 -2
- package/dist/component/{dext-text-area-rac-DGMWNaah.js → dext-text-area-rac-C_t-W7lk.js} +1 -1
- package/dist/component/{dext-text-input-rac-Cv0NkJrp.js → dext-text-input-rac-ChvV21Jf.js} +1 -1
- package/dist/component/{dext-url-input-rac-DpMC8935.js → dext-url-input-rac-DclbSYTr.js} +1 -1
- package/dist/component/donation-rac-FYQIMm5m.js +308 -0
- package/dist/component/{dropdown-field-headless-C_-tm9VD.js → dropdown-field-headless-CTZ-zGqZ.js} +3 -3
- package/dist/component/{dropdown-field-rac-DRKVFHE1.js → dropdown-field-rac-C1KVtxwv.js} +5 -5
- package/dist/component/{dropdown-rac-BLqlMGTK.js → dropdown-rac-CkkDEDje.js} +1 -1
- package/dist/component/{ecom-address-rac-BdlTO9SW.js → ecom-address-rac-BOuugSxX.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-CcF5V54K.js → ecom-subscription-checkbox-rac-IZeMlljb.js} +3 -3
- package/dist/component/{email-input-field-rac-C-lfW9Ua.js → email-input-field-rac-CNzmm1j7.js} +27 -27
- package/dist/component/{events-repeater-rac-sHbYZ-WY.js → events-repeater-rac-CMV0Lmwz.js} +4 -4
- package/dist/component/{events-rsvp-rac-Bx_xn-K0.js → events-rsvp-rac-BmjboAco.js} +3 -3
- package/dist/component/{field-error-headless-DWbRjy6q.js → field-error-headless-DQZ5XAdn.js} +1 -1
- package/dist/component/{field-label-headless-DUWK0CI-.js → field-label-headless-DoxfHHaj.js} +1 -1
- package/dist/component/field-rac.module-Cac83bU5.js +21 -0
- package/dist/component/{file-upload-rac-D9NdbrRq.js → file-upload-rac-YEQ7uXhm.js} +47 -47
- package/dist/component/{fixed-payment-rac-i_hkRpLX.js → fixed-payment-rac-DDufIQBT.js} +5 -5
- package/dist/component/{form-Pr0rklwH.js → form-C6WwBcGP.js} +69 -69
- package/dist/component/{form-element-classes-BSMjWijd.js → form-element-classes-DDKCTFQj.js} +24 -22
- package/dist/component/form-element-keys-D0sEdpFo.js +8 -0
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-C22TlZYz.js → header-field-rac-DGfjrjQC.js} +3 -3
- package/dist/component/{header-rac-CRBMp0xN.js → header-rac-C_JE2cTg.js} +1 -1
- package/dist/component/image-choice-rac-LDLPQwrN.js +147 -0
- package/dist/component/{index-FZEaJpsD.js → index-C2srcuHD.js} +4 -4
- package/dist/component/{index-BJ-kFqI7.js → index-CIOoaQ8Z.js} +2 -2
- package/dist/component/{isObjectLike-DnLDLZFA.js → isObjectLike-E5QfEa1u.js} +1 -1
- package/dist/component/{multiline-address-field-rac-c1vN8M4W.js → multiline-address-field-rac-Biyj2tIN.js} +6 -6
- package/dist/component/{multiline-address-rac-BVd_JUMw.js → multiline-address-rac-BCqCvG7a.js} +1 -1
- package/dist/component/{number-input-field-rac-DXfWTZkC.js → number-input-field-rac-CwUoIbM8.js} +5 -5
- package/dist/component/{number-input-rac-uUl9e8AI.js → number-input-rac-CdYdTDem.js} +1 -1
- package/dist/component/{password-rac-BDJ6HPYo.js → password-rac-D62npVHY.js} +10 -10
- package/dist/component/{payment-input-rac-XRcefuRt.js → payment-input-rac-D4u-3vcW.js} +7 -7
- package/dist/component/{phone-input-field-rac-DHgA6BeE.js → phone-input-field-rac-uHxR3ozd.js} +15 -15
- package/dist/component/{phone-rac-CMtVXoft.js → phone-rac-Bf99_BGi.js} +1 -1
- package/dist/component/{product-list-rac-CBLHOwHX.js → product-list-rac-iRf6Ra7i.js} +5 -5
- package/dist/component/{quiz-radio-group-rac-CAmXql2m.js → quiz-radio-group-rac-CPGS0LEb.js} +2 -2
- package/dist/component/{radio-group-field-rac-DBjgd4cD.js → radio-group-field-rac-BWpTNAbO.js} +3 -3
- package/dist/component/{radio-group-field-rac.module-CqOyiO2g.js → radio-group-field-rac.module-WxU5zxvM.js} +3 -3
- package/dist/component/{radio-group-rac-CrEtErkv.js → radio-group-rac-dA4WZ1Vj.js} +1 -1
- package/dist/component/rating-input-field-rac-CJnFsBvH.js +127 -0
- package/dist/component/{rating-input-rac-CtidC0z2.js → rating-input-rac-DXVYozFV.js} +1 -1
- package/dist/component/{rich-content-rac.module-DX2Jd5w6.js → rich-content-rac.module-DkKwzJS7.js} +1 -1
- package/dist/component/{rich-text-field-rac-CusODU1H.js → rich-text-field-rac-8FWCRrpb.js} +3 -3
- package/dist/component/{rich-text-rac-wq_vA-qU.js → rich-text-rac-OeM_mPRy.js} +1 -1
- package/dist/component/{service-dropdown-rac--YcOnGmq.js → service-dropdown-rac-mvUMpcS_.js} +15 -15
- package/dist/component/{services-multi-choice-rac-D_kSdluR.js → services-multi-choice-rac-DrgUrn_N.js} +10 -10
- package/dist/component/{signature-rac-DBAg8bEo.js → signature-rac-D44U9Uyp.js} +53 -53
- package/dist/component/{submit-button-rac-BW3P99jM.js → submit-button-rac-BqtcgVAn.js} +2 -2
- package/dist/component/tags-field-rac-CemsTKWz.js +207 -0
- package/dist/component/{tags-rac-Bqo0dqEU.js → tags-rac-fVjCf6qo.js} +1 -1
- package/dist/component/{text-area-field-rac-DaWfCdVq.js → text-area-field-rac-BPciZlZb.js} +7 -7
- package/dist/component/{text-area-rac-BVnA5cPV.js → text-area-rac-CRTORdZM.js} +1 -1
- package/dist/component/{text-input-field-rac-Dm6a4jOn.js → text-input-field-rac-CvFoWlRN.js} +3 -3
- package/dist/component/{text-input-headless-fTooOIqx.js → text-input-headless-BQ3TWU9G.js} +3 -3
- package/dist/component/{text-input-rac-DA0we6AY.js → text-input-rac-DSFkEmob.js} +1 -1
- package/dist/component/{time-input-rac-DQ9raFL_.js → time-input-rac-CGgs7ncp.js} +9 -9
- package/dist/component/{url-input-field-rac-BEpbWAVe.js → url-input-field-rac-CqvgTc-F.js} +13 -13
- package/dist/component/{url-input-rac-Du6EqRQX.js → url-input-rac-C45KOwnr.js} +1 -1
- package/dist/component/{use-service-options-base-OMXZXAVb.js → use-service-options-base-D4Zl-iGW.js} +1 -1
- package/package.json +2 -2
- package/dist/component/donation-rac-DeBx8D9a.js +0 -302
- package/dist/component/field-rac.module-DnUIb9Oh.js +0 -21
- package/dist/component/image-choice-rac-cjylrvfO.js +0 -141
- package/dist/component/rating-input-field-rac-BWn0usVp.js +0 -130
- package/dist/component/tags-field-rac-DSdwley7.js +0 -201
|
@@ -2,19 +2,19 @@ import { RicosViewer as G } from "@wix/ricos/viewer";
|
|
|
2
2
|
import C from "classnames";
|
|
3
3
|
import n, { useMemo as w, createContext as We, useContext as De, useState as ye, useRef as B, useCallback as D, useEffect as Ve } from "react";
|
|
4
4
|
import { UNSAFE_PortalProvider as _t } from "react-aria";
|
|
5
|
-
import { ad as bt, c as ft, a9 as Pt, ab as yt, G as Tt, H as qt, u as Mt, z as V, F as K, as as qe, a2 as at, ai as P, af as T, ak as le, ae as Ct, Q as wt, C as he, a0 as xt, a4 as Bt, ap as kt, aj as $t, ao as Ut, a7 as Wt, Y as Vt, a6 as Kt, al as Yt, j as jt } from "./form-
|
|
5
|
+
import { ad as bt, c as ft, a9 as Pt, ab as yt, G as Tt, H as qt, u as Mt, z as V, F as K, as as qe, a2 as at, ai as P, af as T, ak as le, ae as Ct, Q as wt, C as he, a0 as xt, a4 as Bt, ap as kt, aj as $t, ao as Ut, a7 as Wt, Y as Vt, a6 as Kt, al as Yt, j as jt } from "./form-C6WwBcGP.js";
|
|
6
6
|
import { f as E, a as h } from "./find-child-C60k4CxG.js";
|
|
7
7
|
import { F as Ht, V as Jt } from "./headless-styles-CmcyA_pi.js";
|
|
8
8
|
import { TextField as Ce, Input as ie, ComboBoxStateContext as It, ComboBox as Re, Popover as Ae, ListBox as _e, ListBoxItem as Pe, Group as Lt, Button as Nt } from "react-aria-components";
|
|
9
|
-
import { D as ce, E as de } from "./field-error-headless-
|
|
10
|
-
import { L as ue } from "./field-label-headless-
|
|
11
|
-
import { e as zt, c as Gt, a as Xt, r as Ot } from "./isObjectLike-
|
|
9
|
+
import { D as ce, E as de } from "./field-error-headless-DQZ5XAdn.js";
|
|
10
|
+
import { L as ue } from "./field-label-headless-DoxfHHaj.js";
|
|
11
|
+
import { e as zt, c as Gt, a as Xt, r as Ot } from "./isObjectLike-E5QfEa1u.js";
|
|
12
12
|
import { u as Qt } from "./use-invoke-callback-UH73A_J3.js";
|
|
13
13
|
import { C as lt } from "./chevron-down-icon-CcpVm6B-.js";
|
|
14
14
|
import { E as X } from "./error-icon-hZxQ6DEy.js";
|
|
15
15
|
import { H as fe } from "./custom-focus-class-_483Pkwp.js";
|
|
16
|
-
import { s as f } from "./field-rac.module-
|
|
17
|
-
import { z as Q,
|
|
16
|
+
import { s as f } from "./field-rac.module-Cac83bU5.js";
|
|
17
|
+
import { z as Q, R as Z, y as ee, C as ge, q as te, j as ne } from "./form-element-classes-DDKCTFQj.js";
|
|
18
18
|
const Zt = (e, t, o) => {
|
|
19
19
|
var a, l, i, s;
|
|
20
20
|
const r = (a = e.steps) == null ? void 0 : a.map((d) => {
|
package/dist/component/{number-input-field-rac-DXfWTZkC.js → number-input-field-rac-CwUoIbM8.js}
RENAMED
|
@@ -2,15 +2,15 @@ import { RicosViewer as v } from "@wix/ricos/viewer";
|
|
|
2
2
|
import m from "classnames";
|
|
3
3
|
import r, { useState as U, useCallback as j, useEffect as z, useRef as Q } from "react";
|
|
4
4
|
import { NumberField as $, Input as G } from "react-aria-components";
|
|
5
|
-
import { ai as C, af as S, as as H, ak as J } from "./form-
|
|
5
|
+
import { ai as C, af as S, as as H, ak as J } from "./form-C6WwBcGP.js";
|
|
6
6
|
import { f as d } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as K, E as W } from "./field-error-headless-
|
|
8
|
-
import { L as X } from "./field-label-headless-
|
|
7
|
+
import { D as K, E as W } from "./field-error-headless-DQZ5XAdn.js";
|
|
8
|
+
import { L as X } from "./field-label-headless-DoxfHHaj.js";
|
|
9
9
|
import { g as Y, c as Z } from "./numeric-input-utils-CuBMi4-a.js";
|
|
10
10
|
import { u as w } from "./use-invoke-callback-UH73A_J3.js";
|
|
11
11
|
import { E as ee } from "./error-icon-hZxQ6DEy.js";
|
|
12
|
-
import { s as i } from "./field-rac.module-
|
|
13
|
-
import { z as re,
|
|
12
|
+
import { s as i } from "./field-rac.module-Cac83bU5.js";
|
|
13
|
+
import { z as re, R as te, y as ne, q as ae, j as se } from "./form-element-classes-DDKCTFQj.js";
|
|
14
14
|
const e = ({ children: n }) => {
|
|
15
15
|
var D, L, R;
|
|
16
16
|
const { id: a, value: s, onChange: l, disabled: p, required: E, readOnly: o, onBlur: b, onFocus: f, FieldLayout: u, hasError: c, validation: t } = C(), { labelId: y } = S(), F = ((D = t == null ? void 0 : t.number) == null ? void 0 : D.multipleOf) || 1, A = (L = t == null ? void 0 : t.number) == null ? void 0 : L.maximum, q = (R = t == null ? void 0 : t.number) == null ? void 0 : R.minimum, M = _(s), [T, I] = U(M), V = w(b), g = d(n, e.Label), h = d(n, e.Input), k = d(n, e.Description), x = d(n, e.Error), B = j((N) => {
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import e, { useState as h, useRef as N } from "react";
|
|
2
2
|
import { RicosViewer as O } from "@wix/ricos/viewer";
|
|
3
3
|
import d from "classnames";
|
|
4
|
-
import { ai as p, af as I, ak as x, as as A } from "./form-
|
|
4
|
+
import { ai as p, af as I, ak as x, as as A } from "./form-C6WwBcGP.js";
|
|
5
5
|
import { TextField as B, Group as P, Input as V, Button as v } from "react-aria-components";
|
|
6
6
|
import { f as E, a as g } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as M, E as k } from "./field-error-headless-
|
|
8
|
-
import { L as q } from "./field-label-headless-
|
|
7
|
+
import { D as M, E as k } from "./field-error-headless-DQZ5XAdn.js";
|
|
8
|
+
import { L as q } from "./field-label-headless-DoxfHHaj.js";
|
|
9
9
|
import { E as U } from "./error-icon-hZxQ6DEy.js";
|
|
10
10
|
import { H as j } from "./custom-focus-class-_483Pkwp.js";
|
|
11
|
-
import { s as u } from "./field-rac.module-
|
|
12
|
-
import { z as H,
|
|
11
|
+
import { s as u } from "./field-rac.module-Cac83bU5.js";
|
|
12
|
+
import { z as H, R as W, y as Z, q as z, j as G } from "./form-element-classes-DDKCTFQj.js";
|
|
13
13
|
const t = ({ children: r, className: o }) => {
|
|
14
|
-
const { id: i, value: s, onChange: c, disabled: l, readOnly: m, required: n, hasError: a, onBlur: f, onFocus: _, FieldLayout: y } = p(), { labelId:
|
|
14
|
+
const { id: i, value: s, onChange: c, disabled: l, readOnly: m, required: n, hasError: a, onBlur: f, onFocus: _, FieldLayout: y } = p(), { labelId: R } = I(), [C, F] = h(!1), L = E(r, t.Label), D = E(r, t.Control), T = E(r, t.Description), S = E(r, t.Error);
|
|
15
15
|
return /* @__PURE__ */ e.createElement(y, {
|
|
16
16
|
fieldId: i,
|
|
17
|
-
renderLabel: () =>
|
|
17
|
+
renderLabel: () => L,
|
|
18
18
|
renderInput: () => /* @__PURE__ */ e.createElement(B, {
|
|
19
|
-
"aria-labelledby":
|
|
19
|
+
"aria-labelledby": R,
|
|
20
20
|
value: s ?? "",
|
|
21
21
|
onChange: c,
|
|
22
22
|
isDisabled: l,
|
|
@@ -27,8 +27,8 @@ const t = ({ children: r, className: o }) => {
|
|
|
27
27
|
onFocus: _,
|
|
28
28
|
className: o
|
|
29
29
|
}, g(D, {
|
|
30
|
-
isVisible:
|
|
31
|
-
onToggleVisibility: () =>
|
|
30
|
+
isVisible: C,
|
|
31
|
+
onToggleVisibility: () => F((w) => !w)
|
|
32
32
|
})),
|
|
33
33
|
renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, T, S)
|
|
34
34
|
});
|
|
@@ -2,16 +2,16 @@ import r, { useCallback as V, useRef as z } from "react";
|
|
|
2
2
|
import { RicosViewer as Q } from "@wix/ricos/viewer";
|
|
3
3
|
import i from "classnames";
|
|
4
4
|
import { TextField as w, Group as J, Input as K } from "react-aria-components";
|
|
5
|
-
import { ai as D, af as S, ab as x, as as W, ak as X } from "./form-
|
|
5
|
+
import { ai as D, af as S, ab as x, as as W, ak as X } from "./form-C6WwBcGP.js";
|
|
6
6
|
import { f as m } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as Y, E as Z } from "./field-error-headless-
|
|
8
|
-
import { L as ee } from "./field-label-headless-
|
|
7
|
+
import { D as Y, E as Z } from "./field-error-headless-DQZ5XAdn.js";
|
|
8
|
+
import { L as ee } from "./field-label-headless-DoxfHHaj.js";
|
|
9
9
|
import { f as R, g as re } from "./payment-field-utils-DobiK5Xh.js";
|
|
10
10
|
import { u as te } from "./use-synced-display-value-DcAxdn3M.js";
|
|
11
11
|
import { E as ne } from "./error-icon-hZxQ6DEy.js";
|
|
12
12
|
import { H as ae } from "./custom-focus-class-_483Pkwp.js";
|
|
13
|
-
import { s as u } from "./field-rac.module-
|
|
14
|
-
import { z as se,
|
|
13
|
+
import { s as u } from "./field-rac.module-Cac83bU5.js";
|
|
14
|
+
import { z as se, R as oe, y as le, q as ce, j as ie } from "./form-element-classes-DDKCTFQj.js";
|
|
15
15
|
function ue(e, t) {
|
|
16
16
|
return {
|
|
17
17
|
productId: e.id,
|
|
@@ -26,8 +26,8 @@ function h(e) {
|
|
|
26
26
|
return Number.isNaN(t) ? void 0 : t;
|
|
27
27
|
}
|
|
28
28
|
const n = ({ children: e }) => {
|
|
29
|
-
var O, A,
|
|
30
|
-
const { id: t, value: a, onChange: s, disabled: p, readOnly: d, required: y, hasError: b, onBlur: o, onFocus: E, FieldLayout: M, validation: _ } = D(), { labelId: q, prefixId: G } = S(), { regionalFormat: c } = x(), N = (
|
|
29
|
+
var O, A, g, P;
|
|
30
|
+
const { id: t, value: a, onChange: s, disabled: p, readOnly: d, required: y, hasError: b, onBlur: o, onFocus: E, FieldLayout: M, validation: _ } = D(), { labelId: q, prefixId: G } = S(), { regionalFormat: c } = x(), N = (g = (A = (O = _ == null ? void 0 : _.predefined) == null ? void 0 : O.paymentOptions) == null ? void 0 : A.products) == null ? void 0 : g[0], C = (P = a == null ? void 0 : a.at(0)) == null ? void 0 : P.price, [F, I] = te({
|
|
31
31
|
sourceValue: C,
|
|
32
32
|
format: (l) => R(String(l ?? ""), c),
|
|
33
33
|
regionalFormat: c
|
package/dist/component/{phone-input-field-rac-DHgA6BeE.js → phone-input-field-rac-uHxR3ozd.js}
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { RicosViewer as ye } from "@wix/ricos/viewer";
|
|
2
2
|
import b from "classnames";
|
|
3
|
-
import t, { useMemo as B, useState as q, useRef as
|
|
4
|
-
import { a2 as Ee, as as
|
|
3
|
+
import t, { useMemo as B, useState as q, useRef as v, useEffect as w, useCallback as Z, createContext as te, useContext as V } from "react";
|
|
4
|
+
import { a2 as Ee, as as P, ab as ne, ar as fe, ai as M, af as oe, ak as he } from "./form-C6WwBcGP.js";
|
|
5
5
|
import { UNSAFE_PortalProvider as ge } from "react-aria";
|
|
6
|
-
import { Dialog as re, OverlayTriggerStateContext as be, ModalOverlay as _e, Modal as Ne, SearchField as Oe, ListBoxItem as Se, Group as Q, DialogTrigger as Le, Select as Ie, Input as ae, ListBox as
|
|
6
|
+
import { Dialog as re, OverlayTriggerStateContext as be, ModalOverlay as _e, Modal as Ne, SearchField as Oe, ListBoxItem as Se, Group as Q, DialogTrigger as Le, Select as Ie, Input as ae, ListBox as ve, Autocomplete as Pe } from "react-aria-components";
|
|
7
7
|
import { f as h, a as ce } from "./find-child-C60k4CxG.js";
|
|
8
|
-
import { D as Fe, E as De } from "./field-error-headless-
|
|
9
|
-
import { L as Re } from "./field-label-headless-
|
|
8
|
+
import { D as Fe, E as De } from "./field-error-headless-DQZ5XAdn.js";
|
|
9
|
+
import { L as Re } from "./field-label-headless-DoxfHHaj.js";
|
|
10
10
|
import { N as xe, S as Be } from "./non-modal-popover-DtIMXHbe.js";
|
|
11
11
|
import { u as Me } from "./use-invoke-callback-UH73A_J3.js";
|
|
12
12
|
import se, { AsYouType as $e, isValidPhoneNumber as Ae, isSupportedCountry as Te } from "libphonenumber-js";
|
|
@@ -15,8 +15,8 @@ import { C as W } from "./calling-country-codes-PyWuOTmF.js";
|
|
|
15
15
|
import { C as we } from "./chevron-down-icon-CcpVm6B-.js";
|
|
16
16
|
import { E as Ue } from "./error-icon-hZxQ6DEy.js";
|
|
17
17
|
import { H as J } from "./custom-focus-class-_483Pkwp.js";
|
|
18
|
-
import { s as _ } from "./field-rac.module-
|
|
19
|
-
import { z as ke,
|
|
18
|
+
import { s as _ } from "./field-rac.module-Cac83bU5.js";
|
|
19
|
+
import { z as ke, R as qe, y as Ve, C as ze, q as Ge, j as He } from "./form-element-classes-DDKCTFQj.js";
|
|
20
20
|
function X(e) {
|
|
21
21
|
const n = e ? se(e) : void 0, r = n == null ? void 0 : n.country;
|
|
22
22
|
if (r)
|
|
@@ -42,7 +42,7 @@ function ee(e, n) {
|
|
|
42
42
|
return e;
|
|
43
43
|
}
|
|
44
44
|
function Ye() {
|
|
45
|
-
const { t: e } =
|
|
45
|
+
const { t: e } = P(), { language: n } = ne();
|
|
46
46
|
return B(() => Object.keys(W).reduce((o, a) => {
|
|
47
47
|
const c = W[a], l = z(c), u = e(`locale-dataset.countries.${c.toUpperCase()}`);
|
|
48
48
|
return l && Te(a) && o.push({
|
|
@@ -67,7 +67,7 @@ function k(e, n) {
|
|
|
67
67
|
return e.toLowerCase().includes(n.toLowerCase());
|
|
68
68
|
}
|
|
69
69
|
function Ze({ value: e, defaultCountryCode: n, allowedCountryCodes: r, onChange: o }) {
|
|
70
|
-
const [a, c] = q(e || ""), l =
|
|
70
|
+
const [a, c] = q(e || ""), l = v(U(e ?? null) ?? ""), [u, i] = q(n);
|
|
71
71
|
fe(() => {
|
|
72
72
|
c(""), l.current = "", i(n), o("");
|
|
73
73
|
});
|
|
@@ -177,7 +177,7 @@ const le = /* @__PURE__ */ te(null), N = () => {
|
|
|
177
177
|
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, D, T)
|
|
178
178
|
}));
|
|
179
179
|
}, Y = ({ children: e, className: n }) => {
|
|
180
|
-
const { inputId: r, labelId: o } = oe(), { hasError: a, disabled: c, readOnly: l } = M(), { t: u } =
|
|
180
|
+
const { inputId: r, labelId: o } = oe(), { hasError: a, disabled: c, readOnly: l } = M(), { t: u } = P(), { selectedCountryCode: i, countries: m } = N(), C = `${r}-country`, p = i ? m.find((O) => O.shortCountryCode === i) : void 0, d = p && z(p.longCountryCode) || "", f = u("field.phone.country-code.aria-label"), y = p ? `${f}, ${p.countryName}, ${d}` : f;
|
|
181
181
|
return /* @__PURE__ */ t.createElement(Be, {
|
|
182
182
|
isDisabled: c || l,
|
|
183
183
|
id: C,
|
|
@@ -237,7 +237,7 @@ const g = ({ children: e, className: n, "aria-label": r, placement: o, offset: a
|
|
|
237
237
|
}
|
|
238
238
|
}, e)))));
|
|
239
239
|
}, ie = ({ children: e, listBoxProps: n }) => {
|
|
240
|
-
const { countries: r } = N(), o = h(e, g.Option), a = h(e, g.Search), c = h(e, g.EmptyState), l = /* @__PURE__ */ t.createElement(
|
|
240
|
+
const { countries: r } = N(), o = h(e, g.Option), a = h(e, g.Search), c = h(e, g.EmptyState), l = /* @__PURE__ */ t.createElement(ve, {
|
|
241
241
|
...n,
|
|
242
242
|
renderEmptyState: c ? () => c : void 0
|
|
243
243
|
}, r.map((u) => {
|
|
@@ -250,7 +250,7 @@ const g = ({ children: e, className: n, "aria-label": r, placement: o, offset: a
|
|
|
250
250
|
longCountryCode: u.longCountryCode
|
|
251
251
|
});
|
|
252
252
|
}));
|
|
253
|
-
return a ? /* @__PURE__ */ t.createElement(
|
|
253
|
+
return a ? /* @__PURE__ */ t.createElement(Pe, {
|
|
254
254
|
filter: (u, i, m) => {
|
|
255
255
|
const C = r.find((p) => p.shortCountryCode === m.key);
|
|
256
256
|
return !!C && Ke(C, i);
|
|
@@ -309,7 +309,7 @@ $.Name = de;
|
|
|
309
309
|
$.Code = pe;
|
|
310
310
|
g.Option = $;
|
|
311
311
|
const tt = ({ className: e }) => {
|
|
312
|
-
const { t: n } =
|
|
312
|
+
const { t: n } = P(), { inputId: r, ariaDescribedBy: o } = oe(), { id: a, placeholder: c, disabled: l, readOnly: u, required: i, label: m, hasError: C } = M(), { currentValue: p, handlePhoneChange: d } = N(), f = v(null);
|
|
313
313
|
return he(() => {
|
|
314
314
|
var y;
|
|
315
315
|
(y = f.current) == null || y.focus({
|
|
@@ -331,7 +331,7 @@ const tt = ({ className: e }) => {
|
|
|
331
331
|
className: e
|
|
332
332
|
});
|
|
333
333
|
}, nt = ({ children: e, className: n }) => {
|
|
334
|
-
const r =
|
|
334
|
+
const r = v(null), o = v(null), a = v(!1), { disabled: c, readOnly: l, required: u, hasError: i, showFlag: m, onFocus: C, onBlur: p } = M(), d = Me(p), { t: f } = P(), { selectedCountryCode: y, handleCountryCodeChange: O, countries: S } = N(), A = h(e, s.CountryButton), F = h(e, s.CountryOptions.Modal), T = F ?? h(e, s.CountryOptions.Popover), D = h(e, s.PhoneNumber), R = {
|
|
335
335
|
onFocus: () => {
|
|
336
336
|
a.current || (a.current = !0, C == null || C());
|
|
337
337
|
},
|
|
@@ -421,7 +421,7 @@ const ot = (e) => /* @__PURE__ */ t.createElement("svg", {
|
|
|
421
421
|
className: E.chevron,
|
|
422
422
|
"aria-hidden": "true"
|
|
423
423
|
}, /* @__PURE__ */ t.createElement(we, null)), qt = () => {
|
|
424
|
-
const { t: e } =
|
|
424
|
+
const { t: e } = P(), { isMobile: n, PortalContainer: r } = ne(), o = /* @__PURE__ */ t.createElement(s.CountryOptions.Search, {
|
|
425
425
|
className: E.countrySearchContainer,
|
|
426
426
|
"aria-label": e("field.phone.country-search-input.aria-label")
|
|
427
427
|
}, /* @__PURE__ */ t.createElement(rt, {
|
|
@@ -2,16 +2,16 @@ import t, { useMemo as H, useCallback as x, useRef as B } from "react";
|
|
|
2
2
|
import { RicosViewer as $ } from "@wix/ricos/viewer";
|
|
3
3
|
import _ from "classnames";
|
|
4
4
|
import { CheckboxField as K, CheckboxButton as j, NumberField as J, Group as W, Button as U, Input as X } from "react-aria-components";
|
|
5
|
-
import { ai as M, af as Y, ab as w, as as Z, ak as ee } from "./form-
|
|
5
|
+
import { ai as M, af as Y, ab as w, as as Z, ak as ee } from "./form-C6WwBcGP.js";
|
|
6
6
|
import { f as b, a as L } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { L as te, g as ne } from "./field-label-headless-
|
|
7
|
+
import { L as te, g as ne } from "./field-label-headless-DoxfHHaj.js";
|
|
8
8
|
import { f as ae } from "./format-currency-BwShJ9vM.js";
|
|
9
|
-
import { D as oe, E as re } from "./field-error-headless-
|
|
9
|
+
import { D as oe, E as re } from "./field-error-headless-DQZ5XAdn.js";
|
|
10
10
|
import { F as ie } from "./fieldset-headless-CD3fds9J.js";
|
|
11
11
|
import { g as le } from "./payment-field-utils-DobiK5Xh.js";
|
|
12
12
|
import { E as se } from "./error-icon-hZxQ6DEy.js";
|
|
13
|
-
import { s as S } from "./field-rac.module-
|
|
14
|
-
import { z as ce,
|
|
13
|
+
import { s as S } from "./field-rac.module-Cac83bU5.js";
|
|
14
|
+
import { z as ce, R as ue, D as me, H as pe, G as de, E as Ee, y as ye, q as fe, j as _e } from "./form-element-classes-DDKCTFQj.js";
|
|
15
15
|
import { o as Q } from "./options-rac.module-KM-VT_KY.js";
|
|
16
16
|
var be = /* @__PURE__ */ (function(e) {
|
|
17
17
|
return e.crop = "CROP", e.fit = "FIT", e;
|
package/dist/component/{quiz-radio-group-rac-CAmXql2m.js → quiz-radio-group-rac-CPGS0LEb.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _ from "react";
|
|
2
|
-
import { R } from "./radio-group-field-rac-
|
|
3
|
-
import { K as o, J as r, I as O } from "./form-element-classes-
|
|
2
|
+
import { R } from "./radio-group-field-rac-BWpTNAbO.js";
|
|
3
|
+
import { K as o, J as r, I as O } from "./form-element-classes-DDKCTFQj.js";
|
|
4
4
|
const t = () => /* @__PURE__ */ _.createElement(R, {
|
|
5
5
|
classes: {
|
|
6
6
|
container: O,
|
package/dist/component/{radio-group-field-rac-DBjgd4cD.js → radio-group-field-rac-BWpTNAbO.js}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { RicosViewer as s } from "@wix/ricos/viewer";
|
|
2
2
|
import a from "classnames";
|
|
3
3
|
import e from "react";
|
|
4
|
-
import { R as t, s as r } from "./radio-group-field-rac.module-
|
|
4
|
+
import { R as t, s as r } from "./radio-group-field-rac.module-WxU5zxvM.js";
|
|
5
5
|
import { E as m } from "./error-icon-hZxQ6DEy.js";
|
|
6
|
-
import { s as l } from "./field-rac.module-
|
|
7
|
-
import { z as c,
|
|
6
|
+
import { s as l } from "./field-rac.module-Cac83bU5.js";
|
|
7
|
+
import { z as c, R as i, N as E, M as _, L as R, y as p, q as O, j as L } from "./form-element-classes-DDKCTFQj.js";
|
|
8
8
|
const I = ({ content: o, locale: n }) => /* @__PURE__ */ e.createElement(s, {
|
|
9
9
|
content: o,
|
|
10
10
|
locale: n
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import s, { useRef as y, useState as V, useEffect as S, useCallback as B } from "react";
|
|
2
2
|
import { RadioGroup as T, RadioField as k, RadioButton as G, TextField as M, Input as P } from "react-aria-components";
|
|
3
|
-
import { ai as C, af as $, as as F, ab as q, ak as x } from "./form-
|
|
3
|
+
import { ai as C, af as $, as as F, ab as q, ak as x } from "./form-C6WwBcGP.js";
|
|
4
4
|
import { f as d, a as g } from "./find-child-C60k4CxG.js";
|
|
5
|
-
import { D as U, E as A } from "./field-error-headless-
|
|
6
|
-
import { L as H } from "./field-label-headless-
|
|
5
|
+
import { D as U, E as A } from "./field-error-headless-DQZ5XAdn.js";
|
|
6
|
+
import { L as H } from "./field-label-headless-DoxfHHaj.js";
|
|
7
7
|
import { N as j } from "./options-layout-constants-DEfIEJWD.js";
|
|
8
8
|
const L = "Other", w = (e, t) => e == null ? void 0 : e.find((o) => (o.value ?? o.label) === t), R = (e, t) => !!t && !w(e, t), z = (e, t) => {
|
|
9
9
|
const a = t ? t.length + 2 : 0;
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { RicosViewer as O } from "@wix/ricos/viewer";
|
|
2
|
+
import c from "classnames";
|
|
3
|
+
import e, { useCallback as h, useState as y, useRef as A } from "react";
|
|
4
|
+
import { ai as b, af as F, as as T, ac as M } from "./form-C6WwBcGP.js";
|
|
5
|
+
import { RadioGroup as P, RadioField as w, RadioButton as B } from "react-aria-components";
|
|
6
|
+
import { f as E, a as q } from "./find-child-C60k4CxG.js";
|
|
7
|
+
import { D as x, E as G } from "./field-error-headless-DQZ5XAdn.js";
|
|
8
|
+
import { L as H } from "./field-label-headless-DoxfHHaj.js";
|
|
9
|
+
import { E as k } from "./error-icon-hZxQ6DEy.js";
|
|
10
|
+
import { s as p } from "./field-rac.module-Cac83bU5.js";
|
|
11
|
+
import { z, R as Q, O as j, P as K, Q as U, q as Y, j as Z } from "./form-element-classes-DDKCTFQj.js";
|
|
12
|
+
import { R as J } from "./form-element-keys-D0sEdpFo.js";
|
|
13
|
+
const t = ({ children: a }) => {
|
|
14
|
+
const { id: r, value: n, onChange: i, disabled: o, readOnly: d, required: l, hasError: m, onBlur: u, onFocus: R, FieldLayout: C } = b(), { labelId: L } = F(), _ = h((D) => i(Number(D)), [
|
|
15
|
+
i
|
|
16
|
+
]), f = E(a, t.Label), s = E(a, t.Ratings), g = E(a, t.Description), v = E(a, t.Error);
|
|
17
|
+
return /* @__PURE__ */ e.createElement(C, {
|
|
18
|
+
fieldId: r,
|
|
19
|
+
renderLabel: () => f,
|
|
20
|
+
renderInput: () => /* @__PURE__ */ e.createElement(P, {
|
|
21
|
+
"aria-labelledby": L,
|
|
22
|
+
value: n ? String(n) : void 0,
|
|
23
|
+
onChange: _,
|
|
24
|
+
isDisabled: o,
|
|
25
|
+
isReadOnly: d,
|
|
26
|
+
isRequired: l,
|
|
27
|
+
isInvalid: m,
|
|
28
|
+
onBlur: u,
|
|
29
|
+
onFocus: R,
|
|
30
|
+
orientation: "horizontal"
|
|
31
|
+
}, s),
|
|
32
|
+
renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, v, g)
|
|
33
|
+
});
|
|
34
|
+
}, I = ({ children: a, className: r, getReactionLabel: n }) => {
|
|
35
|
+
const { value: i, readOnly: o, hasError: d } = b(), { inputId: l, ariaDescribedBy: m } = F(), [u, R] = y(), C = A(null), L = E(a, I.Rating), _ = [
|
|
36
|
+
"1",
|
|
37
|
+
"2",
|
|
38
|
+
"3",
|
|
39
|
+
"4",
|
|
40
|
+
"5"
|
|
41
|
+
], f = (s) => u && !o ? u >= s : !!i && i >= Number(s);
|
|
42
|
+
return /* @__PURE__ */ e.createElement("div", {
|
|
43
|
+
ref: C,
|
|
44
|
+
id: l,
|
|
45
|
+
"aria-describedby": m,
|
|
46
|
+
className: r,
|
|
47
|
+
"data-invalid": d,
|
|
48
|
+
"data-readonly": o
|
|
49
|
+
}, _.map((s) => q(L, {
|
|
50
|
+
key: s,
|
|
51
|
+
value: s,
|
|
52
|
+
isSelected: f(s),
|
|
53
|
+
onHoverChange: (g) => R(g ? s : void 0),
|
|
54
|
+
label: n == null ? void 0 : n(Number(s))
|
|
55
|
+
})));
|
|
56
|
+
}, W = {
|
|
57
|
+
border: 0,
|
|
58
|
+
clipPath: "inset(50%)",
|
|
59
|
+
height: 1,
|
|
60
|
+
margin: -1,
|
|
61
|
+
overflow: "hidden",
|
|
62
|
+
padding: 0,
|
|
63
|
+
position: "absolute",
|
|
64
|
+
width: 1,
|
|
65
|
+
whiteSpace: "nowrap"
|
|
66
|
+
}, N = ({ className: a, children: r, ...n }) => {
|
|
67
|
+
const { value: i, isSelected: o, onHoverChange: d, label: l } = n, m = typeof a == "function" ? a({
|
|
68
|
+
isSelected: o
|
|
69
|
+
}) : a;
|
|
70
|
+
return /* @__PURE__ */ e.createElement(w, {
|
|
71
|
+
value: i
|
|
72
|
+
}, /* @__PURE__ */ e.createElement(B, {
|
|
73
|
+
className: m,
|
|
74
|
+
"data-active": o || void 0,
|
|
75
|
+
onHoverChange: d
|
|
76
|
+
}, typeof r == "function" ? r({
|
|
77
|
+
isSelected: o
|
|
78
|
+
}) : r, l ? /* @__PURE__ */ e.createElement("span", {
|
|
79
|
+
style: W
|
|
80
|
+
}, l) : null));
|
|
81
|
+
};
|
|
82
|
+
I.Rating = N;
|
|
83
|
+
t.Label = H;
|
|
84
|
+
t.Ratings = I;
|
|
85
|
+
t.Rating = N;
|
|
86
|
+
t.Description = x;
|
|
87
|
+
t.Error = G;
|
|
88
|
+
const X = (a) => /* @__PURE__ */ e.createElement("svg", {
|
|
89
|
+
viewBox: "0 0 32 32",
|
|
90
|
+
width: 32,
|
|
91
|
+
height: 32,
|
|
92
|
+
fill: "currentColor",
|
|
93
|
+
"aria-hidden": "true",
|
|
94
|
+
...a
|
|
95
|
+
}, /* @__PURE__ */ e.createElement("path", {
|
|
96
|
+
fillRule: "evenodd",
|
|
97
|
+
d: "M28.6265,13.6325 C28.9655,13.3015 29.0845,12.8175 28.9385,12.3665 C28.7925,11.9165 28.4105,11.5945 27.9415,11.5265 L20.5785,10.4565 C20.5015,10.4445 20.4345,10.3965 20.4005,10.3275 L17.1075,3.6545 L17.1075,3.6535 C16.8975,3.2295 16.4735,2.9655 16.0005,2.9655 L15.9995,2.9655 C15.5255,2.9655 15.1025,3.2295 14.8925,3.6545 L11.5985,10.3275 C11.5645,10.3965 11.4985,10.4445 11.4225,10.4565 L4.0575,11.5265 C3.5895,11.5945 3.2075,11.9165 3.0615,12.3665 C2.9155,12.8175 3.0345,13.3015 3.3735,13.6325 L8.7025,18.8265 C8.7575,18.8805 8.7835,18.9585 8.7705,19.0345 L7.5125,26.3695 C7.4325,26.8355 7.6205,27.2985 8.0035,27.5765 C8.2195,27.7345 8.4735,27.8145 8.7285,27.8145 C8.9245,27.8145 9.1215,27.7665 9.3045,27.6705 L15.8895,24.2085 C15.9595,24.1725 16.0415,24.1725 16.1085,24.2075 L22.6955,27.6705 C23.1155,27.8915 23.6135,27.8555 23.9965,27.5765 C24.3795,27.2985 24.5675,26.8355 24.4875,26.3695 L23.2305,19.0355 C23.2165,18.9585 23.2425,18.8805 23.2975,18.8265 L28.6265,13.6325 Z"
|
|
98
|
+
})), $ = "_ratings_1n24x_1", V = "_rating_1n24x_1", S = {
|
|
99
|
+
ratings: $,
|
|
100
|
+
rating: V
|
|
101
|
+
}, ee = ({ content: a, locale: r }) => /* @__PURE__ */ e.createElement(O, {
|
|
102
|
+
content: a,
|
|
103
|
+
locale: r
|
|
104
|
+
}), ue = () => {
|
|
105
|
+
const { t: a } = T(), r = M(J);
|
|
106
|
+
return /* @__PURE__ */ e.createElement(t, null, /* @__PURE__ */ e.createElement(t.Label, {
|
|
107
|
+
className: c(z, p.label)
|
|
108
|
+
}, /* @__PURE__ */ e.createElement(t.Label.Required, {
|
|
109
|
+
className: c(Q, p.requiredMark)
|
|
110
|
+
})), /* @__PURE__ */ e.createElement(t.Ratings, {
|
|
111
|
+
className: c(j, S.ratings),
|
|
112
|
+
getReactionLabel: (n) => a("rating-input.a11y.reaction-label", {
|
|
113
|
+
count: n
|
|
114
|
+
})
|
|
115
|
+
}, /* @__PURE__ */ e.createElement(t.Rating, {
|
|
116
|
+
className: ({ isSelected: n }) => c(K, r, S.rating, {
|
|
117
|
+
[U]: n
|
|
118
|
+
})
|
|
119
|
+
}, /* @__PURE__ */ e.createElement(X, null))), /* @__PURE__ */ e.createElement(t.Error, {
|
|
120
|
+
className: c(Y, p.error)
|
|
121
|
+
}, /* @__PURE__ */ e.createElement(k, null), /* @__PURE__ */ e.createElement(t.Error.Text, null)), /* @__PURE__ */ e.createElement(t.Description, {
|
|
122
|
+
className: c(Z, p.description)
|
|
123
|
+
}, ee));
|
|
124
|
+
};
|
|
125
|
+
export {
|
|
126
|
+
ue as R
|
|
127
|
+
};
|
package/dist/component/{rich-content-rac.module-DX2Jd5w6.js → rich-content-rac.module-DkKwzJS7.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import c, { useState as u } from "react";
|
|
2
|
-
import { ai as a, ab as i, as as T } from "./form-
|
|
2
|
+
import { ai as a, ab as i, as as T } from "./form-C6WwBcGP.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,8 +1,8 @@
|
|
|
1
1
|
import l from "classnames";
|
|
2
2
|
import e from "react";
|
|
3
|
-
import { ai as m, L as i, W as u, Z as R } from "./form-
|
|
4
|
-
import { u as T, R as C, s as d, T as p } from "./rich-content-rac.module-
|
|
5
|
-
import {
|
|
3
|
+
import { ai as m, L as i, W as u, Z as R } from "./form-C6WwBcGP.js";
|
|
4
|
+
import { u as T, R as C, s as d, T as p } from "./rich-content-rac.module-DkKwzJS7.js";
|
|
5
|
+
import { a6 as g } from "./form-element-classes-DDKCTFQj.js";
|
|
6
6
|
const h = {
|
|
7
7
|
colorPalette: R(),
|
|
8
8
|
customStyles: u()
|
package/dist/component/{service-dropdown-rac--YcOnGmq.js → service-dropdown-rac-mvUMpcS_.js}
RENAMED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import t, { useRef as
|
|
1
|
+
import t, { useRef as P, useMemo as g, useCallback as h, useEffect as T } from "react";
|
|
2
2
|
import { RicosViewer as A } from "@wix/ricos/viewer";
|
|
3
3
|
import m from "classnames";
|
|
4
|
-
import { ae as w, as as b, F as M, ai as y, ab as U, h as V } from "./form-
|
|
5
|
-
import { u as q } from "./use-service-options-base-
|
|
6
|
-
import { D as d } from "./dropdown-field-headless-
|
|
4
|
+
import { ae as w, as as b, F as M, ai as y, ab as U, h as V } from "./form-C6WwBcGP.js";
|
|
5
|
+
import { u as q } from "./use-service-options-base-D4Zl-iGW.js";
|
|
6
|
+
import { D as d } from "./dropdown-field-headless-CTZ-zGqZ.js";
|
|
7
7
|
import { C as x } from "./chevron-down-icon-CcpVm6B-.js";
|
|
8
8
|
import { E as H } from "./error-icon-hZxQ6DEy.js";
|
|
9
9
|
import { H as k } from "./custom-focus-class-_483Pkwp.js";
|
|
10
|
-
import { s as n } from "./field-rac.module-
|
|
11
|
-
import { z as B,
|
|
10
|
+
import { s as n } from "./field-rac.module-Cac83bU5.js";
|
|
11
|
+
import { z as B, R as W, y as j, C as z, q as Q, j as Y } from "./form-element-classes-DDKCTFQj.js";
|
|
12
12
|
const G = "00000000-0000-0000-0000-000000000000", J = (e) => {
|
|
13
|
-
const { actions: r } = w(), { t: C } = b(), { addOther: i, addOtherLabel: p } = e, c = p || C("add-other.default-other-option-label"), a =
|
|
13
|
+
const { actions: r } = w(), { t: C } = b(), { addOther: i, addOtherLabel: p } = e, c = p || C("add-other.default-other-option-label"), a = P(!0), E = g(() => {
|
|
14
14
|
var s;
|
|
15
15
|
return ((s = e.options) == null ? void 0 : s.map((u) => u.id ?? "")) ?? [];
|
|
16
16
|
}, [
|
|
@@ -25,11 +25,11 @@ const G = "00000000-0000-0000-0000-000000000000", J = (e) => {
|
|
|
25
25
|
] : s, [
|
|
26
26
|
i,
|
|
27
27
|
c
|
|
28
|
-
]), { isLoading: f, options: l, isEmpty: D, shouldRender: I, setIsLoading: F, setOptions: L, setIsEmpty: S, processOptions:
|
|
28
|
+
]), { isLoading: f, options: l, isEmpty: D, shouldRender: I, setIsLoading: F, setOptions: L, setIsEmpty: S, processOptions: R } = q({
|
|
29
29
|
fieldType: M.SERVICES_DROPDOWN,
|
|
30
30
|
isEditor: e.isEditor,
|
|
31
31
|
postProcessOptions: O
|
|
32
|
-
}),
|
|
32
|
+
}), _ = h(async () => {
|
|
33
33
|
if (a.current && (r != null && r.fetchServices) && E.length > 0) {
|
|
34
34
|
a.current = !1, F(!0);
|
|
35
35
|
let s;
|
|
@@ -41,7 +41,7 @@ const G = "00000000-0000-0000-0000-000000000000", J = (e) => {
|
|
|
41
41
|
console.error(u);
|
|
42
42
|
}
|
|
43
43
|
if (s) {
|
|
44
|
-
const u =
|
|
44
|
+
const u = R(s);
|
|
45
45
|
S(!i && u.length === 0), L(u);
|
|
46
46
|
} else
|
|
47
47
|
a.current = !0;
|
|
@@ -50,7 +50,7 @@ const G = "00000000-0000-0000-0000-000000000000", J = (e) => {
|
|
|
50
50
|
}, [
|
|
51
51
|
r,
|
|
52
52
|
E,
|
|
53
|
-
|
|
53
|
+
R,
|
|
54
54
|
i,
|
|
55
55
|
F,
|
|
56
56
|
L,
|
|
@@ -68,11 +68,11 @@ const G = "00000000-0000-0000-0000-000000000000", J = (e) => {
|
|
|
68
68
|
e.isEditor
|
|
69
69
|
]);
|
|
70
70
|
const v = h(() => {
|
|
71
|
-
e.onFocus && e.onFocus(), a.current &&
|
|
71
|
+
e.onFocus && e.onFocus(), a.current && _();
|
|
72
72
|
}, [
|
|
73
|
-
|
|
73
|
+
_,
|
|
74
74
|
e.onFocus
|
|
75
|
-
]),
|
|
75
|
+
]), N = h(
|
|
76
76
|
(s) => {
|
|
77
77
|
e.onChange && e.onChange(s), a.current = !0;
|
|
78
78
|
},
|
|
@@ -86,7 +86,7 @@ const G = "00000000-0000-0000-0000-000000000000", J = (e) => {
|
|
|
86
86
|
options: l,
|
|
87
87
|
isEmpty: D,
|
|
88
88
|
onFocus: v,
|
|
89
|
-
onChange:
|
|
89
|
+
onChange: N,
|
|
90
90
|
shouldRender: I
|
|
91
91
|
};
|
|
92
92
|
}, o = ({ children: e }) => {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import e, { useEffect as C, useMemo as I } from "react";
|
|
2
2
|
import { RicosViewer as L } from "@wix/ricos/viewer";
|
|
3
3
|
import s from "classnames";
|
|
4
|
-
import { F as R, ai as F, h as d } from "./form-
|
|
5
|
-
import { u as D } from "./use-service-options-base-
|
|
6
|
-
import { C as n } from "./checkbox-group-field-headless-
|
|
4
|
+
import { F as R, ai as F, h as d } from "./form-C6WwBcGP.js";
|
|
5
|
+
import { u as D } from "./use-service-options-base-D4Zl-iGW.js";
|
|
6
|
+
import { C as n } from "./checkbox-group-field-headless-D_GG5LHM.js";
|
|
7
7
|
import { E as h } from "./error-icon-hZxQ6DEy.js";
|
|
8
|
-
import { s as i } from "./field-rac.module-
|
|
9
|
-
import { z as f,
|
|
8
|
+
import { s as i } from "./field-rac.module-Cac83bU5.js";
|
|
9
|
+
import { z as f, R as b, V as M, W as N, X as A, y as v, q as x, j as T } from "./form-element-classes-DDKCTFQj.js";
|
|
10
10
|
import { o as _ } from "./options-rac.module-KM-VT_KY.js";
|
|
11
|
-
const
|
|
11
|
+
const k = (o) => {
|
|
12
12
|
var S;
|
|
13
13
|
const { isLoading: r, options: a, isEmpty: c, shouldRender: E, setOptions: l, setIsEmpty: m, setHasInitialDataLoaded: p } = D({
|
|
14
14
|
fieldType: R.SERVICES_MULTI_CHOICE,
|
|
@@ -32,7 +32,7 @@ const P = (o) => {
|
|
|
32
32
|
shouldRender: E
|
|
33
33
|
};
|
|
34
34
|
}, t = ({ children: o }) => {
|
|
35
|
-
const r = F(), { options: a, isEmpty: c, shouldRender: E } =
|
|
35
|
+
const r = F(), { options: a, isEmpty: c, shouldRender: E } = k(r), l = I(() => ({
|
|
36
36
|
...r,
|
|
37
37
|
options: a
|
|
38
38
|
}), [
|
|
@@ -49,10 +49,10 @@ t.Label = n.Label;
|
|
|
49
49
|
t.Options = n.Options;
|
|
50
50
|
t.Description = n.Description;
|
|
51
51
|
t.Error = n.Error;
|
|
52
|
-
const
|
|
52
|
+
const y = ({ content: o, locale: r }) => /* @__PURE__ */ e.createElement(L, {
|
|
53
53
|
content: o,
|
|
54
54
|
locale: r
|
|
55
|
-
}),
|
|
55
|
+
}), P = () => /* @__PURE__ */ e.createElement(t, null, /* @__PURE__ */ e.createElement(t.Label, {
|
|
56
56
|
className: s(f, i.label)
|
|
57
57
|
}, /* @__PURE__ */ e.createElement(t.Label.Required, {
|
|
58
58
|
className: s(b, i.requiredMark)
|
|
@@ -70,7 +70,7 @@ const k = ({ content: o, locale: r }) => /* @__PURE__ */ e.createElement(L, {
|
|
|
70
70
|
className: s(x, i.error)
|
|
71
71
|
}, /* @__PURE__ */ e.createElement(h, null), /* @__PURE__ */ e.createElement(t.Error.Text, null)), /* @__PURE__ */ e.createElement(t.Description, {
|
|
72
72
|
className: s(T, i.description)
|
|
73
|
-
},
|
|
73
|
+
}, y)), Q = () => /* @__PURE__ */ e.createElement(P, null);
|
|
74
74
|
export {
|
|
75
75
|
Q as ServicesMultiChoiceRAC
|
|
76
76
|
};
|