@wix/form-elements 1.127.0 → 1.129.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-BrC7gcpn.js → appointment-rac-BFrtR9Kx.js} +4 -4
- package/dist/component/{bookings-address-rac-D-UmBxjD.js → bookings-address-rac-BiOaHkHb.js} +1 -1
- package/dist/component/{bookings-email-rac-CjHDzU0Q.js → bookings-email-rac-AWVBomja.js} +1 -1
- package/dist/component/{bookings-first-name-rac-ChBkkkWm.js → bookings-first-name-rac-BVxrEBSC.js} +1 -1
- package/dist/component/{bookings-header-rac-ERfGeYyw.js → bookings-header-rac-DZWoWz45.js} +1 -1
- package/dist/component/{bookings-last-name-rac-CuTJ7Y8w.js → bookings-last-name-rac-wsOIAERt.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-pudlQ67l.js → bookings-login-bar-rac-BEFZtTeh.js} +1 -1
- package/dist/component/{bookings-phone-rac-nLPnLRfS.js → bookings-phone-rac-DClujcXK.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-DOmGQlyG.js → bookings-rich-text-rac-ghEjDW-p.js} +1 -1
- package/dist/component/{checkbox-field-rac-DLazY-iO.js → checkbox-field-rac-DvsNu9Rv.js} +4 -4
- package/dist/component/{checkbox-group-field-headless-CPyWmFBH.js → checkbox-group-field-headless-C9-35Ull.js} +3 -3
- package/dist/component/{checkbox-group-field-rac-Bir3gaI9.js → checkbox-group-field-rac-Cj09BgU-.js} +4 -4
- package/dist/component/{checkbox-group-rac-BGXUl-sJ.js → checkbox-group-rac-Buxfb0mq.js} +1 -1
- package/dist/component/{checkbox-rac-D_wZVUFV.js → checkbox-rac-DiHUcWo3.js} +1 -1
- package/dist/component/{contacts-address-rac-CNldSQbf.js → contacts-address-rac-P0OBiw6-.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-AVyldaRF.js → contacts-birthdate-rac-IDz3KjEo.js} +1 -1
- package/dist/component/{contacts-company-rac-CiP1Ctpa.js → contacts-company-rac-CC_USKNp.js} +1 -1
- package/dist/component/{contacts-email-rac-CzjMVEJZ.js → contacts-email-rac-BcRvtene.js} +1 -1
- package/dist/component/{contacts-first-name-rac-G0kE0HmA.js → contacts-first-name-rac-DsybqPgd.js} +1 -1
- package/dist/component/{contacts-last-name-rac-cnTTtnMZ.js → contacts-last-name-rac-BOKeJmHo.js} +1 -1
- package/dist/component/{contacts-phone-rac-DJ9oxox4.js → contacts-phone-rac-Dc_3ZdY_.js} +1 -1
- package/dist/component/{contacts-position-rac-e0uQ-eqL.js → contacts-position-rac-Bn5kybDQ.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-D4J2x78f.js → contacts-subscribe-rac-BouQEOeS.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-DwJuNH-C.js → contacts-tax-id-rac-DJFrxRyu.js} +1 -1
- package/dist/component/{date-availability-D2BSwZ_r.js → date-availability-CWfQIoX1.js} +1 -1
- package/dist/component/{date-input-field-rac-ztJ02C60.js → date-input-field-rac-CP15ihpI.js} +86 -86
- package/dist/component/{date-input-rac-D-SFsC6P.js → date-input-rac-Bf0H1oiA.js} +1 -1
- package/dist/component/{date-picker-field-rac-DaNwsa8z.js → date-picker-field-rac-SOddu2Zu.js} +92 -91
- package/dist/component/{date-picker-rac-Bn0sA6P1.js → date-picker-rac-BdRbAhSB.js} +1 -1
- package/dist/component/date-time-input-field-rac-Bj_uDj6E.js +427 -0
- package/dist/component/{date-time-input-rac-qYLa3IDx.js → date-time-input-rac-Mv_mEil2.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-Dir6tyvo.js → dext-checkbox-group-rac-8kR2EZfL.js} +2 -2
- package/dist/component/{dext-checkbox-rac-ByiMc3BH.js → dext-checkbox-rac-B5CWQuVt.js} +1 -1
- package/dist/component/{dext-date-picker-rac-BwOozu5y.js → dext-date-picker-rac-D_hbdOUB.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-CaJEzZa4.js → dext-date-time-input-rac-DJa6HIBI.js} +1 -1
- package/dist/component/{dext-dropdown-rac-DJnMjggU.js → dext-dropdown-rac-rUST_4lA.js} +1 -1
- package/dist/component/{dext-email-rac-CF4SQ86l.js → dext-email-rac-BN1-DKDv.js} +1 -1
- package/dist/component/{dext-number-input-rac--3goVI8C.js → dext-number-input-rac-CjoV2Zr-.js} +1 -1
- package/dist/component/{dext-phone-rac-MYJYG040.js → dext-phone-rac-BZK-MfUB.js} +1 -1
- package/dist/component/{dext-radio-group-rac-Q2J5Hk5W.js → dext-radio-group-rac-CdSOS1sE.js} +2 -2
- package/dist/component/{dext-rating-input-rac-CAWhD-lI.js → dext-rating-input-rac-DAZjknQn.js} +1 -1
- package/dist/component/{dext-tags-rac-DyxI5ooy.js → dext-tags-rac-ButsCV5O.js} +2 -2
- package/dist/component/{dext-text-area-rac-CZpM-r49.js → dext-text-area-rac-TKwYp5Cp.js} +1 -1
- package/dist/component/{dext-text-input-rac-Bv5Mhyw6.js → dext-text-input-rac-Clcifgwu.js} +1 -1
- package/dist/component/{dext-url-input-rac-BkbTjbAI.js → dext-url-input-rac-1oQFTxHV.js} +1 -1
- package/dist/component/{donation-rac-DZjFeJFy.js → donation-rac-Bh_D5aEJ.js} +5 -5
- package/dist/component/dropdown-field-headless-C-rtyAEo.js +91 -0
- package/dist/component/{dropdown-field-rac-DOAlecw8.js → dropdown-field-rac-Bo3lqJDR.js} +4 -4
- package/dist/component/{dropdown-rac-D8HtaeBe.js → dropdown-rac-C29h60zI.js} +1 -1
- package/dist/component/{ecom-address-rac-B25o-GVv.js → ecom-address-rac-gs7OAQTj.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-NvdWnD0v.js → ecom-subscription-checkbox-rac-CI9zbJqB.js} +2 -2
- package/dist/component/{email-input-field-rac-rWyojsu0.js → email-input-field-rac-D75vjW_1.js} +3 -3
- package/dist/component/{events-repeater-rac-D2HvNt0y.js → events-repeater-rac-UgCJlo2O.js} +4 -4
- package/dist/component/{events-rsvp-rac-D4WLn0Bx.js → events-rsvp-rac-D5YhJy0C.js} +3 -3
- package/dist/component/{field-error-headless-DU0YsEXR.js → field-error-headless-44vAUpwr.js} +1 -1
- package/dist/component/{field-label-headless-CvdTZi6i.js → field-label-headless-Cfo9v3VS.js} +1 -1
- package/dist/component/{file-upload-rac-CMelyfA8.js → file-upload-rac-B-rYIzhu.js} +4 -4
- package/dist/component/{fixed-payment-rac-CewsqE-k.js → fixed-payment-rac-CkbmX7hl.js} +3 -3
- package/dist/component/{form-D9IxiDXP.js → form-tScYihAT.js} +69 -69
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-CYBfb_5D.js → header-field-rac-BtKN5X7s.js} +2 -2
- package/dist/component/{header-rac-BIq3DmbL.js → header-rac-pmryP48d.js} +1 -1
- package/dist/component/{image-choice-rac-aOObRIMi.js → image-choice-rac-ByBjTccP.js} +4 -4
- package/dist/component/{index-D-g3wQ-z.js → index-DXsujvrm.js} +5 -5
- package/dist/component/{index-BXqA4oNj.js → index-Dyso3MNS.js} +2 -2
- package/dist/component/{isObjectLike-BNDXzCto.js → isObjectLike-CUj2YjST.js} +1 -1
- package/dist/component/{multiline-address-field-rac-BcTa7Von.js → multiline-address-field-rac-CkifK7lO.js} +7 -7
- package/dist/component/{multiline-address-rac-Cd_BFreP.js → multiline-address-rac-DfnDSoTY.js} +1 -1
- package/dist/component/non-modal-popover-D-u13tmp.js +64 -0
- package/dist/component/{number-input-field-rac-_JlH34_3.js → number-input-field-rac-BG8cRLXY.js} +4 -4
- package/dist/component/{number-input-rac-CiM20ScT.js → number-input-rac-Byuz2Nub.js} +1 -1
- package/dist/component/{password-rac-DrpXSY74.js → password-rac-BOus-ku5.js} +4 -4
- package/dist/component/{payment-input-rac-RnMeVWDc.js → payment-input-rac-D-CZ6cKL.js} +4 -4
- package/dist/component/{phone-input-field-rac-nNp7D7gK.js → phone-input-field-rac-DCfc-MrP.js} +7 -7
- package/dist/component/{phone-rac-B2JjPT2w.js → phone-rac-1J-t9-Og.js} +1 -1
- package/dist/component/{product-list-rac-Cv_fjFn3.js → product-list-rac-CJ1YZvV9.js} +4 -4
- package/dist/component/{quiz-radio-group-rac-CNqF6Tq3.js → quiz-radio-group-rac-C_JnWUd3.js} +1 -1
- package/dist/component/{radio-button-module-classes-vqR4TN-z.js → radio-button-module-classes-DWh_AiLg.js} +3 -3
- package/dist/component/{radio-group-field-rac-Bpyr40q-.js → radio-group-field-rac-Cp48ayde.js} +4 -4
- package/dist/component/{radio-group-rac-DBLPP0YC.js → radio-group-rac-B7jR2Rb-.js} +1 -1
- package/dist/component/{rating-input-field-rac-BOi0G37L.js → rating-input-field-rac-CHEWLp0k.js} +4 -4
- package/dist/component/{rating-input-rac-CxpmV0Pa.js → rating-input-rac-BX4osXZU.js} +1 -1
- package/dist/component/{rich-content-rac.module-Dmm9GyQq.js → rich-content-rac.module-Ce08oqQ9.js} +1 -1
- package/dist/component/{rich-text-field-rac-C466OrTf.js → rich-text-field-rac-Bi1SDfiU.js} +2 -2
- package/dist/component/{rich-text-rac-BvVxD7oJ.js → rich-text-rac-DdT8jmAf.js} +1 -1
- package/dist/component/{service-dropdown-rac-pmUKH0sP.js → service-dropdown-rac-DPeHyyz_.js} +5 -5
- package/dist/component/{services-multi-choice-rac-B65i6q2D.js → services-multi-choice-rac-CKdjXJR8.js} +5 -5
- package/dist/component/{signature-rac-BRyM06Vz.js → signature-rac-ffVbFXfs.js} +4 -4
- package/dist/component/{submit-button-rac-DaCRjZlQ.js → submit-button-rac-C55AG9QQ.js} +2 -2
- package/dist/component/{tags-field-rac-CEdfh-EQ.js → tags-field-rac-BO2-TOy4.js} +5 -5
- package/dist/component/{tags-rac-CGSTQ0qK.js → tags-rac-BkCC7NCe.js} +1 -1
- package/dist/component/{text-area-field-rac-C-EHPWwQ.js → text-area-field-rac-BwYibo91.js} +4 -4
- package/dist/component/{text-area-rac-Df1nSb2q.js → text-area-rac-DZdY4txw.js} +1 -1
- package/dist/component/{text-input-field-rac-DmCZtBi_.js → text-input-field-rac-WiCBhW6i.js} +3 -3
- package/dist/component/{text-input-headless-DAxEZP1P.js → text-input-headless-B3KeulEf.js} +3 -3
- package/dist/component/{text-input-rac-DgpO17dl.js → text-input-rac-BIyCqBJv.js} +1 -1
- package/dist/component/{time-input-rac-Dld_tLub.js → time-input-rac-CC4UwoED.js} +65 -64
- package/dist/component/{url-input-field-rac-DHZ6bpxZ.js → url-input-field-rac-OppUVl3A.js} +4 -4
- package/dist/component/{url-input-rac-CZlWy5RB.js → url-input-rac-B5_eh6hN.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-opBd-YJA.js → use-dropdown-option-class-name-Bgp-eVle.js} +2 -2
- package/dist/component/{use-dropdown-trigger-class-name-BGQH0WCO.js → use-dropdown-trigger-class-name-BjjdE7MT.js} +2 -2
- package/dist/component/{use-element-state-class-name-B2ecLjwN.js → use-element-state-class-name-BXqvGrEm.js} +1 -1
- package/dist/component/{use-hoverable-input-class-name-B42rAp82.js → use-hoverable-input-class-name-CFgJ095f.js} +2 -2
- package/dist/component/{use-service-options-base-D60-jNUT.js → use-service-options-base-Cspzf1ks.js} +1 -1
- package/dist/component/use-text-input-class-name-DUHXnnCn.js +6 -0
- package/package.json +2 -2
- package/dist/component/date-time-input-field-rac-D-ArMpcJ.js +0 -426
- package/dist/component/dropdown-field-headless-C7l2TQYy.js +0 -91
- package/dist/component/non-modal-popover-DtIMXHbe.js +0 -63
- package/dist/component/use-text-input-class-name-DGpCdZ_e.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 { bh as u, aV as i, aU as C, aX as R, au as T, ac as d } from "./form-
|
|
4
|
-
import { u as g, R as p, s as h, T as S } from "./rich-content-rac.module-
|
|
3
|
+
import { bh as u, aV as i, aU as C, aX as R, au as T, ac as d } from "./form-tScYihAT.js";
|
|
4
|
+
import { u as g, R as p, s as h, T as S } from "./rich-content-rac.module-Ce08oqQ9.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 { bh as b, be as x, bj as P, ba as B, I as q, U, w, y as V, v as j, p as z, x as K, f as g } from "./form-
|
|
4
|
+
import { bh as b, be as x, bj as P, ba as B, I as q, U, w, y as V, v as j, p as z, x as K, f as g } from "./form-tScYihAT.js";
|
|
5
5
|
import { CheckboxGroup as Q, CheckboxField as Y, CheckboxButton as $ } from "react-aria-components";
|
|
6
6
|
import { f as m, a as F } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { L as J, g as W } from "./field-label-headless-
|
|
8
|
-
import { D as X, E as Z } from "./field-error-headless-
|
|
7
|
+
import { L as J, g as W } from "./field-label-headless-Cfo9v3VS.js";
|
|
8
|
+
import { D as X, E as Z } from "./field-error-headless-44vAUpwr.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-BIBNQEOK.js";
|
|
12
|
-
import { u as oe } from "./use-element-state-class-name-
|
|
12
|
+
import { u as oe } from "./use-element-state-class-name-BXqvGrEm.js";
|
|
13
13
|
const o = ({ children: t, className: s }) => {
|
|
14
14
|
const { id: n, value: a, onChange: i, disabled: l, readOnly: r, required: c, onBlur: u, onFocus: p, hasError: C, FieldLayout: L } = b(), { inputId: f, 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,13 +1,13 @@
|
|
|
1
|
-
import { e as R, aC as _, aR as de, aD as O, ai as Ge, B as Be, aw as qe, ap as He, ao as I, ax as Ee, aG as re, aA as Fe, c as B, aq as M, b1 as Te, as as je, ar as he, at as q } from "./form-
|
|
2
|
-
import { aY as Mn } from "./form-
|
|
1
|
+
import { e as R, aC as _, aR as de, aD as O, ai as Ge, B as Be, aw as qe, ap as He, ao as I, ax as Ee, aG as re, aA as Fe, c as B, aq as M, b1 as Te, as as je, ar as he, at as q } from "./form-tScYihAT.js";
|
|
2
|
+
import { aY as Mn } from "./form-tScYihAT.js";
|
|
3
3
|
import Xe from "ajv";
|
|
4
4
|
import ke 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-CWfQIoX1.js";
|
|
10
|
+
import { a as Sn } from "./date-availability-CWfQIoX1.js";
|
|
11
11
|
import { C as tt } from "./calling-country-codes-PyWuOTmF.js";
|
|
12
12
|
function rt(e) {
|
|
13
13
|
var t, r;
|
|
@@ -54,7 +54,7 @@ function ve(e) {
|
|
|
54
54
|
return e.params && "format" in e.params ? e.params.format : void 0;
|
|
55
55
|
}
|
|
56
56
|
function it(e, t, r) {
|
|
57
|
-
return t && (ot(t) ?? ut(e, t) ?? at(e, t) ?? ct(e, t) ??
|
|
57
|
+
return t && (ot(t) ?? ut(e, t) ?? at(e, t) ?? ct(e, t) ?? mt(e, t, r == null ? void 0 : r.value) ?? Ue(e, t, r == null ? void 0 : r.value) ?? t);
|
|
58
58
|
}
|
|
59
59
|
function ot(e) {
|
|
60
60
|
if (!(!e || e.errorType !== R.PATTERN_ERROR))
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b0 as n } from "./form-
|
|
2
|
-
import { A as N, a as S, C as p, av as g, aM as q, aN as D, b2 as L } from "./form-
|
|
1
|
+
import { b0 as n } from "./form-tScYihAT.js";
|
|
2
|
+
import { A as N, a as S, C as p, av as g, aM as q, aN as D, b2 as L } from "./form-tScYihAT.js";
|
|
3
3
|
const l = (e = !1) => ({
|
|
4
4
|
country: {
|
|
5
5
|
required: e
|
|
@@ -2,21 +2,21 @@ import { RicosViewer as G } from "@wix/ricos/viewer";
|
|
|
2
2
|
import L from "classnames";
|
|
3
3
|
import r, { useMemo as q, createContext as Ve, useContext as Ce, useState as be, useRef as x, useCallback as R, useEffect as _e } from "react";
|
|
4
4
|
import { UNSAFE_PortalProvider as _t } from "react-aria";
|
|
5
|
-
import { bc as ft, d as yt, b7 as Pt, b9 as Ct, aM as Tt, aN as wt, aF as Mt, aL as W, F as K, br as Pe, b0 as lt, bh as P, be as T, bj as ae, bd as It, aR as qt, C as Oe, a_ as xt, b2 as Bt, bo as kt, bi as $t, bn as Ut, b5 as Vt, aW as Wt, b4 as Kt, bk as Yt, al as Ht, I as z, U as Q, K as ge, v as Z, p as ee } from "./form-
|
|
5
|
+
import { bc as ft, d as yt, b7 as Pt, b9 as Ct, aM as Tt, aN as wt, aF as Mt, aL as W, F as K, br as Pe, b0 as lt, bh as P, be as T, bj as ae, bd as It, aR as qt, C as Oe, a_ as xt, b2 as Bt, bo as kt, bi as $t, bn as Ut, b5 as Vt, aW as Wt, b4 as Kt, bk as Yt, al as Ht, I as z, U as Q, K as ge, v as Z, p as ee } from "./form-tScYihAT.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 Xt, u as Gt } from "./use-dropdown-trigger-class-name-
|
|
8
|
+
import { a as Xt, u as Gt } from "./use-dropdown-trigger-class-name-BjjdE7MT.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-44vAUpwr.js";
|
|
11
|
+
import { L as de } from "./field-label-headless-Cfo9v3VS.js";
|
|
12
|
+
import { e as zt, c as Qt, a as Zt, r as gt } from "./isObjectLike-CUj2YjST.js";
|
|
13
|
+
import { V as en, u as tn } from "./use-dropdown-option-class-name-Bgp-eVle.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-BIBNQEOK.js";
|
|
19
|
-
import { u as rn } from "./use-text-input-class-name-
|
|
19
|
+
import { u as rn } from "./use-text-input-class-name-DUHXnnCn.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) => {
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import u, { forwardRef as f, useContext as a, useRef as p, useEffect as R, createContext as D } from "react";
|
|
2
|
+
import { useObjectRef as S, useInteractOutside as b } from "react-aria";
|
|
3
|
+
import { OverlayTriggerStateContext as P, useSlottedContext as B, PopoverContext as I, Popover as L, Button as x } from "react-aria-components";
|
|
4
|
+
const T = /* @__PURE__ */ D(null), M = (e) => e != null && e.matches("[aria-haspopup]") ? e : e == null ? void 0 : e.querySelector("[aria-haspopup]"), _ = /* @__PURE__ */ f((e, r) => {
|
|
5
|
+
var h;
|
|
6
|
+
const t = S(r), n = a(P), o = (h = B(I)) == null ? void 0 : h.triggerRef, s = a(T), c = p(0), O = p(!1), i = n == null ? void 0 : n.isOpen;
|
|
7
|
+
R(() => {
|
|
8
|
+
if (!(!i || !t.current || !s))
|
|
9
|
+
return s.current += 1, () => {
|
|
10
|
+
s.current -= 1;
|
|
11
|
+
};
|
|
12
|
+
}, [
|
|
13
|
+
i,
|
|
14
|
+
t,
|
|
15
|
+
s
|
|
16
|
+
]);
|
|
17
|
+
const C = (d) => {
|
|
18
|
+
var l;
|
|
19
|
+
return !((l = M(o == null ? void 0 : o.current)) != null && l.contains(d));
|
|
20
|
+
};
|
|
21
|
+
return b({
|
|
22
|
+
ref: t,
|
|
23
|
+
isDisabled: !i,
|
|
24
|
+
onInteractOutsideStart: () => {
|
|
25
|
+
O.current = c.current > 0;
|
|
26
|
+
},
|
|
27
|
+
onInteractOutside: (d) => {
|
|
28
|
+
!O.current && C(d.target) && (n == null || n.close());
|
|
29
|
+
}
|
|
30
|
+
}), /* @__PURE__ */ u.createElement(T.Provider, {
|
|
31
|
+
value: c
|
|
32
|
+
}, /* @__PURE__ */ u.createElement(L, {
|
|
33
|
+
...e,
|
|
34
|
+
ref: t,
|
|
35
|
+
isNonModal: !0,
|
|
36
|
+
shouldCloseOnInteractOutside: C
|
|
37
|
+
}));
|
|
38
|
+
}), j = "", m = /* @__PURE__ */ f((e, r) => {
|
|
39
|
+
const t = a(P), n = (o) => {
|
|
40
|
+
var c;
|
|
41
|
+
(c = e.onPressStart) == null || c.call(e, o), o.pointerType !== "touch" && o.pointerType !== "keyboard" && (t != null && t.isOpen) && t.close();
|
|
42
|
+
};
|
|
43
|
+
return /* @__PURE__ */ u.createElement(x, {
|
|
44
|
+
...e,
|
|
45
|
+
ref: r,
|
|
46
|
+
onPressStart: n
|
|
47
|
+
});
|
|
48
|
+
}), q = /* @__PURE__ */ f((e, r) => {
|
|
49
|
+
const t = a(P), n = (o) => {
|
|
50
|
+
var s;
|
|
51
|
+
(s = e.onPress) == null || s.call(e, o), t != null && t.isOpen && t.close();
|
|
52
|
+
};
|
|
53
|
+
return /* @__PURE__ */ u.createElement(x, {
|
|
54
|
+
...e,
|
|
55
|
+
ref: r,
|
|
56
|
+
onPress: n
|
|
57
|
+
});
|
|
58
|
+
});
|
|
59
|
+
export {
|
|
60
|
+
q as D,
|
|
61
|
+
j as E,
|
|
62
|
+
_ as N,
|
|
63
|
+
m as S
|
|
64
|
+
};
|
package/dist/component/{number-input-field-rac-_JlH34_3.js → number-input-field-rac-BG8cRLXY.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 U, useCallback as j, useEffect as Q, useRef as $ } from "react";
|
|
4
4
|
import { NumberField as z, Input as G } from "react-aria-components";
|
|
5
|
-
import { bh as _, be as S, br as H, bj as J, I as K, U as W, v as X, p as Y } from "./form-
|
|
5
|
+
import { bh as _, be as S, br as H, bj as J, I as K, U as W, v as X, p as Y } from "./form-tScYihAT.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-44vAUpwr.js";
|
|
8
|
+
import { L as ee } from "./field-label-headless-Cfo9v3VS.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 p } from "./field-rac.module-BIBNQEOK.js";
|
|
13
|
-
import { u as se } from "./use-text-input-class-name-
|
|
13
|
+
import { u as se } from "./use-text-input-class-name-DUHXnnCn.js";
|
|
14
14
|
const e = ({ children: t }) => {
|
|
15
15
|
var F, L, R;
|
|
16
16
|
const { id: a, value: s, onChange: l, disabled: d, required: b, readOnly: o, onBlur: E, onFocus: f, FieldLayout: m, hasError: u, validation: n } = _(), { labelId: y } = S(), D = ((F = n == null ? void 0 : n.number) == null ? void 0 : F.multipleOf) || 1, A = (L = n == null ? void 0 : n.number) == null ? void 0 : L.maximum, g = (R = n == null ? void 0 : n.number) == null ? void 0 : R.minimum, h = O(s), [x, I] = U(h), T = ne(E), V = c(t, e.Label), q = c(t, e.Input), M = c(t, e.Description), k = c(t, e.Error), B = j((N) => {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import e, { useState as N, useRef as S } from "react";
|
|
2
2
|
import { RicosViewer as x } from "@wix/ricos/viewer";
|
|
3
3
|
import d from "classnames";
|
|
4
|
-
import { bh as E, be as I, bj as O, br as A, I as B, U as v, v as V, p as P } from "./form-
|
|
4
|
+
import { bh as E, be as I, bj as O, br as A, I as B, U as v, v as V, p as P } from "./form-tScYihAT.js";
|
|
5
5
|
import { TextField as M, Group as k, Input as q, Button as U } from "react-aria-components";
|
|
6
6
|
import { f as u, a as b } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as j, E as H } from "./field-error-headless-
|
|
8
|
-
import { L as W } from "./field-label-headless-
|
|
7
|
+
import { D as j, E as H } from "./field-error-headless-44vAUpwr.js";
|
|
8
|
+
import { L as W } from "./field-label-headless-Cfo9v3VS.js";
|
|
9
9
|
import { E as Z } from "./error-icon-hZxQ6DEy.js";
|
|
10
10
|
import { H as G } from "./custom-focus-class-_483Pkwp.js";
|
|
11
11
|
import { s as p } from "./field-rac.module-BIBNQEOK.js";
|
|
12
|
-
import { u as Q } from "./use-text-input-class-name-
|
|
12
|
+
import { u as Q } from "./use-text-input-class-name-DUHXnnCn.js";
|
|
13
13
|
const t = ({ children: r, className: o }) => {
|
|
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] = N(!1), F = u(r, t.Label), L = u(r, t.Control), T = u(r, t.Description), h = u(r, 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 w } from "@wix/ricos/viewer";
|
|
3
3
|
import p from "classnames";
|
|
4
4
|
import { TextField as z, Group as J, Input as K } from "react-aria-components";
|
|
5
|
-
import { bh as R, be as D, b9 as T, br as W, bj as X, I as Y, U as Z, v as ee, p as re } from "./form-
|
|
5
|
+
import { bh as R, be as D, b9 as T, br as W, bj as X, I as Y, U as Z, v as ee, p as re } from "./form-tScYihAT.js";
|
|
6
6
|
import { f as i } 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-44vAUpwr.js";
|
|
8
|
+
import { L as ae } from "./field-label-headless-Cfo9v3VS.js";
|
|
9
9
|
import { f as N, 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-BIBNQEOK.js";
|
|
14
|
-
import { u as ie } from "./use-text-input-class-name-
|
|
14
|
+
import { u as ie } from "./use-text-input-class-name-DUHXnnCn.js";
|
|
15
15
|
function ue(e, t) {
|
|
16
16
|
return {
|
|
17
17
|
productId: e.id,
|
package/dist/component/{phone-input-field-rac-nNp7D7gK.js → phone-input-field-rac-DCfc-MrP.js}
RENAMED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { RicosViewer as Ce } from "@wix/ricos/viewer";
|
|
2
2
|
import g from "classnames";
|
|
3
3
|
import t, { useMemo as A, useState as $, useRef as F, useEffect as U, useCallback as Z, createContext as ee, useContext as G, useId as de } from "react";
|
|
4
|
-
import { b0 as ye, br as D, b9 as te, bq as Ee, bh as B, be as ne, bj as fe, I as he, U as ge, H as be, K as Oe, v as _e, p as Ne } from "./form-
|
|
4
|
+
import { b0 as ye, br as D, b9 as te, bq as Ee, bh as B, be as ne, bj as fe, I as he, U as ge, H as be, K as Oe, v as _e, p as Ne } from "./form-tScYihAT.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 H, ListBoxItem as Fe, DialogTrigger as De, Select as Be, Input as re, Autocomplete as Re } from "react-aria-components";
|
|
7
7
|
import { f as h, a as L } from "./find-child-C60k4CxG.js";
|
|
8
|
-
import { D as xe, E as we } from "./field-error-headless-
|
|
9
|
-
import { L as Me } from "./field-label-headless-
|
|
10
|
-
import { N as Te, S as Ae } from "./non-modal-popover-
|
|
8
|
+
import { D as xe, E as we } from "./field-error-headless-44vAUpwr.js";
|
|
9
|
+
import { L as Me } from "./field-label-headless-Cfo9v3VS.js";
|
|
10
|
+
import { N as Te, S as Ae } from "./non-modal-popover-D-u13tmp.js";
|
|
11
11
|
import { u as $e } from "./use-invoke-callback-UH73A_J3.js";
|
|
12
|
-
import { a as ke, u as Ue } from "./use-dropdown-trigger-class-name-
|
|
13
|
-
import { V as Ve, u as qe } from "./use-dropdown-option-class-name-
|
|
12
|
+
import { a as ke, u as Ue } from "./use-dropdown-trigger-class-name-BjjdE7MT.js";
|
|
13
|
+
import { V as Ve, u as qe } from "./use-dropdown-option-class-name-Bgp-eVle.js";
|
|
14
14
|
import ae, { AsYouType as He, isValidPhoneNumber as Ge, isSupportedCountry as Ke } 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 Ye } from "./chevron-down-icon-CcpVm6B-.js";
|
|
|
18
18
|
import { E as je } 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-BIBNQEOK.js";
|
|
21
|
-
import { u as ze } from "./use-text-input-class-name-
|
|
21
|
+
import { u as ze } from "./use-text-input-class-name-DUHXnnCn.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 $, useCallback as M, useRef as B } from "react";
|
|
|
2
2
|
import { RicosViewer as z } from "@wix/ricos/viewer";
|
|
3
3
|
import b from "classnames";
|
|
4
4
|
import { CheckboxField as G, CheckboxButton as j, NumberField as X, Group as J, Button as U, Input as W } from "react-aria-components";
|
|
5
|
-
import { bh as k, be as Y, b9 as w, br as Z, bj as ee, I as te, U as ne, L as ae, O as oe, N as re, H as le, v as se, p as ie, M as ce } from "./form-
|
|
5
|
+
import { bh as k, be as Y, b9 as w, br as Z, bj as ee, I as te, U as ne, L as ae, O as oe, N as re, H as le, v as se, p as ie, M as ce } from "./form-tScYihAT.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-Cfo9v3VS.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-44vAUpwr.js";
|
|
10
10
|
import { F as ye } from "./fieldset-headless-CD3fds9J.js";
|
|
11
11
|
import { g as _e } from "./payment-field-utils-DobiK5Xh.js";
|
|
12
12
|
import { S as be } 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-Bqo0QILF.js";
|
|
15
15
|
import { s as T } from "./field-rac.module-BIBNQEOK.js";
|
|
16
16
|
import { o as Q } 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-BXqvGrEm.js";
|
|
18
18
|
var Le = /* @__PURE__ */ (function(e) {
|
|
19
19
|
return e.crop = "CROP", e.fit = "FIT", e;
|
|
20
20
|
})({}), x = /* @__PURE__ */ (function(e) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import a, { useRef as S, 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 { bh as g, be as $, br as F, bj as x } from "./form-
|
|
3
|
+
import { bh as g, be as $, br as F, bj as x } from "./form-tScYihAT.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-44vAUpwr.js";
|
|
6
|
+
import { L as M } from "./field-label-headless-Cfo9v3VS.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), y = (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-Bpyr40q-.js → radio-group-field-rac-Cp48ayde.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-DWh_AiLg.js";
|
|
5
5
|
import { E as c } from "./error-icon-hZxQ6DEy.js";
|
|
6
6
|
import { s as r } from "./field-rac.module-BIBNQEOK.js";
|
|
7
|
-
import { I as i, U as E, P as p, Q as R, v as O, p as _, R as I } from "./form-
|
|
7
|
+
import { I as i, U as E, P as p, Q as R, v as O, p as _, R as I } from "./form-tScYihAT.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-BXqvGrEm.js";
|
|
10
|
+
import { u } from "./use-text-input-class-name-DUHXnnCn.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-BOi0G37L.js → rating-input-field-rac-CHEWLp0k.js}
RENAMED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { RicosViewer as y } from "@wix/ricos/viewer";
|
|
2
2
|
import m from "classnames";
|
|
3
3
|
import e, { useCallback as N, useState as O, useRef as A } from "react";
|
|
4
|
-
import { bh as I, be as v, br as T, I as H, U as M, S as w, v as B, p as P, T as q } from "./form-
|
|
4
|
+
import { bh as I, be as v, br as T, I as H, U as M, S as w, v as B, p as P, T as q } from "./form-tScYihAT.js";
|
|
5
5
|
import { RadioGroup as G, RadioField as k, RadioButton as x } from "react-aria-components";
|
|
6
6
|
import { f as u, a as U } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as z, E as Q } from "./field-error-headless-
|
|
8
|
-
import { L as Z } from "./field-label-headless-
|
|
7
|
+
import { D as z, E as Q } from "./field-error-headless-44vAUpwr.js";
|
|
8
|
+
import { L as Z } from "./field-label-headless-Cfo9v3VS.js";
|
|
9
9
|
import { E as j } from "./error-icon-hZxQ6DEy.js";
|
|
10
10
|
import { s as g } from "./field-rac.module-BIBNQEOK.js";
|
|
11
|
-
import { u as J } from "./use-element-state-class-name-
|
|
11
|
+
import { u as J } from "./use-element-state-class-name-BXqvGrEm.js";
|
|
12
12
|
const t = ({ children: a }) => {
|
|
13
13
|
const { id: n, value: r, onChange: o, disabled: l, readOnly: d, required: c, hasError: i, onBlur: E, onFocus: C, FieldLayout: R } = I(), { labelId: _ } = v(), L = N((D) => o(Number(D)), [
|
|
14
14
|
o
|
package/dist/component/{rich-content-rac.module-Dmm9GyQq.js → rich-content-rac.module-Ce08oqQ9.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import c, { useState as u } from "react";
|
|
2
|
-
import { bh as a, b9 as i, br as T } from "./form-
|
|
2
|
+
import { bh as a, b9 as i, br as T } from "./form-tScYihAT.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 { bh as m, au as u, ac as i, aU as R, aX as T } from "./form-
|
|
4
|
-
import { u as C, R as d, s as g, T as h } from "./rich-content-rac.module-
|
|
3
|
+
import { bh as m, au as u, ac as i, aU as R, aX as T } from "./form-tScYihAT.js";
|
|
4
|
+
import { u as C, R as d, s as g, T as h } from "./rich-content-rac.module-Ce08oqQ9.js";
|
|
5
5
|
const p = {
|
|
6
6
|
colorPalette: T(),
|
|
7
7
|
customStyles: R()
|
package/dist/component/{service-dropdown-rac-pmUKH0sP.js → service-dropdown-rac-DPeHyyz_.js}
RENAMED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import t, { useRef as T, useMemo as _, useCallback as h, useEffect as b } from "react";
|
|
2
2
|
import { RicosViewer as w } from "@wix/ricos/viewer";
|
|
3
3
|
import E from "classnames";
|
|
4
|
-
import { bd as P, br as A, F as M, bh as y, b9 as U, aj as V, I as x, U as H, K as k, v as q, p 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 { bd as P, br as A, F as M, bh as y, b9 as U, aj as V, I as x, U as H, K as k, v as q, p as B } from "./form-tScYihAT.js";
|
|
5
|
+
import { u as W } from "./use-service-options-base-Cspzf1ks.js";
|
|
6
|
+
import { D as u } from "./dropdown-field-headless-C-rtyAEo.js";
|
|
7
7
|
import { C as j } from "./chevron-down-icon-CcpVm6B-.js";
|
|
8
8
|
import { E as K } from "./error-icon-hZxQ6DEy.js";
|
|
9
9
|
import { H as Q } from "./custom-focus-class-_483Pkwp.js";
|
|
10
10
|
import { s as a } from "./field-rac.module-BIBNQEOK.js";
|
|
11
|
-
import { u as Y } from "./use-dropdown-option-class-name-
|
|
12
|
-
import { u as z } from "./use-dropdown-trigger-class-name-
|
|
11
|
+
import { u as Y } from "./use-dropdown-option-class-name-Bgp-eVle.js";
|
|
12
|
+
import { u as z } from "./use-dropdown-trigger-class-name-BjjdE7MT.js";
|
|
13
13
|
const G = "00000000-0000-0000-0000-000000000000", J = (e) => {
|
|
14
14
|
const { actions: o } = P(), { t: C } = A(), { addOther: n, addOtherLabel: p } = e, c = p || C("add-other.default-other-option-label"), i = T(!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, bh as d, aj as D, I as F, U as N, i as f, k as h, v as b, p as M, j 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, bh as d, aj as D, I as F, U as N, i as f, k as h, v as b, p as M, j as A } from "./form-tScYihAT.js";
|
|
5
|
+
import { u as v } from "./use-service-options-base-Cspzf1ks.js";
|
|
6
|
+
import { C as i } from "./checkbox-group-field-headless-C9-35Ull.js";
|
|
7
7
|
import { E as x } from "./error-icon-hZxQ6DEy.js";
|
|
8
8
|
import { C as P } from "./checkbox-indicator-module-classes-Bqo0QILF.js";
|
|
9
9
|
import { s as n } from "./field-rac.module-BIBNQEOK.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-BXqvGrEm.js";
|
|
12
|
+
import { u as k } from "./use-text-input-class-name-DUHXnnCn.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 V, useContext as Ae, useMemo as be, useCallback as v, useS
|
|
|
2
2
|
import Fe from "@wix/editor-react-components/AnimatedIcon";
|
|
3
3
|
import { RicosViewer as xe } from "@wix/ricos/viewer";
|
|
4
4
|
import w from "classnames";
|
|
5
|
-
import { aL as Ue, bb as Te, an as Oe, F as Pe, bd as Be, b9 as Me, bp as Ce, E as me, ad as ee, bh as U, be as M, bj as Ie, br as He, ba as We, I as Ye, U as Ze, X as ke, p as pe, b as Ve, a0 as Ge, a1 as fe, v as $e, W as ze, _ as Xe, Y as qe, $ as je, f as K, Z as Je } from "./form-
|
|
5
|
+
import { aL as Ue, bb as Te, an as Oe, F as Pe, bd as Be, b9 as Me, bp as Ce, E as me, ad as ee, bh as U, be as M, bj as Ie, br as He, ba as We, I as Ye, U as Ze, X as ke, p as pe, b as Ve, a0 as Ge, a1 as fe, v as $e, W as ze, _ as Xe, Y as qe, $ as je, f as K, Z as Je } from "./form-tScYihAT.js";
|
|
6
6
|
import { useHover as Ke, useFocusRing as Qe, mergeProps as et } from "react-aria";
|
|
7
7
|
import { RadioGroup as tt, Button as ye, 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 I, 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-44vAUpwr.js";
|
|
11
|
+
import { L as ut } from "./field-label-headless-Cfo9v3VS.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 Q } from "./field-rac.module-BIBNQEOK.js";
|
|
15
|
-
import { u as $ } from "./use-element-state-class-name-
|
|
15
|
+
import { u as $ } from "./use-element-state-class-name-BXqvGrEm.js";
|
|
16
16
|
const pt = typeof s.useId == "function" ? s.useId : () => V(Ue()).current, ft = ({ properties: e }) => e.uploadEnabled === !0, Et = (e, t) => e.fieldType === Pe.SIGNATURE && !e.properties.hidden && !e.properties.disabled && !e.properties.readOnly && (t !== "upload" || ft(e)), ht = (e, t) => e.layout.row - t.layout.row || e.layout.column - t.layout.column, gt = (e) => {
|
|
17
17
|
var o;
|
|
18
18
|
const t = (o = Te().signatureContainer) == null ? void 0 : o.signatureMode, a = Ae(Oe);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import t, { useRef as w, useCallback as h } from "react";
|
|
2
2
|
import F from "@wix/editor-react-components/AnimatedIcon";
|
|
3
3
|
import p from "classnames";
|
|
4
|
-
import { bh as b, bb as j, ag as A, b as R, af as k, ab as y, aa as M, ae as U } from "./form-
|
|
4
|
+
import { bh as b, bb as j, ag as A, b as R, af as k, ab as y, aa as M, ae as U } from "./form-tScYihAT.js";
|
|
5
5
|
import { ProgressBar as D, Button as C } from "react-aria-components";
|
|
6
6
|
import { f as m } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { u as N } from "./use-element-state-class-name-
|
|
7
|
+
import { u as N } from "./use-element-state-class-name-BXqvGrEm.js";
|
|
8
8
|
function W(e) {
|
|
9
9
|
const s = "calc(50% - 2px)";
|
|
10
10
|
return /* @__PURE__ */ t.createElement(D, {
|
|
@@ -2,15 +2,15 @@ import { RicosViewer as w } from "@wix/ricos/viewer";
|
|
|
2
2
|
import y from "classnames";
|
|
3
3
|
import t, { useMemo as I, useState as z, useRef as N, useLayoutEffect as B, useCallback as k } from "react";
|
|
4
4
|
import { CheckboxGroup as J, TextField as K, Input as X, CheckboxField as Y, CheckboxButton as Z } from "react-aria-components";
|
|
5
|
-
import { bh as R, be as M, br as S, bj as U, I as ee, U as te, a3 as ne, v as oe, p as ae, a4 as re } from "./form-
|
|
5
|
+
import { bh as R, be as M, br as S, bj as U, I as ee, U as te, a3 as ne, v as oe, p as ae, a4 as re } from "./form-tScYihAT.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-44vAUpwr.js";
|
|
8
|
+
import { L as $ } from "./field-label-headless-Cfo9v3VS.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 D } from "./field-rac.module-BIBNQEOK.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-BXqvGrEm.js";
|
|
13
|
+
import { u as ce } from "./use-text-input-class-name-DUHXnnCn.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
|
})({});
|
|
@@ -2,13 +2,13 @@ import { RicosViewer as N } from "@wix/ricos/viewer";
|
|
|
2
2
|
import o from "classnames";
|
|
3
3
|
import r, { useCallback as T, useRef as O } from "react";
|
|
4
4
|
import { TextField as S, TextArea as y } from "react-aria-components";
|
|
5
|
-
import { bh as p, be as d, bj as x, I as h, U as g, v, p as M } from "./form-
|
|
5
|
+
import { bh as p, be as d, bj as x, I as h, U as g, v, p as M } from "./form-tScYihAT.js";
|
|
6
6
|
import { f as i } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as q, E as B } from "./field-error-headless-
|
|
8
|
-
import { L as k } from "./field-label-headless-
|
|
7
|
+
import { D as q, E as B } from "./field-error-headless-44vAUpwr.js";
|
|
8
|
+
import { L as k } from "./field-label-headless-Cfo9v3VS.js";
|
|
9
9
|
import { E as P } from "./error-icon-hZxQ6DEy.js";
|
|
10
10
|
import { s as c } from "./field-rac.module-BIBNQEOK.js";
|
|
11
|
-
import { u as U } from "./use-text-input-class-name-
|
|
11
|
+
import { u as U } from "./use-text-input-class-name-DUHXnnCn.js";
|
|
12
12
|
const e = ({ children: t }) => {
|
|
13
13
|
const { id: a, value: m, onChange: s, disabled: u, required: n, readOnly: l, onBlur: E, onFocus: I, FieldLayout: b, hasError: f } = p(), { labelId: F } = d(), L = T((A) => {
|
|
14
14
|
s(A);
|
package/dist/component/{text-input-field-rac-DmCZtBi_.js → text-input-field-rac-WiCBhW6i.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-B3KeulEf.js";
|
|
5
5
|
import { E as o } from "./error-icon-hZxQ6DEy.js";
|
|
6
6
|
import { s as a } from "./field-rac.module-BIBNQEOK.js";
|
|
7
|
-
import { I as n, U as c, v as E, p as i } from "./form-
|
|
8
|
-
import { u as p } from "./use-text-input-class-name-
|
|
7
|
+
import { I as n, U as c, v as E, p as i } from "./form-tScYihAT.js";
|
|
8
|
+
import { u as p } from "./use-text-input-class-name-DUHXnnCn.js";
|
|
9
9
|
const I = ({ content: s, locale: m }) => /* @__PURE__ */ e.createElement(l, {
|
|
10
10
|
content: s,
|
|
11
11
|
locale: m
|