@wix/form-elements 1.193.0 → 1.195.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-7eD_yW7i.js → appointment-rac-BDa88iTP.js} +4 -4
- package/dist/component/{bookings-address-rac-Bpt7DrEs.js → bookings-address-rac-B1gPV--H.js} +1 -1
- package/dist/component/{bookings-email-rac-BYgeQczn.js → bookings-email-rac-DX-W7Axd.js} +1 -1
- package/dist/component/{bookings-first-name-rac-N7cvqHVh.js → bookings-first-name-rac-DdCziNtq.js} +1 -1
- package/dist/component/{bookings-header-rac-TCezj9Ur.js → bookings-header-rac-lGTzfTNR.js} +1 -1
- package/dist/component/{bookings-last-name-rac-t4O2yMDP.js → bookings-last-name-rac-CSa6tpCc.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-CJSoMvyZ.js → bookings-login-bar-rac-BiVTmFCB.js} +1 -1
- package/dist/component/{bookings-phone-rac-D9DS7Vkl.js → bookings-phone-rac-By2drUcb.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-9SxwdW6F.js → bookings-rich-text-rac-D-Gz46J9.js} +1 -1
- package/dist/component/{checkbox-field-rac-BBccyPVf.js → checkbox-field-rac-CKn8FeIB.js} +141 -141
- package/dist/component/{checkbox-group-field-headless-Dwnolboz.js → checkbox-group-field-headless-DbMidU6n.js} +79 -76
- package/dist/component/{checkbox-group-field-rac-BqcHS2rI.js → checkbox-group-field-rac-Czg7XNjP.js} +4 -4
- package/dist/component/{checkbox-group-rac-D1eH4xRZ.js → checkbox-group-rac-H23UY8V-.js} +1 -1
- package/dist/component/{checkbox-rac-D8KBjt2N.js → checkbox-rac-BViZUwuW.js} +1 -1
- package/dist/component/{contacts-address-rac-Cl-McrL_.js → contacts-address-rac-WxyYhD1V.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-tD574IDc.js → contacts-birthdate-rac-B2Sdyr45.js} +1 -1
- package/dist/component/{contacts-company-rac-p09ntN6y.js → contacts-company-rac-C8eUlCqT.js} +1 -1
- package/dist/component/{contacts-email-rac-hFxe_vYm.js → contacts-email-rac-BAmub2j_.js} +1 -1
- package/dist/component/{contacts-first-name-rac-CRQalepX.js → contacts-first-name-rac-C2bV0fls.js} +1 -1
- package/dist/component/{contacts-last-name-rac-BxWC_dQK.js → contacts-last-name-rac-D7kimOp8.js} +1 -1
- package/dist/component/{contacts-phone-rac-BoESpvX4.js → contacts-phone-rac-DMOMf2Fj.js} +1 -1
- package/dist/component/{contacts-position-rac-C-dEH79x.js → contacts-position-rac-CMl8ykC1.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-Wevw2yIs.js → contacts-subscribe-rac-DyEimqfI.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-C_YoCoUk.js → contacts-tax-id-rac-kOk59-rS.js} +1 -1
- package/dist/component/{date-availability-zeRtXneN.js → date-availability-D3-akuGp.js} +1 -1
- package/dist/component/{date-input-field-rac-wl1J79Lm.js → date-input-field-rac-D4mJM3Mi.js} +6 -6
- package/dist/component/{date-input-rac-DZG0E4dR.js → date-input-rac-DT28Xbno.js} +1 -1
- package/dist/component/{date-picker-field-rac-BgVpHr0x.js → date-picker-field-rac-Cj4S9fCJ.js} +6 -6
- package/dist/component/{date-picker-rac-Cxncpp-S.js → date-picker-rac-CFaHMNd-.js} +1 -1
- package/dist/component/{date-time-input-field-rac-BybKpDmr.js → date-time-input-field-rac-D1nJaGDz.js} +6 -6
- package/dist/component/{date-time-input-rac-BV45ahu6.js → date-time-input-rac-B1X8e_8t.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-CcnOnG3r.js → dext-checkbox-group-rac-CZc0qwzc.js} +2 -2
- package/dist/component/{dext-checkbox-rac-DZMbVP-v.js → dext-checkbox-rac-CchrXQUN.js} +1 -1
- package/dist/component/{dext-date-picker-rac-Ch7gU188.js → dext-date-picker-rac-BAugBZ0Y.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-DUssq9pN.js → dext-date-time-input-rac-CfMKLLyb.js} +1 -1
- package/dist/component/{dext-dropdown-rac-MZNHRD4Y.js → dext-dropdown-rac-BnHpXwmg.js} +1 -1
- package/dist/component/{dext-email-rac-bzMikfP7.js → dext-email-rac-DTzTU7Yv.js} +1 -1
- package/dist/component/{dext-number-input-rac-BDx2sZKk.js → dext-number-input-rac-4zxYCJ75.js} +1 -1
- package/dist/component/{dext-phone-rac-DBiQKWp5.js → dext-phone-rac-Cuy9Ong7.js} +1 -1
- package/dist/component/{dext-radio-group-rac-DQ0cJ_AF.js → dext-radio-group-rac-2_uzJUJC.js} +2 -2
- package/dist/component/{dext-rating-input-rac-DB8BVtRj.js → dext-rating-input-rac-Jq_Bjvuh.js} +1 -1
- package/dist/component/{dext-tags-rac-BlwcMf4S.js → dext-tags-rac-RlqgLji2.js} +2 -2
- package/dist/component/{dext-text-area-rac-RAxzXAFv.js → dext-text-area-rac-BEgLinV6.js} +1 -1
- package/dist/component/{dext-text-input-rac-bCmpx20f.js → dext-text-input-rac-tsXWti5j.js} +1 -1
- package/dist/component/{dext-url-input-rac-CF9E7GBh.js → dext-url-input-rac-u8XEkC0e.js} +1 -1
- package/dist/component/{donation-rac-CVWZE3yz.js → donation-rac-D_Rv9dCb.js} +5 -5
- package/dist/component/{dropdown-field-rac-BnxTiejT.js → dropdown-field-rac-An-1mFG9.js} +3 -3
- package/dist/component/{dropdown-rac-BSj6tud_.js → dropdown-rac-Dej2LbdS.js} +1 -1
- package/dist/component/{ecom-address-rac-Dsht1oXo.js → ecom-address-rac-DgpIV9et.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-NdMstAuc.js → ecom-subscription-checkbox-rac-B_vc4yei.js} +2 -2
- package/dist/component/{email-input-field-rac-BCxurSsa.js → email-input-field-rac-CCJAErTE.js} +3 -3
- package/dist/component/{events-repeater-rac-Dz59WhGX.js → events-repeater-rac-r6bYzbhi.js} +4 -4
- package/dist/component/{events-rsvp-rac-M4068R7R.js → events-rsvp-rac-CGIiANKI.js} +3 -3
- package/dist/component/{field-error-headless-DQ-jwMtX.js → field-error-headless-C-6U5jK5.js} +1 -1
- package/dist/component/{field-label-headless-D0N5zbDh.js → field-label-headless-CNe_Y93p.js} +1 -1
- package/dist/component/{file-upload-rac-Cy9ymgFI.js → file-upload-rac-Dj5MrGuQ.js} +4 -4
- package/dist/component/{fixed-payment-rac-DHL9zRaN.js → fixed-payment-rac-Dej4ZffG.js} +3 -3
- package/dist/component/{form-ur8Cb2nw.js → form-CrkZgddm.js} +3324 -3287
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-DmRHkStT.js → header-field-rac-kKF5WFnm.js} +2 -2
- package/dist/component/{header-rac-BMxv-FJ_.js → header-rac-EnnJI00C.js} +1 -1
- package/dist/component/{image-choice-rac-Bj54Ms5f.js → image-choice-rac-BIjCtkqd.js} +71 -68
- package/dist/component/{index-D1Nkz9Je.js → index-CGcAAYLG.js} +4 -4
- package/dist/component/{index-DwxUwvfW.js → index-HyPWuLT4.js} +2 -2
- package/dist/component/{isObjectLike-CA05Trvx.js → isObjectLike-Km_2vWSW.js} +1 -1
- package/dist/component/{multiline-address-field-rac-O10IwOCo.js → multiline-address-field-rac-DDCVJWIi.js} +7 -7
- package/dist/component/{multiline-address-rac-BHsYqS8U.js → multiline-address-rac-1IlceJjh.js} +1 -1
- package/dist/component/{number-input-field-rac-Dv6mIcWK.js → number-input-field-rac-BXfUcSDN.js} +4 -4
- package/dist/component/{number-input-rac-DB4aCeZ3.js → number-input-rac-C5cpfylm.js} +1 -1
- package/dist/component/{password-rac-Bzyoy7Ue.js → password-rac-BbMYEuXh.js} +4 -4
- package/dist/component/{payment-input-rac-d3XhrKDL.js → payment-input-rac-Bwkl3Z5r.js} +4 -4
- package/dist/component/{phone-input-field-rac-B1fOUnoX.js → phone-input-field-rac-BzqbdcNA.js} +6 -6
- package/dist/component/{phone-rac-CIourqo0.js → phone-rac-6a2EYMIa.js} +1 -1
- package/dist/component/{product-list-rac-2b6ZKst8.js → product-list-rac-DRiQBACq.js} +4 -4
- package/dist/component/{quiz-radio-group-rac-UzeDK6Fb.js → quiz-radio-group-rac-D--2yt8z.js} +1 -1
- package/dist/component/{radio-button-module-classes-BQiTZl4N.js → radio-button-module-classes-DpairWHD.js} +48 -45
- package/dist/component/{radio-group-field-rac-DMly0YyR.js → radio-group-field-rac-DfB_u2vb.js} +4 -4
- package/dist/component/{radio-group-rac-DWnKmLpT.js → radio-group-rac-6nMarETU.js} +1 -1
- package/dist/component/{rating-input-field-rac-B8b5CdR7.js → rating-input-field-rac-CFJFtI5b.js} +45 -43
- package/dist/component/{rating-input-rac-BqRJ0so2.js → rating-input-rac-BDH7MaUi.js} +1 -1
- package/dist/component/{rich-content-rac.module-BgjdfUpM.js → rich-content-rac.module-CkqZCs-2.js} +1 -1
- package/dist/component/{rich-text-field-rac-Drh-o9ma.js → rich-text-field-rac-Ctym7hYF.js} +2 -2
- package/dist/component/{rich-text-rac-BhUjaWGI.js → rich-text-rac-C57HTjbQ.js} +1 -1
- package/dist/component/{service-dropdown-rac-Cj4BuLCe.js → service-dropdown-rac-ClHCanJy.js} +4 -4
- package/dist/component/{services-multi-choice-rac-BWgmoaGp.js → services-multi-choice-rac-Ca9MfRHt.js} +5 -5
- package/dist/component/{signature-rac-DEFLilBW.js → signature-rac-CyHmUNnC.js} +4 -4
- package/dist/component/{submit-button-rac-_Lluhrls.js → submit-button-rac-DuCxy8Dp.js} +2 -2
- package/dist/component/tags-field-rac-CR3t0sMl.js +216 -0
- package/dist/component/{tags-rac-DsBzlrwA.js → tags-rac-Bsjv-eAy.js} +1 -1
- package/dist/component/{text-area-field-rac-COU0UfH0.js → text-area-field-rac-D8NrZuYn.js} +4 -4
- package/dist/component/{text-area-rac-DY2np20s.js → text-area-rac-CePWkwsf.js} +1 -1
- package/dist/component/{text-input-field-rac-Jl4gKN4D.js → text-input-field-rac-CwAh7Rsq.js} +3 -3
- package/dist/component/{text-input-headless-DsIKhwwK.js → text-input-headless-B7-hkYK7.js} +3 -3
- package/dist/component/{text-input-rac-Dwoai7Y2.js → text-input-rac-B3lmF2k7.js} +1 -1
- package/dist/component/{time-input-rac-CeUzBpvQ.js → time-input-rac-DmtviG0W.js} +4 -4
- package/dist/component/{url-input-field-rac-D5dK0qXo.js → url-input-field-rac-D1c1qFA8.js} +4 -4
- package/dist/component/{url-input-rac-DGC2_VVy.js → url-input-rac-CVXiOK3x.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-DCf8o4bn.js → use-dropdown-option-class-name-CYe9j3TQ.js} +2 -2
- package/dist/component/{use-dropdown-trigger-class-name-VcbNtj9H.js → use-dropdown-trigger-class-name-DAXgQ97Y.js} +6 -6
- package/dist/component/{use-element-state-class-name-Dc9b8x0t.js → use-element-state-class-name-BgZPeBgR.js} +1 -1
- package/dist/component/{use-hoverable-input-class-name-BNb7P_5E.js → use-hoverable-input-class-name-DDWuNCH3.js} +2 -2
- package/dist/component/{use-is-forced-open-dropdown-BlG9NkCS.js → use-is-forced-open-dropdown-Dzt7p3CD.js} +1 -1
- package/dist/component/{use-service-options-base-DB4bYGFa.js → use-service-options-base-bKP2vFsb.js} +1 -1
- package/dist/component/use-text-input-class-name-w_3X2xFo.js +6 -0
- package/dist/form.d.ts +2 -1
- package/package.json +3 -3
- package/dist/component/tags-field-rac-C7nXKUBj.js +0 -213
- package/dist/component/use-text-input-class-name-BxX9CE3F.js +0 -6
package/dist/component/{radio-group-field-rac-DMly0YyR.js → radio-group-field-rac-DfB_u2vb.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-DpairWHD.js";
|
|
5
5
|
import { E as c } from "./error-icon-hZxQ6DEy.js";
|
|
6
6
|
import { s as r } from "./field-rac.module-DcyJyi2B.js";
|
|
7
|
-
import { X as i, am as E, ac as p, ad as O, M as R, I as _, ae as I } from "./form-
|
|
7
|
+
import { X as i, am as E, ac as p, ad as O, M as R, I as _, ae as I } from "./form-CrkZgddm.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-BgZPeBgR.js";
|
|
10
|
+
import { u } from "./use-text-input-class-name-w_3X2xFo.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-B8b5CdR7.js → rating-input-field-rac-CFJFtI5b.js}
RENAMED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { RicosViewer as N } from "@wix/ricos/viewer";
|
|
2
2
|
import u from "classnames";
|
|
3
3
|
import e, { useCallback as O, useState as A, useRef as M } from "react";
|
|
4
|
-
import { bM as
|
|
5
|
-
import { RadioGroup as
|
|
6
|
-
import { f as E, a as
|
|
7
|
-
import { D as
|
|
8
|
-
import { L as Q } from "./field-label-headless-
|
|
4
|
+
import { bM as S, bJ as I, bV as T, bX as H, X as w, am as P, af as B, M as q, I as G, ag as k } from "./form-CrkZgddm.js";
|
|
5
|
+
import { RadioGroup as x, RadioField as U, RadioButton as X } from "react-aria-components";
|
|
6
|
+
import { f as E, a as z } from "./find-child-C60k4CxG.js";
|
|
7
|
+
import { D as J, E as K } from "./field-error-headless-C-6U5jK5.js";
|
|
8
|
+
import { L as Q } from "./field-label-headless-CNe_Y93p.js";
|
|
9
9
|
import { E as Z } from "./error-icon-hZxQ6DEy.js";
|
|
10
|
-
import { s as
|
|
11
|
-
import { u as j } from "./use-element-state-class-name-
|
|
10
|
+
import { s as p } from "./field-rac.module-DcyJyi2B.js";
|
|
11
|
+
import { u as j } from "./use-element-state-class-name-BgZPeBgR.js";
|
|
12
12
|
const t = ({ children: a }) => {
|
|
13
|
-
const { id: n, value: r, onChange: i, disabled: l, readOnly: m, required: d, hasError: o, onBlur: c, onFocus:
|
|
13
|
+
const { id: n, value: r, onChange: i, disabled: l, readOnly: m, required: d, hasError: o, onBlur: c, onFocus: g, FieldLayout: R } = S(), { labelId: _, ariaDescribedBy: L } = I(), s = O((D) => i(Number(D)), [
|
|
14
14
|
i
|
|
15
|
-
]), f = E(a, t.Label), F = E(a, t.Ratings), h = E(a, t.Description),
|
|
15
|
+
]), f = E(a, t.Label), F = E(a, t.Ratings), h = E(a, t.Description), y = E(a, t.Error);
|
|
16
16
|
return /* @__PURE__ */ e.createElement(R, {
|
|
17
17
|
fieldId: n,
|
|
18
18
|
renderLabel: () => f,
|
|
19
|
-
renderInput: () => /* @__PURE__ */ e.createElement(
|
|
19
|
+
renderInput: () => /* @__PURE__ */ e.createElement(x, {
|
|
20
20
|
"aria-labelledby": _,
|
|
21
21
|
"aria-describedby": L,
|
|
22
22
|
value: r ? String(r) : void 0,
|
|
@@ -26,13 +26,15 @@ const t = ({ children: a }) => {
|
|
|
26
26
|
isRequired: d,
|
|
27
27
|
isInvalid: o,
|
|
28
28
|
onBlur: c,
|
|
29
|
-
onFocus:
|
|
29
|
+
onFocus: g,
|
|
30
30
|
orientation: "horizontal"
|
|
31
31
|
}, F),
|
|
32
|
-
renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null,
|
|
32
|
+
renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, y, h)
|
|
33
33
|
});
|
|
34
|
-
},
|
|
35
|
-
const { value: i, readOnly: l, hasError: m } =
|
|
34
|
+
}, b = ({ children: a, className: n, getReactionLabel: r }) => {
|
|
35
|
+
const { value: i, readOnly: l, hasError: m } = S(), { inputId: d } = I(), [o, c] = A(), g = M(null);
|
|
36
|
+
T(g);
|
|
37
|
+
const R = E(a, b.Rating), _ = [
|
|
36
38
|
"1",
|
|
37
39
|
"2",
|
|
38
40
|
"3",
|
|
@@ -40,19 +42,19 @@ const t = ({ children: a }) => {
|
|
|
40
42
|
"5"
|
|
41
43
|
], L = (s) => o && !l ? o >= s : !!i && i >= Number(s);
|
|
42
44
|
return /* @__PURE__ */ e.createElement("div", {
|
|
43
|
-
ref:
|
|
45
|
+
ref: g,
|
|
44
46
|
id: d,
|
|
45
47
|
className: n,
|
|
46
48
|
"data-invalid": m,
|
|
47
49
|
"data-readonly": l
|
|
48
|
-
}, _.map((s) =>
|
|
50
|
+
}, _.map((s) => z(R, {
|
|
49
51
|
key: s,
|
|
50
52
|
value: s,
|
|
51
53
|
isSelected: L(s),
|
|
52
54
|
onHoverChange: (f) => c(f ? s : void 0),
|
|
53
55
|
label: r == null ? void 0 : r(Number(s))
|
|
54
56
|
})));
|
|
55
|
-
},
|
|
57
|
+
}, V = {
|
|
56
58
|
border: 0,
|
|
57
59
|
clipPath: "inset(50%)",
|
|
58
60
|
height: 1,
|
|
@@ -64,9 +66,9 @@ const t = ({ children: a }) => {
|
|
|
64
66
|
whiteSpace: "nowrap"
|
|
65
67
|
}, v = ({ className: a, children: n, ...r }) => {
|
|
66
68
|
const { value: i, isSelected: l, onHoverChange: m, label: d } = r;
|
|
67
|
-
return /* @__PURE__ */ e.createElement(
|
|
69
|
+
return /* @__PURE__ */ e.createElement(U, {
|
|
68
70
|
value: i
|
|
69
|
-
}, /* @__PURE__ */ e.createElement(
|
|
71
|
+
}, /* @__PURE__ */ e.createElement(X, {
|
|
70
72
|
className: ({ isHovered: o, isFocused: c }) => typeof a == "function" ? a({
|
|
71
73
|
isSelected: l,
|
|
72
74
|
isHovered: o,
|
|
@@ -79,15 +81,15 @@ const t = ({ children: a }) => {
|
|
|
79
81
|
isHovered: o,
|
|
80
82
|
isFocused: c
|
|
81
83
|
}) : n, d ? /* @__PURE__ */ e.createElement("span", {
|
|
82
|
-
style:
|
|
84
|
+
style: V
|
|
83
85
|
}, d) : null)));
|
|
84
86
|
};
|
|
85
|
-
|
|
87
|
+
b.Rating = v;
|
|
86
88
|
t.Label = Q;
|
|
87
|
-
t.Ratings =
|
|
89
|
+
t.Ratings = b;
|
|
88
90
|
t.Rating = v;
|
|
89
|
-
t.Description =
|
|
90
|
-
t.Error =
|
|
91
|
+
t.Description = J;
|
|
92
|
+
t.Error = K;
|
|
91
93
|
const W = (a) => /* @__PURE__ */ e.createElement("svg", {
|
|
92
94
|
viewBox: "0 0 32 32",
|
|
93
95
|
width: 32,
|
|
@@ -98,40 +100,40 @@ const W = (a) => /* @__PURE__ */ e.createElement("svg", {
|
|
|
98
100
|
}, /* @__PURE__ */ e.createElement("path", {
|
|
99
101
|
fillRule: "evenodd",
|
|
100
102
|
d: "M28.6265,13.6325 C28.9655,13.3015 29.0845,12.8175 28.9385,12.3665 C28.7925,11.9165 28.4105,11.5945 27.9415,11.5265 L20.5785,10.4565 C20.5015,10.4445 20.4345,10.3965 20.4005,10.3275 L17.1075,3.6545 L17.1075,3.6535 C16.8975,3.2295 16.4735,2.9655 16.0005,2.9655 L15.9995,2.9655 C15.5255,2.9655 15.1025,3.2295 14.8925,3.6545 L11.5985,10.3275 C11.5645,10.3965 11.4985,10.4445 11.4225,10.4565 L4.0575,11.5265 C3.5895,11.5945 3.2075,11.9165 3.0615,12.3665 C2.9155,12.8175 3.0345,13.3015 3.3735,13.6325 L8.7025,18.8265 C8.7575,18.8805 8.7835,18.9585 8.7705,19.0345 L7.5125,26.3695 C7.4325,26.8355 7.6205,27.2985 8.0035,27.5765 C8.2195,27.7345 8.4735,27.8145 8.7285,27.8145 C8.9245,27.8145 9.1215,27.7665 9.3045,27.6705 L15.8895,24.2085 C15.9595,24.1725 16.0415,24.1725 16.1085,24.2075 L22.6955,27.6705 C23.1155,27.8915 23.6135,27.8555 23.9965,27.5765 C24.3795,27.2985 24.5675,26.8355 24.4875,26.3695 L23.2305,19.0355 C23.2165,18.9585 23.2425,18.8805 23.2975,18.8265 L28.6265,13.6325 Z"
|
|
101
|
-
})), Y = "_ratings_a5lgi_1", $ = "_rating_a5lgi_1",
|
|
103
|
+
})), Y = "_ratings_a5lgi_1", $ = "_rating_a5lgi_1", ee = "_ratingSelected_a5lgi_37", te = "_ratingHover_a5lgi_44", C = {
|
|
102
104
|
ratings: Y,
|
|
103
105
|
rating: $,
|
|
104
|
-
ratingSelected:
|
|
105
|
-
ratingHover:
|
|
106
|
-
},
|
|
106
|
+
ratingSelected: ee,
|
|
107
|
+
ratingHover: te
|
|
108
|
+
}, ae = ({ content: a, locale: n }) => /* @__PURE__ */ e.createElement(N, {
|
|
107
109
|
content: a,
|
|
108
110
|
locale: n
|
|
109
|
-
}),
|
|
110
|
-
base:
|
|
111
|
-
selected:
|
|
112
|
-
hover:
|
|
113
|
-
},
|
|
114
|
-
const { t: a } =
|
|
115
|
-
globalClasses:
|
|
116
|
-
moduleClasses:
|
|
111
|
+
}), ne = {
|
|
112
|
+
base: C.rating,
|
|
113
|
+
selected: C.ratingSelected,
|
|
114
|
+
hover: C.ratingHover
|
|
115
|
+
}, pe = () => {
|
|
116
|
+
const { t: a } = H(), n = j({
|
|
117
|
+
globalClasses: k,
|
|
118
|
+
moduleClasses: ne
|
|
117
119
|
});
|
|
118
120
|
return /* @__PURE__ */ e.createElement(t, null, /* @__PURE__ */ e.createElement(t.Label, {
|
|
119
|
-
className: u(
|
|
121
|
+
className: u(w, p.label)
|
|
120
122
|
}, /* @__PURE__ */ e.createElement(t.Label.Required, {
|
|
121
|
-
className: u(
|
|
123
|
+
className: u(P, p.requiredMark)
|
|
122
124
|
})), /* @__PURE__ */ e.createElement(t.Ratings, {
|
|
123
|
-
className: u(B,
|
|
125
|
+
className: u(B, C.ratings),
|
|
124
126
|
getReactionLabel: (r) => a("rating-input.a11y.reaction-label", {
|
|
125
127
|
count: r
|
|
126
128
|
})
|
|
127
129
|
}, /* @__PURE__ */ e.createElement(t.Rating, {
|
|
128
130
|
className: n
|
|
129
131
|
}, /* @__PURE__ */ e.createElement(W, null))), /* @__PURE__ */ e.createElement(t.Error, {
|
|
130
|
-
className: u(
|
|
132
|
+
className: u(q, p.error)
|
|
131
133
|
}, /* @__PURE__ */ e.createElement(Z, null), /* @__PURE__ */ e.createElement(t.Error.Text, null)), /* @__PURE__ */ e.createElement(t.Description, {
|
|
132
|
-
className: u(
|
|
133
|
-
},
|
|
134
|
+
className: u(G, p.description)
|
|
135
|
+
}, ae));
|
|
134
136
|
};
|
|
135
137
|
export {
|
|
136
|
-
|
|
138
|
+
pe as R
|
|
137
139
|
};
|
package/dist/component/{rich-content-rac.module-BgjdfUpM.js → rich-content-rac.module-CkqZCs-2.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import c, { useState as u } from "react";
|
|
2
|
-
import { bM as a, bE as i, bX as T } from "./form-
|
|
2
|
+
import { bM as a, bE as i, bX as T } from "./form-CrkZgddm.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 { bM as m, aY as i, aG as u, bn as R, bq as T } from "./form-
|
|
4
|
-
import { u as C, R as d, s as g, T as p } from "./rich-content-rac.module-
|
|
3
|
+
import { bM as m, aY as i, aG as u, bn as R, bq as T } from "./form-CrkZgddm.js";
|
|
4
|
+
import { u as C, R as d, s as g, T as p } from "./rich-content-rac.module-CkqZCs-2.js";
|
|
5
5
|
const h = {
|
|
6
6
|
colorPalette: T(),
|
|
7
7
|
customStyles: R()
|
package/dist/component/{service-dropdown-rac-Cj4BuLCe.js → service-dropdown-rac-ClHCanJy.js}
RENAMED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import o, { useRef as T, useMemo as _, useCallback as C, useEffect as b } from "react";
|
|
2
2
|
import { RicosViewer as w } from "@wix/ricos/viewer";
|
|
3
3
|
import E from "classnames";
|
|
4
|
-
import { bI as P, bX as A, F as M, bM as y, bE as V, aN as x, X as H, am as U, J as W, M as k, I as q } from "./form-
|
|
5
|
-
import { u as B } from "./use-service-options-base-
|
|
6
|
-
import { D as u, u as X } from "./use-dropdown-trigger-class-name-
|
|
4
|
+
import { bI as P, bX as A, F as M, bM as y, bE as V, aN as x, X as H, am as U, J as W, M as k, I as q } from "./form-CrkZgddm.js";
|
|
5
|
+
import { u as B } from "./use-service-options-base-bKP2vFsb.js";
|
|
6
|
+
import { D as u, u as X } from "./use-dropdown-trigger-class-name-DAXgQ97Y.js";
|
|
7
7
|
import { C as J } from "./chevron-down-icon-CcpVm6B-.js";
|
|
8
8
|
import { E as Q } from "./error-icon-hZxQ6DEy.js";
|
|
9
9
|
import { H as Y } from "./custom-focus-class-_483Pkwp.js";
|
|
10
10
|
import { s as i } from "./field-rac.module-DcyJyi2B.js";
|
|
11
|
-
import { u as j } from "./use-dropdown-option-class-name-
|
|
11
|
+
import { u as j } from "./use-dropdown-option-class-name-CYe9j3TQ.js";
|
|
12
12
|
const z = "00000000-0000-0000-0000-000000000000", G = (e) => {
|
|
13
13
|
const { actions: t } = P(), { t: D } = A(), { addOther: n, addOtherLabel: p } = e, c = p || D("add-other.default-other-option-label"), a = T(!0), d = _(() => {
|
|
14
14
|
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, bM as d, aN as D, X as N, am as F, p as f, r as h, M, I as b, q as A } from "./form-
|
|
5
|
-
import { u as v } from "./use-service-options-base-
|
|
6
|
-
import { C as i } from "./checkbox-group-field-headless-
|
|
4
|
+
import { F as R, bM as d, aN as D, X as N, am as F, p as f, r as h, M, I as b, q as A } from "./form-CrkZgddm.js";
|
|
5
|
+
import { u as v } from "./use-service-options-base-bKP2vFsb.js";
|
|
6
|
+
import { C as i } from "./checkbox-group-field-headless-DbMidU6n.js";
|
|
7
7
|
import { E as x } from "./error-icon-hZxQ6DEy.js";
|
|
8
8
|
import { C as P } from "./checkbox-indicator-module-classes-DOxE4UQg.js";
|
|
9
9
|
import { s as n } from "./field-rac.module-DcyJyi2B.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-BgZPeBgR.js";
|
|
12
|
+
import { u as k } from "./use-text-input-class-name-w_3X2xFo.js";
|
|
13
13
|
const y = (s) => {
|
|
14
14
|
var C;
|
|
15
15
|
const { isLoading: o, options: r, isEmpty: l, shouldRender: E, setOptions: c, setIsEmpty: m, setHasInitialDataLoaded: p } = v({
|
|
@@ -2,17 +2,17 @@ import r, { useRef as $, useContext as Se, useMemo as he, useCallback as y, useS
|
|
|
2
2
|
import Fe from "@wix/editor-react-components/AnimatedIcon";
|
|
3
3
|
import { RicosViewer as we } from "@wix/ricos/viewer";
|
|
4
4
|
import F from "classnames";
|
|
5
|
-
import { be as xe, bG as Le, aR as Ue, F as Be, bI as Oe, bE as Pe, bU as Te, E as me, aH as oe, bM as x, bJ as W, bO as Ie, bX as Me, bF as He, X as We, am as Ye, an as Ge, ao as Ze, b as ke, au as Ve, av as pe, M as $e, I as ze, ap as Xe, as as qe, aq as je, at as Je, f as ne, ar as Ke } from "./form-
|
|
5
|
+
import { be as xe, bG as Le, aR as Ue, F as Be, bI as Oe, bE as Pe, bU as Te, E as me, aH as oe, bM as x, bJ as W, bO as Ie, bX as Me, bF as He, X as We, am as Ye, an as Ge, ao as Ze, b as ke, au as Ve, av as pe, M as $e, I as ze, ap as Xe, as as qe, aq as je, at as Je, f as ne, ar as Ke } from "./form-CrkZgddm.js";
|
|
6
6
|
import { useHover as Qe, useFocusRing as et, mergeProps as tt } from "react-aria";
|
|
7
7
|
import { RadioGroup as nt, Button as Ce, TextField as at, DropZone as ot, Input as st, FileTrigger as rt, RadioField as lt, RadioButton as it } from "react-aria-components";
|
|
8
8
|
import _e from "signature_pad";
|
|
9
9
|
import { f as C, a as N } from "./find-child-C60k4CxG.js";
|
|
10
|
-
import { D as ct, E as ut } from "./field-error-headless-
|
|
11
|
-
import { L as dt } from "./field-label-headless-
|
|
10
|
+
import { D as ct, E as ut } from "./field-error-headless-C-6U5jK5.js";
|
|
11
|
+
import { L as dt } from "./field-label-headless-CNe_Y93p.js";
|
|
12
12
|
import { D as mt } from "./data-hooks-Dkw1pbRj.js";
|
|
13
13
|
import { E as pt } from "./error-icon-hZxQ6DEy.js";
|
|
14
14
|
import { s as ae } from "./field-rac.module-DcyJyi2B.js";
|
|
15
|
-
import { u as X } from "./use-element-state-class-name-
|
|
15
|
+
import { u as X } from "./use-element-state-class-name-BgZPeBgR.js";
|
|
16
16
|
const ft = typeof r.useId == "function" ? r.useId : () => $(xe()).current, Et = ({ properties: e }) => e.uploadEnabled === !0, gt = (e, t) => e.fieldType === Be.SIGNATURE && !e.properties.hidden && !e.properties.disabled && !e.properties.readOnly && (t !== "upload" || Et(e)), ht = (e, t) => e.layout.row - t.layout.row || e.layout.column - t.layout.column, bt = (e) => {
|
|
17
17
|
var o;
|
|
18
18
|
const t = (o = Le().signature) == null ? void 0 : o.signatureMode, a = Se(Ue);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import t, { useRef as X, useCallback as y } from "react";
|
|
2
2
|
import G from "@wix/editor-react-components/AnimatedIcon";
|
|
3
3
|
import p from "classnames";
|
|
4
|
-
import { bM as b, bG as J, aF as K, aE as $, aC as j, aB as q, aK as z, aJ as Q, aD as Y, b as Z, aA as tt, aI as et } from "./form-
|
|
4
|
+
import { bM as b, bG as J, aF as K, aE as $, aC as j, aB as q, aK as z, aJ as Q, aD as Y, b as Z, aA as tt, aI as et } from "./form-CrkZgddm.js";
|
|
5
5
|
import { ProgressBar as nt, Button as w } from "react-aria-components";
|
|
6
6
|
import { f as c } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { u as x } from "./use-element-state-class-name-
|
|
7
|
+
import { u as x } from "./use-element-state-class-name-BgZPeBgR.js";
|
|
8
8
|
function ot(e) {
|
|
9
9
|
const s = "calc(50% - 2px)";
|
|
10
10
|
return /* @__PURE__ */ t.createElement(nt, {
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
import { RicosViewer as J } from "@wix/ricos/viewer";
|
|
2
|
+
import F from "classnames";
|
|
3
|
+
import t, { useRef as S, useMemo as I, useState as K, useLayoutEffect as Q, useCallback as N } from "react";
|
|
4
|
+
import { CheckboxGroup as w, TextField as z, Input as B, CheckboxField as Y, CheckboxButton as Z } from "react-aria-components";
|
|
5
|
+
import { bM as y, bJ as M, bV as U, bX as T, bO as ee, X as te, am as oe, ax as ne, M as ae, I as se, ay as re } from "./form-CrkZgddm.js";
|
|
6
|
+
import { f, a as k } from "./find-child-C60k4CxG.js";
|
|
7
|
+
import { E as W, D as H } from "./field-error-headless-C-6U5jK5.js";
|
|
8
|
+
import { L as P } from "./field-label-headless-CNe_Y93p.js";
|
|
9
|
+
import { F as le } from "./fieldset-headless-CD3fds9J.js";
|
|
10
|
+
import { E as ie } from "./error-icon-hZxQ6DEy.js";
|
|
11
|
+
import { s as D } from "./field-rac.module-DcyJyi2B.js";
|
|
12
|
+
import { u as ce } from "./use-element-state-class-name-BgZPeBgR.js";
|
|
13
|
+
import { u as ue } from "./use-text-input-class-name-w_3X2xFo.js";
|
|
14
|
+
var de = /* @__PURE__ */ (function(e) {
|
|
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
|
+
})({});
|
|
17
|
+
const v = "Other", me = (e, o) => {
|
|
18
|
+
const i = o.length + 2;
|
|
19
|
+
return (e.find((l) => l.startsWith(`${o}: `)) || "").slice(i);
|
|
20
|
+
}, pe = (e) => e.map((o) => o.value ?? o.label), $ = ({ className: e, ...o }) => {
|
|
21
|
+
const { label: s } = o;
|
|
22
|
+
return /* @__PURE__ */ t.createElement("span", {
|
|
23
|
+
className: e
|
|
24
|
+
}, s);
|
|
25
|
+
}, j = ({ className: e }) => {
|
|
26
|
+
const { value: o, onChange: s, addOtherLabel: i, addOtherPlaceholder: r, otherInputCharacterLimit: l, disabled: u, readOnly: p, hasError: d } = y(), { t: h } = T(), n = i || h("add-other.default-other-option-label") || v, b = I(() => me(o || [], n), [
|
|
27
|
+
o,
|
|
28
|
+
n
|
|
29
|
+
]), [c, L] = K(b), O = S(s);
|
|
30
|
+
Q(() => {
|
|
31
|
+
O.current = s;
|
|
32
|
+
});
|
|
33
|
+
const g = N((E) => {
|
|
34
|
+
L(E);
|
|
35
|
+
const C = (o || []).filter((m) => !m.startsWith(`${n}:`) && m !== n), _ = E ? `${n}: ${E}` : n;
|
|
36
|
+
O.current([
|
|
37
|
+
...C,
|
|
38
|
+
_
|
|
39
|
+
]);
|
|
40
|
+
}, [
|
|
41
|
+
o,
|
|
42
|
+
n
|
|
43
|
+
]);
|
|
44
|
+
return /* @__PURE__ */ t.createElement(z, {
|
|
45
|
+
value: c,
|
|
46
|
+
onChange: g,
|
|
47
|
+
isDisabled: u,
|
|
48
|
+
isReadOnly: p,
|
|
49
|
+
isInvalid: d,
|
|
50
|
+
"aria-label": n
|
|
51
|
+
}, /* @__PURE__ */ t.createElement(B, {
|
|
52
|
+
"data-hook": "tags-other-input",
|
|
53
|
+
"data-filled": c ? !0 : void 0,
|
|
54
|
+
placeholder: r,
|
|
55
|
+
maxLength: l,
|
|
56
|
+
className: e
|
|
57
|
+
}));
|
|
58
|
+
}, V = ({ children: e, className: o, ...s }) => {
|
|
59
|
+
const { value: i, label: r, isOther: l, isFirstOption: u } = s, { id: p, value: d, onChange: h, options: n, disabled: b, readOnly: c, hasError: L } = y(), O = S(null);
|
|
60
|
+
ee(() => {
|
|
61
|
+
var m;
|
|
62
|
+
u && ((m = O.current) == null || m.focus({
|
|
63
|
+
preventScroll: !0
|
|
64
|
+
}));
|
|
65
|
+
}, p);
|
|
66
|
+
const g = f(e, $), E = I(() => d || [], [
|
|
67
|
+
d
|
|
68
|
+
]), C = I(() => l ? E.find((m) => m === r || m.startsWith(`${r}: `)) || r : i, [
|
|
69
|
+
l,
|
|
70
|
+
E,
|
|
71
|
+
r,
|
|
72
|
+
i
|
|
73
|
+
]), _ = N((m) => {
|
|
74
|
+
const G = pe(n || []), x = E.filter((X) => G.includes(X));
|
|
75
|
+
h(m ? [
|
|
76
|
+
...x,
|
|
77
|
+
r
|
|
78
|
+
] : x);
|
|
79
|
+
}, [
|
|
80
|
+
r,
|
|
81
|
+
h,
|
|
82
|
+
n,
|
|
83
|
+
E
|
|
84
|
+
]);
|
|
85
|
+
return /* @__PURE__ */ t.createElement(Y, {
|
|
86
|
+
inputRef: O,
|
|
87
|
+
value: C,
|
|
88
|
+
onChange: l ? _ : void 0,
|
|
89
|
+
isDisabled: b,
|
|
90
|
+
isReadOnly: c,
|
|
91
|
+
isInvalid: L
|
|
92
|
+
}, /* @__PURE__ */ t.createElement(Z, {
|
|
93
|
+
className: o,
|
|
94
|
+
"data-hook": `tags-${l ? v : i}`
|
|
95
|
+
}, k(g, {
|
|
96
|
+
value: i,
|
|
97
|
+
label: r,
|
|
98
|
+
isOther: l,
|
|
99
|
+
isFirstOption: u
|
|
100
|
+
})));
|
|
101
|
+
}, A = ({ children: e, className: o }) => {
|
|
102
|
+
const { options: s, addOther: i, addOtherLabel: r, numberOfColumns: l = de.FREE_FLOW } = y(), { t: u } = T(), p = r || u("add-other.default-other-option-label") || v, d = f(e, V), h = I(() => {
|
|
103
|
+
const n = s || [];
|
|
104
|
+
return i ? [
|
|
105
|
+
...n,
|
|
106
|
+
{
|
|
107
|
+
label: p,
|
|
108
|
+
value: p,
|
|
109
|
+
isOther: !0
|
|
110
|
+
}
|
|
111
|
+
] : n;
|
|
112
|
+
}, [
|
|
113
|
+
s,
|
|
114
|
+
i,
|
|
115
|
+
p
|
|
116
|
+
]);
|
|
117
|
+
return h.length === 0 ? null : /* @__PURE__ */ t.createElement("div", {
|
|
118
|
+
className: o,
|
|
119
|
+
"data-columns": l
|
|
120
|
+
}, h.map((n, b) => {
|
|
121
|
+
const c = n.value ?? n.label;
|
|
122
|
+
return k(d, {
|
|
123
|
+
key: n.isOther ? v : c,
|
|
124
|
+
value: c,
|
|
125
|
+
label: n.label,
|
|
126
|
+
isOther: n.isOther,
|
|
127
|
+
isFirstOption: b === 0
|
|
128
|
+
});
|
|
129
|
+
}));
|
|
130
|
+
}, q = ({ children: e, className: o }) => {
|
|
131
|
+
const { addOther: s, addOtherLabel: i, hasError: r, readOnly: l, value: u } = y(), { t: p } = T(), d = i || p("add-other.default-other-option-label") || v, h = f(e, A), n = f(e, j), b = I(() => !s || !u ? !1 : u.some((c) => c === d || c.startsWith(`${d}:`)), [
|
|
132
|
+
s,
|
|
133
|
+
u,
|
|
134
|
+
d
|
|
135
|
+
]);
|
|
136
|
+
return /* @__PURE__ */ t.createElement("div", {
|
|
137
|
+
className: o,
|
|
138
|
+
"data-invalid": r,
|
|
139
|
+
"data-readonly": l
|
|
140
|
+
}, h, b && n);
|
|
141
|
+
}, a = ({ children: e }) => {
|
|
142
|
+
const { id: o, value: s, onChange: i, FieldLayout: r, required: l, disabled: u, readOnly: p, hasError: d, onBlur: h, onFocus: n } = y(), { inputId: b, labelId: c, ariaDescribedBy: L } = M(), O = S(null);
|
|
143
|
+
U(O);
|
|
144
|
+
const g = I(() => s || [], [
|
|
145
|
+
s
|
|
146
|
+
]), E = f(e, P), C = f(e, q), _ = f(e, H), m = f(e, W);
|
|
147
|
+
return /* @__PURE__ */ t.createElement(r, {
|
|
148
|
+
fieldId: o,
|
|
149
|
+
renderLabel: () => E,
|
|
150
|
+
renderInput: () => /* @__PURE__ */ t.createElement(le, {
|
|
151
|
+
id: b,
|
|
152
|
+
ariaLabelledBy: c,
|
|
153
|
+
ariaDescribedBy: L,
|
|
154
|
+
required: l,
|
|
155
|
+
onBlur: h,
|
|
156
|
+
onFocus: n
|
|
157
|
+
}, /* @__PURE__ */ t.createElement(w, {
|
|
158
|
+
ref: O,
|
|
159
|
+
"aria-labelledby": c,
|
|
160
|
+
value: g,
|
|
161
|
+
onChange: i,
|
|
162
|
+
isDisabled: u,
|
|
163
|
+
isReadOnly: p,
|
|
164
|
+
isRequired: l,
|
|
165
|
+
isInvalid: d
|
|
166
|
+
}, C)),
|
|
167
|
+
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, m, _)
|
|
168
|
+
});
|
|
169
|
+
};
|
|
170
|
+
A.Option = V;
|
|
171
|
+
V.Label = $;
|
|
172
|
+
a.Label = P;
|
|
173
|
+
a.Control = q;
|
|
174
|
+
a.Options = A;
|
|
175
|
+
a.OtherInput = j;
|
|
176
|
+
a.Description = H;
|
|
177
|
+
a.Error = W;
|
|
178
|
+
const he = "_control_oshjt_1", Ee = "_options_oshjt_7", be = "_option_oshjt_7", Oe = "_optionHover_oshjt_76", fe = "_optionSelected_oshjt_76", R = {
|
|
179
|
+
control: he,
|
|
180
|
+
options: Ee,
|
|
181
|
+
option: be,
|
|
182
|
+
optionHover: Oe,
|
|
183
|
+
optionSelected: fe
|
|
184
|
+
}, Ie = ({ content: e, locale: o }) => /* @__PURE__ */ t.createElement(J, {
|
|
185
|
+
content: e,
|
|
186
|
+
locale: o
|
|
187
|
+
}), Le = {
|
|
188
|
+
base: R.option,
|
|
189
|
+
selected: R.optionSelected,
|
|
190
|
+
hover: R.optionHover
|
|
191
|
+
}, Ne = () => {
|
|
192
|
+
const e = ce({
|
|
193
|
+
globalClasses: re,
|
|
194
|
+
moduleClasses: Le
|
|
195
|
+
}), o = ue();
|
|
196
|
+
return /* @__PURE__ */ t.createElement(a, null, /* @__PURE__ */ t.createElement(a.Label, {
|
|
197
|
+
className: F(te, D.label)
|
|
198
|
+
}, /* @__PURE__ */ t.createElement(a.Label.Required, {
|
|
199
|
+
className: F(oe, D.requiredMark)
|
|
200
|
+
})), /* @__PURE__ */ t.createElement(a.Control, {
|
|
201
|
+
className: R.control
|
|
202
|
+
}, /* @__PURE__ */ t.createElement(a.Options, {
|
|
203
|
+
className: F(ne, R.options)
|
|
204
|
+
}, /* @__PURE__ */ t.createElement(a.Options.Option, {
|
|
205
|
+
className: e
|
|
206
|
+
}, /* @__PURE__ */ t.createElement(a.Options.Option.Label, null))), /* @__PURE__ */ t.createElement(a.OtherInput, {
|
|
207
|
+
className: o
|
|
208
|
+
})), /* @__PURE__ */ t.createElement(a.Error, {
|
|
209
|
+
className: F(ae, D.error)
|
|
210
|
+
}, /* @__PURE__ */ t.createElement(ie, null), /* @__PURE__ */ t.createElement(a.Error.Text, null)), /* @__PURE__ */ t.createElement(a.Description, {
|
|
211
|
+
className: F(se, D.description)
|
|
212
|
+
}, Ie));
|
|
213
|
+
};
|
|
214
|
+
export {
|
|
215
|
+
Ne as T
|
|
216
|
+
};
|
|
@@ -2,13 +2,13 @@ import { RicosViewer as N } from "@wix/ricos/viewer";
|
|
|
2
2
|
import o from "classnames";
|
|
3
3
|
import r, { useCallback as O, useRef as S } from "react";
|
|
4
4
|
import { TextField as T, TextArea as y } from "react-aria-components";
|
|
5
|
-
import { bM as p, bJ as d, bO as x, bV as h, X as M, am as g, M as v, I as q } from "./form-
|
|
5
|
+
import { bM as p, bJ as d, bO as x, bV as h, X as M, am as g, M as v, I as q } from "./form-CrkZgddm.js";
|
|
6
6
|
import { f as i } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as B, E as V } from "./field-error-headless-
|
|
8
|
-
import { L as P } from "./field-label-headless-
|
|
7
|
+
import { D as B, E as V } from "./field-error-headless-C-6U5jK5.js";
|
|
8
|
+
import { L as P } from "./field-label-headless-CNe_Y93p.js";
|
|
9
9
|
import { E as k } from "./error-icon-hZxQ6DEy.js";
|
|
10
10
|
import { s as c } from "./field-rac.module-DcyJyi2B.js";
|
|
11
|
-
import { u as w } from "./use-text-input-class-name-
|
|
11
|
+
import { u as w } from "./use-text-input-class-name-w_3X2xFo.js";
|
|
12
12
|
const e = ({ children: t }) => {
|
|
13
13
|
const { id: a, value: m, onChange: n, disabled: u, required: s, readOnly: l, onBlur: E, onFocus: b, FieldLayout: I, hasError: f } = p(), { labelId: F } = d(), L = O((A) => {
|
|
14
14
|
n(A);
|
package/dist/component/{text-input-field-rac-Jl4gKN4D.js → text-input-field-rac-CwAh7Rsq.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-B7-hkYK7.js";
|
|
5
5
|
import { E as o } from "./error-icon-hZxQ6DEy.js";
|
|
6
6
|
import { s as a } from "./field-rac.module-DcyJyi2B.js";
|
|
7
|
-
import { X as n, am as c, M as E, I as i } from "./form-
|
|
8
|
-
import { u as p } from "./use-text-input-class-name-
|
|
7
|
+
import { X as n, am as c, M as E, I as i } from "./form-CrkZgddm.js";
|
|
8
|
+
import { u as p } from "./use-text-input-class-name-w_3X2xFo.js";
|
|
9
9
|
const I = ({ content: s, locale: m }) => /* @__PURE__ */ e.createElement(l, {
|
|
10
10
|
content: s,
|
|
11
11
|
locale: m
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import n, { useRef as v } from "react";
|
|
2
2
|
import { TextField as C, Input as R } from "react-aria-components";
|
|
3
|
-
import { bM as d, bJ as p, bO as h, bV as O } from "./form-
|
|
3
|
+
import { bM as d, bJ as p, bO as h, bV as O } from "./form-CrkZgddm.js";
|
|
4
4
|
import { f as a } from "./find-child-C60k4CxG.js";
|
|
5
|
-
import { D as T, E as g } from "./field-error-headless-
|
|
6
|
-
import { L as x } from "./field-label-headless-
|
|
5
|
+
import { D as T, E as g } from "./field-error-headless-C-6U5jK5.js";
|
|
6
|
+
import { L as x } from "./field-label-headless-CNe_Y93p.js";
|
|
7
7
|
const e = ({ children: r }) => {
|
|
8
8
|
const { id: s, value: l, onChange: i, disabled: u, readOnly: t, required: o, hasError: c, onBlur: m, onFocus: b, autoComplete: f, FieldLayout: E } = d(), { labelId: I } = p(), F = a(r, e.Label), y = a(r, e.Input), D = a(r, e.Description), L = a(r, e.Error);
|
|
9
9
|
return /* @__PURE__ */ n.createElement(E, {
|
|
@@ -3,14 +3,14 @@ import { RicosViewer as q } from "@wix/ricos/viewer";
|
|
|
3
3
|
import m from "classnames";
|
|
4
4
|
import { parseTime as B } from "@internationalized/date";
|
|
5
5
|
import { TimeField as k, DateInput as U, DateSegment as _, TimeFieldStateContext as w } from "react-aria-components";
|
|
6
|
-
import { bM as p, bJ as X, bX as T, bO as j, X as J, am as Q, M as z, I as G } from "./form-
|
|
6
|
+
import { bM as p, bJ as X, bX as T, bO as j, X as J, am as Q, M as z, I as G } from "./form-CrkZgddm.js";
|
|
7
7
|
import { f as u, a as F } from "./find-child-C60k4CxG.js";
|
|
8
|
-
import { D as K, E as W } from "./field-error-headless-
|
|
9
|
-
import { L as Y } from "./field-label-headless-
|
|
8
|
+
import { D as K, E as W } from "./field-error-headless-C-6U5jK5.js";
|
|
9
|
+
import { L as Y } from "./field-label-headless-CNe_Y93p.js";
|
|
10
10
|
import { E as Z } from "./error-icon-hZxQ6DEy.js";
|
|
11
11
|
import { H as S } from "./custom-focus-class-_483Pkwp.js";
|
|
12
12
|
import { s as f } from "./field-rac.module-DcyJyi2B.js";
|
|
13
|
-
import { u as $ } from "./use-text-input-class-name-
|
|
13
|
+
import { u as $ } from "./use-text-input-class-name-w_3X2xFo.js";
|
|
14
14
|
const r = ({ children: t }) => {
|
|
15
15
|
const { id: n, value: s, onChange: a, disabled: i, readOnly: o, required: c, onBlur: l, onFocus: E, use24HourFormat: b, FieldLayout: C, hasError: I } = p(), { inputId: g, ariaDescribedBy: D, labelId: L } = X(), R = V((M) => {
|
|
16
16
|
const H = ae(M);
|
|
@@ -2,14 +2,14 @@ import { RicosViewer as h } from "@wix/ricos/viewer";
|
|
|
2
2
|
import i from "classnames";
|
|
3
3
|
import r, { useCallback as N, useRef as O } from "react";
|
|
4
4
|
import { TextField as y, Input as A } from "react-aria-components";
|
|
5
|
-
import { bM as d, bJ as E, bO as M, bV as v, X as B, am as P, M as T, I as g } from "./form-
|
|
5
|
+
import { bM as d, bJ as E, bO as M, bV as v, X as B, am as P, M as T, I as g } from "./form-CrkZgddm.js";
|
|
6
6
|
import { f as c } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as k, E as q } from "./field-error-headless-
|
|
8
|
-
import { L as x } from "./field-label-headless-
|
|
7
|
+
import { D as k, E as q } from "./field-error-headless-C-6U5jK5.js";
|
|
8
|
+
import { L as x } from "./field-label-headless-CNe_Y93p.js";
|
|
9
9
|
import { u as U } from "./use-invoke-callback-UH73A_J3.js";
|
|
10
10
|
import { E as V } from "./error-icon-hZxQ6DEy.js";
|
|
11
11
|
import { s as u } from "./field-rac.module-DcyJyi2B.js";
|
|
12
|
-
import { u as w } from "./use-text-input-class-name-
|
|
12
|
+
import { u as w } from "./use-text-input-class-name-w_3X2xFo.js";
|
|
13
13
|
const W = (t) => t ? `https://${String(t).replace(/^https?:\/\//, "")}` : "", e = ({ children: t }) => {
|
|
14
14
|
const { id: o, value: a, onChange: l, disabled: m, readOnly: s, required: n, hasError: I, onBlur: b, onFocus: f, FieldLayout: R } = d(), { labelId: F } = E(), p = U(b), L = c(t, e.Label), D = c(t, e.Input), C = c(t, e.Description), _ = c(t, e.Error), S = N(() => {
|
|
15
15
|
l(W(a)), p();
|