@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/form.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import m from "classnames";
|
|
2
2
|
import e from "react";
|
|
3
|
-
import { bM as u, bo as i, bn as C, bq as R, aY as T, aG as d } from "./form-
|
|
4
|
-
import { u as g, R as p, s as S, T as h } from "./rich-content-rac.module-
|
|
3
|
+
import { bM as u, bo as i, bn as C, bq as R, aY as T, aG as d } from "./form-CrkZgddm.js";
|
|
4
|
+
import { u as g, R as p, s as S, T as h } from "./rich-content-rac.module-CkqZCs-2.js";
|
|
5
5
|
const f = ({ truncate: t = !0 } = {}) => {
|
|
6
6
|
const { content: a, maxShownParagraphs: s } = u(), n = e.useMemo(() => ({
|
|
7
7
|
colorPalette: R(),
|
|
@@ -1,47 +1,50 @@
|
|
|
1
|
-
import e, {
|
|
2
|
-
import { RicosViewer as
|
|
1
|
+
import e, { useRef as S, useMemo as G, useCallback as k } from "react";
|
|
2
|
+
import { RicosViewer as P } from "@wix/ricos/viewer";
|
|
3
3
|
import I from "classnames";
|
|
4
|
-
import { bM as b, bJ as x, bO as
|
|
5
|
-
import { CheckboxGroup as
|
|
4
|
+
import { bM as b, bJ as x, bV as j, bO as B, bF as q, X as U, am as V, T as w, V as K, M as z, I as J, U as Q, f } from "./form-CrkZgddm.js";
|
|
5
|
+
import { CheckboxGroup as X, 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
|
|
8
|
-
import { D as
|
|
9
|
-
import { F as
|
|
10
|
-
import { E as
|
|
7
|
+
import { L as W, g as Z } from "./field-label-headless-CNe_Y93p.js";
|
|
8
|
+
import { D as ee, E as te } from "./field-error-headless-C-6U5jK5.js";
|
|
9
|
+
import { F as oe } from "./fieldset-headless-CD3fds9J.js";
|
|
10
|
+
import { E as ae } from "./error-icon-hZxQ6DEy.js";
|
|
11
11
|
import { s as O } from "./field-rac.module-DcyJyi2B.js";
|
|
12
|
-
import { u as
|
|
12
|
+
import { u as ne } from "./use-element-state-class-name-BgZPeBgR.js";
|
|
13
13
|
const o = ({ children: t, className: n }) => {
|
|
14
|
-
const { id: s, value: a, onChange: i, disabled: l, readOnly: r, required: c, onBlur:
|
|
14
|
+
const { id: s, value: a, onChange: i, disabled: l, readOnly: r, required: c, onBlur: d, onFocus: p, hasError: C, FieldLayout: L } = b(), { inputId: g, labelId: _, ariaDescribedBy: A } = x(), N = S(null);
|
|
15
|
+
j(N);
|
|
16
|
+
const D = m(t, o.Label), M = m(t, o.Options), h = m(t, o.Description), v = m(t, o.Error), y = G(() => a || [], [
|
|
15
17
|
a
|
|
16
|
-
]),
|
|
17
|
-
i == null || i(
|
|
18
|
+
]), H = k((T) => {
|
|
19
|
+
i == null || i(T);
|
|
18
20
|
}, [
|
|
19
21
|
i
|
|
20
22
|
]);
|
|
21
23
|
return /* @__PURE__ */ e.createElement(L, {
|
|
22
24
|
fieldId: s,
|
|
23
|
-
renderLabel: () =>
|
|
24
|
-
renderInput: () => /* @__PURE__ */ e.createElement(
|
|
25
|
+
renderLabel: () => D,
|
|
26
|
+
renderInput: () => /* @__PURE__ */ e.createElement(oe, {
|
|
25
27
|
id: g,
|
|
26
28
|
ariaLabelledBy: _,
|
|
27
|
-
ariaDescribedBy:
|
|
29
|
+
ariaDescribedBy: A,
|
|
28
30
|
required: c,
|
|
29
|
-
onBlur:
|
|
31
|
+
onBlur: d,
|
|
30
32
|
onFocus: p
|
|
31
|
-
}, /* @__PURE__ */ e.createElement(
|
|
33
|
+
}, /* @__PURE__ */ e.createElement(X, {
|
|
34
|
+
ref: N,
|
|
32
35
|
className: n,
|
|
33
36
|
"aria-labelledby": _,
|
|
34
|
-
value:
|
|
35
|
-
onChange:
|
|
37
|
+
value: y,
|
|
38
|
+
onChange: H,
|
|
36
39
|
isDisabled: l,
|
|
37
40
|
isReadOnly: r,
|
|
38
41
|
isRequired: c,
|
|
39
42
|
isInvalid: C
|
|
40
|
-
},
|
|
41
|
-
renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null,
|
|
43
|
+
}, M)),
|
|
44
|
+
renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, v, h)
|
|
42
45
|
});
|
|
43
|
-
},
|
|
44
|
-
const { id: s, options: a, numberOfColumns: i } = b(), l = m(t,
|
|
46
|
+
}, R = ({ children: t, className: n }) => {
|
|
47
|
+
const { id: s, options: a, numberOfColumns: i } = b(), l = m(t, R.Option);
|
|
45
48
|
return /* @__PURE__ */ e.createElement("div", {
|
|
46
49
|
className: n,
|
|
47
50
|
"data-columns": i
|
|
@@ -51,12 +54,12 @@ const o = ({ children: t, className: n }) => {
|
|
|
51
54
|
isFirst: c === 0,
|
|
52
55
|
fieldId: s
|
|
53
56
|
})));
|
|
54
|
-
},
|
|
57
|
+
}, se = ({ className: t }) => /* @__PURE__ */ e.createElement("div", {
|
|
55
58
|
"aria-hidden": "true",
|
|
56
59
|
className: t
|
|
57
|
-
}),
|
|
58
|
-
var
|
|
59
|
-
const { option: s } = n, { choiceImageResize: a, choiceImageAlignment: i } = b(), l = (
|
|
60
|
+
}), le = ({ className: t, ...n }) => {
|
|
61
|
+
var d, p;
|
|
62
|
+
const { option: s } = n, { choiceImageResize: a, choiceImageAlignment: i } = b(), l = (d = s.media) == null ? void 0 : d.image, r = l && Z(l, l.width, l.height);
|
|
60
63
|
if (!l || !r)
|
|
61
64
|
return /* @__PURE__ */ e.createElement("div", {
|
|
62
65
|
className: t,
|
|
@@ -72,26 +75,26 @@ const o = ({ children: t, className: n }) => {
|
|
|
72
75
|
"data-alignment": i,
|
|
73
76
|
"data-hook": "image-choice-option-image"
|
|
74
77
|
});
|
|
75
|
-
},
|
|
78
|
+
}, ie = ({ className: t, ...n }) => {
|
|
76
79
|
const { option: s } = n;
|
|
77
80
|
return !s.label || s.isLabelHidden ? null : /* @__PURE__ */ e.createElement("span", {
|
|
78
81
|
className: t
|
|
79
82
|
}, s.label);
|
|
80
|
-
},
|
|
81
|
-
const { option: a, isFirst: i = !1, fieldId: l } = s, { disabled: r, readOnly: c, hasError:
|
|
82
|
-
|
|
83
|
+
}, u = ({ children: t, className: n, ...s }) => {
|
|
84
|
+
const { option: a, isFirst: i = !1, fieldId: l } = s, { disabled: r, readOnly: c, hasError: d } = b(), p = S(null);
|
|
85
|
+
B(() => {
|
|
83
86
|
var _;
|
|
84
87
|
i && ((_ = p.current) == null || _.focus({
|
|
85
88
|
preventScroll: !0
|
|
86
89
|
}));
|
|
87
90
|
}, l);
|
|
88
|
-
const C = m(t,
|
|
89
|
-
return /* @__PURE__ */ e.createElement(
|
|
91
|
+
const C = m(t, u.Input), L = m(t, u.Image), g = m(t, u.Label);
|
|
92
|
+
return /* @__PURE__ */ e.createElement(Y, {
|
|
90
93
|
value: a.label,
|
|
91
94
|
isDisabled: r,
|
|
92
95
|
isReadOnly: c,
|
|
93
|
-
isInvalid:
|
|
94
|
-
}, /* @__PURE__ */ e.createElement(
|
|
96
|
+
isInvalid: d
|
|
97
|
+
}, /* @__PURE__ */ e.createElement($, {
|
|
95
98
|
ref: p,
|
|
96
99
|
"aria-label": a.isLabelHidden ? a.label : void 0,
|
|
97
100
|
className: n,
|
|
@@ -102,54 +105,54 @@ const o = ({ children: t, className: n }) => {
|
|
|
102
105
|
option: a
|
|
103
106
|
})));
|
|
104
107
|
};
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
o.Label =
|
|
109
|
-
o.Options =
|
|
110
|
-
|
|
111
|
-
o.Description =
|
|
112
|
-
o.Error =
|
|
113
|
-
const
|
|
114
|
-
options:
|
|
115
|
-
optionInput:
|
|
116
|
-
option:
|
|
117
|
-
optionHover:
|
|
118
|
-
optionSelected:
|
|
119
|
-
optionLabel:
|
|
120
|
-
optionImage:
|
|
121
|
-
},
|
|
108
|
+
u.Input = se;
|
|
109
|
+
u.Image = le;
|
|
110
|
+
u.Label = ie;
|
|
111
|
+
o.Label = W;
|
|
112
|
+
o.Options = R;
|
|
113
|
+
R.Option = u;
|
|
114
|
+
o.Description = ee;
|
|
115
|
+
o.Error = te;
|
|
116
|
+
const re = "_options_j8uno_1", ce = "_optionInput_j8uno_33", me = "_option_j8uno_1", pe = "_optionHover_j8uno_64", Ee = "_optionSelected_j8uno_64", ue = "_optionLabel_j8uno_104", de = "_optionImage_j8uno_144", E = {
|
|
117
|
+
options: re,
|
|
118
|
+
optionInput: ce,
|
|
119
|
+
option: me,
|
|
120
|
+
optionHover: pe,
|
|
121
|
+
optionSelected: Ee,
|
|
122
|
+
optionLabel: ue,
|
|
123
|
+
optionImage: de
|
|
124
|
+
}, Ie = ({ content: t, locale: n }) => /* @__PURE__ */ e.createElement(P, {
|
|
122
125
|
content: t,
|
|
123
126
|
locale: n
|
|
124
|
-
}),
|
|
127
|
+
}), _e = {
|
|
125
128
|
base: E.option,
|
|
126
129
|
selected: E.optionSelected,
|
|
127
130
|
hover: E.optionHover
|
|
128
|
-
},
|
|
129
|
-
const t =
|
|
130
|
-
globalClasses:
|
|
131
|
-
moduleClasses:
|
|
132
|
-
}), n =
|
|
131
|
+
}, Oe = () => {
|
|
132
|
+
const t = ne({
|
|
133
|
+
globalClasses: Q,
|
|
134
|
+
moduleClasses: _e
|
|
135
|
+
}), n = q(f.IMAGE_CHOICE, f.IMAGE_CHOICE_OPTION, f.IMAGE_CHOICE_OPTION_IMAGE);
|
|
133
136
|
return /* @__PURE__ */ e.createElement(o, null, /* @__PURE__ */ e.createElement(o.Label, {
|
|
134
|
-
className: I(
|
|
137
|
+
className: I(U, O.label)
|
|
135
138
|
}, /* @__PURE__ */ e.createElement(o.Label.Required, {
|
|
136
|
-
className: I(
|
|
139
|
+
className: I(V, O.requiredMark)
|
|
137
140
|
})), /* @__PURE__ */ e.createElement(o.Options, {
|
|
138
|
-
className: I(
|
|
141
|
+
className: I(w, E.options)
|
|
139
142
|
}, /* @__PURE__ */ e.createElement(o.Options.Option, {
|
|
140
143
|
className: t
|
|
141
144
|
}, /* @__PURE__ */ e.createElement(o.Options.Option.Input, {
|
|
142
145
|
className: E.optionInput
|
|
143
146
|
}), /* @__PURE__ */ e.createElement(o.Options.Option.Image, {
|
|
144
|
-
className: I(
|
|
147
|
+
className: I(K, E.optionImage, n)
|
|
145
148
|
}), /* @__PURE__ */ e.createElement(o.Options.Option.Label, {
|
|
146
149
|
className: E.optionLabel
|
|
147
150
|
}))), /* @__PURE__ */ e.createElement(o.Error, {
|
|
148
|
-
className: I(
|
|
149
|
-
}, /* @__PURE__ */ e.createElement(
|
|
150
|
-
className: I(
|
|
151
|
-
},
|
|
152
|
-
},
|
|
151
|
+
className: I(z, O.error)
|
|
152
|
+
}, /* @__PURE__ */ e.createElement(ae, null), /* @__PURE__ */ e.createElement(o.Error.Text, null)), /* @__PURE__ */ e.createElement(o.Description, {
|
|
153
|
+
className: I(J, O.description)
|
|
154
|
+
}, Ie));
|
|
155
|
+
}, he = () => /* @__PURE__ */ e.createElement(Oe, null);
|
|
153
156
|
export {
|
|
154
|
-
|
|
157
|
+
he as ImageChoiceRAC
|
|
155
158
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { e as R, b5 as _, bk as fe, b6 as O, aM as Ge, B as Be, a_ as qe, aT as He, aS as A, b0 as le, b9 as re, b3 as Ce, c as B, aU as M, bw as Ee, aW as je, aV as Te, aX as q } from "./form-
|
|
2
|
-
import { br as Sn } from "./form-
|
|
1
|
+
import { e as R, b5 as _, bk as fe, b6 as O, aM as Ge, B as Be, a_ as qe, aT as He, aS as A, b0 as le, b9 as re, b3 as Ce, c as B, aU as M, bw as Ee, aW as je, aV as Te, aX as q } from "./form-CrkZgddm.js";
|
|
2
|
+
import { br as Sn } from "./form-CrkZgddm.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 Cn } from "./date-availability-
|
|
9
|
+
import { p as Qe, i as et } from "./date-availability-D3-akuGp.js";
|
|
10
|
+
import { a as Cn } from "./date-availability-D3-akuGp.js";
|
|
11
11
|
import { C as tt } from "./calling-country-codes-PyWuOTmF.js";
|
|
12
12
|
function rt(e) {
|
|
13
13
|
var t, r;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { bv as n } from "./form-
|
|
2
|
-
import { A as S, a as g, C as p, aZ as N, bf as q, bg as D, bx as L } from "./form-
|
|
1
|
+
import { bv as n } from "./form-CrkZgddm.js";
|
|
2
|
+
import { A as S, a as g, C as p, aZ as N, bf as q, bg as D, bx as L } from "./form-CrkZgddm.js";
|
|
3
3
|
const l = (e = !1) => ({
|
|
4
4
|
country: {
|
|
5
5
|
required: e
|
|
@@ -2,21 +2,21 @@ import { RicosViewer as z } from "@wix/ricos/viewer";
|
|
|
2
2
|
import L from "classnames";
|
|
3
3
|
import n, { useMemo as w, createContext as We, useContext as Ie, useState as Ee, useRef as x, useCallback as _, useEffect as Pe } from "react";
|
|
4
4
|
import { UNSAFE_PortalProvider as Mt } from "react-aria";
|
|
5
|
-
import { bH as It, d as Lt, bC as qt, bE as Nt, bf as wt, bg as xt, b8 as Bt, be as W, F as K, bX as Te, bv as ct, bM as P, bJ as M, bO as ae, bV as be, bI as Ot, bk as kt, C as ge, bt as Ut, bx as Vt, bT as $t, bN as Wt, bS as Kt, bA as Yt, bp as Ht, bz as jt, bP as Jt, aP as Xt, Y as zt, _ as G, am as Q, $ as Oe, M as Z, I as ee, Z as Gt, a0 as Qt, a1 as Zt } from "./form-
|
|
5
|
+
import { bH as It, d as Lt, bC as qt, bE as Nt, bf as wt, bg as xt, b8 as Bt, be as W, F as K, bX as Te, bv as ct, bM as P, bJ as M, bO as ae, bV as be, bI as Ot, bk as kt, C as ge, bt as Ut, bx as Vt, bT as $t, bN as Wt, bS as Kt, bA as Yt, bp as Ht, bz as jt, bP as Jt, aP as Xt, Y as zt, _ as G, am as Q, $ as Oe, M as Z, I as ee, Z as Gt, a0 as Qt, a1 as Zt } from "./form-CrkZgddm.js";
|
|
6
6
|
import { f as b, a as v } from "./find-child-C60k4CxG.js";
|
|
7
7
|
import { F as en, V as tn } from "./headless-styles-CmcyA_pi.js";
|
|
8
|
-
import { c as nn } from "./use-is-forced-open-dropdown-
|
|
8
|
+
import { c as nn } from "./use-is-forced-open-dropdown-Dzt7p3CD.js";
|
|
9
9
|
import { TextField as fe, Input as le, ComboBoxStateContext as Ke, ComboBox as Fe, Popover as De, ListBox as Me, ListBoxItem as he, Group as gt, Button as vt } 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 rn, c as on, a as sn, r as St } from "./isObjectLike-
|
|
13
|
-
import { V as an, a as ln } from "./use-dropdown-option-class-name-
|
|
10
|
+
import { D as ie, E as ce } from "./field-error-headless-C-6U5jK5.js";
|
|
11
|
+
import { L as de } from "./field-label-headless-CNe_Y93p.js";
|
|
12
|
+
import { e as rn, c as on, a as sn, r as St } from "./isObjectLike-Km_2vWSW.js";
|
|
13
|
+
import { V as an, a as ln } from "./use-dropdown-option-class-name-CYe9j3TQ.js";
|
|
14
14
|
import { u as cn } from "./use-invoke-callback-UH73A_J3.js";
|
|
15
15
|
import { C as dt } from "./chevron-down-icon-CcpVm6B-.js";
|
|
16
16
|
import { E as te } from "./error-icon-hZxQ6DEy.js";
|
|
17
17
|
import { H as qe } from "./custom-focus-class-_483Pkwp.js";
|
|
18
18
|
import { s as C } from "./field-rac.module-DcyJyi2B.js";
|
|
19
|
-
import { u as ut } from "./use-hoverable-input-class-name-
|
|
19
|
+
import { u as ut } from "./use-hoverable-input-class-name-DDWuNCH3.js";
|
|
20
20
|
const dn = (e, t, o) => {
|
|
21
21
|
var s, l, i, a;
|
|
22
22
|
const r = (s = e.steps) == null ? void 0 : s.map((d) => {
|
package/dist/component/{number-input-field-rac-Dv6mIcWK.js → number-input-field-rac-BXfUcSDN.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 X, useCallback as J, useEffect as Q, useRef as U } from "react";
|
|
4
4
|
import { NumberField as $, Input as j } from "react-aria-components";
|
|
5
|
-
import { bM as _, bJ as S, bX as z, bO as G, X as H, am as K, M as W, I as Y } from "./form-
|
|
5
|
+
import { bM as _, bJ as S, bX as z, bO as G, X as H, am as K, M as W, I as Y } from "./form-CrkZgddm.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-C-6U5jK5.js";
|
|
8
|
+
import { L as ee } from "./field-label-headless-CNe_Y93p.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-DcyJyi2B.js";
|
|
13
|
-
import { u as se } from "./use-text-input-class-name-
|
|
13
|
+
import { u as se } from "./use-text-input-class-name-w_3X2xFo.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, M = (R = n == null ? void 0 : n.number) == null ? void 0 : R.minimum, g = C(s), [x, I] = X(g), T = ne(E), V = c(t, e.Label), h = c(t, e.Input), q = 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 O } from "react";
|
|
2
2
|
import { RicosViewer as x } from "@wix/ricos/viewer";
|
|
3
3
|
import d from "classnames";
|
|
4
|
-
import { bM as E, bJ as I, bO as V, bV as A, bX as B, X as v, am as M, M as P, I as k } from "./form-
|
|
4
|
+
import { bM as E, bJ as I, bO as V, bV as A, bX as B, X as v, am as M, M as P, I as k } from "./form-CrkZgddm.js";
|
|
5
5
|
import { TextField as q, Group as U, Input as j, Button as H } from "react-aria-components";
|
|
6
6
|
import { f as u, a as b } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as W, E as X } from "./field-error-headless-
|
|
8
|
-
import { L as Z } from "./field-label-headless-
|
|
7
|
+
import { D as W, E as X } from "./field-error-headless-C-6U5jK5.js";
|
|
8
|
+
import { L as Z } from "./field-label-headless-CNe_Y93p.js";
|
|
9
9
|
import { E as G } from "./error-icon-hZxQ6DEy.js";
|
|
10
10
|
import { H as J } from "./custom-focus-class-_483Pkwp.js";
|
|
11
11
|
import { s as p } from "./field-rac.module-DcyJyi2B.js";
|
|
12
|
-
import { u as K } from "./use-text-input-class-name-
|
|
12
|
+
import { u as K } from "./use-text-input-class-name-w_3X2xFo.js";
|
|
13
13
|
const t = ({ children: o, className: r }) => {
|
|
14
14
|
const { id: l, value: s, onChange: c, disabled: n, readOnly: m, required: a, hasError: i, onBlur: f, onFocus: C, autoComplete: y, FieldLayout: _ } = E(), { labelId: R } = I(), [D, F] = N(!1), L = u(o, t.Label), T = u(o, t.Control), h = u(o, t.Description), w = u(o, t.Error);
|
|
15
15
|
return /* @__PURE__ */ e.createElement(_, {
|
|
@@ -2,16 +2,16 @@ import r, { useCallback as P, useRef as J } from "react";
|
|
|
2
2
|
import { RicosViewer as Q } from "@wix/ricos/viewer";
|
|
3
3
|
import p from "classnames";
|
|
4
4
|
import { TextField as j, Group as w, Input as z } from "react-aria-components";
|
|
5
|
-
import { bM as R, bJ as D, bE as x, bX as K, bO as W, X as Y, am as Z, M as ee, I as re } from "./form-
|
|
5
|
+
import { bM as R, bJ as D, bE as x, bX as K, bO as W, X as Y, am as Z, M as ee, I as re } from "./form-CrkZgddm.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-C-6U5jK5.js";
|
|
8
|
+
import { L as ae } from "./field-label-headless-CNe_Y93p.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-DcyJyi2B.js";
|
|
14
|
-
import { u as ie } from "./use-text-input-class-name-
|
|
14
|
+
import { u as ie } from "./use-text-input-class-name-w_3X2xFo.js";
|
|
15
15
|
function ue(e, t) {
|
|
16
16
|
return {
|
|
17
17
|
productId: e.id,
|
package/dist/component/{phone-input-field-rac-B1fOUnoX.js → phone-input-field-rac-BzqbdcNA.js}
RENAMED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { RicosViewer as ye } from "@wix/ricos/viewer";
|
|
2
2
|
import O from "classnames";
|
|
3
3
|
import t, { useMemo as $, useState as A, useRef as F, useEffect as k, useCallback as W, createContext as ne, useContext as q, useId as Ee } from "react";
|
|
4
|
-
import { bv as fe, bX as D, bE as oe, bW as he, bM as w, bJ as re, bO as ge, X as Oe, am as be, a3 as X, M as _e, I as Ne, a5 as Le, a4 as Se, a2 as Ie } from "./form-
|
|
4
|
+
import { bv as fe, bX as D, bE as oe, bW as he, bM as w, bJ as re, bO as ge, X as Oe, am as be, a3 as X, M as _e, I as Ne, a5 as Le, a4 as Se, a2 as Ie } from "./form-CrkZgddm.js";
|
|
5
5
|
import { UNSAFE_PortalProvider as Pe } from "react-aria";
|
|
6
6
|
import { Dialog as ae, OverlayTriggerStateContext as ve, ModalOverlay as Fe, Modal as De, SearchField as we, Group as U, ListBoxItem as Be, DialogTrigger as Re, Select as xe, Input as se, Autocomplete as Me } from "react-aria-components";
|
|
7
7
|
import { f as h, a as I } from "./find-child-C60k4CxG.js";
|
|
8
|
-
import { D as je, E as $e } from "./field-error-headless-
|
|
9
|
-
import { L as Ae } from "./field-label-headless-
|
|
8
|
+
import { D as je, E as $e } from "./field-error-headless-C-6U5jK5.js";
|
|
9
|
+
import { L as Ae } from "./field-label-headless-CNe_Y93p.js";
|
|
10
10
|
import { N as Te, S as ke } from "./non-modal-popover-D-u13tmp.js";
|
|
11
11
|
import { u as Ve } from "./use-invoke-callback-UH73A_J3.js";
|
|
12
|
-
import { d as He } from "./use-is-forced-open-dropdown-
|
|
13
|
-
import { V as Ue, a as qe } from "./use-dropdown-option-class-name-
|
|
12
|
+
import { d as He } from "./use-is-forced-open-dropdown-Dzt7p3CD.js";
|
|
13
|
+
import { V as Ue, a as qe } from "./use-dropdown-option-class-name-CYe9j3TQ.js";
|
|
14
14
|
import ce, { AsYouType as Ge, isValidPhoneNumber as Ye, isSupportedCountry as ze } from "libphonenumber-js";
|
|
15
15
|
import "libphonenumber-js/metadata.min.json";
|
|
16
16
|
import { C as Z } from "./calling-country-codes-PyWuOTmF.js";
|
|
@@ -18,7 +18,7 @@ import { C as Ke } from "./chevron-down-icon-CcpVm6B-.js";
|
|
|
18
18
|
import { E as We } from "./error-icon-hZxQ6DEy.js";
|
|
19
19
|
import { H as J } from "./custom-focus-class-_483Pkwp.js";
|
|
20
20
|
import { s as b } from "./field-rac.module-DcyJyi2B.js";
|
|
21
|
-
import { u as Q } from "./use-hoverable-input-class-name-
|
|
21
|
+
import { u as Q } from "./use-hoverable-input-class-name-DDWuNCH3.js";
|
|
22
22
|
function ee(e) {
|
|
23
23
|
const n = e ? ce(e) : void 0, r = n == null ? void 0 : n.country;
|
|
24
24
|
if (r)
|
|
@@ -2,11 +2,11 @@ import t, { useMemo as K, useCallback as v, useRef as x } from "react";
|
|
|
2
2
|
import { RicosViewer as X } from "@wix/ricos/viewer";
|
|
3
3
|
import y from "classnames";
|
|
4
4
|
import { CheckboxField as $, CheckboxButton as z, NumberField as J, Group as Y, Button as Q, Input as j } from "react-aria-components";
|
|
5
|
-
import { bM as U, bJ as W, bE as V, bX as Z, bO as ee, X as te, am as ne, a6 as ae, a7 as oe, aa as re, a9 as le, ab as se, M as ie, I as ce, a8 as ue } from "./form-
|
|
5
|
+
import { bM as U, bJ as W, bE as V, bX as Z, bO as ee, X as te, am as ne, a6 as ae, a7 as oe, aa as re, a9 as le, ab as se, M as ie, I as ce, a8 as ue } from "./form-CrkZgddm.js";
|
|
6
6
|
import { f, a as b } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { L as me, g as pe } from "./field-label-headless-
|
|
7
|
+
import { L as me, g as pe } from "./field-label-headless-CNe_Y93p.js";
|
|
8
8
|
import { f as de } from "./format-currency-BwShJ9vM.js";
|
|
9
|
-
import { D as Ee, E as _e } from "./field-error-headless-
|
|
9
|
+
import { D as Ee, E as _e } from "./field-error-headless-C-6U5jK5.js";
|
|
10
10
|
import { F as ye } from "./fieldset-headless-CD3fds9J.js";
|
|
11
11
|
import { g as Ie } 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 Oe } from "./checkbox-indicator-module-classes-DOxE4UQg.js";
|
|
15
15
|
import { s as A } from "./field-rac.module-DcyJyi2B.js";
|
|
16
16
|
import { o as w } from "./options-rac.module-_THNq6Qq.js";
|
|
17
|
-
import { u as Le } from "./use-element-state-class-name-
|
|
17
|
+
import { u as Le } from "./use-element-state-class-name-BgZPeBgR.js";
|
|
18
18
|
var Ce = /* @__PURE__ */ (function(e) {
|
|
19
19
|
return e.crop = "CROP", e.fit = "FIT", e;
|
|
20
20
|
})({}), k = /* @__PURE__ */ (function(e) {
|
|
@@ -1,26 +1,29 @@
|
|
|
1
|
-
import a, { useRef as
|
|
2
|
-
import { RadioGroup as k, RadioField as A, RadioButton as G, TextField as
|
|
3
|
-
import { bM as g, bJ as
|
|
1
|
+
import a, { useRef as S, useState as B, useEffect as H, useCallback as P } from "react";
|
|
2
|
+
import { RadioGroup as k, RadioField as A, RadioButton as G, TextField as $, Input as q } from "react-aria-components";
|
|
3
|
+
import { bM as g, bJ as x, bV as M, bX as D, bO as U } from "./form-CrkZgddm.js";
|
|
4
4
|
import { f as u, a as L } from "./find-child-C60k4CxG.js";
|
|
5
|
-
import { D as
|
|
6
|
-
import { L as
|
|
7
|
-
import { S as
|
|
8
|
-
const v = "Other",
|
|
5
|
+
import { D as J, E as K } from "./field-error-headless-C-6U5jK5.js";
|
|
6
|
+
import { L as X } from "./field-label-headless-CNe_Y93p.js";
|
|
7
|
+
import { S as j } from "./selection-indicator-XQ8MYHUQ.js";
|
|
8
|
+
const v = "Other", w = (e, t) => e == null ? void 0 : e.find((n) => (n.value ?? n.label) === t), F = (e, t) => !!t && !w(e, t), z = (e, t) => {
|
|
9
9
|
const l = t ? t.length + 2 : 0;
|
|
10
10
|
return e.slice(l);
|
|
11
11
|
}, i = ({ children: e, className: t }) => {
|
|
12
|
-
const { id: n, value: l, onChange: h, disabled: p, readOnly: O, required: m, onBlur: E, onFocus: b, hasError: r, FieldLayout: c, options: o } = g(), { inputId: f, labelId: C, ariaDescribedBy: I } =
|
|
12
|
+
const { id: n, value: l, onChange: h, disabled: p, readOnly: O, required: m, onBlur: E, onFocus: b, hasError: r, FieldLayout: c, options: o } = g(), { inputId: f, labelId: C, ariaDescribedBy: I } = x(), s = S(null);
|
|
13
|
+
M(s);
|
|
14
|
+
const _ = u(e, i.Label), R = u(e, i.Options), V = u(e, i.Description), N = u(e, i.Error), T = F(o, l) ? v : l || null;
|
|
13
15
|
return /* @__PURE__ */ a.createElement(c, {
|
|
14
16
|
fieldId: n,
|
|
15
|
-
renderLabel: () => L(
|
|
17
|
+
renderLabel: () => L(_, {
|
|
16
18
|
as: "div"
|
|
17
19
|
}),
|
|
18
20
|
renderInput: () => /* @__PURE__ */ a.createElement(k, {
|
|
21
|
+
ref: s,
|
|
19
22
|
id: f,
|
|
20
23
|
className: t,
|
|
21
24
|
"aria-labelledby": C,
|
|
22
25
|
"aria-describedby": I,
|
|
23
|
-
value:
|
|
26
|
+
value: T,
|
|
24
27
|
onChange: h,
|
|
25
28
|
isDisabled: p,
|
|
26
29
|
isReadOnly: O,
|
|
@@ -28,12 +31,12 @@ const v = "Other", j = (e, t) => e == null ? void 0 : e.find((n) => (n.value ??
|
|
|
28
31
|
isInvalid: r,
|
|
29
32
|
onBlur: E,
|
|
30
33
|
onFocus: b
|
|
31
|
-
},
|
|
32
|
-
renderDescription: () => /* @__PURE__ */ a.createElement(a.Fragment, null, N,
|
|
34
|
+
}, R),
|
|
35
|
+
renderDescription: () => /* @__PURE__ */ a.createElement(a.Fragment, null, N, V)
|
|
33
36
|
});
|
|
34
|
-
},
|
|
35
|
-
const { options: n, addOther: l, addOtherLabel: h, id: p, numberOfColumns: O, hasError: m } = g(), { t: E } = D(), b = u(e, i.Option), r =
|
|
36
|
-
return
|
|
37
|
+
}, Q = ({ children: e, className: t }) => {
|
|
38
|
+
const { options: n, addOther: l, addOtherLabel: h, id: p, numberOfColumns: O, hasError: m } = g(), { t: E } = D(), b = u(e, i.Option), r = S(null), c = h || E("add-other.default-other-option-label") || v;
|
|
39
|
+
return U(() => {
|
|
37
40
|
var o;
|
|
38
41
|
(o = r.current) == null || o.focus({
|
|
39
42
|
preventScroll: !0
|
|
@@ -56,7 +59,7 @@ const v = "Other", j = (e, t) => e == null ? void 0 : e.find((n) => (n.value ??
|
|
|
56
59
|
}));
|
|
57
60
|
}, d = ({ children: e, className: t, ...n }) => {
|
|
58
61
|
var I;
|
|
59
|
-
const { value: l, label: h, isOther: p = !1, radioRef: O } = n, { value: m, options: E } = g(), b = u(e, d.Label), r = u(e, d.Input), c = u(e, d.Control), o = u(e, d.OtherInput), f = p ?
|
|
62
|
+
const { value: l, label: h, isOther: p = !1, radioRef: O } = n, { value: m, options: E } = g(), b = u(e, d.Label), r = u(e, d.Input), c = u(e, d.Control), o = u(e, d.OtherInput), f = p ? F(E, m) : m === l, C = (I = r == null ? void 0 : r.props) == null ? void 0 : I.className;
|
|
60
63
|
return /* @__PURE__ */ a.createElement("div", {
|
|
61
64
|
className: t
|
|
62
65
|
}, /* @__PURE__ */ a.createElement(A, {
|
|
@@ -71,20 +74,20 @@ const v = "Other", j = (e, t) => e == null ? void 0 : e.find((n) => (n.value ??
|
|
|
71
74
|
}), L(b, {
|
|
72
75
|
label: h
|
|
73
76
|
})))), p && f && o);
|
|
74
|
-
},
|
|
77
|
+
}, W = ({ className: e, ...t }) => {
|
|
75
78
|
const { label: n } = t;
|
|
76
79
|
return /* @__PURE__ */ a.createElement("span", {
|
|
77
80
|
className: e
|
|
78
81
|
}, n);
|
|
79
|
-
},
|
|
80
|
-
const { value: t, onChange: n, addOtherLabel: l, addOtherPlaceholder: h, otherInputCharacterLimit: p, disabled: O, readOnly: m, options: E } = g(), { t: b } = D(), r =
|
|
81
|
-
|
|
82
|
+
}, Y = (e) => null, Z = ({ className: e }) => {
|
|
83
|
+
const { value: t, onChange: n, addOtherLabel: l, addOtherPlaceholder: h, otherInputCharacterLimit: p, disabled: O, readOnly: m, options: E } = g(), { t: b } = D(), r = S(null), c = F(E, t), o = l || b("add-other.default-other-option-label") || v, [f, C] = B(c && t ? z(t, l) : "");
|
|
84
|
+
H(() => {
|
|
82
85
|
var s;
|
|
83
86
|
c && r.current && ((s = r.current) == null || s.focus());
|
|
84
87
|
}, [
|
|
85
88
|
c
|
|
86
89
|
]);
|
|
87
|
-
const I =
|
|
90
|
+
const I = P((s) => {
|
|
88
91
|
let _;
|
|
89
92
|
s ? _ = `${l}: ${s}` : _ = o, n(_), C(s);
|
|
90
93
|
}, [
|
|
@@ -92,43 +95,43 @@ const v = "Other", j = (e, t) => e == null ? void 0 : e.find((n) => (n.value ??
|
|
|
92
95
|
l,
|
|
93
96
|
o
|
|
94
97
|
]);
|
|
95
|
-
return /* @__PURE__ */ a.createElement(
|
|
98
|
+
return /* @__PURE__ */ a.createElement($, {
|
|
96
99
|
"aria-label": o,
|
|
97
100
|
value: f,
|
|
98
101
|
onChange: I,
|
|
99
102
|
isDisabled: O,
|
|
100
103
|
isReadOnly: m
|
|
101
|
-
}, /* @__PURE__ */ a.createElement(
|
|
104
|
+
}, /* @__PURE__ */ a.createElement(q, {
|
|
102
105
|
ref: r,
|
|
103
106
|
className: e,
|
|
104
107
|
placeholder: h,
|
|
105
108
|
maxLength: p
|
|
106
109
|
}));
|
|
107
110
|
};
|
|
108
|
-
d.Label =
|
|
109
|
-
d.Input =
|
|
110
|
-
d.Control =
|
|
111
|
-
d.OtherInput =
|
|
112
|
-
i.Label =
|
|
113
|
-
i.Options =
|
|
111
|
+
d.Label = W;
|
|
112
|
+
d.Input = Y;
|
|
113
|
+
d.Control = j;
|
|
114
|
+
d.OtherInput = Z;
|
|
115
|
+
i.Label = X;
|
|
116
|
+
i.Options = Q;
|
|
114
117
|
i.Option = d;
|
|
115
|
-
i.Description =
|
|
116
|
-
i.Error =
|
|
117
|
-
const
|
|
118
|
-
labelImage:
|
|
119
|
-
option:
|
|
120
|
-
optionInput:
|
|
121
|
-
optionControl:
|
|
122
|
-
optionControlHover:
|
|
123
|
-
optionControlSelected:
|
|
124
|
-
optionLabel:
|
|
125
|
-
},
|
|
126
|
-
base:
|
|
127
|
-
selected:
|
|
128
|
-
hover:
|
|
118
|
+
i.Description = J;
|
|
119
|
+
i.Error = K;
|
|
120
|
+
const ee = "_labelImage_1u9f2_1", te = "_option_1u9f2_26", oe = "_optionInput_1u9f2_32", ne = "_optionControl_1u9f2_50", le = "_optionControlHover_1u9f2_72", ae = "_optionControlSelected_1u9f2_90", re = "_optionLabel_1u9f2_137", y = {
|
|
121
|
+
labelImage: ee,
|
|
122
|
+
option: te,
|
|
123
|
+
optionInput: oe,
|
|
124
|
+
optionControl: ne,
|
|
125
|
+
optionControlHover: le,
|
|
126
|
+
optionControlSelected: ae,
|
|
127
|
+
optionLabel: re
|
|
128
|
+
}, be = {
|
|
129
|
+
base: y.optionControl,
|
|
130
|
+
selected: y.optionControlSelected,
|
|
131
|
+
hover: y.optionControlHover
|
|
129
132
|
};
|
|
130
133
|
export {
|
|
131
|
-
|
|
134
|
+
be as R,
|
|
132
135
|
i as a,
|
|
133
|
-
|
|
136
|
+
y as s
|
|
134
137
|
};
|