@wix/form-elements 1.147.0 → 1.149.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-BG5-bIZU.js → appointment-rac-CeJ6tmgt.js} +93 -89
- package/dist/component/{bookings-address-rac-8e8PqKsp.js → bookings-address-rac-CEObYEbj.js} +1 -1
- package/dist/component/{bookings-email-rac-CtlnU8ws.js → bookings-email-rac-DmW99D5W.js} +1 -1
- package/dist/component/{bookings-first-name-rac-CrivNlXM.js → bookings-first-name-rac-GmKet4hL.js} +1 -1
- package/dist/component/{bookings-header-rac-DWDAjfqq.js → bookings-header-rac-C_J1YzAq.js} +1 -1
- package/dist/component/{bookings-last-name-rac-qAthWem2.js → bookings-last-name-rac-Bj-gwK0F.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-BNyUDqlM.js → bookings-login-bar-rac-ol4QLAP6.js} +1 -1
- package/dist/component/{bookings-phone-rac-Tc39XLr7.js → bookings-phone-rac-oaCG294y.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-CPNaPtFK.js → bookings-rich-text-rac-sMiikQgk.js} +1 -1
- package/dist/component/{checkbox-field-rac-DEa78Tpf.js → checkbox-field-rac-DxGaRbDj.js} +9 -7
- package/dist/component/{checkbox-group-field-headless-BxBaMg29.js → checkbox-group-field-headless-C3ZaCvQz.js} +3 -3
- package/dist/component/{checkbox-group-field-rac-CRRP03Qk.js → checkbox-group-field-rac-CMj-kfFN.js} +6 -6
- package/dist/component/{checkbox-group-rac-TOofMGl3.js → checkbox-group-rac-DpOT4H7g.js} +1 -1
- package/dist/component/{checkbox-indicator-module-classes-6173wvuW.js → checkbox-indicator-module-classes-akWZsZNn.js} +1 -1
- package/dist/component/{checkbox-rac-CHMHr8Ry.js → checkbox-rac-CwdOkW8r.js} +1 -1
- package/dist/component/{contacts-address-rac-Bc5yDvTL.js → contacts-address-rac-CQvt1Epy.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-Ubtg5ncv.js → contacts-birthdate-rac-VRGtjIMf.js} +1 -1
- package/dist/component/{contacts-company-rac-BksH9IoV.js → contacts-company-rac-B_XDJTL9.js} +1 -1
- package/dist/component/{contacts-email-rac-DDPEtMAm.js → contacts-email-rac-BJ0EdzZo.js} +1 -1
- package/dist/component/{contacts-first-name-rac-DUlCvEdx.js → contacts-first-name-rac-DzBzJXj7.js} +1 -1
- package/dist/component/{contacts-last-name-rac-BikqNgUr.js → contacts-last-name-rac-DAHlHpW7.js} +1 -1
- package/dist/component/{contacts-phone-rac-B4OEgM_8.js → contacts-phone-rac-C4D1TMqv.js} +1 -1
- package/dist/component/{contacts-position-rac-BfybzySV.js → contacts-position-rac-g0CJQJLc.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-CMHb33v1.js → contacts-subscribe-rac-C54jQIum.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-C-qEqwO5.js → contacts-tax-id-rac-D_JlmKJb.js} +1 -1
- package/dist/component/{date-availability-DZ3J3LLm.js → date-availability-CFp_AHpE.js} +1 -1
- package/dist/component/{date-input-field-rac-DeL5vuE7.js → date-input-field-rac-CxOU5_P5.js} +75 -69
- package/dist/component/{date-input-rac-Di6TQvFf.js → date-input-rac-CEuyvgIp.js} +1 -1
- package/dist/component/{date-picker-field-rac-BcdpTkjV.js → date-picker-field-rac-DC8gw2Qe.js} +10 -8
- package/dist/component/{date-picker-rac-Brne65gr.js → date-picker-rac-B8prCy1F.js} +1 -1
- package/dist/component/{date-time-input-field-rac-BtQfAxRp.js → date-time-input-field-rac-FwScqIVQ.js} +115 -109
- package/dist/component/{date-time-input-rac-DM_HXiqV.js → date-time-input-rac-gdstXM2G.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-WTVwhGG0.js → dext-checkbox-group-rac-DdEAXUYC.js} +2 -2
- package/dist/component/{dext-checkbox-rac-BR5YwmLQ.js → dext-checkbox-rac-DYgl82IR.js} +1 -1
- package/dist/component/{dext-date-picker-rac-DvDuRGYi.js → dext-date-picker-rac-SaO61461.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-C6RgbaVv.js → dext-date-time-input-rac-CQ2klkyf.js} +1 -1
- package/dist/component/{dext-dropdown-rac-CWjSdcZx.js → dext-dropdown-rac-CYINWMm2.js} +1 -1
- package/dist/component/{dext-email-rac-D-C1gVTq.js → dext-email-rac-7e49-L1S.js} +1 -1
- package/dist/component/{dext-number-input-rac-YKzZS2ZG.js → dext-number-input-rac-BxECUZaK.js} +1 -1
- package/dist/component/{dext-phone-rac-CFZlEH2a.js → dext-phone-rac-BCUCWcrF.js} +1 -1
- package/dist/component/{dext-radio-group-rac-DiH0wIIl.js → dext-radio-group-rac-Bs_64hFW.js} +2 -2
- package/dist/component/{dext-rating-input-rac-D0s-i0qO.js → dext-rating-input-rac-Bl-MBjGQ.js} +1 -1
- package/dist/component/{dext-tags-rac-Br48OQQ5.js → dext-tags-rac-D98sEqwj.js} +2 -2
- package/dist/component/{dext-text-area-rac-6jG8gJ7i.js → dext-text-area-rac-Dsbsk2z4.js} +1 -1
- package/dist/component/{dext-text-input-rac-FAJTCXuf.js → dext-text-input-rac-vYtTnV5G.js} +1 -1
- package/dist/component/{dext-url-input-rac-BoMP8sQB.js → dext-url-input-rac-tJJZOvtn.js} +1 -1
- package/dist/component/{donation-rac-DNi4p-v5.js → donation-rac-CPPSHRbF.js} +60 -58
- package/dist/component/{dropdown-field-headless-7SCC-xOC.js → dropdown-field-headless-BWbsB155.js} +29 -27
- package/dist/component/{dropdown-field-rac-CMzZh6J6.js → dropdown-field-rac-BYyLHTVV.js} +4 -4
- package/dist/component/{dropdown-rac-qeugpHXY.js → dropdown-rac-CyWVQHvW.js} +1 -1
- package/dist/component/{ecom-address-rac-D8b_L5md.js → ecom-address-rac-DLWEUZg7.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-BnAuR9La.js → ecom-subscription-checkbox-rac-DY-Vzmr5.js} +2 -2
- package/dist/component/{email-input-field-rac-CunXRyc5.js → email-input-field-rac-00Q0cH3p.js} +4 -4
- package/dist/component/{events-repeater-rac-DMjyIOkB.js → events-repeater-rac-C_TDB0VL.js} +12 -8
- package/dist/component/{events-rsvp-rac-BsuDPq2K.js → events-rsvp-rac-Cly4TgEv.js} +4 -4
- package/dist/component/{field-error-headless-E8WjFr_n.js → field-error-headless-sUpR20_V.js} +1 -1
- package/dist/component/{field-label-headless-BakLOu5E.js → field-label-headless-xEHyxl62.js} +1 -1
- package/dist/component/field-rac.module-DP0lkkEv.js +25 -0
- package/dist/component/{file-upload-rac-Clu_c--0.js → file-upload-rac-BLTYhgrR.js} +148 -144
- package/dist/component/{fixed-payment-rac-CzAXxsb-.js → fixed-payment-rac-BBSzAU8U.js} +4 -4
- package/dist/component/{form-DHAKwnLt.js → form-DbRjIc40.js} +2212 -2217
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-CwmVpz3r.js → header-field-rac-DdF0EtGw.js} +2 -2
- package/dist/component/{header-rac-ahkGRjSy.js → header-rac-CQzVj2se.js} +1 -1
- package/dist/component/{image-choice-rac-BwxkkdUu.js → image-choice-rac-F4il5nrs.js} +32 -32
- package/dist/component/{index-BFi_n6B7.js → index-3lV2ezGk.js} +2 -2
- package/dist/component/{index-BQf23zZi.js → index-ClGqqyFk.js} +4 -4
- package/dist/component/{isObjectLike-DHcMRYYH.js → isObjectLike-CbFuWC1b.js} +1 -1
- package/dist/component/{multiline-address-field-rac-C6xaqNOk.js → multiline-address-field-rac-Bhkmy-UH.js} +106 -88
- package/dist/component/{multiline-address-rac-DF4TFuDx.js → multiline-address-rac-CH6ZAJ_l.js} +1 -1
- package/dist/component/{number-input-field-rac-uVJ3SBv2.js → number-input-field-rac-DEBHQQqw.js} +16 -14
- package/dist/component/{number-input-rac-D6ERhrSM.js → number-input-rac-DL3ReqMc.js} +1 -1
- package/dist/component/{password-rac-CAiC0ZKl.js → password-rac-Bo7Va46-.js} +13 -11
- package/dist/component/{payment-input-rac-Bu25xvby.js → payment-input-rac-CyT2kcLF.js} +13 -11
- package/dist/component/{phone-input-field-rac-32qUvCsC.js → phone-input-field-rac-CKCkS2mG.js} +7 -7
- package/dist/component/{phone-rac-mNrpj30q.js → phone-rac-BcW_3aA5.js} +1 -1
- package/dist/component/{product-list-rac-zHdM9rHw.js → product-list-rac-Cxu5KYQ1.js} +49 -49
- package/dist/component/{quiz-radio-group-rac-BaSlT8w3.js → quiz-radio-group-rac-Bam3nw3m.js} +1 -1
- package/dist/component/radio-button-module-classes-D6cil49f.js +134 -0
- package/dist/component/{radio-group-field-rac-DI0UgTBr.js → radio-group-field-rac-BgWnXO5Q.js} +5 -5
- package/dist/component/{radio-group-rac-D2ESG8J4.js → radio-group-rac-BMepx9xD.js} +1 -1
- package/dist/component/{rating-input-field-rac-BYT2XqOK.js → rating-input-field-rac-BmdQzQ1t.js} +5 -5
- package/dist/component/{rating-input-rac-D-5CmVAX.js → rating-input-rac-BuNTgro2.js} +1 -1
- package/dist/component/{rich-content-rac.module-Dp9Advo9.js → rich-content-rac.module-DIShgYK1.js} +1 -1
- package/dist/component/{rich-text-field-rac-COEUwoXQ.js → rich-text-field-rac-CfcWsMcr.js} +2 -2
- package/dist/component/{rich-text-rac-CQZLjBQ0.js → rich-text-rac-CbpbC1i1.js} +1 -1
- package/dist/component/{service-dropdown-rac-BTtJVFv8.js → service-dropdown-rac-_ph-8eMR.js} +5 -5
- package/dist/component/{services-multi-choice-rac-hbY3g0Kb.js → services-multi-choice-rac-VS-18f_N.js} +7 -7
- package/dist/component/{signature-rac-CTCNclwL.js → signature-rac-CgCdt4im.js} +286 -284
- package/dist/component/{submit-button-rac-kKGeVgsG.js → submit-button-rac-CAnahSZG.js} +2 -2
- package/dist/component/{tags-field-rac-CVf7oQr_.js → tags-field-rac-TdxHJoT1.js} +75 -75
- package/dist/component/{tags-rac-DiX1_nTT.js → tags-rac-ivZy_kqq.js} +1 -1
- package/dist/component/{text-area-field-rac-IhBNXiDl.js → text-area-field-rac-C4dg7l8s.js} +15 -13
- package/dist/component/{text-area-rac-DHevCtFF.js → text-area-rac-Dqcg7ApJ.js} +1 -1
- package/dist/component/{text-input-field-rac-Da3_wTdh.js → text-input-field-rac-C6VjmvWa.js} +4 -4
- package/dist/component/text-input-headless-CUsCjQmX.js +47 -0
- package/dist/component/{text-input-rac-564LIZ1_.js → text-input-rac-CMFWBJKG.js} +1 -1
- package/dist/component/{time-input-rac-p-Nnsxp_.js → time-input-rac-cbG7WRTS.js} +29 -27
- package/dist/component/{url-input-field-rac-DjrcpRtm.js → url-input-field-rac-7yh9eqH3.js} +20 -18
- package/dist/component/{url-input-rac-B3brpyop.js → url-input-rac-D_rkLxU0.js} +1 -1
- package/dist/component/{use-dropdown-trigger-class-name-BWTT7ltv.js → use-dropdown-trigger-class-name-B53A0SXh.js} +4 -4
- package/dist/component/{use-element-state-class-name-CUZuhFvZ.js → use-element-state-class-name-glM9I1ZZ.js} +1 -1
- package/dist/component/{use-hoverable-input-class-name-ugX8-g4E.js → use-hoverable-input-class-name-DpOCZ2hg.js} +3 -3
- package/dist/component/{use-is-forced-open-dropdown-DUZMvWpk.js → use-is-forced-open-dropdown-B0M0FaQ-.js} +1 -1
- package/dist/component/{use-service-options-base-hqO9Ev38.js → use-service-options-base-CqZd8Yl3.js} +1 -1
- package/dist/component/use-text-input-class-name-DPUN9lls.js +6 -0
- package/dist/form.d.ts +3 -3
- package/package.json +2 -2
- package/dist/component/field-rac.module-DfEb7pBp.js +0 -25
- package/dist/component/radio-button-module-classes-BdWjkBlX.js +0 -132
- package/dist/component/text-input-headless-DcZRRXCp.js +0 -45
- package/dist/component/use-text-input-class-name-wp9dzpEy.js +0 -6
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import n, { useMemo as
|
|
1
|
+
import n, { useMemo as x, useCallback as S, useRef as te } from "react";
|
|
2
2
|
import { RicosViewer as ne } from "@wix/ricos/viewer";
|
|
3
3
|
import L from "classnames";
|
|
4
4
|
import { ToggleButtonGroup as oe, TextField as re, Group as se, ToggleButton as ae, Input as le } from "react-aria-components";
|
|
5
5
|
import { debounce as ce } from "ts-debounce";
|
|
6
|
-
import { aE as K, bo as T, bl as P, by as ie, bg as
|
|
7
|
-
import { f as
|
|
6
|
+
import { aE as K, bo as T, bl as P, by as ie, bg as H, bq as ue, S as me, a0 as de, w as pe, H as Ie, v as Ce, x as Ee } from "./form-DbRjIc40.js";
|
|
7
|
+
import { f as y, a as F } from "./find-child-C60k4CxG.js";
|
|
8
8
|
import { a as Q } from "./format-currency-BwShJ9vM.js";
|
|
9
|
-
import { D as fe, E as
|
|
10
|
-
import { L as
|
|
9
|
+
import { D as fe, E as ye } from "./field-error-headless-sUpR20_V.js";
|
|
10
|
+
import { L as Oe } from "./field-label-headless-xEHyxl62.js";
|
|
11
11
|
import { F as be } from "./fieldset-headless-CD3fds9J.js";
|
|
12
12
|
import { a as _e, b as he } from "./numeric-input-utils-CuBMi4-a.js";
|
|
13
13
|
import { g as Ne } from "./payment-field-utils-DobiK5Xh.js";
|
|
14
14
|
import { u as ge } from "./use-synced-display-value-DcAxdn3M.js";
|
|
15
15
|
import { E as Fe } from "./error-icon-hZxQ6DEy.js";
|
|
16
|
-
import { s as v } from "./field-rac.module-
|
|
16
|
+
import { s as v } from "./field-rac.module-DP0lkkEv.js";
|
|
17
17
|
import { o as De } from "./options-rac.module-_THNq6Qq.js";
|
|
18
|
-
import { u as Se } from "./use-element-state-class-name-
|
|
19
|
-
import { u as Le } from "./use-text-input-class-name-
|
|
18
|
+
import { u as Se } from "./use-element-state-class-name-glM9I1ZZ.js";
|
|
19
|
+
import { u as Le } from "./use-text-input-class-name-DPUN9lls.js";
|
|
20
20
|
function ve(e, t) {
|
|
21
21
|
return e.reduce((o, r) => (o[r[t]] = r, o), {});
|
|
22
22
|
}
|
|
@@ -43,21 +43,21 @@ function Be(e, t) {
|
|
|
43
43
|
return (e == null ? void 0 : e.productId) === (t == null ? void 0 : t.id) ? String((e == null ? void 0 : e.price) ?? "") : "";
|
|
44
44
|
}
|
|
45
45
|
const s = ({ children: e }) => {
|
|
46
|
-
const { id: t, value: o, onChange: r, required: l, onBlur: i, onFocus: C, validation: u, addOther: E, addOtherPlaceholder:
|
|
46
|
+
const { id: t, value: o, onChange: r, required: l, onBlur: i, onFocus: C, validation: u, addOther: E, addOtherPlaceholder: d, FieldLayout: f } = T(), { inputId: c, labelId: p, ariaDescribedBy: b } = P(), { t: m } = ie(), { currency: g, regionalFormat: _ } = H(), O = o == null ? void 0 : o[0], D = x(() => {
|
|
47
47
|
var I, h;
|
|
48
48
|
return ((h = (I = u == null ? void 0 : u.predefined) == null ? void 0 : I.paymentOptions) == null ? void 0 : h.products) || [];
|
|
49
49
|
}, [
|
|
50
50
|
u
|
|
51
|
-
]), B =
|
|
51
|
+
]), B = x(() => Re(D), [
|
|
52
52
|
D
|
|
53
|
-
]), a =
|
|
53
|
+
]), a = x(() => E ? Pe(D) : void 0, [
|
|
54
54
|
D,
|
|
55
55
|
E
|
|
56
|
-
]), W = Be(
|
|
56
|
+
]), W = Be(O, a), [V, M] = ge({
|
|
57
57
|
sourceValue: W,
|
|
58
58
|
format: (I) => he(String(I ?? ""), _),
|
|
59
59
|
regionalFormat: _
|
|
60
|
-
}),
|
|
60
|
+
}), q = S((I) => {
|
|
61
61
|
const h = I === void 0 ? void 0 : B[I];
|
|
62
62
|
r(h ? [
|
|
63
63
|
Y(h, Te(h))
|
|
@@ -73,33 +73,33 @@ const s = ({ children: e }) => {
|
|
|
73
73
|
}, [
|
|
74
74
|
r,
|
|
75
75
|
a
|
|
76
|
-
]), w =
|
|
76
|
+
]), w = x(() => ce(k, 500), [
|
|
77
77
|
k
|
|
78
78
|
]), j = S((I) => {
|
|
79
|
-
(
|
|
80
|
-
const { validInput: h, validNumber: ee } = _e(I.target.value, Ae,
|
|
79
|
+
(O == null ? void 0 : O.productId) !== (a == null ? void 0 : a.id) && r(void 0);
|
|
80
|
+
const { validInput: h, validNumber: ee } = _e(I.target.value, Ae, V, _);
|
|
81
81
|
M(h), w(ee);
|
|
82
82
|
}, [
|
|
83
83
|
_,
|
|
84
84
|
r,
|
|
85
|
-
|
|
85
|
+
O,
|
|
86
86
|
a,
|
|
87
|
-
|
|
87
|
+
V,
|
|
88
88
|
w,
|
|
89
89
|
M
|
|
90
|
-
]), U = (
|
|
91
|
-
a != null && a.id && U !== a.id &&
|
|
90
|
+
]), U = (O == null ? void 0 : O.productId) || null, z = S(() => {
|
|
91
|
+
a != null && a.id && U !== a.id && q(a.id);
|
|
92
92
|
}, [
|
|
93
93
|
a == null ? void 0 : a.id,
|
|
94
94
|
U,
|
|
95
|
-
|
|
96
|
-
]), J =
|
|
95
|
+
q
|
|
96
|
+
]), J = y(e, s.Label), G = y(e, s.Control), X = y(e, s.Description), Z = y(e, s.Error);
|
|
97
97
|
return /* @__PURE__ */ n.createElement(f, {
|
|
98
98
|
fieldId: t,
|
|
99
99
|
renderLabel: () => J,
|
|
100
100
|
renderInput: () => /* @__PURE__ */ n.createElement(be, {
|
|
101
101
|
id: c,
|
|
102
|
-
ariaLabelledBy:
|
|
102
|
+
ariaLabelledBy: p,
|
|
103
103
|
ariaDescribedBy: b,
|
|
104
104
|
required: l,
|
|
105
105
|
onBlur: i,
|
|
@@ -107,20 +107,20 @@ const s = ({ children: e }) => {
|
|
|
107
107
|
}, G ? F(G, {
|
|
108
108
|
productsById: B,
|
|
109
109
|
selectedValue: U,
|
|
110
|
-
onSelectProduct:
|
|
110
|
+
onSelectProduct: q,
|
|
111
111
|
addOther: E,
|
|
112
|
-
customAmount:
|
|
112
|
+
customAmount: V,
|
|
113
113
|
onCustomAmountInputChange: j,
|
|
114
114
|
currency: g,
|
|
115
115
|
t: m,
|
|
116
|
-
placeholder:
|
|
116
|
+
placeholder: d === void 0 ? m("donation.other-option.placeholder") : d,
|
|
117
117
|
customAmountProductId: a == null ? void 0 : a.id,
|
|
118
118
|
onFocusCustomInput: z
|
|
119
119
|
}) : null),
|
|
120
120
|
renderDescription: () => /* @__PURE__ */ n.createElement(n.Fragment, null, Z, X)
|
|
121
121
|
});
|
|
122
122
|
}, Me = ({ children: e, className: t, ...o }) => {
|
|
123
|
-
const { productsById: r, selectedValue: l, onSelectProduct: i, addOther: C, customAmount: u, onCustomAmountInputChange: E, currency:
|
|
123
|
+
const { productsById: r, selectedValue: l, onSelectProduct: i, addOther: C, customAmount: u, onCustomAmountInputChange: E, currency: d, t: f, placeholder: c, customAmountProductId: p, onFocusCustomInput: b } = o, { hasError: m } = T(), g = y(e, s.Options), _ = y(e, s.OtherInput);
|
|
124
124
|
return /* @__PURE__ */ n.createElement("div", {
|
|
125
125
|
className: t,
|
|
126
126
|
"data-invalid": m
|
|
@@ -131,18 +131,18 @@ const s = ({ children: e }) => {
|
|
|
131
131
|
}) : null, _ && C ? F(_, {
|
|
132
132
|
customAmount: u,
|
|
133
133
|
onCustomAmountInputChange: E,
|
|
134
|
-
currency:
|
|
134
|
+
currency: d,
|
|
135
135
|
t: f,
|
|
136
136
|
placeholder: c,
|
|
137
|
-
customAmountProductId:
|
|
137
|
+
customAmountProductId: p,
|
|
138
138
|
onFocusCustomInput: b
|
|
139
139
|
}) : null);
|
|
140
140
|
}, $ = ({ children: e, className: t, ...o }) => {
|
|
141
|
-
const { productsById: r, selectedValue: l, onSelectProduct: i } = o, { options: C, numberOfColumns: u, disabled: E } = T(), { labelId:
|
|
141
|
+
const { productsById: r, selectedValue: l, onSelectProduct: i } = o, { options: C, numberOfColumns: u, disabled: E } = T(), { labelId: d } = P(), f = y(e, $.Option);
|
|
142
142
|
return /* @__PURE__ */ n.createElement(oe, {
|
|
143
143
|
className: t,
|
|
144
144
|
"data-columns": u,
|
|
145
|
-
"aria-labelledby":
|
|
145
|
+
"aria-labelledby": d,
|
|
146
146
|
selectionMode: "single",
|
|
147
147
|
selectedKeys: l ? [
|
|
148
148
|
l
|
|
@@ -153,7 +153,7 @@ const s = ({ children: e }) => {
|
|
|
153
153
|
isDisabled: E
|
|
154
154
|
}, C.map((c) => {
|
|
155
155
|
var m;
|
|
156
|
-
const
|
|
156
|
+
const p = r[c.value], b = (m = p == null ? void 0 : p.fixedPriceOptions) == null ? void 0 : m.price;
|
|
157
157
|
return F(f, {
|
|
158
158
|
key: c.value,
|
|
159
159
|
value: c.value,
|
|
@@ -161,26 +161,28 @@ const s = ({ children: e }) => {
|
|
|
161
161
|
});
|
|
162
162
|
}));
|
|
163
163
|
}, R = ({ children: e, className: t, ...o }) => {
|
|
164
|
-
const { value: r, price: l } = o, { id: i, hasError: C } = T(), { currency: u, regionalFormat: E } =
|
|
164
|
+
const { value: r, price: l } = o, { id: i, hasError: C } = T(), { currency: u, regionalFormat: E } = H(), d = y(e, R.Value), f = y(e, R.Currency), { isCurrencyPrefixed: c } = Q({
|
|
165
165
|
amount: l,
|
|
166
166
|
currency: u == null ? void 0 : u.code,
|
|
167
167
|
locale: E
|
|
168
|
-
}),
|
|
168
|
+
}), p = te(null);
|
|
169
169
|
ue(() => {
|
|
170
170
|
var m;
|
|
171
|
-
(m =
|
|
171
|
+
(m = p.current) == null || m.focus({
|
|
172
|
+
preventScroll: !0
|
|
173
|
+
});
|
|
172
174
|
}, i);
|
|
173
|
-
const b =
|
|
175
|
+
const b = d ? F(d, {
|
|
174
176
|
price: l
|
|
175
177
|
}) : null;
|
|
176
178
|
return /* @__PURE__ */ n.createElement(ae, {
|
|
177
179
|
id: r,
|
|
178
180
|
className: t,
|
|
179
|
-
ref:
|
|
181
|
+
ref: p,
|
|
180
182
|
"data-invalid": C || void 0
|
|
181
183
|
}, /* @__PURE__ */ n.createElement(n.Fragment, null, c && f, b, !c && f));
|
|
182
|
-
},
|
|
183
|
-
const { price: o } = t, { currency: r, regionalFormat: l } =
|
|
184
|
+
}, xe = ({ className: e, ...t }) => {
|
|
185
|
+
const { price: o } = t, { currency: r, regionalFormat: l } = H(), { value: i } = Q({
|
|
184
186
|
amount: o,
|
|
185
187
|
currency: r == null ? void 0 : r.code,
|
|
186
188
|
locale: l
|
|
@@ -188,16 +190,16 @@ const s = ({ children: e }) => {
|
|
|
188
190
|
return /* @__PURE__ */ n.createElement("span", {
|
|
189
191
|
className: e
|
|
190
192
|
}, i);
|
|
191
|
-
},
|
|
192
|
-
const { currency: t } =
|
|
193
|
+
}, He = ({ className: e }) => {
|
|
194
|
+
const { currency: t } = H();
|
|
193
195
|
return /* @__PURE__ */ n.createElement("span", {
|
|
194
196
|
className: e
|
|
195
197
|
}, (t == null ? void 0 : t.sign) || (t == null ? void 0 : t.code) || "");
|
|
196
198
|
};
|
|
197
|
-
R.Value =
|
|
198
|
-
R.Currency =
|
|
199
|
+
R.Value = xe;
|
|
200
|
+
R.Currency = He;
|
|
199
201
|
const A = ({ children: e, className: t, ...o }) => {
|
|
200
|
-
const { customAmount: r, onCustomAmountInputChange: l, currency: i, t: C, placeholder: u, customAmountProductId: E, onFocusCustomInput:
|
|
202
|
+
const { customAmount: r, onCustomAmountInputChange: l, currency: i, t: C, placeholder: u, customAmountProductId: E, onFocusCustomInput: d } = o, { disabled: f, hasError: c } = T(), { labelId: p, prefixId: b } = P(), m = y(e, A.Currency), g = y(e, A.Value), _ = S((D) => {
|
|
201
203
|
l({
|
|
202
204
|
target: {
|
|
203
205
|
value: D
|
|
@@ -205,16 +207,16 @@ const A = ({ children: e, className: t, ...o }) => {
|
|
|
205
207
|
});
|
|
206
208
|
}, [
|
|
207
209
|
l
|
|
208
|
-
]),
|
|
209
|
-
|
|
210
|
+
]), O = S(() => {
|
|
211
|
+
d();
|
|
210
212
|
}, [
|
|
211
|
-
|
|
213
|
+
d
|
|
212
214
|
]);
|
|
213
215
|
return /* @__PURE__ */ n.createElement(re, {
|
|
214
|
-
"aria-labelledby": `${
|
|
216
|
+
"aria-labelledby": `${p} ${b}`,
|
|
215
217
|
value: r,
|
|
216
218
|
onChange: _,
|
|
217
|
-
onFocus:
|
|
219
|
+
onFocus: O,
|
|
218
220
|
isDisabled: f,
|
|
219
221
|
isInvalid: c
|
|
220
222
|
}, /* @__PURE__ */ n.createElement(se, {
|
|
@@ -228,7 +230,7 @@ const A = ({ children: e, className: t, ...o }) => {
|
|
|
228
230
|
placeholder: u,
|
|
229
231
|
customAmountProductId: E
|
|
230
232
|
}) : null));
|
|
231
|
-
},
|
|
233
|
+
}, Ve = ({ className: e, ...t }) => {
|
|
232
234
|
const { currency: o, t: r } = t, { prefixId: l } = P();
|
|
233
235
|
return /* @__PURE__ */ n.createElement("span", {
|
|
234
236
|
id: l,
|
|
@@ -236,7 +238,7 @@ const A = ({ children: e, className: t, ...o }) => {
|
|
|
236
238
|
"aria-label": Ne(r, o),
|
|
237
239
|
className: e
|
|
238
240
|
}, (o == null ? void 0 : o.sign) || (o == null ? void 0 : o.code) || "");
|
|
239
|
-
},
|
|
241
|
+
}, qe = ({ className: e, ...t }) => {
|
|
240
242
|
const { placeholder: o, customAmountProductId: r } = t, { ariaDescribedBy: l, labelId: i, prefixId: C } = P();
|
|
241
243
|
return /* @__PURE__ */ n.createElement(le, {
|
|
242
244
|
id: r,
|
|
@@ -248,16 +250,16 @@ const A = ({ children: e, className: t, ...o }) => {
|
|
|
248
250
|
className: e
|
|
249
251
|
});
|
|
250
252
|
};
|
|
251
|
-
A.Currency =
|
|
252
|
-
A.Value =
|
|
253
|
+
A.Currency = Ve;
|
|
254
|
+
A.Value = qe;
|
|
253
255
|
$.Option = R;
|
|
254
|
-
s.Label =
|
|
256
|
+
s.Label = Oe;
|
|
255
257
|
s.Control = Me;
|
|
256
258
|
s.Options = $;
|
|
257
259
|
s.OtherInput = A;
|
|
258
260
|
s.Description = fe;
|
|
259
|
-
s.Error =
|
|
260
|
-
const Ue = "
|
|
261
|
+
s.Error = ye;
|
|
262
|
+
const Ue = "_control_1sfyd_1", $e = "_option_1sfyd_7", ke = "_optionHover_1sfyd_37", we = "_optionSelected_1sfyd_37", Ge = "_optionCurrency_1sfyd_90", Ye = "_otherInput_1sfyd_94", Ke = "_otherInputCurrency_1sfyd_116", N = {
|
|
261
263
|
control: Ue,
|
|
262
264
|
option: $e,
|
|
263
265
|
optionHover: ke,
|
|
@@ -280,11 +282,11 @@ const Ue = "_control_n5tqu_1", $e = "_option_n5tqu_7", ke = "_optionHover_n5tqu_
|
|
|
280
282
|
return /* @__PURE__ */ n.createElement(s, null, /* @__PURE__ */ n.createElement(s.Label, {
|
|
281
283
|
className: L(me, v.label)
|
|
282
284
|
}, /* @__PURE__ */ n.createElement(s.Label.Required, {
|
|
283
|
-
className: L(
|
|
285
|
+
className: L(de, v.requiredMark)
|
|
284
286
|
})), /* @__PURE__ */ n.createElement(s.Control, {
|
|
285
287
|
className: N.control
|
|
286
288
|
}, /* @__PURE__ */ n.createElement(s.Options, {
|
|
287
|
-
className: L(
|
|
289
|
+
className: L(pe, De.options, N.options)
|
|
288
290
|
}, /* @__PURE__ */ n.createElement(s.Options.Option, {
|
|
289
291
|
className: t
|
|
290
292
|
}, /* @__PURE__ */ n.createElement(s.Options.Option.Value, null), /* @__PURE__ */ n.createElement(s.Options.Option.Currency, {
|
package/dist/component/{dropdown-field-headless-7SCC-xOC.js → dropdown-field-headless-BWbsB155.js}
RENAMED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import e, { useState as b, useCallback as g, useRef as _ } from "react";
|
|
2
2
|
import { UNSAFE_PortalProvider as k } from "react-aria";
|
|
3
3
|
import { Select as M, SelectValue as H, ListBoxItem as U } from "react-aria-components";
|
|
4
|
-
import { bo as E, bl as O, bq as Y } from "./form-
|
|
4
|
+
import { bo as E, bl as O, bq as Y } from "./form-DbRjIc40.js";
|
|
5
5
|
import { f as d, a as F } from "./find-child-C60k4CxG.js";
|
|
6
|
-
import { D as j, E as z } from "./field-error-headless-
|
|
7
|
-
import { L as G } from "./field-label-headless-
|
|
6
|
+
import { D as j, E as z } from "./field-error-headless-sUpR20_V.js";
|
|
7
|
+
import { L as G } from "./field-label-headless-xEHyxl62.js";
|
|
8
8
|
import { E as J, S as K, N as Q } from "./non-modal-popover-D-u13tmp.js";
|
|
9
|
-
import { a as W } from "./use-is-forced-open-dropdown-
|
|
10
|
-
import { V as X } from "./use-dropdown-trigger-class-name-
|
|
9
|
+
import { a as W } from "./use-is-forced-open-dropdown-B0M0FaQ-.js";
|
|
10
|
+
import { V as X } from "./use-dropdown-trigger-class-name-B53A0SXh.js";
|
|
11
11
|
const r = ({ children: n }) => {
|
|
12
|
-
const { id:
|
|
13
|
-
|
|
12
|
+
const { id: s, value: o, defaultValue: a, options: u = [], readOnly: l, onChange: t, placeholder: p, disabled: i, required: v, onBlur: L, onFocus: y, FieldLayout: C, hasError: D } = E(), [I, h] = b(!1), m = W(s), [P, S] = b(null), T = o && u.some((c) => (c.value ?? c.label) === o) ? o : a || null, { labelId: B } = O(), N = g((c) => {
|
|
13
|
+
l || t(typeof c == "string" ? c : null);
|
|
14
14
|
}, [
|
|
15
15
|
t,
|
|
16
|
-
|
|
17
|
-
]), V = g((c) => h(c && !i && !
|
|
16
|
+
l
|
|
17
|
+
]), V = g((c) => h(c && !i && !l), [
|
|
18
18
|
i,
|
|
19
|
-
|
|
19
|
+
l
|
|
20
20
|
]), R = d(n, r.Label), x = d(n, r.Trigger), q = d(n, r.Options), w = d(n, r.Description), A = d(n, r.Error);
|
|
21
21
|
return /* @__PURE__ */ e.createElement(C, {
|
|
22
|
-
fieldId:
|
|
22
|
+
fieldId: s,
|
|
23
23
|
renderLabel: () => R,
|
|
24
24
|
renderInput: () => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", {
|
|
25
25
|
ref: S,
|
|
@@ -31,49 +31,51 @@ const r = ({ children: n }) => {
|
|
|
31
31
|
}, /* @__PURE__ */ e.createElement(M, {
|
|
32
32
|
"aria-labelledby": B,
|
|
33
33
|
value: T,
|
|
34
|
-
isOpen:
|
|
35
|
-
onOpenChange:
|
|
34
|
+
isOpen: m || I && !i && !l,
|
|
35
|
+
onOpenChange: m ? void 0 : V,
|
|
36
36
|
onChange: N,
|
|
37
37
|
isDisabled: i,
|
|
38
38
|
isInvalid: D,
|
|
39
39
|
isRequired: v,
|
|
40
|
-
placeholder:
|
|
40
|
+
placeholder: p || J,
|
|
41
41
|
onBlur: L,
|
|
42
42
|
onFocus: y
|
|
43
43
|
}, x, F(q, {
|
|
44
|
-
isForcedOpen:
|
|
44
|
+
isForcedOpen: m
|
|
45
45
|
})))),
|
|
46
46
|
renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, A, w)
|
|
47
47
|
});
|
|
48
|
-
}, Z = ({ children: n, className:
|
|
49
|
-
const { inputId: o, ariaDescribedBy: a } = O(), { id: u, hasError:
|
|
48
|
+
}, Z = ({ children: n, className: s }) => {
|
|
49
|
+
const { inputId: o, ariaDescribedBy: a } = O(), { id: u, hasError: l, isLoading: t } = E(), p = _(null);
|
|
50
50
|
return Y(() => {
|
|
51
51
|
var i;
|
|
52
|
-
(i =
|
|
52
|
+
(i = p.current) == null || i.focus({
|
|
53
|
+
preventScroll: !0
|
|
54
|
+
});
|
|
53
55
|
}, u), /* @__PURE__ */ e.createElement(K, {
|
|
54
|
-
ref:
|
|
56
|
+
ref: p,
|
|
55
57
|
id: o,
|
|
56
58
|
"aria-describedby": a,
|
|
57
|
-
className:
|
|
58
|
-
"data-invalid":
|
|
59
|
+
className: s,
|
|
60
|
+
"data-invalid": l || void 0,
|
|
59
61
|
"data-loading": t || void 0
|
|
60
62
|
}, /* @__PURE__ */ e.createElement(H, null), n);
|
|
61
|
-
}, f = ({ children: n, className:
|
|
62
|
-
const { isForcedOpen: a } = o, { options: u = [] } = E(),
|
|
63
|
+
}, f = ({ children: n, className: s, ...o }) => {
|
|
64
|
+
const { isForcedOpen: a } = o, { options: u = [] } = E(), l = d(n, f.Option);
|
|
63
65
|
return /* @__PURE__ */ e.createElement(Q, {
|
|
64
|
-
className:
|
|
66
|
+
className: s,
|
|
65
67
|
containerPadding: 0,
|
|
66
68
|
offset: 0
|
|
67
69
|
}, /* @__PURE__ */ e.createElement(X, {
|
|
68
70
|
isForcedOpen: a,
|
|
69
71
|
autoFocus: a ? !1 : void 0
|
|
70
|
-
}, u.map((t) => F(
|
|
72
|
+
}, u.map((t) => F(l, {
|
|
71
73
|
key: t.value ?? t.label,
|
|
72
74
|
value: t.value ?? t.label,
|
|
73
75
|
label: t.label
|
|
74
76
|
}))));
|
|
75
|
-
}, $ = ({ className: n, ...
|
|
76
|
-
const { value: o, label: a } =
|
|
77
|
+
}, $ = ({ className: n, ...s }) => {
|
|
78
|
+
const { value: o, label: a } = s;
|
|
77
79
|
return /* @__PURE__ */ e.createElement(U, {
|
|
78
80
|
className: n,
|
|
79
81
|
id: o,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { RicosViewer as m } from "@wix/ricos/viewer";
|
|
2
2
|
import a from "classnames";
|
|
3
3
|
import e from "react";
|
|
4
|
-
import { D as r } from "./dropdown-field-headless-
|
|
4
|
+
import { D as r } from "./dropdown-field-headless-BWbsB155.js";
|
|
5
5
|
import { C as n } from "./chevron-down-icon-CcpVm6B-.js";
|
|
6
6
|
import { E as l } from "./error-icon-hZxQ6DEy.js";
|
|
7
7
|
import { H as c } from "./custom-focus-class-_483Pkwp.js";
|
|
8
|
-
import { s as o } from "./field-rac.module-
|
|
9
|
-
import { S as i, a0 as p, y as E, H as D, v as _ } from "./form-
|
|
10
|
-
import { a as O, u as R } from "./use-dropdown-trigger-class-name-
|
|
8
|
+
import { s as o } from "./field-rac.module-DP0lkkEv.js";
|
|
9
|
+
import { S as i, a0 as p, y as E, H as D, v as _ } from "./form-DbRjIc40.js";
|
|
10
|
+
import { a as O, u as R } from "./use-dropdown-trigger-class-name-B53A0SXh.js";
|
|
11
11
|
const S = ({ content: t, locale: s }) => /* @__PURE__ */ e.createElement(m, {
|
|
12
12
|
content: t,
|
|
13
13
|
locale: s
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import o, { useMemo as n } from "react";
|
|
2
|
-
import { bo as a, by as c, aq as i } from "./form-
|
|
3
|
-
import { C as l } from "./checkbox-field-rac-
|
|
2
|
+
import { bo as a, by as c, aq as i } from "./form-DbRjIc40.js";
|
|
3
|
+
import { C as l } from "./checkbox-field-rac-DxGaRbDj.js";
|
|
4
4
|
const p = (e) => ({
|
|
5
5
|
nodes: [
|
|
6
6
|
{
|
package/dist/component/{email-input-field-rac-CunXRyc5.js → email-input-field-rac-00Q0cH3p.js}
RENAMED
|
@@ -2,7 +2,7 @@ import { RicosViewer as ie } from "@wix/ricos/viewer";
|
|
|
2
2
|
import D from "classnames";
|
|
3
3
|
import u, { createContext as z, useContext as Z, createElement as R, isValidElement as B, cloneElement as w, useState as le, useCallback as me, useEffect as ue } from "react";
|
|
4
4
|
import { TextField as pe } from "react-aria-components";
|
|
5
|
-
import { bl as fe, by as ge, bj as ve, d as ye, bo as Ee, bs as de, bm as be, ao as Se, S as Oe, a0 as he, H as Ie, v as Ne, a9 as Ae } from "./form-
|
|
5
|
+
import { bl as fe, by as ge, bj as ve, d as ye, bo as Ee, bs as de, bm as be, ao as Se, S as Oe, a0 as he, H as Ie, v as Ne, a9 as Ae } from "./form-DbRjIc40.js";
|
|
6
6
|
import { f as C } from "./find-child-C60k4CxG.js";
|
|
7
7
|
import ee from "@babel/runtime/helpers/objectWithoutProperties";
|
|
8
8
|
import L from "@babel/runtime/helpers/typeof";
|
|
@@ -10,10 +10,10 @@ import Fe from "@babel/runtime/helpers/defineProperty";
|
|
|
10
10
|
import ke from "html-parse-stringify";
|
|
11
11
|
import Te from "@babel/runtime/helpers/classCallCheck";
|
|
12
12
|
import xe from "@babel/runtime/helpers/createClass";
|
|
13
|
-
import { T as U } from "./text-input-headless-
|
|
13
|
+
import { T as U } from "./text-input-headless-CUsCjQmX.js";
|
|
14
14
|
import { E as je } from "./error-icon-hZxQ6DEy.js";
|
|
15
|
-
import { s as H } from "./field-rac.module-
|
|
16
|
-
import { u as De } from "./use-text-input-class-name-
|
|
15
|
+
import { s as H } from "./field-rac.module-DP0lkkEv.js";
|
|
16
|
+
import { u as De } from "./use-text-input-class-name-DPUN9lls.js";
|
|
17
17
|
var Ce = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, Le = {
|
|
18
18
|
"&": "&",
|
|
19
19
|
"&": "&",
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import t, { useState as j, useMemo as h, useCallback as V, useRef as x } from "react";
|
|
2
2
|
import M from "classnames";
|
|
3
3
|
import { NumberField as z, CheckboxField as J, CheckboxButton as Q, Group as W, Input as Y, Button as w } from "react-aria-components";
|
|
4
|
-
import { bu as q, bv as H, bk as K, bp as P, aM as Z, bo as y, bl as X, bq as U, as as ee, S as te, n as se, s as ne, r as oe } from "./form-
|
|
4
|
+
import { bu as q, bv as H, bk as K, bp as P, aM as Z, bo as y, bl as X, bq as U, as as ee, S as te, n as se, s as ne, r as oe } from "./form-DbRjIc40.js";
|
|
5
5
|
import { f as b, a as L } from "./find-child-C60k4CxG.js";
|
|
6
|
-
import { L as re } from "./field-label-headless-
|
|
6
|
+
import { L as re } from "./field-label-headless-xEHyxl62.js";
|
|
7
7
|
import { S as ae } from "./selection-indicator-XQ8MYHUQ.js";
|
|
8
8
|
import { u as le } from "./use-invoke-callback-UH73A_J3.js";
|
|
9
9
|
import { C as k } from "./chevron-down-icon-CcpVm6B-.js";
|
|
10
|
-
import { C as ce } from "./checkbox-indicator-module-classes-
|
|
11
|
-
import { s as v } from "./field-rac.module-
|
|
12
|
-
import { u as ue } from "./use-element-state-class-name-
|
|
13
|
-
import { u as me } from "./use-text-input-class-name-
|
|
10
|
+
import { C as ce } from "./checkbox-indicator-module-classes-akWZsZNn.js";
|
|
11
|
+
import { s as v } from "./field-rac.module-DP0lkkEv.js";
|
|
12
|
+
import { u as ue } from "./use-element-state-class-name-glM9I1ZZ.js";
|
|
13
|
+
import { u as me } from "./use-text-input-class-name-DPUN9lls.js";
|
|
14
14
|
const ie = [], de = ({ id: e, fields: s, layout: a, value: o, onChange: n, errors: l = ie, validation: c }) => {
|
|
15
15
|
const [m, i] = j((o == null ? void 0 : o.length) || 0), u = h(() => o ?? [], [
|
|
16
16
|
o
|
|
@@ -122,7 +122,9 @@ const ie = [], de = ({ id: e, fields: s, layout: a, value: o, onChange: n, error
|
|
|
122
122
|
const { id: s } = y(), { inputId: a, ariaDescribedBy: o } = X(), n = x(null);
|
|
123
123
|
return U(() => {
|
|
124
124
|
var l;
|
|
125
|
-
(l = n.current) == null || l.focus(
|
|
125
|
+
(l = n.current) == null || l.focus({
|
|
126
|
+
preventScroll: !0
|
|
127
|
+
});
|
|
126
128
|
}, s), /* @__PURE__ */ t.createElement(Y, {
|
|
127
129
|
ref: n,
|
|
128
130
|
id: a,
|
|
@@ -140,7 +142,9 @@ const ie = [], de = ({ id: e, fields: s, layout: a, value: o, onChange: n, error
|
|
|
140
142
|
const { guestCount: o, onGuestCountChange: n } = a, { id: l, label: c, disabled: m, readOnly: i, onBlur: u, onFocus: d } = y(), { inputId: g, ariaDescribedBy: C } = X(), p = x(null);
|
|
141
143
|
U(() => {
|
|
142
144
|
var G;
|
|
143
|
-
(G = p.current) == null || G.focus(
|
|
145
|
+
(G = p.current) == null || G.focus({
|
|
146
|
+
preventScroll: !0
|
|
147
|
+
});
|
|
144
148
|
}, l);
|
|
145
149
|
const F = b(e, S.Input), O = b(e, S.Label), _ = V((G) => {
|
|
146
150
|
n(G ? 1 : 0);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import t from "react";
|
|
2
2
|
import { RicosViewer as m } from "@wix/ricos/viewer";
|
|
3
3
|
import s from "classnames";
|
|
4
|
-
import { a, s as n, R as c } from "./radio-button-module-classes-
|
|
4
|
+
import { a, s as n, R as c } from "./radio-button-module-classes-D6cil49f.js";
|
|
5
5
|
import { E as i } from "./error-icon-hZxQ6DEy.js";
|
|
6
|
-
import { s as o } from "./field-rac.module-
|
|
7
|
-
import { S as E, a0 as p, X as R, Y as O, H as _, v as L, Z as D } from "./form-
|
|
6
|
+
import { s as o } from "./field-rac.module-DP0lkkEv.js";
|
|
7
|
+
import { S as E, a0 as p, X as R, Y as O, H as _, v as L, Z as D } from "./form-DbRjIc40.js";
|
|
8
8
|
import { o as I } from "./options-rac.module-_THNq6Qq.js";
|
|
9
|
-
import { u as S } from "./use-element-state-class-name-
|
|
9
|
+
import { u as S } from "./use-element-state-class-name-glM9I1ZZ.js";
|
|
10
10
|
const e = ({ children: r, className: l }) => /* @__PURE__ */ t.createElement(a, {
|
|
11
11
|
className: l
|
|
12
12
|
}, r);
|
package/dist/component/{field-error-headless-E8WjFr_n.js → field-error-headless-sUpR20_V.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import t, { createContext as m, useContext as M } from "react";
|
|
2
|
-
import { bo as c, bl as i, bg as f, aZ as x, a_ as b } from "./form-
|
|
2
|
+
import { bo as c, bl as i, bg as f, aZ as x, a_ as b } from "./form-DbRjIc40.js";
|
|
3
3
|
const H = ({ className: r, children: e }) => {
|
|
4
4
|
const { description: s, target: o } = c(), { descriptionId: a } = i(), { language: n } = f();
|
|
5
5
|
return s ? /* @__PURE__ */ t.createElement("div", {
|
package/dist/component/{field-label-headless-BakLOu5E.js → field-label-headless-xEHyxl62.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bo as m, aF as d, aG as p, bl as D, by as B } from "./form-
|
|
1
|
+
import { bo as m, aF as d, aG as p, bl as D, by as B } from "./form-DbRjIc40.js";
|
|
2
2
|
import l from "react";
|
|
3
3
|
import { f as L } from "./find-child-C60k4CxG.js";
|
|
4
4
|
import { sdk as g } from "@wix/image-kit";
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
const t = "_label_t702n_1", o = "_requiredMark_t702n_11", e = "_input_t702n_16", n = "_inputGroup_t702n_17", c = "_inputHover_t702n_70", _ = "_innerInput_t702n_151", r = "_dropdownTrigger_t702n_201", p = "_dropdownIcon_t702n_211", s = "_dropdownPopover_t702n_230", i = "_selectPopover_t702n_236", u = "_selectOption_t702n_263", d = "_selectOptionHover_t702n_286", l = "_selectOptionSelected_t702n_290", h = "_selectOptionWithoutFocusRing_t702n_294", b = "_description_t702n_300", k = "_error_t702n_316", v = "_checkbox_t702n_335", I = "_checkboxInput_t702n_358", x = "_checkboxInputSelected_t702n_397", O = "_checkboxInputHover_t702n_401", g = {
|
|
2
|
+
label: t,
|
|
3
|
+
requiredMark: o,
|
|
4
|
+
input: e,
|
|
5
|
+
inputGroup: n,
|
|
6
|
+
inputHover: c,
|
|
7
|
+
innerInput: _,
|
|
8
|
+
dropdownTrigger: r,
|
|
9
|
+
dropdownIcon: p,
|
|
10
|
+
dropdownPopover: s,
|
|
11
|
+
selectPopover: i,
|
|
12
|
+
selectOption: u,
|
|
13
|
+
selectOptionHover: d,
|
|
14
|
+
selectOptionSelected: l,
|
|
15
|
+
selectOptionWithoutFocusRing: h,
|
|
16
|
+
description: b,
|
|
17
|
+
error: k,
|
|
18
|
+
checkbox: v,
|
|
19
|
+
checkboxInput: I,
|
|
20
|
+
checkboxInputSelected: x,
|
|
21
|
+
checkboxInputHover: O
|
|
22
|
+
};
|
|
23
|
+
export {
|
|
24
|
+
g as s
|
|
25
|
+
};
|