@wix/form-elements 1.139.0 → 1.141.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-DuePBZgo.js → appointment-rac-CBgveDfU.js} +4 -4
- package/dist/component/{bookings-address-rac-CAn2qFUw.js → bookings-address-rac-BJqKQGM7.js} +1 -1
- package/dist/component/{bookings-email-rac-CoLqyLjz.js → bookings-email-rac-BEBnQQtI.js} +1 -1
- package/dist/component/{bookings-first-name-rac-Cq6PU-R9.js → bookings-first-name-rac-CcLe5bPh.js} +1 -1
- package/dist/component/{bookings-header-rac-BD4UKDvX.js → bookings-header-rac-C2CRP5vX.js} +1 -1
- package/dist/component/{bookings-last-name-rac-CW58kF1V.js → bookings-last-name-rac-D9EPB2o-.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-BIIQO2-8.js → bookings-login-bar-rac-DaDoExJQ.js} +1 -1
- package/dist/component/{bookings-phone-rac-BBW_3MB5.js → bookings-phone-rac-C4rfNh9m.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-DqOdJVKp.js → bookings-rich-text-rac-CHupwGUy.js} +1 -1
- package/dist/component/{checkbox-field-rac-DFze3E2t.js → checkbox-field-rac-JA4-Un3S.js} +4 -4
- package/dist/component/{checkbox-group-field-headless-CDtZ_-0W.js → checkbox-group-field-headless-ikYtTUSV.js} +3 -3
- package/dist/component/{checkbox-group-field-rac-DzEcQbPe.js → checkbox-group-field-rac-CkkSPle4.js} +4 -4
- package/dist/component/{checkbox-group-rac-DI3AkgV3.js → checkbox-group-rac-BYXab1TV.js} +1 -1
- package/dist/component/{checkbox-rac-_p3FcSft.js → checkbox-rac-MsaKpbsM.js} +1 -1
- package/dist/component/{contacts-address-rac-Cd4261XE.js → contacts-address-rac-BG5KM6Mu.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-BhxK_mbX.js → contacts-birthdate-rac-CIJtY0ml.js} +1 -1
- package/dist/component/{contacts-company-rac-CHTJD7i2.js → contacts-company-rac-qQxsdn-g.js} +1 -1
- package/dist/component/{contacts-email-rac-SI0iGK76.js → contacts-email-rac-Cb_zFMQd.js} +1 -1
- package/dist/component/{contacts-first-name-rac-BxVPha6t.js → contacts-first-name-rac-L0IsiQmM.js} +1 -1
- package/dist/component/{contacts-last-name-rac-D87q7e3T.js → contacts-last-name-rac-BNgF4RBx.js} +1 -1
- package/dist/component/{contacts-phone-rac-8tRoTrbD.js → contacts-phone-rac-BhOsgxwZ.js} +1 -1
- package/dist/component/{contacts-position-rac-B6mEnhoG.js → contacts-position-rac-B2JM9fSY.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-CJLIRb2W.js → contacts-subscribe-rac-CVSWNhBY.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-CsZOGTdP.js → contacts-tax-id-rac-BtdNdxYS.js} +1 -1
- package/dist/component/{date-availability-OUSMC6ZJ.js → date-availability-BVSO1Gbz.js} +1 -1
- package/dist/component/{date-input-field-rac-owOqsl-X.js → date-input-field-rac-DFCPKpI2.js} +6 -6
- package/dist/component/{date-input-rac-Tw6adIZA.js → date-input-rac-CcC5JdTU.js} +1 -1
- package/dist/component/{date-picker-field-rac-CicYutrB.js → date-picker-field-rac-CAr7r5k3.js} +5 -5
- package/dist/component/{date-picker-rac-BeQHs3VF.js → date-picker-rac-0WEGa3ZQ.js} +1 -1
- package/dist/component/{date-time-input-field-rac-DliY_8-g.js → date-time-input-field-rac-DPlFlkrF.js} +6 -6
- package/dist/component/{date-time-input-rac-Dv4_Q0NX.js → date-time-input-rac-c0dm0pdf.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-DQE9ZD9R.js → dext-checkbox-group-rac-B1db5jv3.js} +2 -2
- package/dist/component/{dext-checkbox-rac-DVM1OTE6.js → dext-checkbox-rac-C03w68Ta.js} +1 -1
- package/dist/component/{dext-date-picker-rac-C58i2ohz.js → dext-date-picker-rac-DTjysj_k.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-DfuOVj7h.js → dext-date-time-input-rac-CnL2o6YR.js} +1 -1
- package/dist/component/{dext-dropdown-rac-ClkT-JZS.js → dext-dropdown-rac-CJxC-Wr0.js} +1 -1
- package/dist/component/{dext-email-rac-5kXpIx4T.js → dext-email-rac-CewA7bXc.js} +1 -1
- package/dist/component/{dext-number-input-rac-ZRSlts_C.js → dext-number-input-rac--_aUE6C8.js} +1 -1
- package/dist/component/{dext-phone-rac-nWQzy-Gq.js → dext-phone-rac-_ObccrwR.js} +1 -1
- package/dist/component/{dext-radio-group-rac-CiayGIL_.js → dext-radio-group-rac-DXBCI2mT.js} +2 -2
- package/dist/component/{dext-rating-input-rac-CL4JR2hi.js → dext-rating-input-rac-CS3VY3B3.js} +1 -1
- package/dist/component/{dext-tags-rac-BS5gmpIc.js → dext-tags-rac-CyTea3vl.js} +2 -2
- package/dist/component/{dext-text-area-rac-ZQ0u3sgJ.js → dext-text-area-rac-C_qN16CX.js} +1 -1
- package/dist/component/{dext-text-input-rac-CBN-B60v.js → dext-text-input-rac-DhqfiI_U.js} +1 -1
- package/dist/component/{dext-url-input-rac-CL7yBfpu.js → dext-url-input-rac-CxI4MbMH.js} +1 -1
- package/dist/component/{donation-rac-BCxI8DUn.js → donation-rac-BZmT89_j.js} +5 -5
- package/dist/component/{dropdown-field-headless-Cfnoh3TT.js → dropdown-field-headless-CO82AsyC.js} +5 -5
- package/dist/component/{dropdown-field-rac-C5kP9Maj.js → dropdown-field-rac-BqPHSq7k.js} +4 -4
- package/dist/component/{dropdown-rac-Q6QwHrpQ.js → dropdown-rac-pOLj9tRE.js} +1 -1
- package/dist/component/{ecom-address-rac-Bcpnkrsz.js → ecom-address-rac-DBQ0rVmy.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-BaiPwmST.js → ecom-subscription-checkbox-rac-BJoMvht8.js} +2 -2
- package/dist/component/{email-input-field-rac-CTb93XO1.js → email-input-field-rac-DTqYXW-m.js} +3 -3
- package/dist/component/{events-repeater-rac-SUxGn4_x.js → events-repeater-rac-3gkcVOh6.js} +4 -4
- package/dist/component/{events-rsvp-rac-DlPaip2O.js → events-rsvp-rac-DYMvnjuz.js} +3 -3
- package/dist/component/{field-error-headless-CxjXRFrW.js → field-error-headless-CQ8PHjtA.js} +1 -1
- package/dist/component/{field-label-headless-DCEOZ-YZ.js → field-label-headless-BgAx-Enb.js} +1 -1
- package/dist/component/{file-upload-rac-BXQ0aFc0.js → file-upload-rac-B8TgLoCU.js} +4 -4
- package/dist/component/{fixed-payment-rac-ByeJsO05.js → fixed-payment-rac-CRupF7Fu.js} +3 -3
- package/dist/component/{form-maUFPJM6.js → form-BzzldBcB.js} +69 -69
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-N9L0MPac.js → header-field-rac-iFuM4bGC.js} +2 -2
- package/dist/component/{header-rac-C2hqJW8B.js → header-rac-CLOeCzLk.js} +1 -1
- package/dist/component/{image-choice-rac-EnNAFefv.js → image-choice-rac-C6UBnrn3.js} +4 -4
- package/dist/component/{index-CoJjnTGV.js → index-BHGQWZ7f.js} +2 -2
- package/dist/component/{index-D29khrM1.js → index-CtMQ3oqe.js} +4 -4
- package/dist/component/{isObjectLike-CThwpoQB.js → isObjectLike-BVz2g6jF.js} +1 -1
- package/dist/component/{multiline-address-field-rac-C-zlqFCi.js → multiline-address-field-rac-CKBpkEET.js} +7 -7
- package/dist/component/{multiline-address-rac-CY468N1Y.js → multiline-address-rac-DcGF1aWF.js} +1 -1
- package/dist/component/{number-input-field-rac-CV63nd7z.js → number-input-field-rac-CODTSfX-.js} +4 -4
- package/dist/component/{number-input-rac-q6pBGhwp.js → number-input-rac-ByT6DN8A.js} +1 -1
- package/dist/component/{password-rac-D4v01lEX.js → password-rac-Bwnpd70V.js} +4 -4
- package/dist/component/{payment-input-rac-BOUE_ySy.js → payment-input-rac-DmfJZmgO.js} +4 -4
- package/dist/component/{phone-input-field-rac-CTihyY5b.js → phone-input-field-rac-B2exX67y.js} +6 -6
- package/dist/component/{phone-rac-DAis236h.js → phone-rac-9HksdhZY.js} +1 -1
- package/dist/component/{product-list-rac-F8_l5GI1.js → product-list-rac-DnhtTpJC.js} +4 -4
- package/dist/component/{quiz-radio-group-rac-DE9GqBot.js → quiz-radio-group-rac-BNVLQ2YS.js} +1 -1
- package/dist/component/{radio-button-module-classes-BEFH9dYx.js → radio-button-module-classes-D2nPj405.js} +3 -3
- package/dist/component/{radio-group-field-rac-D306MV8M.js → radio-group-field-rac-BT657aHX.js} +4 -4
- package/dist/component/{radio-group-rac-BBXf4sUC.js → radio-group-rac-yjr7rBFf.js} +1 -1
- package/dist/component/{rating-input-field-rac-CmdfvIwe.js → rating-input-field-rac-DJzVLTkF.js} +4 -4
- package/dist/component/{rating-input-rac-qEzE8Cfn.js → rating-input-rac-Cpzm_Rbk.js} +1 -1
- package/dist/component/{rich-content-rac.module-DQehNlZs.js → rich-content-rac.module-B8WTFbve.js} +1 -1
- package/dist/component/{rich-text-field-rac-DdrwnOCw.js → rich-text-field-rac-DCiBRkow.js} +2 -2
- package/dist/component/{rich-text-rac-Borne4AS.js → rich-text-rac-DiP1GwaU.js} +1 -1
- package/dist/component/{service-dropdown-rac-X8o6CdQN.js → service-dropdown-rac-D5YlC7mU.js} +5 -5
- package/dist/component/{services-multi-choice-rac-CSSpMeF6.js → services-multi-choice-rac-D5uwtGzk.js} +5 -5
- package/dist/component/{signature-rac-CQjh5yhj.js → signature-rac-g7pBfp7A.js} +4 -4
- package/dist/component/{submit-button-rac-Cqr19tEe.js → submit-button-rac-WVz4yWjl.js} +33 -33
- package/dist/component/{tags-field-rac-CZk0JVp2.js → tags-field-rac-BS7qlHyA.js} +5 -5
- package/dist/component/{tags-rac-81GiW9Gk.js → tags-rac-CQGlk8GO.js} +1 -1
- package/dist/component/{text-area-field-rac-dAU0uni_.js → text-area-field-rac-B2rsUGoZ.js} +4 -4
- package/dist/component/{text-area-rac-bI1leJhM.js → text-area-rac-CwJXAFKH.js} +1 -1
- package/dist/component/{text-input-field-rac-fghTXZQD.js → text-input-field-rac-CiZ83ULN.js} +3 -3
- package/dist/component/{text-input-headless-Cj6oVNcr.js → text-input-headless-C56J6s10.js} +3 -3
- package/dist/component/{text-input-rac-CyYiyp8N.js → text-input-rac-BMSWPbrZ.js} +1 -1
- package/dist/component/{time-input-rac-Dub-iiot.js → time-input-rac-DrKC1wiN.js} +4 -4
- package/dist/component/{url-input-field-rac-C7Nn--xk.js → url-input-field-rac-HPvjYmsV.js} +4 -4
- package/dist/component/{url-input-rac-Dp6j47Uq.js → url-input-rac-gQIszvK3.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-C3lcgxqr.js → use-dropdown-option-class-name-nZCgStzg.js} +2 -2
- package/dist/component/{use-dropdown-trigger-class-name-DWusXXCi.js → use-dropdown-trigger-class-name-Ba9Ej9xC.js} +2 -2
- package/dist/component/{use-element-state-class-name-1oBaNXtu.js → use-element-state-class-name-CEMjabjh.js} +1 -1
- package/dist/component/{use-hoverable-input-class-name-C3mtdo6O.js → use-hoverable-input-class-name-BSiPBu4i.js} +2 -2
- package/dist/component/{use-service-options-base-DHpjXrGd.js → use-service-options-base-DSkh5Ayp.js} +1 -1
- package/dist/component/use-text-input-class-name-B2pSCrTD.js +6 -0
- package/package.json +2 -2
- package/dist/component/use-text-input-class-name-BXn7PNlp.js +0 -6
package/dist/component/form.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import m from "classnames";
|
|
2
2
|
import e from "react";
|
|
3
|
-
import { bj as u, aX as i, aW as C, aZ as R, aw as T, ae as d } from "./form-
|
|
4
|
-
import { u as g, R as p, s as S, T as h } from "./rich-content-rac.module-
|
|
3
|
+
import { bj as u, aX as i, aW as C, aZ as R, aw as T, ae as d } from "./form-BzzldBcB.js";
|
|
4
|
+
import { u as g, R as p, s as S, T as h } from "./rich-content-rac.module-B8WTFbve.js";
|
|
5
5
|
const y = ({ truncate: t = !0 } = {}) => {
|
|
6
6
|
const { content: a, maxShownParagraphs: s } = u(), n = e.useMemo(() => ({
|
|
7
7
|
colorPalette: R(),
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import e, { useMemo as H, useCallback as T, useRef as G } from "react";
|
|
2
2
|
import { RicosViewer as k } from "@wix/ricos/viewer";
|
|
3
3
|
import I from "classnames";
|
|
4
|
-
import { bj as b, bg as x, bl as P, bc as B, N as q, Y as U, I as w, K, G as V, u as Y, J as j, f } from "./form-
|
|
4
|
+
import { bj as b, bg as x, bl as P, bc as B, N as q, Y as U, I as w, K, G as V, u as Y, J as j, f } from "./form-BzzldBcB.js";
|
|
5
5
|
import { CheckboxGroup as z, CheckboxField as J, CheckboxButton as Q } from "react-aria-components";
|
|
6
6
|
import { f as m, a as F } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { L as $, g as W } from "./field-label-headless-
|
|
8
|
-
import { D as X, E as Z } from "./field-error-headless-
|
|
7
|
+
import { L as $, g as W } from "./field-label-headless-BgAx-Enb.js";
|
|
8
|
+
import { D as X, E as Z } from "./field-error-headless-CQ8PHjtA.js";
|
|
9
9
|
import { F as ee } from "./fieldset-headless-CD3fds9J.js";
|
|
10
10
|
import { E as te } from "./error-icon-hZxQ6DEy.js";
|
|
11
11
|
import { s as O } from "./field-rac.module-DfEb7pBp.js";
|
|
12
|
-
import { u as oe } from "./use-element-state-class-name-
|
|
12
|
+
import { u as oe } from "./use-element-state-class-name-CEMjabjh.js";
|
|
13
13
|
const o = ({ children: t, className: n }) => {
|
|
14
14
|
const { id: s, value: a, onChange: i, disabled: l, readOnly: r, required: c, onBlur: u, onFocus: p, hasError: C, FieldLayout: L } = b(), { inputId: g, labelId: _, ariaDescribedBy: R } = x(), S = m(t, o.Label), A = m(t, o.Options), D = m(t, o.Description), h = m(t, o.Error), M = H(() => a || [], [
|
|
15
15
|
a
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b2 as n } from "./form-
|
|
2
|
-
import { A as S, a as p, C as N, ax as g, aO as q, aP as D, b4 as L } from "./form-
|
|
1
|
+
import { b2 as n } from "./form-BzzldBcB.js";
|
|
2
|
+
import { A as S, a as p, C as N, ax as g, aO as q, aP as D, b4 as L } from "./form-BzzldBcB.js";
|
|
3
3
|
const l = (e = !1) => ({
|
|
4
4
|
country: {
|
|
5
5
|
required: e
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { e as R, aE as _, aT as de, aF as O, ak as Ge, B as Be, ay as qe, ar as He, aq as A, az as Ee, aI as re, aC as Fe, c as B, as as M, b3 as Te, au as je, at as he, av as q } from "./form-
|
|
2
|
-
import { a_ as Mn } from "./form-
|
|
1
|
+
import { e as R, aE as _, aT as de, aF as O, ak as Ge, B as Be, ay as qe, ar as He, aq as A, az as Ee, aI as re, aC as Fe, c as B, as as M, b3 as Te, au as je, at as he, av as q } from "./form-BzzldBcB.js";
|
|
2
|
+
import { a_ as Mn } from "./form-BzzldBcB.js";
|
|
3
3
|
import ke from "ajv";
|
|
4
4
|
import Xe from "ajv-errors";
|
|
5
5
|
import We from "ajv-formats";
|
|
6
6
|
import Ke from "fast-deep-equal";
|
|
7
7
|
import { parsePhoneNumber as ze, parsePhoneNumberWithError as Ve, ParseError as Ze } from "libphonenumber-js/max";
|
|
8
8
|
import Je from "libphonenumber-js/metadata.max.json";
|
|
9
|
-
import { p as Qe, i as et } from "./date-availability-
|
|
10
|
-
import { a as Sn } from "./date-availability-
|
|
9
|
+
import { p as Qe, i as et } from "./date-availability-BVSO1Gbz.js";
|
|
10
|
+
import { a as Sn } from "./date-availability-BVSO1Gbz.js";
|
|
11
11
|
import { C as tt } from "./calling-country-codes-PyWuOTmF.js";
|
|
12
12
|
function rt(e) {
|
|
13
13
|
var t, r;
|
|
@@ -2,21 +2,21 @@ import { RicosViewer as X } from "@wix/ricos/viewer";
|
|
|
2
2
|
import L from "classnames";
|
|
3
3
|
import r, { useMemo as q, createContext as Ue, useContext as Ce, useState as be, useRef as x, useCallback as R, useEffect as Pe } from "react";
|
|
4
4
|
import { UNSAFE_PortalProvider as Pt } from "react-aria";
|
|
5
|
-
import { be as ft, d as yt, b9 as _t, bb as Ct, aO as Tt, aP as wt, aH as Mt, aN as W, F as K, bt as _e, b2 as lt, bj as _, bg as T, bl as ae, bf as It, aT as qt, C as Oe, b0 as xt, b4 as Bt, bq as kt, bk as $t, bp as Vt, b7 as Ut, aY as Wt, b6 as Kt, bm as Yt, an as Ht, N as z, Y as Q, O as ge, G as Z, u as ee } from "./form-
|
|
5
|
+
import { be as ft, d as yt, b9 as _t, bb as Ct, aO as Tt, aP as wt, aH as Mt, aN as W, F as K, bt as _e, b2 as lt, bj as _, bg as T, bl as ae, bf as It, aT as qt, C as Oe, b0 as xt, b4 as Bt, bq as kt, bk as $t, bp as Vt, b7 as Ut, aY as Wt, b6 as Kt, bm as Yt, an as Ht, N as z, Y as Q, O as ge, G as Z, u as ee } from "./form-BzzldBcB.js";
|
|
6
6
|
import { f as E, a as F } from "./find-child-C60k4CxG.js";
|
|
7
7
|
import { F as jt, V as Jt } from "./headless-styles-CmcyA_pi.js";
|
|
8
|
-
import { a as Gt, u as Xt } from "./use-dropdown-trigger-class-name-
|
|
8
|
+
import { a as Gt, u as Xt } from "./use-dropdown-trigger-class-name-Ba9Ej9xC.js";
|
|
9
9
|
import { TextField as fe, Input as le, ComboBoxStateContext as We, ComboBox as he, Popover as De, ListBox as Te, ListBoxItem as Se, Group as Lt, Button as Nt } from "react-aria-components";
|
|
10
|
-
import { D as ie, E as ce } from "./field-error-headless-
|
|
11
|
-
import { L as de } from "./field-label-headless-
|
|
12
|
-
import { e as zt, c as Qt, a as Zt, r as gt } from "./isObjectLike-
|
|
13
|
-
import { V as en, u as tn } from "./use-dropdown-option-class-name-
|
|
10
|
+
import { D as ie, E as ce } from "./field-error-headless-CQ8PHjtA.js";
|
|
11
|
+
import { L as de } from "./field-label-headless-BgAx-Enb.js";
|
|
12
|
+
import { e as zt, c as Qt, a as Zt, r as gt } from "./isObjectLike-BVz2g6jF.js";
|
|
13
|
+
import { V as en, u as tn } from "./use-dropdown-option-class-name-nZCgStzg.js";
|
|
14
14
|
import { u as nn } from "./use-invoke-callback-UH73A_J3.js";
|
|
15
15
|
import { C as it } from "./chevron-down-icon-CcpVm6B-.js";
|
|
16
16
|
import { E as te } from "./error-icon-hZxQ6DEy.js";
|
|
17
17
|
import { H as we } from "./custom-focus-class-_483Pkwp.js";
|
|
18
18
|
import { s as I } from "./field-rac.module-DfEb7pBp.js";
|
|
19
|
-
import { u as rn } from "./use-text-input-class-name-
|
|
19
|
+
import { u as rn } from "./use-text-input-class-name-B2pSCrTD.js";
|
|
20
20
|
const on = (e, t, o) => {
|
|
21
21
|
var a, l, i, s;
|
|
22
22
|
const n = (a = e.steps) == null ? void 0 : a.map((d) => {
|
package/dist/component/{number-input-field-rac-CV63nd7z.js → number-input-field-rac-CODTSfX-.js}
RENAMED
|
@@ -2,15 +2,15 @@ import { RicosViewer as P } from "@wix/ricos/viewer";
|
|
|
2
2
|
import i from "classnames";
|
|
3
3
|
import r, { useState as j, useCallback as G, useEffect as Q, useRef as U } from "react";
|
|
4
4
|
import { NumberField as Y, Input as $ } from "react-aria-components";
|
|
5
|
-
import { bj as _, bg as S, bt as z, bl as H, N as J, Y as K, G as W, u as X } from "./form-
|
|
5
|
+
import { bj as _, bg as S, bt as z, bl as H, N as J, Y as K, G as W, u as X } from "./form-BzzldBcB.js";
|
|
6
6
|
import { f as c } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as Z, E as w } from "./field-error-headless-
|
|
8
|
-
import { L as ee } from "./field-label-headless-
|
|
7
|
+
import { D as Z, E as w } from "./field-error-headless-CQ8PHjtA.js";
|
|
8
|
+
import { L as ee } from "./field-label-headless-BgAx-Enb.js";
|
|
9
9
|
import { g as re, c as te } from "./numeric-input-utils-CuBMi4-a.js";
|
|
10
10
|
import { u as ne } from "./use-invoke-callback-UH73A_J3.js";
|
|
11
11
|
import { E as ae } from "./error-icon-hZxQ6DEy.js";
|
|
12
12
|
import { s as d } from "./field-rac.module-DfEb7pBp.js";
|
|
13
|
-
import { u as se } from "./use-text-input-class-name-
|
|
13
|
+
import { u as se } from "./use-text-input-class-name-B2pSCrTD.js";
|
|
14
14
|
const e = ({ children: t }) => {
|
|
15
15
|
var F, L, R;
|
|
16
16
|
const { id: a, value: s, onChange: l, disabled: p, required: b, readOnly: o, onBlur: E, onFocus: f, FieldLayout: m, hasError: u, validation: n } = _(), { labelId: g } = S(), D = ((F = n == null ? void 0 : n.number) == null ? void 0 : F.multipleOf) || 1, y = (L = n == null ? void 0 : n.number) == null ? void 0 : L.maximum, A = (R = n == null ? void 0 : n.number) == null ? void 0 : R.minimum, x = O(s), [T, I] = j(x), V = ne(E), h = c(t, e.Label), q = c(t, e.Input), M = c(t, e.Description), k = c(t, e.Error), B = G((N) => {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import e, { useState as h, useRef as S } from "react";
|
|
2
2
|
import { RicosViewer as x } from "@wix/ricos/viewer";
|
|
3
3
|
import d from "classnames";
|
|
4
|
-
import { bj as E, bg as I, bl as O, bt as A, N as B, Y as V, G as v, u as P } from "./form-
|
|
4
|
+
import { bj as E, bg as I, bl as O, bt as A, N as B, Y as V, G as v, u as P } from "./form-BzzldBcB.js";
|
|
5
5
|
import { TextField as M, Group as k, Input as q, Button as j } from "react-aria-components";
|
|
6
6
|
import { f as u, a as b } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as U, E as G } from "./field-error-headless-
|
|
8
|
-
import { L as H } from "./field-label-headless-
|
|
7
|
+
import { D as U, E as G } from "./field-error-headless-CQ8PHjtA.js";
|
|
8
|
+
import { L as H } from "./field-label-headless-BgAx-Enb.js";
|
|
9
9
|
import { E as W } from "./error-icon-hZxQ6DEy.js";
|
|
10
10
|
import { H as Z } from "./custom-focus-class-_483Pkwp.js";
|
|
11
11
|
import { s as p } from "./field-rac.module-DfEb7pBp.js";
|
|
12
|
-
import { u as Q } from "./use-text-input-class-name-
|
|
12
|
+
import { u as Q } from "./use-text-input-class-name-B2pSCrTD.js";
|
|
13
13
|
const t = ({ children: o, className: r }) => {
|
|
14
14
|
const { id: l, value: s, onChange: c, disabled: n, readOnly: m, required: a, hasError: i, onBlur: f, onFocus: C, FieldLayout: _ } = E(), { labelId: y } = I(), [R, D] = h(!1), F = u(o, t.Label), L = u(o, t.Control), T = u(o, t.Description), w = u(o, t.Error);
|
|
15
15
|
return /* @__PURE__ */ e.createElement(_, {
|
|
@@ -2,16 +2,16 @@ import r, { useCallback as P, useRef as Q } from "react";
|
|
|
2
2
|
import { RicosViewer as Y } from "@wix/ricos/viewer";
|
|
3
3
|
import p from "classnames";
|
|
4
4
|
import { TextField as w, Group as z, Input as J } from "react-aria-components";
|
|
5
|
-
import { bj as R, bg as D, bb as T, bt as K, bl as W, N as X, Y as Z, G as ee, u as re } from "./form-
|
|
5
|
+
import { bj as R, bg as D, bb as T, bt as K, bl as W, N as X, Y as Z, G as ee, u as re } from "./form-BzzldBcB.js";
|
|
6
6
|
import { f as u } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as te, E as ne } from "./field-error-headless-
|
|
8
|
-
import { L as ae } from "./field-label-headless-
|
|
7
|
+
import { D as te, E as ne } from "./field-error-headless-CQ8PHjtA.js";
|
|
8
|
+
import { L as ae } from "./field-label-headless-BgAx-Enb.js";
|
|
9
9
|
import { f as L, g as se } from "./payment-field-utils-DobiK5Xh.js";
|
|
10
10
|
import { u as oe } from "./use-synced-display-value-DcAxdn3M.js";
|
|
11
11
|
import { E as le } from "./error-icon-hZxQ6DEy.js";
|
|
12
12
|
import { H as ce } from "./custom-focus-class-_483Pkwp.js";
|
|
13
13
|
import { s as d } from "./field-rac.module-DfEb7pBp.js";
|
|
14
|
-
import { u as ue } from "./use-text-input-class-name-
|
|
14
|
+
import { u as ue } from "./use-text-input-class-name-B2pSCrTD.js";
|
|
15
15
|
function ie(e, t) {
|
|
16
16
|
return {
|
|
17
17
|
productId: e.id,
|
package/dist/component/{phone-input-field-rac-CTihyY5b.js → phone-input-field-rac-B2exX67y.js}
RENAMED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { RicosViewer as Ce } from "@wix/ricos/viewer";
|
|
2
2
|
import h from "classnames";
|
|
3
3
|
import t, { useMemo as j, useState as $, useRef as F, useEffect as k, useCallback as Z, createContext as ee, useContext as G, useId as de } from "react";
|
|
4
|
-
import { b2 as ye, bt as w, bb as te, bs as Ee, bj as D, bg as ne, bl as fe, N as ge, Y as he, M as be, O as Oe, G as Ne, u as _e } from "./form-
|
|
4
|
+
import { b2 as ye, bt as w, bb as te, bs as Ee, bj as D, bg as ne, bl as fe, N as ge, Y as he, M as be, O as Oe, G as Ne, u as _e } from "./form-BzzldBcB.js";
|
|
5
5
|
import { UNSAFE_PortalProvider as Se } from "react-aria";
|
|
6
6
|
import { Dialog as oe, OverlayTriggerStateContext as Le, ModalOverlay as Ie, Modal as ve, SearchField as Pe, Group as q, ListBoxItem as Fe, DialogTrigger as we, Select as De, Input as re, Autocomplete as Be } from "react-aria-components";
|
|
7
7
|
import { f as g, a as I } from "./find-child-C60k4CxG.js";
|
|
8
|
-
import { D as Re, E as xe } from "./field-error-headless-
|
|
9
|
-
import { L as Me } from "./field-label-headless-
|
|
8
|
+
import { D as Re, E as xe } from "./field-error-headless-CQ8PHjtA.js";
|
|
9
|
+
import { L as Me } from "./field-label-headless-BgAx-Enb.js";
|
|
10
10
|
import { N as Te, S as je } from "./non-modal-popover-D-u13tmp.js";
|
|
11
11
|
import { u as $e } from "./use-invoke-callback-UH73A_J3.js";
|
|
12
|
-
import { a as Ae, u as ke } from "./use-dropdown-trigger-class-name-
|
|
13
|
-
import { V as Ue, u as Ve } from "./use-dropdown-option-class-name-
|
|
12
|
+
import { a as Ae, u as ke } from "./use-dropdown-trigger-class-name-Ba9Ej9xC.js";
|
|
13
|
+
import { V as Ue, u as Ve } from "./use-dropdown-option-class-name-nZCgStzg.js";
|
|
14
14
|
import ae, { AsYouType as qe, isValidPhoneNumber as Ge, isSupportedCountry as Ye } from "libphonenumber-js";
|
|
15
15
|
import "libphonenumber-js/metadata.min.json";
|
|
16
16
|
import { C as Q } from "./calling-country-codes-PyWuOTmF.js";
|
|
@@ -18,7 +18,7 @@ import { C as He } from "./chevron-down-icon-CcpVm6B-.js";
|
|
|
18
18
|
import { E as ze } from "./error-icon-hZxQ6DEy.js";
|
|
19
19
|
import { H as W } from "./custom-focus-class-_483Pkwp.js";
|
|
20
20
|
import { s as O } from "./field-rac.module-DfEb7pBp.js";
|
|
21
|
-
import { u as Ke } from "./use-text-input-class-name-
|
|
21
|
+
import { u as Ke } from "./use-text-input-class-name-B2pSCrTD.js";
|
|
22
22
|
function J(e) {
|
|
23
23
|
const n = e ? ae(e) : void 0, r = n == null ? void 0 : n.country;
|
|
24
24
|
if (r)
|
|
@@ -2,11 +2,11 @@ import t, { useMemo as K, useCallback as v, useRef as U } from "react";
|
|
|
2
2
|
import { RicosViewer as $ } from "@wix/ricos/viewer";
|
|
3
3
|
import _ from "classnames";
|
|
4
4
|
import { CheckboxField as z, CheckboxButton as j, NumberField as X, Group as Y, Button as Q, Input as J } from "react-aria-components";
|
|
5
|
-
import { bj as x, bg as W, bb as V, bt as Z, bl as ee, N as te, Y as ne, P as ae, S as oe, R as re, M as se, G as le, u as ie, Q as ce } from "./form-
|
|
5
|
+
import { bj as x, bg as W, bb as V, bt as Z, bl as ee, N as te, Y as ne, P as ae, S as oe, R as re, M as se, G as le, u as ie, Q as ce } from "./form-BzzldBcB.js";
|
|
6
6
|
import { f as I, a as f } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { L as ue, g as me } from "./field-label-headless-
|
|
7
|
+
import { L as ue, g as me } from "./field-label-headless-BgAx-Enb.js";
|
|
8
8
|
import { f as pe } from "./format-currency-BwShJ9vM.js";
|
|
9
|
-
import { D as de, E as Ee } from "./field-error-headless-
|
|
9
|
+
import { D as de, E as Ee } from "./field-error-headless-CQ8PHjtA.js";
|
|
10
10
|
import { F as ye } from "./fieldset-headless-CD3fds9J.js";
|
|
11
11
|
import { g as be } from "./payment-field-utils-DobiK5Xh.js";
|
|
12
12
|
import { S as _e } from "./selection-indicator-XQ8MYHUQ.js";
|
|
@@ -14,7 +14,7 @@ import { E as fe } from "./error-icon-hZxQ6DEy.js";
|
|
|
14
14
|
import { C as Ie } from "./checkbox-indicator-module-classes-6173wvuW.js";
|
|
15
15
|
import { s as q } from "./field-rac.module-DfEb7pBp.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-CEMjabjh.js";
|
|
18
18
|
var Le = /* @__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 F, useState as V, useEffect as T, useCallback as B } from "react";
|
|
2
2
|
import { RadioGroup as H, RadioField as k, RadioButton as A, TextField as G, Input as P } from "react-aria-components";
|
|
3
|
-
import { bj as g, bg as $, bt as D, bl as x } from "./form-
|
|
3
|
+
import { bj as g, bg as $, bt as D, bl as x } from "./form-BzzldBcB.js";
|
|
4
4
|
import { f as d, a as v } from "./find-child-C60k4CxG.js";
|
|
5
|
-
import { D as U, E as j } from "./field-error-headless-
|
|
6
|
-
import { L as M } from "./field-label-headless-
|
|
5
|
+
import { D as U, E as j } from "./field-error-headless-CQ8PHjtA.js";
|
|
6
|
+
import { L as M } from "./field-label-headless-BgAx-Enb.js";
|
|
7
7
|
import { S as w } from "./selection-indicator-XQ8MYHUQ.js";
|
|
8
8
|
const L = "Other", z = (e, t) => e == null ? void 0 : e.find((n) => (n.value ?? n.label) === t), S = (e, t) => !!t && !z(e, t), J = (e, t) => {
|
|
9
9
|
const l = t ? t.length + 2 : 0;
|
package/dist/component/{radio-group-field-rac-D306MV8M.js → radio-group-field-rac-BT657aHX.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-D2nPj405.js";
|
|
5
5
|
import { E as c } from "./error-icon-hZxQ6DEy.js";
|
|
6
6
|
import { s as r } from "./field-rac.module-DfEb7pBp.js";
|
|
7
|
-
import { N as i, Y as E, T as p, U as O, G as R, u as _, V as I } from "./form-
|
|
7
|
+
import { N as i, Y as E, T as p, U as O, G as R, u as _, V as I } from "./form-BzzldBcB.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-CEMjabjh.js";
|
|
10
|
+
import { u } from "./use-text-input-class-name-B2pSCrTD.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-CmdfvIwe.js → rating-input-field-rac-DJzVLTkF.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 y, useState as O, useRef as A } from "react";
|
|
4
|
-
import { bj as I, bg as v, bt as T, N as H, Y as M, W as w, G as B, u as P, X as G } from "./form-
|
|
4
|
+
import { bj as I, bg as v, bt as T, N as H, Y as M, W as w, G as B, u as P, X as G } from "./form-BzzldBcB.js";
|
|
5
5
|
import { RadioGroup as q, RadioField as k, RadioButton as x } from "react-aria-components";
|
|
6
6
|
import { f as E, a as U } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as j, E as z } from "./field-error-headless-
|
|
8
|
-
import { L as Q } from "./field-label-headless-
|
|
7
|
+
import { D as j, E as z } from "./field-error-headless-CQ8PHjtA.js";
|
|
8
|
+
import { L as Q } from "./field-label-headless-BgAx-Enb.js";
|
|
9
9
|
import { E as W } from "./error-icon-hZxQ6DEy.js";
|
|
10
10
|
import { s as g } from "./field-rac.module-DfEb7pBp.js";
|
|
11
|
-
import { u as X } from "./use-element-state-class-name-
|
|
11
|
+
import { u as X } from "./use-element-state-class-name-CEMjabjh.js";
|
|
12
12
|
const t = ({ children: a }) => {
|
|
13
13
|
const { id: n, value: r, onChange: i, disabled: l, readOnly: m, required: d, hasError: c, onBlur: o, onFocus: C, FieldLayout: R } = I(), { labelId: _ } = v(), L = y((D) => i(Number(D)), [
|
|
14
14
|
i
|
package/dist/component/{rich-content-rac.module-DQehNlZs.js → rich-content-rac.module-B8WTFbve.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import c, { useState as u } from "react";
|
|
2
|
-
import { bj as a, bb as i, bt as T } from "./form-
|
|
2
|
+
import { bj as a, bb as i, bt as T } from "./form-BzzldBcB.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 { bj as m, aw as i, ae as u, aW as R, aZ 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 { bj as m, aw as i, ae as u, aW as R, aZ as T } from "./form-BzzldBcB.js";
|
|
4
|
+
import { u as C, R as d, s as g, T as p } from "./rich-content-rac.module-B8WTFbve.js";
|
|
5
5
|
const h = {
|
|
6
6
|
colorPalette: T(),
|
|
7
7
|
customStyles: R()
|
package/dist/component/{service-dropdown-rac-X8o6CdQN.js → service-dropdown-rac-D5YlC7mU.js}
RENAMED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import o, { useRef as b, useMemo as _, useCallback as C, useEffect as T } from "react";
|
|
2
2
|
import { RicosViewer as w } from "@wix/ricos/viewer";
|
|
3
3
|
import E from "classnames";
|
|
4
|
-
import { bf as P, bt as A, F as M, bj as y, bb as V, al as x, N as H, Y as U, O as k, G as q, u as B } from "./form-
|
|
5
|
-
import { u as W } from "./use-service-options-base-
|
|
6
|
-
import { D as u } from "./dropdown-field-headless-
|
|
4
|
+
import { bf as P, bt as A, F as M, bj as y, bb as V, al as x, N as H, Y as U, O as k, G as q, u as B } from "./form-BzzldBcB.js";
|
|
5
|
+
import { u as W } from "./use-service-options-base-DSkh5Ayp.js";
|
|
6
|
+
import { D as u } from "./dropdown-field-headless-CO82AsyC.js";
|
|
7
7
|
import { C as Y } from "./chevron-down-icon-CcpVm6B-.js";
|
|
8
8
|
import { E as j } from "./error-icon-hZxQ6DEy.js";
|
|
9
9
|
import { H as G } from "./custom-focus-class-_483Pkwp.js";
|
|
10
10
|
import { s as a } from "./field-rac.module-DfEb7pBp.js";
|
|
11
|
-
import { u as Q } from "./use-dropdown-option-class-name-
|
|
12
|
-
import { u as z } from "./use-dropdown-trigger-class-name-
|
|
11
|
+
import { u as Q } from "./use-dropdown-option-class-name-nZCgStzg.js";
|
|
12
|
+
import { u as z } from "./use-dropdown-trigger-class-name-Ba9Ej9xC.js";
|
|
13
13
|
const J = "00000000-0000-0000-0000-000000000000", K = (e) => {
|
|
14
14
|
const { actions: t } = P(), { t: h } = A(), { addOther: n, addOtherLabel: p } = e, c = p || h("add-other.default-other-option-label"), i = b(!0), d = _(() => {
|
|
15
15
|
var s;
|
|
@@ -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, bj as d, al as D, N, Y as F, o as f, q as h, G as b, u as M, p 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, bj as d, al as D, N, Y as F, o as f, q as h, G as b, u as M, p as A } from "./form-BzzldBcB.js";
|
|
5
|
+
import { u as v } from "./use-service-options-base-DSkh5Ayp.js";
|
|
6
|
+
import { C as i } from "./checkbox-group-field-headless-ikYtTUSV.js";
|
|
7
7
|
import { E as x } from "./error-icon-hZxQ6DEy.js";
|
|
8
8
|
import { C as P } from "./checkbox-indicator-module-classes-6173wvuW.js";
|
|
9
9
|
import { s as n } from "./field-rac.module-DfEb7pBp.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-CEMjabjh.js";
|
|
12
|
+
import { u as k } from "./use-text-input-class-name-B2pSCrTD.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 s, { useRef as $, useContext as Ae, useMemo as be, useCallback as _, useS
|
|
|
2
2
|
import we from "@wix/editor-react-components/AnimatedIcon";
|
|
3
3
|
import { RicosViewer as xe } from "@wix/ricos/viewer";
|
|
4
4
|
import F from "classnames";
|
|
5
|
-
import { aN as Ue, bd as Te, ap as Be, F as Oe, bf as Pe, bb as Me, br as ye, E as me, af as oe, bj as x, bg as W, bl as Ce, bt as He, bc as We, N as Ye, Y as Ze, _ as ke, u as pe, b as Ge, a3 as Ve, a4 as fe, G as $e, Z as ze, a1 as Xe, $ as qe, a2 as je, f as ne, a0 as Je } from "./form-
|
|
5
|
+
import { aN as Ue, bd as Te, ap as Be, F as Oe, bf as Pe, bb as Me, br as ye, E as me, af as oe, bj as x, bg as W, bl as Ce, bt as He, bc as We, N as Ye, Y as Ze, _ as ke, u as pe, b as Ge, a3 as Ve, a4 as fe, G as $e, Z as ze, a1 as Xe, $ as qe, a2 as je, f as ne, a0 as Je } from "./form-BzzldBcB.js";
|
|
6
6
|
import { useHover as Ke, useFocusRing as Qe, mergeProps as et } from "react-aria";
|
|
7
7
|
import { RadioGroup as tt, Button as Ie, TextField as nt, DropZone as at, Input as ot, FileTrigger as rt, RadioField as st, RadioButton as lt } from "react-aria-components";
|
|
8
8
|
import _e from "signature_pad";
|
|
9
9
|
import { f as C, a as A } from "./find-child-C60k4CxG.js";
|
|
10
|
-
import { D as it, E as ct } from "./field-error-headless-
|
|
11
|
-
import { L as ut } from "./field-label-headless-
|
|
10
|
+
import { D as it, E as ct } from "./field-error-headless-CQ8PHjtA.js";
|
|
11
|
+
import { L as ut } from "./field-label-headless-BgAx-Enb.js";
|
|
12
12
|
import { D as dt } from "./data-hooks-Dkw1pbRj.js";
|
|
13
13
|
import { E as mt } from "./error-icon-hZxQ6DEy.js";
|
|
14
14
|
import { s as ae } from "./field-rac.module-DfEb7pBp.js";
|
|
15
|
-
import { u as X } from "./use-element-state-class-name-
|
|
15
|
+
import { u as X } from "./use-element-state-class-name-CEMjabjh.js";
|
|
16
16
|
const pt = typeof s.useId == "function" ? s.useId : () => $(Ue()).current, ft = ({ properties: e }) => e.uploadEnabled === !0, Et = (e, t) => e.fieldType === Oe.SIGNATURE && !e.properties.hidden && !e.properties.disabled && !e.properties.readOnly && (t !== "upload" || ft(e)), gt = (e, t) => e.layout.row - t.layout.row || e.layout.column - t.layout.column, ht = (e) => {
|
|
17
17
|
var o;
|
|
18
18
|
const t = (o = Te().signatureContainer) == null ? void 0 : o.signatureMode, a = Ae(Be);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import t, { useRef as F, useCallback as P } from "react";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { bj as B, bd as
|
|
5
|
-
import { ProgressBar as
|
|
2
|
+
import q from "@wix/editor-react-components/AnimatedIcon";
|
|
3
|
+
import v from "classnames";
|
|
4
|
+
import { bj as B, bd as A, ai as R, b as k, ah as y, ad as M, ac as U, ag as D } from "./form-BzzldBcB.js";
|
|
5
|
+
import { ProgressBar as W, Button as C } from "react-aria-components";
|
|
6
6
|
import { f as m } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { u as
|
|
8
|
-
function
|
|
7
|
+
import { u as N } from "./use-element-state-class-name-CEMjabjh.js";
|
|
8
|
+
function V(e) {
|
|
9
9
|
const s = "calc(50% - 2px)";
|
|
10
|
-
return /* @__PURE__ */ t.createElement(
|
|
10
|
+
return /* @__PURE__ */ t.createElement(W, {
|
|
11
11
|
...e,
|
|
12
12
|
isIndeterminate: !0
|
|
13
13
|
}, ({ percentage: n, isIndeterminate: i }) => /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("svg", {
|
|
@@ -52,47 +52,47 @@ const u = ({ children: e }) => {
|
|
|
52
52
|
}, s, n, i);
|
|
53
53
|
}, L = ({ className: e }) => {
|
|
54
54
|
const { showPreviousButton: o, onPreviousClick: s, previousText: n } = B();
|
|
55
|
-
return o ? /* @__PURE__ */ t.createElement(
|
|
55
|
+
return o ? /* @__PURE__ */ t.createElement(C, {
|
|
56
56
|
className: e,
|
|
57
57
|
onPress: s
|
|
58
58
|
}, n) : null;
|
|
59
59
|
}, I = ({ className: e }) => {
|
|
60
60
|
const { showNextButton: o, onNextClick: s, nextText: n } = B();
|
|
61
|
-
return o ? /* @__PURE__ */ t.createElement(
|
|
61
|
+
return o ? /* @__PURE__ */ t.createElement(C, {
|
|
62
62
|
className: e,
|
|
63
63
|
onPress: s
|
|
64
64
|
}, n) : null;
|
|
65
65
|
}, l = ({ className: e, onHoverStart: o, onHoverEnd: s, children: n }) => {
|
|
66
|
-
const { showSubmitButton: i, onSubmitClick:
|
|
66
|
+
const { showSubmitButton: i, onSubmitClick: f, submitText: p, isDisabled: x, isInProgress: b, isSubmitting: g } = B();
|
|
67
67
|
if (!i)
|
|
68
68
|
return null;
|
|
69
|
-
const E = m(n, l.Label), d = m(n, l.Icon),
|
|
70
|
-
return /* @__PURE__ */ t.createElement(
|
|
69
|
+
const E = m(n, l.Label), d = m(n, l.Icon), S = m(n, l.Loader), c = g || b;
|
|
70
|
+
return /* @__PURE__ */ t.createElement(C, {
|
|
71
71
|
className: e,
|
|
72
72
|
"aria-label": p,
|
|
73
|
-
onPress: c ? void 0 :
|
|
73
|
+
onPress: c ? void 0 : f,
|
|
74
74
|
onHoverStart: o,
|
|
75
75
|
onHoverEnd: s,
|
|
76
76
|
isDisabled: x && !c,
|
|
77
77
|
"aria-disabled": c || void 0,
|
|
78
78
|
"data-in-progress": b
|
|
79
|
-
}, b &&
|
|
79
|
+
}, b && S ? S : /* @__PURE__ */ t.createElement(t.Fragment, null, E ?? /* @__PURE__ */ t.createElement(H, null), d));
|
|
80
80
|
}, H = ({ className: e }) => {
|
|
81
81
|
const { submitText: o } = B();
|
|
82
82
|
return /* @__PURE__ */ t.createElement("span", {
|
|
83
83
|
className: e
|
|
84
84
|
}, o);
|
|
85
|
-
},
|
|
85
|
+
}, j = ({ children: e }) => /* @__PURE__ */ t.createElement(t.Fragment, null, e), X = ({ className: e }) => /* @__PURE__ */ t.createElement("span", {
|
|
86
86
|
className: e
|
|
87
|
-
}, /* @__PURE__ */ t.createElement(
|
|
87
|
+
}, /* @__PURE__ */ t.createElement(V, null));
|
|
88
88
|
l.Label = H;
|
|
89
|
-
l.Icon =
|
|
89
|
+
l.Icon = j;
|
|
90
90
|
l.Loader = X;
|
|
91
91
|
_.PreviousButton = L;
|
|
92
92
|
_.NextButton = I;
|
|
93
93
|
_.SubmitButton = l;
|
|
94
94
|
u.SubmitButton = _;
|
|
95
|
-
const $ = "
|
|
95
|
+
const $ = "_navigationContainer_1vqug_1", z = "_rowSpacing_1vqug_6", G = "_navigationButton_1vqug_10", J = "_nextButton_1vqug_29", K = "_previousButton_1vqug_55", Q = "_navigationButtonHover_1vqug_85", Y = "_button_1vqug_101", Z = "_buttonNoSteps_1vqug_149", tt = "_buttonWithSteps_1vqug_153", et = "_buttonHover_1vqug_157", nt = "_progress_1vqug_181", a = {
|
|
96
96
|
navigationContainer: $,
|
|
97
97
|
rowSpacing: z,
|
|
98
98
|
navigationButton: G,
|
|
@@ -106,22 +106,22 @@ const $ = "_navigationContainer_1fjqg_1", z = "_rowSpacing_1fjqg_6", G = "_navig
|
|
|
106
106
|
progress: nt
|
|
107
107
|
}, ot = () => {
|
|
108
108
|
var T, h;
|
|
109
|
-
const { hasSteps: e, showPreviousButton: o, isDisabled: s, isInProgress: n, isSubmitting: i } = B(), p = !s && !(i || n), { wix: x, className: b, ...
|
|
110
|
-
globalClasses:
|
|
109
|
+
const { hasSteps: e, showPreviousButton: o, isDisabled: s, isInProgress: n, isSubmitting: i } = B(), p = !s && !(i || n), { wix: x, className: b, ...g } = ((h = (T = A().submitButton) == null ? void 0 : T.elementProps) == null ? void 0 : h.icon) ?? {}, E = N({
|
|
110
|
+
globalClasses: M,
|
|
111
111
|
moduleClasses: {
|
|
112
|
-
base:
|
|
112
|
+
base: v(a.navigationButton, a.previousButton),
|
|
113
113
|
hover: a.navigationButtonHover
|
|
114
114
|
}
|
|
115
|
-
}), d =
|
|
116
|
-
globalClasses:
|
|
115
|
+
}), d = N({
|
|
116
|
+
globalClasses: U,
|
|
117
117
|
moduleClasses: {
|
|
118
|
-
base:
|
|
118
|
+
base: v(a.navigationButton, a.nextButton),
|
|
119
119
|
hover: a.navigationButtonHover
|
|
120
120
|
}
|
|
121
|
-
}),
|
|
122
|
-
globalClasses:
|
|
121
|
+
}), S = N({
|
|
122
|
+
globalClasses: D,
|
|
123
123
|
moduleClasses: {
|
|
124
|
-
base:
|
|
124
|
+
base: v(a.button, {
|
|
125
125
|
[a.buttonNoSteps]: !e,
|
|
126
126
|
[a.buttonWithSteps]: e
|
|
127
127
|
}),
|
|
@@ -135,7 +135,7 @@ const $ = "_navigationContainer_1fjqg_1", z = "_rowSpacing_1fjqg_6", G = "_navig
|
|
|
135
135
|
return (r = c.current) == null ? void 0 : r.runAnimationBackward();
|
|
136
136
|
}, []);
|
|
137
137
|
return /* @__PURE__ */ t.createElement(u, null, /* @__PURE__ */ t.createElement(u.SubmitButton, {
|
|
138
|
-
className:
|
|
138
|
+
className: v({
|
|
139
139
|
[a.navigationContainer]: e,
|
|
140
140
|
[a.rowSpacing]: o
|
|
141
141
|
})
|
|
@@ -150,7 +150,7 @@ const $ = "_navigationContainer_1fjqg_1", z = "_rowSpacing_1fjqg_6", G = "_navig
|
|
|
150
150
|
isHovered: r
|
|
151
151
|
})
|
|
152
152
|
}), /* @__PURE__ */ t.createElement(u.SubmitButton.SubmitButton, {
|
|
153
|
-
className: ({ isHovered: r }) =>
|
|
153
|
+
className: ({ isHovered: r }) => S({
|
|
154
154
|
isSelected: !1,
|
|
155
155
|
isHovered: r,
|
|
156
156
|
isInteractive: p
|
|
@@ -158,11 +158,11 @@ const $ = "_navigationContainer_1fjqg_1", z = "_rowSpacing_1fjqg_6", G = "_navig
|
|
|
158
158
|
onHoverStart: O,
|
|
159
159
|
onHoverEnd: w
|
|
160
160
|
}, /* @__PURE__ */ t.createElement(u.SubmitButton.SubmitButton.Label, {
|
|
161
|
-
className:
|
|
162
|
-
}), /* @__PURE__ */ t.createElement(u.SubmitButton.SubmitButton.Icon, null,
|
|
163
|
-
...
|
|
161
|
+
className: R
|
|
162
|
+
}), /* @__PURE__ */ t.createElement(u.SubmitButton.SubmitButton.Icon, null, g.svg ? /* @__PURE__ */ t.createElement(q, {
|
|
163
|
+
...g,
|
|
164
164
|
ref: c,
|
|
165
|
-
className:
|
|
165
|
+
className: v(k, y, b)
|
|
166
166
|
}) : null), /* @__PURE__ */ t.createElement(u.SubmitButton.SubmitButton.Loader, {
|
|
167
167
|
className: a.progress
|
|
168
168
|
}))));
|
|
@@ -2,15 +2,15 @@ import { RicosViewer as Y } from "@wix/ricos/viewer";
|
|
|
2
2
|
import F from "classnames";
|
|
3
3
|
import t, { useMemo as I, useState as w, useRef as N, useLayoutEffect as z, useCallback as k } from "react";
|
|
4
4
|
import { CheckboxGroup as B, TextField as J, Input as K, CheckboxField as X, CheckboxButton as Z } from "react-aria-components";
|
|
5
|
-
import { bj as D, bg as M, bt as S, bl as U, N as ee, Y as te, a6 as ne, G as oe, u as ae, a7 as re } from "./form-
|
|
5
|
+
import { bj as D, bg as M, bt as S, bl as U, N as ee, Y as te, a6 as ne, G as oe, u as ae, a7 as re } from "./form-BzzldBcB.js";
|
|
6
6
|
import { f as O, a as x } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { E as W, D as H } from "./field-error-headless-
|
|
8
|
-
import { L as $ } from "./field-label-headless-
|
|
7
|
+
import { E as W, D as H } from "./field-error-headless-CQ8PHjtA.js";
|
|
8
|
+
import { L as $ } from "./field-label-headless-BgAx-Enb.js";
|
|
9
9
|
import { F as se } from "./fieldset-headless-CD3fds9J.js";
|
|
10
10
|
import { E as le } from "./error-icon-hZxQ6DEy.js";
|
|
11
11
|
import { s as y } from "./field-rac.module-DfEb7pBp.js";
|
|
12
|
-
import { u as ie } from "./use-element-state-class-name-
|
|
13
|
-
import { u as ce } from "./use-text-input-class-name-
|
|
12
|
+
import { u as ie } from "./use-element-state-class-name-CEMjabjh.js";
|
|
13
|
+
import { u as ce } from "./use-text-input-class-name-B2pSCrTD.js";
|
|
14
14
|
var ue = /* @__PURE__ */ (function(e) {
|
|
15
15
|
return e[e.FREE_FLOW = 0] = "FREE_FLOW", e[e.ONE = 1] = "ONE", e[e.TWO = 2] = "TWO", e[e.THREE = 3] = "THREE", e;
|
|
16
16
|
})({});
|