@wix/form-elements 1.77.0 → 1.79.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-BQsFMmBg.js → appointment-rac-lokvpd_p.js} +48 -48
- package/dist/component/{bookings-address-rac-AJNyTdok.js → bookings-address-rac-CU5NjBsy.js} +1 -1
- package/dist/component/{bookings-email-rac-BHZ0MFgI.js → bookings-email-rac-h3VGXrSQ.js} +1 -1
- package/dist/component/{bookings-first-name-rac-Bw5FuWNX.js → bookings-first-name-rac-BtsTk_1b.js} +1 -1
- package/dist/component/{bookings-header-rac-C1M2Pg1f.js → bookings-header-rac-BApE1hIE.js} +1 -1
- package/dist/component/{bookings-last-name-rac-DKkPY0CO.js → bookings-last-name-rac-BnO5iij1.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-P6pziSl1.js → bookings-login-bar-rac-BT1npKru.js} +2 -2
- package/dist/component/{bookings-phone-rac-CiOZWKHz.js → bookings-phone-rac-DWf0haGa.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-D9ZComtY.js → bookings-rich-text-rac-C79XHlRL.js} +1 -1
- package/dist/component/{checkbox-field-rac-4zG3Sf1c.js → checkbox-field-rac-DNvhTChN.js} +90 -89
- package/dist/component/{checkbox-group-field-headless-DN2aNw9g.js → checkbox-group-field-headless-6hzWQkif.js} +53 -53
- package/dist/component/{checkbox-group-field-rac-B1qhet83.js → checkbox-group-field-rac-DbaB5Fx6.js} +5 -5
- package/dist/component/{checkbox-group-rac-DGsE7xGu.js → checkbox-group-rac-BsKKhTeh.js} +1 -1
- package/dist/component/checkbox-indicator-module-classes-DqzGZQRQ.js +9 -0
- package/dist/component/{checkbox-rac-CFWQW9_K.js → checkbox-rac-Dx7LXOdw.js} +1 -1
- package/dist/component/{contacts-address-rac-G5ZH3Odo.js → contacts-address-rac-DJZ8_DKm.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-C7TDUfT0.js → contacts-birthdate-rac-CWvsa7Kq.js} +1 -1
- package/dist/component/{contacts-company-rac-8queUhWT.js → contacts-company-rac-DgF8QpOb.js} +1 -1
- package/dist/component/{contacts-email-rac-CYOs5N_I.js → contacts-email-rac-CVqiij34.js} +1 -1
- package/dist/component/{contacts-first-name-rac-D8Goc_Ym.js → contacts-first-name-rac-BwsRVRHq.js} +1 -1
- package/dist/component/{contacts-last-name-rac-lBmtuEnr.js → contacts-last-name-rac-Blgm2DBB.js} +1 -1
- package/dist/component/{contacts-phone-rac-DSUWUNBX.js → contacts-phone-rac-Dhtv3PGY.js} +1 -1
- package/dist/component/{contacts-position-rac-wA-aw5Id.js → contacts-position-rac-DYebFQea.js} +1 -1
- package/dist/component/contacts-subscribe-rac-B_cvGaYj.js +13 -0
- package/dist/component/{contacts-tax-id-rac-BpjVM1Ye.js → contacts-tax-id-rac-B_F4I7rf.js} +1 -1
- package/dist/component/{date-availability-CeiMjrtD.js → date-availability-Cc4kd1Yk.js} +1 -1
- package/dist/component/{date-input-field-rac-CVaajAFM.js → date-input-field-rac-C__QbeDM.js} +9 -9
- package/dist/component/{date-input-rac-DhEzawuM.js → date-input-rac-BhzbmHYK.js} +1 -1
- package/dist/component/{date-picker-field-rac-1Q6yyNmK.js → date-picker-field-rac-CASH891N.js} +9 -9
- package/dist/component/{date-picker-rac-BCGtmXMJ.js → date-picker-rac-CMYAA925.js} +1 -1
- package/dist/component/{date-time-input-field-rac-Dd-HNgKP.js → date-time-input-field-rac-DPuxZ68o.js} +16 -16
- package/dist/component/{date-time-input-rac-CsCWEsH5.js → date-time-input-rac-BTJhrUXG.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-CauN5uuV.js → dext-checkbox-group-rac-5zlp2x1M.js} +2 -2
- package/dist/component/{dext-checkbox-rac-q-g9gDnw.js → dext-checkbox-rac-Cn5u395b.js} +1 -1
- package/dist/component/{dext-date-picker-rac-CZT3dTLv.js → dext-date-picker-rac-CFfQwbC_.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-DVUoZZbX.js → dext-date-time-input-rac-zRYi-0W6.js} +1 -1
- package/dist/component/{dext-dropdown-rac-GRltutt5.js → dext-dropdown-rac-CtlNh5vF.js} +1 -1
- package/dist/component/{dext-email-rac-74Y8S9GA.js → dext-email-rac-BQF4M5Mf.js} +1 -1
- package/dist/component/{dext-number-input-rac-CF9d_GTl.js → dext-number-input-rac-GR4vTWMp.js} +1 -1
- package/dist/component/{dext-phone-rac-DObx_gOd.js → dext-phone-rac-COCdZPr9.js} +1 -1
- package/dist/component/{dext-radio-group-rac-CzU9KX5_.js → dext-radio-group-rac-ZpHitbT0.js} +2 -2
- package/dist/component/{dext-rating-input-rac-BjRwwgXr.js → dext-rating-input-rac-Er2HC9eD.js} +1 -1
- package/dist/component/{dext-tags-rac-Vif4x1yF.js → dext-tags-rac-EciVMPQ0.js} +2 -2
- package/dist/component/{dext-text-area-rac-DmZwl_ax.js → dext-text-area-rac-D6JxrykV.js} +1 -1
- package/dist/component/{dext-text-input-rac-B6FVbjUM.js → dext-text-input-rac-CD3xkLpw.js} +1 -1
- package/dist/component/{dext-url-input-rac-17Dj3ICM.js → dext-url-input-rac-BNqCYy-H.js} +1 -1
- package/dist/component/{donation-rac-bgHep0Xi.js → donation-rac-Du_qsPD6.js} +24 -24
- package/dist/component/{dropdown-field-headless-BGfJ1FyZ.js → dropdown-field-headless-NMc4cFx2.js} +3 -3
- package/dist/component/{dropdown-field-rac-DGiysJQY.js → dropdown-field-rac-hSbwxz3M.js} +3 -3
- package/dist/component/{dropdown-rac-FHjz8fKp.js → dropdown-rac-DY2QSx-Q.js} +1 -1
- package/dist/component/{ecom-address-rac-DSbpf4z8.js → ecom-address-rac-CGlQmW6l.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-DiZWNwnt.js → ecom-subscription-checkbox-rac-K3Dx-Boa.js} +3 -3
- package/dist/component/{email-input-field-rac-BQKK2O7L.js → email-input-field-rac-DCKR6Yco.js} +48 -48
- package/dist/component/{events-repeater-rac-Dudnyhal.js → events-repeater-rac-DS2hIZ81.js} +61 -60
- package/dist/component/events-rsvp-rac-iSG0hWt3.js +45 -0
- package/dist/component/{field-error-headless-C5ZsFUKv.js → field-error-headless-Lb5aaoR3.js} +1 -1
- package/dist/component/{field-label-headless-CS5OYsiI.js → field-label-headless-C1VDQVhB.js} +1 -1
- package/dist/component/field-rac.module-ColNPUt0.js +23 -0
- package/dist/component/{file-upload-rac-bQ2QOO8Q.js → file-upload-rac-BEUXTVXa.js} +35 -35
- package/dist/component/{fixed-payment-rac-B6FvXoCU.js → fixed-payment-rac-BwrQJQ6w.js} +5 -5
- package/dist/component/{form-BpHElSwH.js → form-1k13yOes.js} +69 -69
- package/dist/component/form-element-classes-BuM-vthE.js +141 -0
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-D4UYcmok.js → header-field-rac-BeFf5qfw.js} +3 -3
- package/dist/component/{header-rac-KavPiBdn.js → header-rac-Cqvmjc8G.js} +1 -1
- package/dist/component/{image-choice-rac-BJQqBhBD.js → image-choice-rac-DU1Tf2-T.js} +9 -9
- package/dist/component/{index-Y8iTxLat.js → index-B0SdXZJm.js} +4 -4
- package/dist/component/{index-RSEYrQef.js → index-DhL-iYwY.js} +2 -2
- package/dist/component/{isObjectLike-jwHec4Ap.js → isObjectLike-DOWF1bjK.js} +1 -1
- package/dist/component/{multiline-address-field-rac-D4Ibno80.js → multiline-address-field-rac-CBhxL2MB.js} +38 -38
- package/dist/component/{multiline-address-rac-CrTSjzBN.js → multiline-address-rac-BgZnu3UR.js} +1 -1
- package/dist/component/{number-input-field-rac-DW1SjB-Z.js → number-input-field-rac-Cq0KLrSv.js} +8 -8
- package/dist/component/{number-input-rac-CdE_hRbA.js → number-input-rac-ovbP_aP5.js} +1 -1
- package/dist/component/{password-rac-BCxl5mMQ.js → password-rac-DLKw8FXz.js} +11 -11
- package/dist/component/{payment-input-rac-DmO4s4ue.js → payment-input-rac-EHufj8Y0.js} +11 -11
- package/dist/component/{phone-input-field-rac-BYAnwk5h.js → phone-input-field-rac-D1KzskYy.js} +27 -27
- package/dist/component/{phone-rac-gS4k9Yn8.js → phone-rac-D71sfMS7.js} +1 -1
- package/dist/component/{product-list-rac-CO0o3yOg.js → product-list-rac-BGrTM8kv.js} +23 -22
- package/dist/component/quiz-radio-group-rac-BU2GBlqo.js +13 -0
- package/dist/component/radio-button-module-classes-BqNsWvgU.js +132 -0
- package/dist/component/radio-group-field-rac-BSY-fyxl.js +47 -0
- package/dist/component/{radio-group-rac-B-9q91fJ.js → radio-group-rac-geRsORyh.js} +1 -1
- package/dist/component/rating-input-field-rac-D6gRUiSX.js +136 -0
- package/dist/component/{rating-input-rac-BVO62LmE.js → rating-input-rac-BMtu7e5q.js} +1 -1
- package/dist/component/{rich-content-rac.module-CdiaAjxG.js → rich-content-rac.module-CFMzPWHV.js} +1 -1
- package/dist/component/{rich-text-field-rac-C4RrbyEX.js → rich-text-field-rac-D0Klsdj7.js} +3 -3
- package/dist/component/{rich-text-rac-BG376ww9.js → rich-text-rac-o7idQY51.js} +1 -1
- package/dist/component/selection-indicator-XQ8MYHUQ.js +11 -0
- package/dist/component/{service-dropdown-rac-Dy6-OpVR.js → service-dropdown-rac-BXq358Pw.js} +12 -12
- package/dist/component/{services-multi-choice-rac-BKW9MP_b.js → services-multi-choice-rac-DVRk7Ayt.js} +13 -13
- package/dist/component/{signature-rac-Cxgixp4o.js → signature-rac-CblU7c_6.js} +36 -36
- package/dist/component/{submit-button-rac-BqPJ7WPI.js → submit-button-rac-DYz_oLbv.js} +2 -2
- package/dist/component/{tags-field-rac-wwqpztG7.js → tags-field-rac-D068ijAD.js} +16 -16
- package/dist/component/{tags-rac-DUxITYxU.js → tags-rac-yRjGACmm.js} +1 -1
- package/dist/component/{text-area-field-rac-Cen6O33S.js → text-area-field-rac-C4ytlqwT.js} +14 -14
- package/dist/component/{text-area-rac-CRlO56GA.js → text-area-rac-DkCdp41z.js} +1 -1
- package/dist/component/{text-input-field-rac-CbnKn03g.js → text-input-field-rac-TSY90sCu.js} +3 -3
- package/dist/component/{text-input-headless-C_NTJmLe.js → text-input-headless-D3b0XErK.js} +3 -3
- package/dist/component/{text-input-rac-DvwV7Igm.js → text-input-rac-CKiScYKV.js} +1 -1
- package/dist/component/{time-input-rac-TSEXiODs.js → time-input-rac-Cjs21F9f.js} +8 -8
- package/dist/component/{url-input-field-rac-Cxgh9T8s.js → url-input-field-rac-Bf5NoN4o.js} +15 -15
- package/dist/component/{url-input-rac-DNw-Jg1U.js → url-input-rac-DqgvJboS.js} +1 -1
- package/dist/component/{use-element-state-class-name-CC65g9mT.js → use-element-state-class-name-DkaI8J4Y.js} +1 -1
- package/dist/component/{use-service-options-base-EFrxTpGm.js → use-service-options-base-cL2N21mJ.js} +1 -1
- package/package.json +2 -2
- package/dist/component/checkbox-indicator-module-classes-BcScu147.js +0 -17
- package/dist/component/contacts-subscribe-rac-CAbBbFxZ.js +0 -13
- package/dist/component/events-rsvp-rac-008H5Ska.js +0 -38
- package/dist/component/field-rac.module-DjmaTYkc.js +0 -23
- package/dist/component/form-element-classes-BXNs5k3q.js +0 -119
- package/dist/component/quiz-radio-group-rac-Dhk7nkzb.js +0 -13
- package/dist/component/radio-group-field-rac-DdlyQ3m6.js +0 -40
- package/dist/component/radio-group-field-rac.module-emin6sSc.js +0 -124
- package/dist/component/rating-input-field-rac-VDaJKq-n.js +0 -126
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
const o = {
|
|
2
|
-
CHECKBOX_GROUP_INDICATOR: "checkboxGroupIndicator",
|
|
3
|
-
SERVICES_INDICATOR: "servicesIndicator",
|
|
4
|
-
CHECKBOX_INDICATOR: "checkboxIndicator",
|
|
5
|
-
SUBSCRIBE_CHECKBOX_INDICATOR: "subscribeCheckboxIndicator",
|
|
6
|
-
ECOM_SUBSCRIPTION_CHECKBOX_INDICATOR: "ecomSubscriptionCheckboxIndicator",
|
|
7
|
-
GUEST_CHECKBOX_INDICATOR: "guestCheckboxIndicator",
|
|
8
|
-
PRODUCT_LIST_INDICATOR: "productListIndicator",
|
|
9
|
-
TAGS_OPTION: "tagsOption",
|
|
10
|
-
DONATION_OPTION: "donationOption",
|
|
11
|
-
IMAGE_CHOICE_OPTION: "imageChoiceOption",
|
|
12
|
-
RATING_OPTION: "ratingOption",
|
|
13
|
-
TIME_SLOT: "timeSlot"
|
|
14
|
-
}, _ = "form-field-label", e = "form-field-required-indicator", O = "form-field-description", s = "form-field-error", i = "form-field-input", c = "form-field-upload-button", t = "form-field-popover", I = "form-field-suggestion", r = "form-field-option-label", C = "form-field-radio-group", S = "form-field-radio-group-option-label", E = "form-field-radio-group-radio-button", f = "form-field-quiz-radio-group", L = "form-field-quiz-radio-group-option-label", a = "form-field-quiz-radio-group-radio-button", d = "form-field-rsvp", n = "form-field-rsvp-option-label", R = "form-field-rsvp-radio-button", l = "form-field-checkbox-group", F = "form-field-checkbox-group-option-label", A = {
|
|
15
|
-
key: o.CHECKBOX_GROUP_INDICATOR,
|
|
16
|
-
base: "form-field-checkbox-group-indicator",
|
|
17
|
-
selected: "form-field-checkbox-group-indicator--selected",
|
|
18
|
-
hover: "form-field-checkbox-group-indicator--hover"
|
|
19
|
-
}, T = "form-field-services", D = "form-field-services-option-label", m = {
|
|
20
|
-
key: o.SERVICES_INDICATOR,
|
|
21
|
-
base: "form-field-services-indicator",
|
|
22
|
-
selected: "form-field-services-indicator--selected",
|
|
23
|
-
hover: "form-field-services-indicator--hover"
|
|
24
|
-
}, M = "form-field-checkbox", N = "form-field-checkbox-label", b = {
|
|
25
|
-
key: o.CHECKBOX_INDICATOR,
|
|
26
|
-
base: "form-field-checkbox-indicator",
|
|
27
|
-
selected: "form-field-checkbox-indicator--selected",
|
|
28
|
-
hover: "form-field-checkbox-indicator--hover"
|
|
29
|
-
}, B = "form-field-subscribe-checkbox", p = "form-field-subscribe-checkbox-label", u = {
|
|
30
|
-
key: o.SUBSCRIBE_CHECKBOX_INDICATOR,
|
|
31
|
-
base: "form-field-subscribe-checkbox-indicator",
|
|
32
|
-
selected: "form-field-subscribe-checkbox-indicator--selected",
|
|
33
|
-
hover: "form-field-subscribe-checkbox-indicator--hover"
|
|
34
|
-
}, h = "form-field-ecom-subscription-checkbox", P = "form-field-ecom-subscription-checkbox-label", U = {
|
|
35
|
-
key: o.ECOM_SUBSCRIPTION_CHECKBOX_INDICATOR,
|
|
36
|
-
base: "form-field-ecom-subscription-checkbox-indicator",
|
|
37
|
-
selected: "form-field-ecom-subscription-checkbox-indicator--selected",
|
|
38
|
-
hover: "form-field-ecom-subscription-checkbox-indicator--hover"
|
|
39
|
-
}, k = "form-field-guest-checkbox", x = "form-field-guest-checkbox-label", g = {
|
|
40
|
-
key: o.GUEST_CHECKBOX_INDICATOR,
|
|
41
|
-
base: "form-field-guest-checkbox-indicator",
|
|
42
|
-
selected: "form-field-guest-checkbox-indicator--selected",
|
|
43
|
-
hover: "form-field-guest-checkbox-indicator--hover"
|
|
44
|
-
}, G = "form-field-product-list", H = "form-field-product-list-product-name", v = "form-field-product-list-price", X = {
|
|
45
|
-
key: o.PRODUCT_LIST_INDICATOR,
|
|
46
|
-
base: "form-field-product-list-indicator",
|
|
47
|
-
selected: "form-field-product-list-indicator--selected",
|
|
48
|
-
hover: "form-field-product-list-indicator--hover"
|
|
49
|
-
}, K = "form-field-tags", V = "form-field-tags-option", y = "form-field-tags-option--selected", q = "form-field-donation", Q = "form-field-donation-option", z = "form-field-donation-option--selected", Z = "form-field-image-choice", w = "form-field-image-choice-option", W = "form-field-image-choice-option--selected", Y = {
|
|
50
|
-
key: o.TIME_SLOT,
|
|
51
|
-
base: "form-field-time-slot",
|
|
52
|
-
selected: "form-field-time-slot--selected",
|
|
53
|
-
hover: "form-field-time-slot--hover"
|
|
54
|
-
}, j = "form-field-info-banner", J = "form-field-calendar", $ = "form-field-date-title", oo = "form-field-info-text", _o = "form-field-ratings", eo = "form-field-rating-option", Oo = "form-field-rating-option--selected", so = "form-field-show-more-button", io = "form-rich-content", co = "form-submit-button", to = "form-next-button", Io = "form-previous-button";
|
|
55
|
-
export {
|
|
56
|
-
I as $,
|
|
57
|
-
r as A,
|
|
58
|
-
t as B,
|
|
59
|
-
G as C,
|
|
60
|
-
X as D,
|
|
61
|
-
v as E,
|
|
62
|
-
o as F,
|
|
63
|
-
H as G,
|
|
64
|
-
f as H,
|
|
65
|
-
L as I,
|
|
66
|
-
a as J,
|
|
67
|
-
C as K,
|
|
68
|
-
S as L,
|
|
69
|
-
E as M,
|
|
70
|
-
_o as N,
|
|
71
|
-
eo as O,
|
|
72
|
-
Oo as P,
|
|
73
|
-
e as Q,
|
|
74
|
-
d as R,
|
|
75
|
-
n as S,
|
|
76
|
-
R as T,
|
|
77
|
-
T as U,
|
|
78
|
-
m as V,
|
|
79
|
-
D as W,
|
|
80
|
-
so as X,
|
|
81
|
-
B as Y,
|
|
82
|
-
u as Z,
|
|
83
|
-
p as _,
|
|
84
|
-
J as a,
|
|
85
|
-
K as a0,
|
|
86
|
-
V as a1,
|
|
87
|
-
y as a2,
|
|
88
|
-
Y as a3,
|
|
89
|
-
c as a4,
|
|
90
|
-
to as a5,
|
|
91
|
-
Io as a6,
|
|
92
|
-
io as a7,
|
|
93
|
-
co as a8,
|
|
94
|
-
M as b,
|
|
95
|
-
l as c,
|
|
96
|
-
A as d,
|
|
97
|
-
F as e,
|
|
98
|
-
b as f,
|
|
99
|
-
N as g,
|
|
100
|
-
$ as h,
|
|
101
|
-
O as i,
|
|
102
|
-
q as j,
|
|
103
|
-
Q as k,
|
|
104
|
-
z as l,
|
|
105
|
-
h as m,
|
|
106
|
-
U as n,
|
|
107
|
-
P as o,
|
|
108
|
-
s as p,
|
|
109
|
-
k as q,
|
|
110
|
-
g as r,
|
|
111
|
-
x as s,
|
|
112
|
-
Z as t,
|
|
113
|
-
w as u,
|
|
114
|
-
W as v,
|
|
115
|
-
j as w,
|
|
116
|
-
oo as x,
|
|
117
|
-
i as y,
|
|
118
|
-
_ as z
|
|
119
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import _ from "react";
|
|
2
|
-
import { R } from "./radio-group-field-rac-DdlyQ3m6.js";
|
|
3
|
-
import { J as o, I as r, H as O } from "./form-element-classes-BXNs5k3q.js";
|
|
4
|
-
const t = () => /* @__PURE__ */ _.createElement(R, {
|
|
5
|
-
classes: {
|
|
6
|
-
container: O,
|
|
7
|
-
label: r,
|
|
8
|
-
control: o
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
export {
|
|
12
|
-
t as QuizRadioGroupRAC
|
|
13
|
-
};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { RicosViewer as s } from "@wix/ricos/viewer";
|
|
2
|
-
import a from "classnames";
|
|
3
|
-
import e from "react";
|
|
4
|
-
import { R as t, s as r } from "./radio-group-field-rac.module-emin6sSc.js";
|
|
5
|
-
import { E as m } from "./error-icon-hZxQ6DEy.js";
|
|
6
|
-
import { s as l } from "./field-rac.module-DjmaTYkc.js";
|
|
7
|
-
import { z as c, Q as i, M as E, L as _, K as R, y as p, p as O, i as L } from "./form-element-classes-BXNs5k3q.js";
|
|
8
|
-
const I = ({ content: o, locale: n }) => /* @__PURE__ */ e.createElement(s, {
|
|
9
|
-
content: o,
|
|
10
|
-
locale: n
|
|
11
|
-
}), M = ({ classes: o = {
|
|
12
|
-
container: R,
|
|
13
|
-
label: _,
|
|
14
|
-
control: E
|
|
15
|
-
} }) => /* @__PURE__ */ e.createElement(t, null, /* @__PURE__ */ e.createElement(t.Label, {
|
|
16
|
-
className: a(c, l.label)
|
|
17
|
-
}, /* @__PURE__ */ e.createElement(t.Label.Required, {
|
|
18
|
-
className: a(i, l.requiredMark)
|
|
19
|
-
}), /* @__PURE__ */ e.createElement(t.Label.Image, {
|
|
20
|
-
className: r.labelImage
|
|
21
|
-
})), /* @__PURE__ */ e.createElement(t.Options, {
|
|
22
|
-
className: a(o.container, r.options)
|
|
23
|
-
}, /* @__PURE__ */ e.createElement(t.Option, {
|
|
24
|
-
className: r.option
|
|
25
|
-
}, /* @__PURE__ */ e.createElement(t.Option.Input, {
|
|
26
|
-
className: r.optionInput
|
|
27
|
-
}), /* @__PURE__ */ e.createElement(t.Option.Control, {
|
|
28
|
-
className: a(o.control, r.optionControl)
|
|
29
|
-
}), /* @__PURE__ */ e.createElement(t.Option.Label, {
|
|
30
|
-
className: a(o.label, r.optionLabel)
|
|
31
|
-
}), /* @__PURE__ */ e.createElement(t.Option.OtherInput, {
|
|
32
|
-
className: a(p, l.input)
|
|
33
|
-
}))), /* @__PURE__ */ e.createElement(t.Error, {
|
|
34
|
-
className: a(O, l.error)
|
|
35
|
-
}, /* @__PURE__ */ e.createElement(m, null), /* @__PURE__ */ e.createElement(t.Error.Text, null)), /* @__PURE__ */ e.createElement(t.Description, {
|
|
36
|
-
className: a(L, l.description)
|
|
37
|
-
}, I));
|
|
38
|
-
export {
|
|
39
|
-
M as R
|
|
40
|
-
};
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
import s, { useRef as y, useState as V, useEffect as S, useCallback as B } from "react";
|
|
2
|
-
import { RadioGroup as T, RadioField as k, RadioButton as G, TextField as M, Input as P } from "react-aria-components";
|
|
3
|
-
import { ai as C, af as $, as as F, ab as q, ak as x } from "./form-BpHElSwH.js";
|
|
4
|
-
import { f as d, a as g } from "./find-child-C60k4CxG.js";
|
|
5
|
-
import { D as U, E as A } from "./field-error-headless-C5ZsFUKv.js";
|
|
6
|
-
import { L as H } from "./field-label-headless-CS5OYsiI.js";
|
|
7
|
-
import { N as j } from "./options-layout-constants-DEfIEJWD.js";
|
|
8
|
-
const L = "Other", w = (e, t) => e == null ? void 0 : e.find((o) => (o.value ?? o.label) === t), R = (e, t) => !!t && !w(e, t), z = (e, t) => {
|
|
9
|
-
const a = t ? t.length + 2 : 0;
|
|
10
|
-
return e.slice(a);
|
|
11
|
-
}, i = ({ children: e }) => {
|
|
12
|
-
const { id: t, value: o, onChange: a, disabled: O, readOnly: m, required: f, onBlur: b, onFocus: E, hasError: v, FieldLayout: l, options: r } = C(), { inputId: c, labelId: I, ariaDescribedBy: n } = $(), u = d(e, i.Label), h = d(e, i.Options), _ = d(e, i.Description), N = d(e, i.Error), D = R(r, o) ? L : o || null;
|
|
13
|
-
return /* @__PURE__ */ s.createElement(l, {
|
|
14
|
-
fieldId: t,
|
|
15
|
-
renderLabel: () => g(u, {
|
|
16
|
-
as: "div"
|
|
17
|
-
}),
|
|
18
|
-
renderInput: () => /* @__PURE__ */ s.createElement(T, {
|
|
19
|
-
id: c,
|
|
20
|
-
"aria-labelledby": I,
|
|
21
|
-
"aria-describedby": n,
|
|
22
|
-
value: D,
|
|
23
|
-
onChange: a,
|
|
24
|
-
isDisabled: O,
|
|
25
|
-
isReadOnly: m,
|
|
26
|
-
isRequired: f,
|
|
27
|
-
isInvalid: v,
|
|
28
|
-
onBlur: b,
|
|
29
|
-
onFocus: E
|
|
30
|
-
}, h),
|
|
31
|
-
renderDescription: () => /* @__PURE__ */ s.createElement(s.Fragment, null, N, _)
|
|
32
|
-
});
|
|
33
|
-
}, J = ({ children: e, className: t }) => {
|
|
34
|
-
const { options: o, addOther: a, addOtherLabel: O, id: m, numberOfColumns: f, hasError: b } = C(), { t: E } = F(), { isMobile: v } = q(), l = d(e, i.Option), r = y(null), c = O || E("add-other.default-other-option-label") || L, I = v ? j.ONE : f;
|
|
35
|
-
return x(() => {
|
|
36
|
-
var n;
|
|
37
|
-
(n = r.current) == null || n.focus();
|
|
38
|
-
}, m), /* @__PURE__ */ s.createElement("div", {
|
|
39
|
-
className: t,
|
|
40
|
-
"data-columns": I,
|
|
41
|
-
"data-invalid": b
|
|
42
|
-
}, o.map((n, u) => g(l, {
|
|
43
|
-
key: n.value ?? n.label,
|
|
44
|
-
value: n.value ?? n.label,
|
|
45
|
-
label: n.label,
|
|
46
|
-
index: u,
|
|
47
|
-
radioRef: u === 0 ? r : void 0
|
|
48
|
-
})), a && g(l, {
|
|
49
|
-
key: L,
|
|
50
|
-
value: L,
|
|
51
|
-
label: c,
|
|
52
|
-
isOther: !0
|
|
53
|
-
}));
|
|
54
|
-
}, p = ({ children: e, className: t, ...o }) => {
|
|
55
|
-
var u;
|
|
56
|
-
const { value: a, label: O, isOther: m = !1, radioRef: f } = o, { value: b, options: E } = C(), v = d(e, p.Label), l = d(e, p.Input), r = d(e, p.Control), c = d(e, p.OtherInput), I = m ? R(E, b) : b === a, n = (u = l == null ? void 0 : l.props) == null ? void 0 : u.className;
|
|
57
|
-
return /* @__PURE__ */ s.createElement("div", {
|
|
58
|
-
className: t
|
|
59
|
-
}, /* @__PURE__ */ s.createElement(k, {
|
|
60
|
-
value: a
|
|
61
|
-
}, /* @__PURE__ */ s.createElement(G, {
|
|
62
|
-
ref: f,
|
|
63
|
-
className: n
|
|
64
|
-
}, r, g(v, {
|
|
65
|
-
label: O
|
|
66
|
-
}))), m && I && c);
|
|
67
|
-
}, K = ({ className: e, ...t }) => {
|
|
68
|
-
const { label: o } = t;
|
|
69
|
-
return /* @__PURE__ */ s.createElement("span", {
|
|
70
|
-
className: e
|
|
71
|
-
}, o);
|
|
72
|
-
}, Q = (e) => null, W = ({ className: e }) => /* @__PURE__ */ s.createElement("div", {
|
|
73
|
-
"aria-hidden": "true",
|
|
74
|
-
className: e
|
|
75
|
-
}), X = ({ className: e }) => {
|
|
76
|
-
const { value: t, onChange: o, addOtherLabel: a, addOtherPlaceholder: O, otherInputCharacterLimit: m, disabled: f, readOnly: b, options: E } = C(), { t: v } = F(), l = y(null), r = R(E, t), c = a || v("add-other.default-other-option-label") || L, [I, n] = V(r && t ? z(t, a) : "");
|
|
77
|
-
S(() => {
|
|
78
|
-
var h;
|
|
79
|
-
r && l.current && ((h = l.current) == null || h.focus());
|
|
80
|
-
}, [
|
|
81
|
-
r
|
|
82
|
-
]);
|
|
83
|
-
const u = B((h) => {
|
|
84
|
-
let _;
|
|
85
|
-
h ? _ = `${a}: ${h}` : _ = c, o(_), n(h);
|
|
86
|
-
}, [
|
|
87
|
-
o,
|
|
88
|
-
a,
|
|
89
|
-
c
|
|
90
|
-
]);
|
|
91
|
-
return /* @__PURE__ */ s.createElement(M, {
|
|
92
|
-
"aria-label": c,
|
|
93
|
-
value: I,
|
|
94
|
-
onChange: u,
|
|
95
|
-
isDisabled: f,
|
|
96
|
-
isReadOnly: b
|
|
97
|
-
}, /* @__PURE__ */ s.createElement(P, {
|
|
98
|
-
ref: l,
|
|
99
|
-
className: e,
|
|
100
|
-
placeholder: O,
|
|
101
|
-
maxLength: m
|
|
102
|
-
}));
|
|
103
|
-
};
|
|
104
|
-
p.Label = K;
|
|
105
|
-
p.Input = Q;
|
|
106
|
-
p.Control = W;
|
|
107
|
-
p.OtherInput = X;
|
|
108
|
-
i.Label = H;
|
|
109
|
-
i.Options = J;
|
|
110
|
-
i.Option = p;
|
|
111
|
-
i.Description = U;
|
|
112
|
-
i.Error = A;
|
|
113
|
-
const Y = "_labelImage_45itv_1", Z = "_options_45itv_26", ee = "_option_45itv_26", te = "_optionInput_45itv_46", oe = "_optionControl_45itv_64", ne = "_optionLabel_45itv_142", de = {
|
|
114
|
-
labelImage: Y,
|
|
115
|
-
options: Z,
|
|
116
|
-
option: ee,
|
|
117
|
-
optionInput: te,
|
|
118
|
-
optionControl: oe,
|
|
119
|
-
optionLabel: ne
|
|
120
|
-
};
|
|
121
|
-
export {
|
|
122
|
-
i as R,
|
|
123
|
-
de as s
|
|
124
|
-
};
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
import { RicosViewer as D } from "@wix/ricos/viewer";
|
|
2
|
-
import c from "classnames";
|
|
3
|
-
import e, { useCallback as h, useState as y, useRef as A } from "react";
|
|
4
|
-
import { ai as F, af as N, as as T, ac as M } from "./form-BpHElSwH.js";
|
|
5
|
-
import { RadioGroup as P, RadioField as w, RadioButton as B } from "react-aria-components";
|
|
6
|
-
import { f as E, a as G } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as H, E as q } from "./field-error-headless-C5ZsFUKv.js";
|
|
8
|
-
import { L as z } from "./field-label-headless-CS5OYsiI.js";
|
|
9
|
-
import { E as k } from "./error-icon-hZxQ6DEy.js";
|
|
10
|
-
import { s as p } from "./field-rac.module-DjmaTYkc.js";
|
|
11
|
-
import { z as x, Q, N as K, O as U, P as Y, p as Z, i as j, F as J } from "./form-element-classes-BXNs5k3q.js";
|
|
12
|
-
const t = ({ children: a }) => {
|
|
13
|
-
const { id: r, value: n, onChange: i, disabled: o, readOnly: d, required: l, hasError: m, onBlur: u, onFocus: R, FieldLayout: C } = F(), { labelId: L } = N(), _ = h((O) => i(Number(O)), [
|
|
14
|
-
i
|
|
15
|
-
]), f = E(a, t.Label), s = E(a, t.Ratings), g = E(a, t.Description), v = E(a, t.Error);
|
|
16
|
-
return /* @__PURE__ */ e.createElement(C, {
|
|
17
|
-
fieldId: r,
|
|
18
|
-
renderLabel: () => f,
|
|
19
|
-
renderInput: () => /* @__PURE__ */ e.createElement(P, {
|
|
20
|
-
"aria-labelledby": L,
|
|
21
|
-
value: n ? String(n) : void 0,
|
|
22
|
-
onChange: _,
|
|
23
|
-
isDisabled: o,
|
|
24
|
-
isReadOnly: d,
|
|
25
|
-
isRequired: l,
|
|
26
|
-
isInvalid: m,
|
|
27
|
-
onBlur: u,
|
|
28
|
-
onFocus: R,
|
|
29
|
-
orientation: "horizontal"
|
|
30
|
-
}, s),
|
|
31
|
-
renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, v, g)
|
|
32
|
-
});
|
|
33
|
-
}, I = ({ children: a, className: r, getReactionLabel: n }) => {
|
|
34
|
-
const { value: i, readOnly: o, hasError: d } = F(), { inputId: l, ariaDescribedBy: m } = N(), [u, R] = y(), C = A(null), L = E(a, I.Rating), _ = [
|
|
35
|
-
"1",
|
|
36
|
-
"2",
|
|
37
|
-
"3",
|
|
38
|
-
"4",
|
|
39
|
-
"5"
|
|
40
|
-
], f = (s) => u && !o ? u >= s : !!i && i >= Number(s);
|
|
41
|
-
return /* @__PURE__ */ e.createElement("div", {
|
|
42
|
-
ref: C,
|
|
43
|
-
id: l,
|
|
44
|
-
"aria-describedby": m,
|
|
45
|
-
className: r,
|
|
46
|
-
"data-invalid": d,
|
|
47
|
-
"data-readonly": o
|
|
48
|
-
}, _.map((s) => G(L, {
|
|
49
|
-
key: s,
|
|
50
|
-
value: s,
|
|
51
|
-
isSelected: f(s),
|
|
52
|
-
onHoverChange: (g) => R(g ? s : void 0),
|
|
53
|
-
label: n == null ? void 0 : n(Number(s))
|
|
54
|
-
})));
|
|
55
|
-
}, W = {
|
|
56
|
-
border: 0,
|
|
57
|
-
clipPath: "inset(50%)",
|
|
58
|
-
height: 1,
|
|
59
|
-
margin: -1,
|
|
60
|
-
overflow: "hidden",
|
|
61
|
-
padding: 0,
|
|
62
|
-
position: "absolute",
|
|
63
|
-
width: 1,
|
|
64
|
-
whiteSpace: "nowrap"
|
|
65
|
-
}, b = ({ className: a, children: r, ...n }) => {
|
|
66
|
-
const { value: i, isSelected: o, onHoverChange: d, label: l } = n, m = typeof a == "function" ? a({
|
|
67
|
-
isSelected: o
|
|
68
|
-
}) : a;
|
|
69
|
-
return /* @__PURE__ */ e.createElement(w, {
|
|
70
|
-
value: i
|
|
71
|
-
}, /* @__PURE__ */ e.createElement(B, {
|
|
72
|
-
className: m,
|
|
73
|
-
"data-active": o || void 0,
|
|
74
|
-
onHoverChange: d
|
|
75
|
-
}, typeof r == "function" ? r({
|
|
76
|
-
isSelected: o
|
|
77
|
-
}) : r, l ? /* @__PURE__ */ e.createElement("span", {
|
|
78
|
-
style: W
|
|
79
|
-
}, l) : null));
|
|
80
|
-
};
|
|
81
|
-
I.Rating = b;
|
|
82
|
-
t.Label = z;
|
|
83
|
-
t.Ratings = I;
|
|
84
|
-
t.Rating = b;
|
|
85
|
-
t.Description = H;
|
|
86
|
-
t.Error = q;
|
|
87
|
-
const X = (a) => /* @__PURE__ */ e.createElement("svg", {
|
|
88
|
-
viewBox: "0 0 32 32",
|
|
89
|
-
width: 32,
|
|
90
|
-
height: 32,
|
|
91
|
-
fill: "currentColor",
|
|
92
|
-
"aria-hidden": "true",
|
|
93
|
-
...a
|
|
94
|
-
}, /* @__PURE__ */ e.createElement("path", {
|
|
95
|
-
fillRule: "evenodd",
|
|
96
|
-
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"
|
|
97
|
-
})), $ = "_ratings_1mvz3_1", V = "_rating_1mvz3_1", S = {
|
|
98
|
-
ratings: $,
|
|
99
|
-
rating: V
|
|
100
|
-
}, ee = ({ content: a, locale: r }) => /* @__PURE__ */ e.createElement(D, {
|
|
101
|
-
content: a,
|
|
102
|
-
locale: r
|
|
103
|
-
}), Ee = () => {
|
|
104
|
-
const { t: a } = T(), r = M(J.RATING_OPTION);
|
|
105
|
-
return /* @__PURE__ */ e.createElement(t, null, /* @__PURE__ */ e.createElement(t.Label, {
|
|
106
|
-
className: c(x, p.label)
|
|
107
|
-
}, /* @__PURE__ */ e.createElement(t.Label.Required, {
|
|
108
|
-
className: c(Q, p.requiredMark)
|
|
109
|
-
})), /* @__PURE__ */ e.createElement(t.Ratings, {
|
|
110
|
-
className: c(K, S.ratings),
|
|
111
|
-
getReactionLabel: (n) => a("rating-input.a11y.reaction-label", {
|
|
112
|
-
count: n
|
|
113
|
-
})
|
|
114
|
-
}, /* @__PURE__ */ e.createElement(t.Rating, {
|
|
115
|
-
className: ({ isSelected: n }) => c(U, r, S.rating, {
|
|
116
|
-
[Y]: n
|
|
117
|
-
})
|
|
118
|
-
}, /* @__PURE__ */ e.createElement(X, null))), /* @__PURE__ */ e.createElement(t.Error, {
|
|
119
|
-
className: c(Z, p.error)
|
|
120
|
-
}, /* @__PURE__ */ e.createElement(k, null), /* @__PURE__ */ e.createElement(t.Error.Text, null)), /* @__PURE__ */ e.createElement(t.Description, {
|
|
121
|
-
className: c(j, p.description)
|
|
122
|
-
}, ee));
|
|
123
|
-
};
|
|
124
|
-
export {
|
|
125
|
-
Ee as R
|
|
126
|
-
};
|