@wix/form-elements 1.78.0 → 1.80.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-DWxisWGW.js → appointment-rac-BYisg594.js} +6 -6
- package/dist/component/{bookings-address-rac-BT-VBypp.js → bookings-address-rac-CsILj67y.js} +1 -1
- package/dist/component/{bookings-email-rac-CVpK16ZI.js → bookings-email-rac-CVmAPK_5.js} +1 -1
- package/dist/component/{bookings-first-name-rac-CDe5wve0.js → bookings-first-name-rac-Dh41-RQ_.js} +1 -1
- package/dist/component/{bookings-header-rac-BsMQ2QGm.js → bookings-header-rac-B6Fgfiz5.js} +1 -1
- package/dist/component/{bookings-last-name-rac-Bpg5n4Dr.js → bookings-last-name-rac-CuY8aaXv.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-DnMB_v13.js → bookings-login-bar-rac-B8JBcGs8.js} +2 -2
- package/dist/component/{bookings-phone-rac-B8FoaVqv.js → bookings-phone-rac-Bspc3F7g.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-CqD2O9X7.js → bookings-rich-text-rac-B1o0ZcfK.js} +1 -1
- package/dist/component/{checkbox-field-rac-CydYZGle.js → checkbox-field-rac-thaR4lXB.js} +52 -51
- package/dist/component/{checkbox-group-field-headless-BdrQjLsc.js → checkbox-group-field-headless-DryeaW7l.js} +53 -53
- package/dist/component/{checkbox-group-field-rac-D2mXFpmR.js → checkbox-group-field-rac-CJfbT13O.js} +5 -5
- package/dist/component/{checkbox-group-rac-CTQRNdXf.js → checkbox-group-rac-BwI7UHzO.js} +1 -1
- package/dist/component/checkbox-indicator-module-classes-DqzGZQRQ.js +9 -0
- package/dist/component/{checkbox-rac-d8u0ahzA.js → checkbox-rac-HRTKCRY4.js} +1 -1
- package/dist/component/{contacts-address-rac-CJYLD7fU.js → contacts-address-rac-BIn9plXb.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-BYWcPC9J.js → contacts-birthdate-rac-oGP8bO3I.js} +1 -1
- package/dist/component/{contacts-company-rac-B-hxWRwZ.js → contacts-company-rac-ChdjTt8-.js} +1 -1
- package/dist/component/{contacts-email-rac-9M965qjz.js → contacts-email-rac-BUluFo-o.js} +1 -1
- package/dist/component/{contacts-first-name-rac-BD6j79WW.js → contacts-first-name-rac-tmboINSq.js} +1 -1
- package/dist/component/{contacts-last-name-rac-DJ3UqnhZ.js → contacts-last-name-rac-BaD5OBVf.js} +1 -1
- package/dist/component/{contacts-phone-rac-BQo85LSR.js → contacts-phone-rac-BoX2-IEP.js} +1 -1
- package/dist/component/{contacts-position-rac-D1EEYf-q.js → contacts-position-rac-BNDskehr.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-D3_UmlB-.js → contacts-subscribe-rac-CVaQG4Qy.js} +2 -2
- package/dist/component/{contacts-tax-id-rac-BUFbFFLw.js → contacts-tax-id-rac-Dxgxcv7c.js} +1 -1
- package/dist/component/{date-availability-Vtj_pmEf.js → date-availability-BbrBYxgL.js} +1 -1
- package/dist/component/{date-input-field-rac-BN7Dec-O.js → date-input-field-rac-oibxt2dz.js} +5 -5
- package/dist/component/{date-input-rac-D0EknjCI.js → date-input-rac-h2vrPoah.js} +1 -1
- package/dist/component/{date-picker-field-rac-JmIyqlEg.js → date-picker-field-rac-Cr9PMglz.js} +6 -6
- package/dist/component/{date-picker-rac-CzbmZuUr.js → date-picker-rac-8BOHRpaJ.js} +1 -1
- package/dist/component/{date-time-input-field-rac-9TAf-9BT.js → date-time-input-field-rac-C7CZ4i6-.js} +5 -5
- package/dist/component/{date-time-input-rac-BMC95LdQ.js → date-time-input-rac-BARK1BJc.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-2IUeY8CX.js → dext-checkbox-group-rac-CWc0W-zr.js} +2 -2
- package/dist/component/{dext-checkbox-rac-DC-tLcqg.js → dext-checkbox-rac-NKcTYwpg.js} +1 -1
- package/dist/component/{dext-date-picker-rac-DgQdlofb.js → dext-date-picker-rac-SllyCpYt.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-DgU7Nkxk.js → dext-date-time-input-rac-JT9Pa7TG.js} +1 -1
- package/dist/component/{dext-dropdown-rac-BKxqCr4C.js → dext-dropdown-rac-aBU9t_U4.js} +1 -1
- package/dist/component/{dext-email-rac-coWG-88b.js → dext-email-rac-DKoJiyjE.js} +1 -1
- package/dist/component/{dext-number-input-rac--WG5wQFz.js → dext-number-input-rac-BHkzAyzd.js} +1 -1
- package/dist/component/{dext-phone-rac-ikgoCqRF.js → dext-phone-rac-Ou-fxcN5.js} +1 -1
- package/dist/component/{dext-radio-group-rac-CSmi7-KP.js → dext-radio-group-rac-CH0WlRsF.js} +2 -2
- package/dist/component/{dext-rating-input-rac-CrUReQ7k.js → dext-rating-input-rac-D_jXx_VN.js} +1 -1
- package/dist/component/{dext-tags-rac-C0iyj2fA.js → dext-tags-rac-DBaT-lQT.js} +2 -2
- package/dist/component/{dext-text-area-rac-k1bspboS.js → dext-text-area-rac-DWcCktYi.js} +1 -1
- package/dist/component/{dext-text-input-rac-DvapRpAx.js → dext-text-input-rac-CBX2wgW-.js} +1 -1
- package/dist/component/{dext-url-input-rac-CAut8IVQ.js → dext-url-input-rac-DaqWDzIt.js} +1 -1
- package/dist/component/{donation-rac-BOqNDuTc.js → donation-rac-D1rcPi17.js} +5 -5
- package/dist/component/{dropdown-field-headless-CS5wUgQ6.js → dropdown-field-headless-D7mOjVEJ.js} +3 -3
- package/dist/component/{dropdown-field-rac-MRo5oOWE.js → dropdown-field-rac-DsRuMFo4.js} +3 -3
- package/dist/component/{dropdown-rac-BjdsRMD6.js → dropdown-rac-8Fe66UGi.js} +1 -1
- package/dist/component/{ecom-address-rac-DfYVinX3.js → ecom-address-rac-DbR_WEgu.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-S_Wzz9Jb.js → ecom-subscription-checkbox-rac-ByQsK79_.js} +3 -3
- package/dist/component/{email-input-field-rac-Ci2MzEdX.js → email-input-field-rac-BS0bFS0-.js} +4 -4
- package/dist/component/{events-repeater-rac-DiuDVYBS.js → events-repeater-rac-xhXarOw_.js} +61 -60
- package/dist/component/events-rsvp-rac-BLq-ro2E.js +45 -0
- package/dist/component/{field-error-headless-DvmM1k0W.js → field-error-headless-C7IUibkK.js} +1 -1
- package/dist/component/{field-label-headless-DKn04-OM.js → field-label-headless-BQFy2iAr.js} +1 -1
- package/dist/component/field-rac.module-ColNPUt0.js +23 -0
- package/dist/component/{file-upload-rac-CB6xdN8j.js → file-upload-rac-B84R44Bt.js} +5 -5
- package/dist/component/{fixed-payment-rac-ATi0oywP.js → fixed-payment-rac-D7Asu-Ws.js} +9 -9
- package/dist/component/{form-_3vjdih8.js → form-BmioUKtQ.js} +69 -69
- package/dist/component/{form-element-classes-DZiFyihd.js → form-element-classes-BuM-vthE.js} +67 -49
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-pd3cDG5d.js → header-field-rac-CN5SyZpH.js} +3 -3
- package/dist/component/{header-rac-fSMu24tQ.js → header-rac-B9ITu2YO.js} +1 -1
- package/dist/component/{image-choice-rac-B7kSWlmM.js → image-choice-rac-9ncRxwZd.js} +5 -5
- package/dist/component/{index-BTVyiZNf.js → index-3q1aCLZ8.js} +2 -2
- package/dist/component/{index-QsnKRW-J.js → index-CvWMG1x1.js} +4 -4
- package/dist/component/{isObjectLike-YK6n3FVo.js → isObjectLike-xDv2bEeI.js} +1 -1
- package/dist/component/{multiline-address-field-rac-CDKbEU14.js → multiline-address-field-rac-BLDqei5I.js} +6 -6
- package/dist/component/{multiline-address-rac-DflLsZ5w.js → multiline-address-rac-Dy9Km8P8.js} +1 -1
- package/dist/component/{number-input-field-rac-Bc6vH-Nl.js → number-input-field-rac-Dxu4WHzh.js} +5 -5
- package/dist/component/{number-input-rac-J3DpYc9U.js → number-input-rac-hHEmwPao.js} +1 -1
- package/dist/component/{password-rac-DUsCGTgT.js → password-rac-CEylicEt.js} +5 -5
- package/dist/component/{payment-input-rac-C7ir9WYG.js → payment-input-rac-bvK_YQ78.js} +5 -5
- package/dist/component/{phone-input-field-rac-BTCDRtYe.js → phone-input-field-rac-CqYNWmiA.js} +5 -5
- package/dist/component/{phone-rac-Dk5FzIxX.js → phone-rac-C72xrPL6.js} +1 -1
- package/dist/component/{product-list-rac-BnXK6jhc.js → product-list-rac-DbftZgIh.js} +38 -37
- package/dist/component/quiz-radio-group-rac-Bkg5poft.js +13 -0
- package/dist/component/radio-button-module-classes-Do4JmHrh.js +132 -0
- package/dist/component/radio-group-field-rac-BkoqJYp4.js +47 -0
- package/dist/component/{radio-group-rac-DWJRHfZS.js → radio-group-rac-BGp1iRNt.js} +1 -1
- package/dist/component/{rating-input-field-rac-Bic4P2NB.js → rating-input-field-rac-Bozwq2E7.js} +6 -6
- package/dist/component/{rating-input-rac-B9M2UXqM.js → rating-input-rac-Cxha4VPg.js} +1 -1
- package/dist/component/{rich-content-rac.module-CuxZg6ls.js → rich-content-rac.module-ZXCfVPY-.js} +1 -1
- package/dist/component/{rich-text-field-rac-CLEYP_pZ.js → rich-text-field-rac-Ct4KowMZ.js} +3 -3
- package/dist/component/{rich-text-rac-YRAKNkpJ.js → rich-text-rac-Cek5wjXa.js} +1 -1
- package/dist/component/selection-indicator-XQ8MYHUQ.js +11 -0
- package/dist/component/{service-dropdown-rac-Dg4ijvf0.js → service-dropdown-rac-B3K93XxF.js} +5 -5
- package/dist/component/{services-multi-choice-rac-DcDxYaDU.js → services-multi-choice-rac-2RTQqyG6.js} +7 -7
- package/dist/component/{signature-rac-BDj4xTdv.js → signature-rac-BIbRkW1j.js} +5 -5
- package/dist/component/{submit-button-rac-DIigBeH5.js → submit-button-rac-DofUaqHk.js} +2 -2
- package/dist/component/{tags-field-rac-CJp9XBhV.js → tags-field-rac-DTOthwA5.js} +5 -5
- package/dist/component/{tags-rac-zlatHQ0n.js → tags-rac-DuMX91gd.js} +1 -1
- package/dist/component/{text-area-field-rac-CFm-_Tz9.js → text-area-field-rac-BbHdTAJP.js} +5 -5
- package/dist/component/{text-area-rac-BSJfRYEx.js → text-area-rac-B9lDzZAb.js} +1 -1
- package/dist/component/{text-input-field-rac-ZTDIhRqT.js → text-input-field-rac-B_csZjOh.js} +3 -3
- package/dist/component/{text-input-headless-4hu-GjTm.js → text-input-headless-CVOWyi55.js} +3 -3
- package/dist/component/{text-input-rac-BTx8ELp7.js → text-input-rac-DowwSRpa.js} +1 -1
- package/dist/component/{time-input-rac-DmPMNJPn.js → time-input-rac-D9SXITBr.js} +5 -5
- package/dist/component/{url-input-field-rac-BPN4hmYh.js → url-input-field-rac-BxT0Lgly.js} +5 -5
- package/dist/component/{url-input-rac-CEeg1r2O.js → url-input-rac-GX9rvIJd.js} +1 -1
- package/dist/component/{use-element-state-class-name-DVT9MJFT.js → use-element-state-class-name-nCwOVSGM.js} +1 -1
- package/dist/component/{use-service-options-base-J4FBFnZH.js → use-service-options-base-BO3Ackpl.js} +1 -1
- package/package.json +2 -2
- package/dist/component/checkbox-indicator-module-classes-BcScu147.js +0 -17
- package/dist/component/events-rsvp-rac-Cc27Vkvf.js +0 -38
- package/dist/component/field-rac.module-DjmaTYkc.js +0 -23
- package/dist/component/quiz-radio-group-rac-BW3Vh-ZF.js +0 -13
- package/dist/component/radio-group-field-rac-C7IlBNGI.js +0 -40
- package/dist/component/radio-group-field-rac.module-BRkiHqU7.js +0 -124
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import m from "classnames";
|
|
2
2
|
import e from "react";
|
|
3
|
-
import { ai as i, X as u, W as C, Z as R, L as T } from "./form-
|
|
4
|
-
import { u as d, R as g, s as p, T as S } from "./rich-content-rac.module-
|
|
5
|
-
import { a6 as h } from "./form-element-classes-
|
|
3
|
+
import { ai as i, X as u, W as C, Z as R, L as T } from "./form-BmioUKtQ.js";
|
|
4
|
+
import { u as d, R as g, s as p, T as S } from "./rich-content-rac.module-ZXCfVPY-.js";
|
|
5
|
+
import { a6 as h } from "./form-element-classes-BuM-vthE.js";
|
|
6
6
|
const P = ({ truncate: t = !0 } = {}) => {
|
|
7
7
|
const { content: a, maxShownParagraphs: s } = i(), o = e.useMemo(() => ({
|
|
8
8
|
colorPalette: R(),
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import e, { useMemo as M, useCallback as y, useRef as x } from "react";
|
|
2
2
|
import { RicosViewer as T } from "@wix/ricos/viewer";
|
|
3
3
|
import d from "classnames";
|
|
4
|
-
import { ai as L, af as k, ab as B, ak as H, ac as P } from "./form-
|
|
4
|
+
import { ai as L, af as k, ab as B, ak as H, ac as P } from "./form-BmioUKtQ.js";
|
|
5
5
|
import { CheckboxGroup as q, CheckboxField as G, CheckboxButton as U } from "react-aria-components";
|
|
6
6
|
import { f as p, a as g } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { L as w, g as z } from "./field-label-headless-
|
|
8
|
-
import { D as V, E as K } from "./field-error-headless-
|
|
7
|
+
import { L as w, g as z } from "./field-label-headless-BQFy2iAr.js";
|
|
8
|
+
import { D as V, E as K } from "./field-error-headless-C7IUibkK.js";
|
|
9
9
|
import { F as Q } from "./fieldset-headless-CD3fds9J.js";
|
|
10
10
|
import { E as Y } from "./error-icon-hZxQ6DEy.js";
|
|
11
|
-
import { s as b } from "./field-rac.module-
|
|
12
|
-
import { z as $, P as j, t as J, u as W, v as X, p as Z, i as ee, F as te } from "./form-element-classes-
|
|
11
|
+
import { s as b } from "./field-rac.module-ColNPUt0.js";
|
|
12
|
+
import { z as $, P as j, t as J, u as W, v as X, p as Z, i as ee, F as te } from "./form-element-classes-BuM-vthE.js";
|
|
13
13
|
const a = ({ children: t }) => {
|
|
14
14
|
const { id: s, value: o, onChange: n, disabled: l, readOnly: i, required: r, onBlur: c, onFocus: m, hasError: E, FieldLayout: f } = L(), { inputId: C, labelId: _, ariaDescribedBy: O } = k(), R = p(t, a.Label), D = p(t, a.Options), N = p(t, a.Description), S = p(t, a.Error), A = M(() => o || [], [
|
|
15
15
|
o
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a2 as n } from "./form-
|
|
2
|
-
import { A as S, a as p, C as N, M as g, G as q, H as D, a4 as L } from "./form-
|
|
1
|
+
import { a2 as n } from "./form-BmioUKtQ.js";
|
|
2
|
+
import { A as S, a as p, C as N, M as g, G as q, H as D, a4 as L } from "./form-BmioUKtQ.js";
|
|
3
3
|
const l = (e = !1) => ({
|
|
4
4
|
country: {
|
|
5
5
|
required: e
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { d as R, V as _, Q as de, s as O, g as Ge, B as Be, N as qe, I as He, l as A, P as Ee, v as re, S as Fe, b as B, m as M, a3 as Te, o as je, n as he, p as q } from "./form-
|
|
2
|
-
import { _ as Mn } from "./form-
|
|
1
|
+
import { d as R, V as _, Q as de, s as O, g as Ge, B as Be, N as qe, I as He, l as A, P as Ee, v as re, S as Fe, b as B, m as M, a3 as Te, o as je, n as he, p as q } from "./form-BmioUKtQ.js";
|
|
2
|
+
import { _ as Mn } from "./form-BmioUKtQ.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-BbrBYxgL.js";
|
|
10
|
+
import { a as Sn } from "./date-availability-BbrBYxgL.js";
|
|
11
11
|
import { C as tt } from "./calling-country-codes-PyWuOTmF.js";
|
|
12
12
|
function rt(e) {
|
|
13
13
|
var t, r;
|
|
@@ -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 Mt, u as qt, z as V, F as K, as as Me, 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 Ht } from "./form-
|
|
5
|
+
import { ad as bt, c as ft, a9 as Pt, ab as yt, G as Tt, H as Mt, u as qt, z as V, F as K, as as Me, 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 Ht } from "./form-BmioUKtQ.js";
|
|
6
6
|
import { f as E, a as h } from "./find-child-C60k4CxG.js";
|
|
7
7
|
import { F as jt, 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-C7IUibkK.js";
|
|
10
|
+
import { L as ue } from "./field-label-headless-BQFy2iAr.js";
|
|
11
|
+
import { e as zt, c as Gt, a as Xt, r as Ot } from "./isObjectLike-xDv2bEeI.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, P as Z, y as ee, B as ge, p as te, i as ne } from "./form-element-classes-
|
|
16
|
+
import { s as f } from "./field-rac.module-ColNPUt0.js";
|
|
17
|
+
import { z as Q, P as Z, y as ee, B as ge, p as te, i as ne } from "./form-element-classes-BuM-vthE.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-Bc6vH-Nl.js → number-input-field-rac-Dxu4WHzh.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 z, useEffect as Q, useRef as $ } from "react";
|
|
4
4
|
import { NumberField as j, 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-BmioUKtQ.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-C7IUibkK.js";
|
|
8
|
+
import { L as X } from "./field-label-headless-BQFy2iAr.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, P as te, y as ne, p as ae, i as se } from "./form-element-classes-
|
|
12
|
+
import { s as i } from "./field-rac.module-ColNPUt0.js";
|
|
13
|
+
import { z as re, P as te, y as ne, p as ae, i as se } from "./form-element-classes-BuM-vthE.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, M = (R = t == null ? void 0 : t.number) == null ? void 0 : R.minimum, T = _(s), [V, I] = U(T), g = w(b), h = d(n, e.Label), k = d(n, e.Input), q = d(n, e.Description), x = d(n, e.Error), B = z((N) => {
|
|
@@ -1,15 +1,15 @@
|
|
|
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 E, af as I, ak as x, as as A } from "./form-
|
|
4
|
+
import { ai as E, af as I, ak as x, as as A } from "./form-BmioUKtQ.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 p, 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-C7IUibkK.js";
|
|
8
|
+
import { L as q } from "./field-label-headless-BQFy2iAr.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, P as W, y as Z, p as z, i as G } from "./form-element-classes-
|
|
11
|
+
import { s as u } from "./field-rac.module-ColNPUt0.js";
|
|
12
|
+
import { z as H, P as W, y as Z, p as z, i as G } from "./form-element-classes-BuM-vthE.js";
|
|
13
13
|
const t = ({ children: r, className: o }) => {
|
|
14
14
|
const { id: i, value: s, onChange: c, disabled: l, readOnly: m, required: n, hasError: a, onBlur: f, onFocus: _, FieldLayout: y } = E(), { labelId: C } = I(), [F, L] = h(!1), R = p(r, t.Label), D = p(r, t.Control), T = p(r, t.Description), S = p(r, t.Error);
|
|
15
15
|
return /* @__PURE__ */ e.createElement(y, {
|
|
@@ -2,16 +2,16 @@ import r, { useCallback as V, useRef as Q } from "react";
|
|
|
2
2
|
import { RicosViewer as j } 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-BmioUKtQ.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-C7IUibkK.js";
|
|
8
|
+
import { L as ee } from "./field-label-headless-BQFy2iAr.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, P as oe, y as le, p as ce, i as ie } from "./form-element-classes-
|
|
13
|
+
import { s as u } from "./field-rac.module-ColNPUt0.js";
|
|
14
|
+
import { z as se, P as oe, y as le, p as ce, i as ie } from "./form-element-classes-BuM-vthE.js";
|
|
15
15
|
function ue(e, t) {
|
|
16
16
|
return {
|
|
17
17
|
productId: e.id,
|
package/dist/component/{phone-input-field-rac-BTCDRtYe.js → phone-input-field-rac-CqYNWmiA.js}
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { RicosViewer as ye } from "@wix/ricos/viewer";
|
|
2
2
|
import b from "classnames";
|
|
3
3
|
import t, { useMemo as B, useState as V, useRef as P, useEffect as w, useCallback as j, createContext as te, useContext as q } from "react";
|
|
4
|
-
import { a2 as Ee, as as v, ab as ne, ar as fe, ai as M, af as oe, ak as he } from "./form-
|
|
4
|
+
import { a2 as Ee, as as v, ab as ne, ar as fe, ai as M, af as oe, ak as he } from "./form-BmioUKtQ.js";
|
|
5
5
|
import { UNSAFE_PortalProvider as ge } from "react-aria";
|
|
6
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 Pe, Autocomplete as ve } 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-C7IUibkK.js";
|
|
9
|
+
import { L as Re } from "./field-label-headless-BQFy2iAr.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, P as Ve, y as qe, B as ze, p as Ge, i as He } from "./form-element-classes-
|
|
18
|
+
import { s as _ } from "./field-rac.module-ColNPUt0.js";
|
|
19
|
+
import { z as ke, P as Ve, y as qe, B as ze, p as Ge, i as He } from "./form-element-classes-BuM-vthE.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)
|
|
@@ -2,38 +2,39 @@ import t, { useMemo as H, useCallback as x, useRef as B } from "react";
|
|
|
2
2
|
import { RicosViewer as K } from "@wix/ricos/viewer";
|
|
3
3
|
import _ from "classnames";
|
|
4
4
|
import { CheckboxField as $, CheckboxButton as X, NumberField as j, Group as J, Button as U, Input as W } from "react-aria-components";
|
|
5
|
-
import { ai as
|
|
5
|
+
import { ai as k, af as Y, ab as w, as as Z, ak as ee } from "./form-BmioUKtQ.js";
|
|
6
6
|
import { f as b, a as I } 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-BQFy2iAr.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-C7IUibkK.js";
|
|
10
10
|
import { F as le } from "./fieldset-headless-CD3fds9J.js";
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { E as
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
11
|
+
import { g as se } from "./payment-field-utils-DobiK5Xh.js";
|
|
12
|
+
import { S as ie } from "./selection-indicator-XQ8MYHUQ.js";
|
|
13
|
+
import { E as ce } from "./error-icon-hZxQ6DEy.js";
|
|
14
|
+
import { C as ue } from "./checkbox-indicator-module-classes-DqzGZQRQ.js";
|
|
15
|
+
import { s as T } from "./field-rac.module-ColNPUt0.js";
|
|
16
|
+
import { z as me, P as pe, C as de, G as Ee, E as ye, y as fe, p as _e, i as Ie, D as be } from "./form-element-classes-BuM-vthE.js";
|
|
16
17
|
import { o as Q } from "./options-rac.module-KM-VT_KY.js";
|
|
17
|
-
import { u as Oe } from "./use-element-state-class-name-
|
|
18
|
+
import { u as Oe } from "./use-element-state-class-name-nCwOVSGM.js";
|
|
18
19
|
var Le = /* @__PURE__ */ (function(e) {
|
|
19
20
|
return e.crop = "CROP", e.fit = "FIT", e;
|
|
20
|
-
})({}),
|
|
21
|
+
})({}), M = /* @__PURE__ */ (function(e) {
|
|
21
22
|
return e.oneByOne = "one-by-one", e.onlyOne = "only-one", e.many = "many", e;
|
|
22
23
|
})({});
|
|
23
24
|
function Ce({ maxItems: e, products: a } = {}) {
|
|
24
|
-
return e === 1 ?
|
|
25
|
+
return e === 1 ? M.onlyOne : a != null && a.length && a.every((l) => {
|
|
25
26
|
var n;
|
|
26
27
|
return typeof ((n = l.quantityLimit) == null ? void 0 : n.maximum) > "u";
|
|
27
|
-
}) ?
|
|
28
|
+
}) ? M.many : M.oneByOne;
|
|
28
29
|
}
|
|
29
30
|
const o = ({ children: e }) => {
|
|
30
31
|
var D;
|
|
31
|
-
const { id: a, value: l, onChange: n, disabled: r, readOnly: c, required: y, onBlur: O, onFocus: s, hasError: u, validation: m, FieldLayout: p } =
|
|
32
|
+
const { id: a, value: l, onChange: n, disabled: r, readOnly: c, required: y, onBlur: O, onFocus: s, hasError: u, validation: m, FieldLayout: p } = k(), { inputId: q, labelId: N, ariaDescribedBy: h } = Y(), f = b(e, o.Label), g = b(e, o.Options), v = b(e, o.Description), L = b(e, o.Error), i = H(() => l || [], [
|
|
32
33
|
l
|
|
33
|
-
]), A = Ce((D = m == null ? void 0 : m.predefined) == null ? void 0 : D.paymentOptions) ===
|
|
34
|
-
const d = i.filter((G) => G.productId !==
|
|
34
|
+
]), A = Ce((D = m == null ? void 0 : m.predefined) == null ? void 0 : D.paymentOptions) === M.many, F = x((S, R) => {
|
|
35
|
+
const d = i.filter((G) => G.productId !== S.productId), z = R ? [
|
|
35
36
|
...d,
|
|
36
|
-
|
|
37
|
+
S
|
|
37
38
|
] : d;
|
|
38
39
|
n == null || n(z);
|
|
39
40
|
}, [
|
|
@@ -61,12 +62,12 @@ const o = ({ children: e }) => {
|
|
|
61
62
|
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, L, v)
|
|
62
63
|
});
|
|
63
64
|
}, V = ({ children: e, className: a, ...l }) => {
|
|
64
|
-
const { allowMany: n, productValues: r, onProductChange: c, disabled: y, readOnly: O, hasError: s } = l, { options: u, validation: m, imageResize: p } =
|
|
65
|
+
const { allowMany: n, productValues: r, onProductChange: c, disabled: y, readOnly: O, hasError: s } = l, { options: u, validation: m, imageResize: p } = k(), { currency: q } = w(), { t: N } = Z(), h = b(e, o.Option);
|
|
65
66
|
return /* @__PURE__ */ t.createElement("div", {
|
|
66
67
|
className: a
|
|
67
68
|
}, u == null ? void 0 : u.map((f, g) => {
|
|
68
|
-
var C, A, F, D,
|
|
69
|
-
const v = ((
|
|
69
|
+
var C, A, F, D, S;
|
|
70
|
+
const v = ((S = (D = (F = (A = (C = m == null ? void 0 : m.predefined) == null ? void 0 : C.paymentOptions) == null ? void 0 : A.products) == null ? void 0 : F.find((R) => R.id === f.value)) == null ? void 0 : D.fixedPriceOptions) == null ? void 0 : S.price) || "0", L = se(N, q), i = r.find((R) => R.productId === f.value);
|
|
70
71
|
return I(h, {
|
|
71
72
|
key: f.id || f.value || f.label,
|
|
72
73
|
option: f,
|
|
@@ -84,7 +85,7 @@ const o = ({ children: e }) => {
|
|
|
84
85
|
});
|
|
85
86
|
}));
|
|
86
87
|
}, E = ({ children: e, className: a, ...l }) => {
|
|
87
|
-
const { option: n, price: r, quantity: c = 0, isSelected: y, allowMany: O, onProductChange: s, disabled: u, readOnly: m, hasError: p, currencyAriaLabel: q, imageResize: N, isFirst: h } = l, { id: f } =
|
|
88
|
+
const { option: n, price: r, quantity: c = 0, isSelected: y, allowMany: O, onProductChange: s, disabled: u, readOnly: m, hasError: p, currencyAriaLabel: q, imageResize: N, isFirst: h } = l, { id: f } = k(), g = B(null), v = B(null), L = b(e, E.Image), i = b(e, E.Label), C = b(e, E.Price), A = b(e, E.Input), F = b(e, E.Quantity);
|
|
88
89
|
ee(() => {
|
|
89
90
|
var d;
|
|
90
91
|
h && ((d = g.current ?? v.current) == null || d.focus({
|
|
@@ -101,7 +102,7 @@ const o = ({ children: e }) => {
|
|
|
101
102
|
s,
|
|
102
103
|
n.value,
|
|
103
104
|
r
|
|
104
|
-
]),
|
|
105
|
+
]), S = x((d) => {
|
|
105
106
|
s({
|
|
106
107
|
productId: n.value,
|
|
107
108
|
price: r,
|
|
@@ -124,7 +125,7 @@ const o = ({ children: e }) => {
|
|
|
124
125
|
price: r
|
|
125
126
|
}) : null, F ? I(F, {
|
|
126
127
|
quantity: c,
|
|
127
|
-
onQuantityChange:
|
|
128
|
+
onQuantityChange: S,
|
|
128
129
|
disabled: u,
|
|
129
130
|
readOnly: m,
|
|
130
131
|
hasError: p,
|
|
@@ -218,7 +219,7 @@ const o = ({ children: e }) => {
|
|
|
218
219
|
E.Image = Re;
|
|
219
220
|
E.Label = ge;
|
|
220
221
|
E.Price = Fe;
|
|
221
|
-
E.Input =
|
|
222
|
+
E.Input = ie;
|
|
222
223
|
E.Quantity = De;
|
|
223
224
|
V.Option = E;
|
|
224
225
|
o.Label = te;
|
|
@@ -226,9 +227,9 @@ o.Options = V;
|
|
|
226
227
|
o.Option = E;
|
|
227
228
|
o.Description = oe;
|
|
228
229
|
o.Error = re;
|
|
229
|
-
const
|
|
230
|
-
options:
|
|
231
|
-
option:
|
|
230
|
+
const Se = "_options_11x4v_1", Pe = "_option_11x4v_1", Ne = "_optionInput_11x4v_21", he = "_optionImage_11x4v_32", ve = "_optionLabel_11x4v_66", Ae = "_optionPrice_11x4v_73", Te = "_quantity_11x4v_87", P = {
|
|
231
|
+
options: Se,
|
|
232
|
+
option: Pe,
|
|
232
233
|
optionInput: Ne,
|
|
233
234
|
optionImage: he,
|
|
234
235
|
optionLabel: ve,
|
|
@@ -240,32 +241,32 @@ const Pe = "_options_11x4v_1", Se = "_option_11x4v_1", Ne = "_optionInput_11x4v_
|
|
|
240
241
|
}), xe = () => {
|
|
241
242
|
const e = Oe({
|
|
242
243
|
globalClasses: be,
|
|
243
|
-
moduleClasses:
|
|
244
|
+
moduleClasses: ue
|
|
244
245
|
});
|
|
245
246
|
return /* @__PURE__ */ t.createElement(o, null, /* @__PURE__ */ t.createElement(o.Label, {
|
|
246
247
|
className: _(me, T.label)
|
|
247
248
|
}, /* @__PURE__ */ t.createElement(o.Label.Required, {
|
|
248
249
|
className: _(pe, T.requiredMark)
|
|
249
250
|
})), /* @__PURE__ */ t.createElement(o.Options, {
|
|
250
|
-
className: _(de, Q.options,
|
|
251
|
+
className: _(de, Q.options, P.options)
|
|
251
252
|
}, /* @__PURE__ */ t.createElement(o.Option, {
|
|
252
|
-
className: _(T.checkbox,
|
|
253
|
+
className: _(T.checkbox, P.option)
|
|
253
254
|
}, /* @__PURE__ */ t.createElement(o.Option.Image, {
|
|
254
|
-
className:
|
|
255
|
+
className: P.optionImage
|
|
255
256
|
}), /* @__PURE__ */ t.createElement(o.Option.Label, {
|
|
256
|
-
className: _(Ee, Q.optionLabel,
|
|
257
|
+
className: _(Ee, Q.optionLabel, P.optionLabel)
|
|
257
258
|
}), /* @__PURE__ */ t.createElement(o.Option.Price, {
|
|
258
|
-
className: _(ye,
|
|
259
|
+
className: _(ye, P.optionPrice)
|
|
259
260
|
}), /* @__PURE__ */ t.createElement(o.Option.Input, {
|
|
260
|
-
className: (a) => _(e(a),
|
|
261
|
+
className: (a) => _(e(a), P.optionInput)
|
|
261
262
|
}), /* @__PURE__ */ t.createElement(o.Option.Quantity, {
|
|
262
|
-
className: _(fe, T.inputGroup,
|
|
263
|
+
className: _(fe, T.inputGroup, P.quantity)
|
|
263
264
|
}))), /* @__PURE__ */ t.createElement(o.Error, {
|
|
264
265
|
className: _(_e, T.error)
|
|
265
|
-
}, /* @__PURE__ */ t.createElement(
|
|
266
|
+
}, /* @__PURE__ */ t.createElement(ce, null), /* @__PURE__ */ t.createElement(o.Error.Text, null)), /* @__PURE__ */ t.createElement(o.Description, {
|
|
266
267
|
className: _(Ie, T.description)
|
|
267
268
|
}, qe));
|
|
268
|
-
},
|
|
269
|
+
}, et = () => /* @__PURE__ */ t.createElement(xe, null);
|
|
269
270
|
export {
|
|
270
|
-
|
|
271
|
+
et as ProductListRAC
|
|
271
272
|
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import _ from "react";
|
|
2
|
+
import { R } from "./radio-group-field-rac-BkoqJYp4.js";
|
|
3
|
+
import { J as o, I as r, H as O } from "./form-element-classes-BuM-vthE.js";
|
|
4
|
+
const e = () => /* @__PURE__ */ _.createElement(R, {
|
|
5
|
+
classes: {
|
|
6
|
+
container: O,
|
|
7
|
+
label: r,
|
|
8
|
+
radioButton: o
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
export {
|
|
12
|
+
e as QuizRadioGroupRAC
|
|
13
|
+
};
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import l, { useRef as S, useState as V, useEffect as B, useCallback as T } from "react";
|
|
2
|
+
import { RadioGroup as H, RadioField as k, RadioButton as M, TextField as U, Input as A } from "react-aria-components";
|
|
3
|
+
import { ai as v, af as G, as as F, ab as P, ak as $ } from "./form-BmioUKtQ.js";
|
|
4
|
+
import { f as p, a as y } from "./find-child-C60k4CxG.js";
|
|
5
|
+
import { D as q, E as x } from "./field-error-headless-C7IUibkK.js";
|
|
6
|
+
import { L as j } from "./field-label-headless-BQFy2iAr.js";
|
|
7
|
+
import { N as w } from "./options-layout-constants-DEfIEJWD.js";
|
|
8
|
+
import { S as z } from "./selection-indicator-XQ8MYHUQ.js";
|
|
9
|
+
const L = "Other", J = (e, t) => e == null ? void 0 : e.find((o) => (o.value ?? o.label) === t), R = (e, t) => !!t && !J(e, t), K = (e, t) => {
|
|
10
|
+
const a = t ? t.length + 2 : 0;
|
|
11
|
+
return e.slice(a);
|
|
12
|
+
}, c = ({ children: e }) => {
|
|
13
|
+
const { id: t, value: o, onChange: a, disabled: O, readOnly: b, required: h, onBlur: f, onFocus: _, hasError: E, FieldLayout: r, options: s } = v(), { inputId: u, labelId: C, ariaDescribedBy: n } = G(), d = p(e, c.Label), i = p(e, c.Options), I = p(e, c.Description), N = p(e, c.Error), D = R(s, o) ? L : o || null;
|
|
14
|
+
return /* @__PURE__ */ l.createElement(r, {
|
|
15
|
+
fieldId: t,
|
|
16
|
+
renderLabel: () => y(d, {
|
|
17
|
+
as: "div"
|
|
18
|
+
}),
|
|
19
|
+
renderInput: () => /* @__PURE__ */ l.createElement(H, {
|
|
20
|
+
id: u,
|
|
21
|
+
"aria-labelledby": C,
|
|
22
|
+
"aria-describedby": n,
|
|
23
|
+
value: D,
|
|
24
|
+
onChange: a,
|
|
25
|
+
isDisabled: O,
|
|
26
|
+
isReadOnly: b,
|
|
27
|
+
isRequired: h,
|
|
28
|
+
isInvalid: E,
|
|
29
|
+
onBlur: f,
|
|
30
|
+
onFocus: _
|
|
31
|
+
}, i),
|
|
32
|
+
renderDescription: () => /* @__PURE__ */ l.createElement(l.Fragment, null, N, I)
|
|
33
|
+
});
|
|
34
|
+
}, Q = ({ children: e, className: t }) => {
|
|
35
|
+
const { options: o, addOther: a, addOtherLabel: O, id: b, numberOfColumns: h, hasError: f } = v(), { t: _ } = F(), { isMobile: E } = P(), r = p(e, c.Option), s = S(null), u = O || _("add-other.default-other-option-label") || L, C = E ? w.ONE : h;
|
|
36
|
+
return $(() => {
|
|
37
|
+
var n;
|
|
38
|
+
(n = s.current) == null || n.focus();
|
|
39
|
+
}, b), /* @__PURE__ */ l.createElement("div", {
|
|
40
|
+
className: t,
|
|
41
|
+
"data-columns": C,
|
|
42
|
+
"data-invalid": f
|
|
43
|
+
}, o.map((n, d) => y(r, {
|
|
44
|
+
key: n.value ?? n.label,
|
|
45
|
+
value: n.value ?? n.label,
|
|
46
|
+
label: n.label,
|
|
47
|
+
index: d,
|
|
48
|
+
radioRef: d === 0 ? s : void 0
|
|
49
|
+
})), a && y(r, {
|
|
50
|
+
key: L,
|
|
51
|
+
value: L,
|
|
52
|
+
label: u,
|
|
53
|
+
isOther: !0
|
|
54
|
+
}));
|
|
55
|
+
}, m = ({ children: e, className: t, ...o }) => {
|
|
56
|
+
var d;
|
|
57
|
+
const { value: a, label: O, isOther: b = !1, radioRef: h } = o, { value: f, options: _ } = v(), E = p(e, m.Label), r = p(e, m.Input), s = p(e, m.Control), u = p(e, m.OtherInput), C = b ? R(_, f) : f === a, n = (d = r == null ? void 0 : r.props) == null ? void 0 : d.className;
|
|
58
|
+
return /* @__PURE__ */ l.createElement("div", {
|
|
59
|
+
className: t
|
|
60
|
+
}, /* @__PURE__ */ l.createElement(k, {
|
|
61
|
+
value: a
|
|
62
|
+
}, /* @__PURE__ */ l.createElement(M, {
|
|
63
|
+
ref: h,
|
|
64
|
+
className: n
|
|
65
|
+
}, ({ isSelected: i, isHovered: I }) => /* @__PURE__ */ l.createElement(l.Fragment, null, y(s, {
|
|
66
|
+
isSelected: i,
|
|
67
|
+
isHovered: I
|
|
68
|
+
}), y(E, {
|
|
69
|
+
label: O
|
|
70
|
+
})))), b && C && u);
|
|
71
|
+
}, W = ({ className: e, ...t }) => {
|
|
72
|
+
const { label: o } = t;
|
|
73
|
+
return /* @__PURE__ */ l.createElement("span", {
|
|
74
|
+
className: e
|
|
75
|
+
}, o);
|
|
76
|
+
}, X = (e) => null, Y = ({ className: e }) => {
|
|
77
|
+
const { value: t, onChange: o, addOtherLabel: a, addOtherPlaceholder: O, otherInputCharacterLimit: b, disabled: h, readOnly: f, options: _ } = v(), { t: E } = F(), r = S(null), s = R(_, t), u = a || E("add-other.default-other-option-label") || L, [C, n] = V(s && t ? K(t, a) : "");
|
|
78
|
+
B(() => {
|
|
79
|
+
var i;
|
|
80
|
+
s && r.current && ((i = r.current) == null || i.focus());
|
|
81
|
+
}, [
|
|
82
|
+
s
|
|
83
|
+
]);
|
|
84
|
+
const d = T((i) => {
|
|
85
|
+
let I;
|
|
86
|
+
i ? I = `${a}: ${i}` : I = u, o(I), n(i);
|
|
87
|
+
}, [
|
|
88
|
+
o,
|
|
89
|
+
a,
|
|
90
|
+
u
|
|
91
|
+
]);
|
|
92
|
+
return /* @__PURE__ */ l.createElement(U, {
|
|
93
|
+
"aria-label": u,
|
|
94
|
+
value: C,
|
|
95
|
+
onChange: d,
|
|
96
|
+
isDisabled: h,
|
|
97
|
+
isReadOnly: f
|
|
98
|
+
}, /* @__PURE__ */ l.createElement(A, {
|
|
99
|
+
ref: r,
|
|
100
|
+
className: e,
|
|
101
|
+
placeholder: O,
|
|
102
|
+
maxLength: b
|
|
103
|
+
}));
|
|
104
|
+
};
|
|
105
|
+
m.Label = W;
|
|
106
|
+
m.Input = X;
|
|
107
|
+
m.Control = z;
|
|
108
|
+
m.OtherInput = Y;
|
|
109
|
+
c.Label = j;
|
|
110
|
+
c.Options = Q;
|
|
111
|
+
c.Option = m;
|
|
112
|
+
c.Description = q;
|
|
113
|
+
c.Error = x;
|
|
114
|
+
const Z = "_labelImage_1neyf_1", ee = "_options_1neyf_26", te = "_option_1neyf_26", oe = "_optionInput_1neyf_46", ne = "_optionControl_1neyf_64", ae = "_optionControlHover_1neyf_86", le = "_optionControlSelected_1neyf_104", re = "_optionLabel_1neyf_139", g = {
|
|
115
|
+
labelImage: Z,
|
|
116
|
+
options: ee,
|
|
117
|
+
option: te,
|
|
118
|
+
optionInput: oe,
|
|
119
|
+
optionControl: ne,
|
|
120
|
+
optionControlHover: ae,
|
|
121
|
+
optionControlSelected: le,
|
|
122
|
+
optionLabel: re
|
|
123
|
+
}, fe = {
|
|
124
|
+
base: g.optionControl,
|
|
125
|
+
selected: g.optionControlSelected,
|
|
126
|
+
hover: g.optionControlHover
|
|
127
|
+
};
|
|
128
|
+
export {
|
|
129
|
+
fe as R,
|
|
130
|
+
c as a,
|
|
131
|
+
g as s
|
|
132
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { RicosViewer as n } from "@wix/ricos/viewer";
|
|
2
|
+
import t from "classnames";
|
|
3
|
+
import e from "react";
|
|
4
|
+
import { a, s as o, R as m } from "./radio-button-module-classes-Do4JmHrh.js";
|
|
5
|
+
import { E as c } from "./error-icon-hZxQ6DEy.js";
|
|
6
|
+
import { s } from "./field-rac.module-ColNPUt0.js";
|
|
7
|
+
import { M as i, L as E, K as _, z as R, P as O, y as p, p as L, i as I } from "./form-element-classes-BuM-vthE.js";
|
|
8
|
+
import { u as D } from "./use-element-state-class-name-nCwOVSGM.js";
|
|
9
|
+
const N = ({ content: r, locale: l }) => /* @__PURE__ */ e.createElement(n, {
|
|
10
|
+
content: r,
|
|
11
|
+
locale: l
|
|
12
|
+
}), f = ({ classes: r = {
|
|
13
|
+
container: _,
|
|
14
|
+
label: E,
|
|
15
|
+
radioButton: i
|
|
16
|
+
} }) => {
|
|
17
|
+
const l = D({
|
|
18
|
+
globalClasses: r.radioButton,
|
|
19
|
+
moduleClasses: m
|
|
20
|
+
});
|
|
21
|
+
return /* @__PURE__ */ e.createElement(a, null, /* @__PURE__ */ e.createElement(a.Label, {
|
|
22
|
+
className: t(R, s.label)
|
|
23
|
+
}, /* @__PURE__ */ e.createElement(a.Label.Required, {
|
|
24
|
+
className: t(O, s.requiredMark)
|
|
25
|
+
}), /* @__PURE__ */ e.createElement(a.Label.Image, {
|
|
26
|
+
className: o.labelImage
|
|
27
|
+
})), /* @__PURE__ */ e.createElement(a.Options, {
|
|
28
|
+
className: t(r.container, o.options)
|
|
29
|
+
}, /* @__PURE__ */ e.createElement(a.Option, {
|
|
30
|
+
className: o.option
|
|
31
|
+
}, /* @__PURE__ */ e.createElement(a.Option.Input, {
|
|
32
|
+
className: o.optionInput
|
|
33
|
+
}), /* @__PURE__ */ e.createElement(a.Option.Control, {
|
|
34
|
+
className: l
|
|
35
|
+
}), /* @__PURE__ */ e.createElement(a.Option.Label, {
|
|
36
|
+
className: t(r.label, o.optionLabel)
|
|
37
|
+
}), /* @__PURE__ */ e.createElement(a.Option.OtherInput, {
|
|
38
|
+
className: t(p, s.input)
|
|
39
|
+
}))), /* @__PURE__ */ e.createElement(a.Error, {
|
|
40
|
+
className: t(L, s.error)
|
|
41
|
+
}, /* @__PURE__ */ e.createElement(c, null), /* @__PURE__ */ e.createElement(a.Error.Text, null)), /* @__PURE__ */ e.createElement(a.Description, {
|
|
42
|
+
className: t(I, s.description)
|
|
43
|
+
}, N));
|
|
44
|
+
};
|
|
45
|
+
export {
|
|
46
|
+
f as R
|
|
47
|
+
};
|
package/dist/component/{rating-input-field-rac-Bic4P2NB.js → rating-input-field-rac-Bozwq2E7.js}
RENAMED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { RicosViewer as N } from "@wix/ricos/viewer";
|
|
2
2
|
import m from "classnames";
|
|
3
3
|
import e, { useCallback as y, useState as O, useRef as A } from "react";
|
|
4
|
-
import { ai as b, af as v, as as T } from "./form-
|
|
4
|
+
import { ai as b, af as v, as as T } from "./form-BmioUKtQ.js";
|
|
5
5
|
import { RadioGroup as H, RadioField as M, RadioButton as w } from "react-aria-components";
|
|
6
6
|
import { f as u, a as P } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as B, E as q } from "./field-error-headless-
|
|
8
|
-
import { L as G } from "./field-label-headless-
|
|
7
|
+
import { D as B, E as q } from "./field-error-headless-C7IUibkK.js";
|
|
8
|
+
import { L as G } from "./field-label-headless-BQFy2iAr.js";
|
|
9
9
|
import { E as k } from "./error-icon-hZxQ6DEy.js";
|
|
10
|
-
import { s as g } from "./field-rac.module-
|
|
11
|
-
import { z as x, P as z, N as U, p as Q, i as Z, O as j } from "./form-element-classes-
|
|
12
|
-
import { u as J } from "./use-element-state-class-name-
|
|
10
|
+
import { s as g } from "./field-rac.module-ColNPUt0.js";
|
|
11
|
+
import { z as x, P as z, N as U, p as Q, i as Z, O as j } from "./form-element-classes-BuM-vthE.js";
|
|
12
|
+
import { u as J } from "./use-element-state-class-name-nCwOVSGM.js";
|
|
13
13
|
const t = ({ children: a }) => {
|
|
14
14
|
const { id: n, value: r, onChange: l, disabled: o, readOnly: d, required: c, hasError: i, onBlur: E, onFocus: C, FieldLayout: R } = b(), { labelId: _ } = v(), L = y((D) => l(Number(D)), [
|
|
15
15
|
l
|