@wix/form-elements 1.126.0 → 1.127.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-CYB_k6uF.js → appointment-rac-BrC7gcpn.js} +5 -5
- package/dist/component/{bookings-address-rac-yJjV3u5m.js → bookings-address-rac-D-UmBxjD.js} +1 -1
- package/dist/component/{bookings-email-rac-WkFgaEv5.js → bookings-email-rac-CjHDzU0Q.js} +1 -1
- package/dist/component/{bookings-first-name-rac-CJ1cBR5Z.js → bookings-first-name-rac-ChBkkkWm.js} +1 -1
- package/dist/component/{bookings-header-rac-DiC19ttR.js → bookings-header-rac-ERfGeYyw.js} +1 -1
- package/dist/component/{bookings-last-name-rac-Dx0Nt5Z_.js → bookings-last-name-rac-CuTJ7Y8w.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-CcW2nUYQ.js → bookings-login-bar-rac-pudlQ67l.js} +6 -6
- package/dist/component/{bookings-phone-rac-BMLrrTf6.js → bookings-phone-rac-nLPnLRfS.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-DIbRjzxZ.js → bookings-rich-text-rac-DOmGQlyG.js} +1 -1
- package/dist/component/{checkbox-field-rac-3a6NYcNf.js → checkbox-field-rac-DLazY-iO.js} +45 -45
- package/dist/component/{checkbox-group-field-headless-CM-2wLJv.js → checkbox-group-field-headless-CPyWmFBH.js} +3 -3
- package/dist/component/{checkbox-group-field-rac-CNWwJ_No.js → checkbox-group-field-rac-Bir3gaI9.js} +6 -6
- package/dist/component/{checkbox-group-rac-F08XYJSA.js → checkbox-group-rac-BGXUl-sJ.js} +1 -1
- package/dist/component/{checkbox-indicator-module-classes-DOAYUQ_Q.js → checkbox-indicator-module-classes-Bqo0QILF.js} +1 -1
- package/dist/component/{checkbox-rac-z98USBLu.js → checkbox-rac-D_wZVUFV.js} +1 -1
- package/dist/component/{contacts-address-rac-DuodyS7l.js → contacts-address-rac-CNldSQbf.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-BY7L9nWm.js → contacts-birthdate-rac-AVyldaRF.js} +1 -1
- package/dist/component/{contacts-company-rac-iPNPKhx2.js → contacts-company-rac-CiP1Ctpa.js} +1 -1
- package/dist/component/{contacts-email-rac-C7kBUzQH.js → contacts-email-rac-CzjMVEJZ.js} +1 -1
- package/dist/component/{contacts-first-name-rac-DvDNRs2q.js → contacts-first-name-rac-G0kE0HmA.js} +1 -1
- package/dist/component/{contacts-last-name-rac-Cls5_7W0.js → contacts-last-name-rac-cnTTtnMZ.js} +1 -1
- package/dist/component/{contacts-phone-rac-DMy2lBJl.js → contacts-phone-rac-DJ9oxox4.js} +1 -1
- package/dist/component/{contacts-position-rac-Bn21lF_i.js → contacts-position-rac-e0uQ-eqL.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-QSC_n_T_.js → contacts-subscribe-rac-D4J2x78f.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-BvqoePCN.js → contacts-tax-id-rac-DwJuNH-C.js} +1 -1
- package/dist/component/{date-availability-SErYnVtm.js → date-availability-D2BSwZ_r.js} +1 -1
- package/dist/component/{date-input-field-rac-H81WktJT.js → date-input-field-rac-ztJ02C60.js} +42 -42
- package/dist/component/{date-input-rac-C6ZeK0zQ.js → date-input-rac-D-SFsC6P.js} +1 -1
- package/dist/component/{date-picker-field-rac-BwSKny80.js → date-picker-field-rac-DaNwsa8z.js} +15 -15
- package/dist/component/{date-picker-rac-BB5zswk4.js → date-picker-rac-Bn0sA6P1.js} +1 -1
- package/dist/component/{date-time-input-field-rac-C4srGo4X.js → date-time-input-field-rac-D-ArMpcJ.js} +64 -64
- package/dist/component/{date-time-input-rac-6PXunNeR.js → date-time-input-rac-qYLa3IDx.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-B1GOhxW8.js → dext-checkbox-group-rac-Dir6tyvo.js} +2 -2
- package/dist/component/{dext-checkbox-rac-DVels76t.js → dext-checkbox-rac-ByiMc3BH.js} +1 -1
- package/dist/component/{dext-date-picker-rac-kKH7Nu_c.js → dext-date-picker-rac-BwOozu5y.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-C2xk0pv1.js → dext-date-time-input-rac-CaJEzZa4.js} +1 -1
- package/dist/component/{dext-dropdown-rac-bd3XpA-l.js → dext-dropdown-rac-DJnMjggU.js} +1 -1
- package/dist/component/{dext-email-rac-BtEeJsrT.js → dext-email-rac-CF4SQ86l.js} +1 -1
- package/dist/component/{dext-number-input-rac-BLPAbm2q.js → dext-number-input-rac--3goVI8C.js} +1 -1
- package/dist/component/{dext-phone-rac-ByEP8XRg.js → dext-phone-rac-MYJYG040.js} +1 -1
- package/dist/component/{dext-radio-group-rac-AY271KFi.js → dext-radio-group-rac-Q2J5Hk5W.js} +4 -4
- package/dist/component/{dext-rating-input-rac-Dp9N8OWT.js → dext-rating-input-rac-CAWhD-lI.js} +1 -1
- package/dist/component/{dext-tags-rac-PgZGGDwj.js → dext-tags-rac-DyxI5ooy.js} +4 -4
- package/dist/component/{dext-text-area-rac-BN99TM9O.js → dext-text-area-rac-CZpM-r49.js} +1 -1
- package/dist/component/{dext-text-input-rac-C5TaQVi8.js → dext-text-input-rac-Bv5Mhyw6.js} +1 -1
- package/dist/component/{dext-url-input-rac-BvMh_jc6.js → dext-url-input-rac-BkbTjbAI.js} +1 -1
- package/dist/component/{donation-rac-BSCyAZPx.js → donation-rac-DZjFeJFy.js} +36 -36
- package/dist/component/{dropdown-field-headless-DzDE-6ha.js → dropdown-field-headless-C7l2TQYy.js} +16 -16
- package/dist/component/{dropdown-field-rac-mbYavQtS.js → dropdown-field-rac-DOAlecw8.js} +5 -5
- package/dist/component/{dropdown-rac-BUJag5ow.js → dropdown-rac-D8HtaeBe.js} +1 -1
- package/dist/component/{ecom-address-rac-B7_RYjoj.js → ecom-address-rac-B25o-GVv.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-BCDyH7x-.js → ecom-subscription-checkbox-rac-NvdWnD0v.js} +2 -2
- package/dist/component/{email-input-field-rac-CUi08-gD.js → email-input-field-rac-rWyojsu0.js} +19 -19
- package/dist/component/{events-repeater-rac-CkHq7ADr.js → events-repeater-rac-D2HvNt0y.js} +11 -11
- package/dist/component/{events-rsvp-rac-DBwLvDeR.js → events-rsvp-rac-D4WLn0Bx.js} +4 -4
- package/dist/component/{field-error-headless-Ct41F8cQ.js → field-error-headless-DU0YsEXR.js} +6 -6
- package/dist/component/{field-label-headless-DUqBV42_.js → field-label-headless-CvdTZi6i.js} +1 -1
- package/dist/component/field-rac.module-BIBNQEOK.js +25 -0
- package/dist/component/{file-upload-rac-CkbjhtAl.js → file-upload-rac-CMelyfA8.js} +68 -68
- package/dist/component/{fixed-payment-rac-Dgnhsx3e.js → fixed-payment-rac-CewsqE-k.js} +9 -9
- package/dist/component/{form-Dx1bK3Fi.js → form-D9IxiDXP.js} +668 -617
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +3 -3
- package/dist/component/{header-field-rac-BuUxOZO1.js → header-field-rac-CYBfb_5D.js} +6 -6
- package/dist/component/{header-rac-CIvWVvYs.js → header-rac-BIq3DmbL.js} +1 -1
- package/dist/component/{image-choice-rac-BBo0PiW4.js → image-choice-rac-aOObRIMi.js} +12 -12
- package/dist/component/{index-BDSs3l4d.js → index-BXqA4oNj.js} +15 -15
- package/dist/component/{index-BmMiwDw9.js → index-D-g3wQ-z.js} +43 -43
- package/dist/component/{isObjectLike-xZCFQW_t.js → isObjectLike-BNDXzCto.js} +7 -7
- package/dist/component/{multiline-address-field-rac-C6mRorOw.js → multiline-address-field-rac-BcTa7Von.js} +8 -8
- package/dist/component/{multiline-address-rac-BOjsVo4R.js → multiline-address-rac-Cd_BFreP.js} +1 -1
- package/dist/component/{number-input-field-rac-C89M-zOh.js → number-input-field-rac-_JlH34_3.js} +9 -9
- package/dist/component/{number-input-rac-DttY0Ll3.js → number-input-rac-CiM20ScT.js} +1 -1
- package/dist/component/{password-rac-C2KTrH40.js → password-rac-DrpXSY74.js} +32 -32
- package/dist/component/{payment-input-rac-BhyBxeu1.js → payment-input-rac-RnMeVWDc.js} +15 -15
- package/dist/component/{phone-input-field-rac-BT-Fe6WZ.js → phone-input-field-rac-nNp7D7gK.js} +39 -39
- package/dist/component/{phone-rac-B26qwlDN.js → phone-rac-B2JjPT2w.js} +1 -1
- package/dist/component/{product-list-rac-CF4gkfTK.js → product-list-rac-Cv_fjFn3.js} +28 -28
- package/dist/component/{quiz-radio-group-rac-Bf2HeDDw.js → quiz-radio-group-rac-CNqF6Tq3.js} +1 -1
- package/dist/component/{radio-button-module-classes-DtmmP89u.js → radio-button-module-classes-vqR4TN-z.js} +3 -3
- package/dist/component/{radio-group-field-rac-BY2OIFFr.js → radio-group-field-rac-Bpyr40q-.js} +5 -5
- package/dist/component/{radio-group-rac-BuxVel2l.js → radio-group-rac-DBLPP0YC.js} +1 -1
- package/dist/component/{rating-input-field-rac-CbLzvwyk.js → rating-input-field-rac-BOi0G37L.js} +10 -10
- package/dist/component/{rating-input-rac-B8QxNYHU.js → rating-input-rac-CxpmV0Pa.js} +1 -1
- package/dist/component/{rich-content-rac.module-wu4JPlkg.js → rich-content-rac.module-Dmm9GyQq.js} +1 -1
- package/dist/component/{rich-text-field-rac-CTrEe0SQ.js → rich-text-field-rac-C466OrTf.js} +9 -9
- package/dist/component/{rich-text-rac-kmzPTMKb.js → rich-text-rac-BvVxD7oJ.js} +1 -1
- package/dist/component/{service-dropdown-rac-C8nTy49F.js → service-dropdown-rac-pmUKH0sP.js} +14 -14
- package/dist/component/{services-multi-choice-rac-rDkpN2fs.js → services-multi-choice-rac-B65i6q2D.js} +7 -7
- package/dist/component/signature-rac-BRyM06Vz.js +918 -0
- package/dist/component/{submit-button-rac-BFywt2Fn.js → submit-button-rac-DaCRjZlQ.js} +15 -15
- package/dist/component/{tags-field-rac-rpzvIn_0.js → tags-field-rac-CEdfh-EQ.js} +17 -17
- package/dist/component/{tags-rac-DVLGSSvh.js → tags-rac-CGSTQ0qK.js} +1 -1
- package/dist/component/{text-area-field-rac-BfVrtvl8.js → text-area-field-rac-C-EHPWwQ.js} +15 -15
- package/dist/component/{text-area-rac-VP-yXdJ6.js → text-area-rac-Df1nSb2q.js} +1 -1
- package/dist/component/{text-input-field-rac-BlaXiXoF.js → text-input-field-rac-DmCZtBi_.js} +4 -4
- package/dist/component/{text-input-headless-ChCTtqUX.js → text-input-headless-DAxEZP1P.js} +8 -8
- package/dist/component/{text-input-rac-CG-Oo3nZ.js → text-input-rac-DgpO17dl.js} +1 -1
- package/dist/component/{time-input-rac-CzUGIr2X.js → time-input-rac-Dld_tLub.js} +10 -10
- package/dist/component/{url-input-field-rac-BHF6gZlT.js → url-input-field-rac-DHZ6bpxZ.js} +10 -10
- package/dist/component/{url-input-rac-DouQt3DF.js → url-input-rac-CZlWy5RB.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-AklIMCCI.js → use-dropdown-option-class-name-opBd-YJA.js} +3 -3
- package/dist/component/{use-dropdown-trigger-class-name-COJhxT4T.js → use-dropdown-trigger-class-name-BGQH0WCO.js} +10 -10
- package/dist/component/use-element-state-class-name-B2ecLjwN.js +20 -0
- package/dist/component/{use-hoverable-input-class-name-CtHJHqiV.js → use-hoverable-input-class-name-B42rAp82.js} +3 -3
- package/dist/component/{use-service-options-base-2u1I6l-t.js → use-service-options-base-D60-jNUT.js} +4 -4
- package/dist/component/use-text-input-class-name-DGpCdZ_e.js +6 -0
- package/dist/form.d.ts +10 -0
- package/package.json +2 -2
- package/dist/component/field-rac.module-DQxyEwK7.js +0 -26
- package/dist/component/signature-rac-6r_gWBD2.js +0 -794
- package/dist/component/use-element-state-class-name-CCe7Cvsu.js +0 -22
- package/dist/component/use-text-input-class-name-Bnfv7ZsJ.js +0 -6
|
@@ -3,19 +3,19 @@ import { RicosViewer as re } from "@wix/ricos/viewer";
|
|
|
3
3
|
import D from "classnames";
|
|
4
4
|
import { RadioGroup as se, RadioField as G, RadioButton as Y, TextField as ae, Group as le, Input as ie } from "react-aria-components";
|
|
5
5
|
import { debounce as ce } from "ts-debounce";
|
|
6
|
-
import {
|
|
6
|
+
import { ax as Q, bh as L, be as B, br as ue, b9 as j, bj as me, I as pe, U as de, q as Ie, v as fe, p as Ce, r as Ee } from "./form-D9IxiDXP.js";
|
|
7
7
|
import { f as E, a as y } from "./find-child-C60k4CxG.js";
|
|
8
8
|
import { a as W } from "./format-currency-BwShJ9vM.js";
|
|
9
|
-
import { D as he, E as Oe } from "./field-error-headless-
|
|
10
|
-
import { L as
|
|
11
|
-
import { a as
|
|
9
|
+
import { D as he, E as Oe } from "./field-error-headless-DU0YsEXR.js";
|
|
10
|
+
import { L as _e } from "./field-label-headless-CvdTZi6i.js";
|
|
11
|
+
import { a as be, b as ye } from "./numeric-input-utils-CuBMi4-a.js";
|
|
12
12
|
import { g as Ne } from "./payment-field-utils-DobiK5Xh.js";
|
|
13
13
|
import { u as ge } from "./use-synced-display-value-DcAxdn3M.js";
|
|
14
14
|
import { E as Fe } from "./error-icon-hZxQ6DEy.js";
|
|
15
|
-
import { s as v } from "./field-rac.module-
|
|
15
|
+
import { s as v } from "./field-rac.module-BIBNQEOK.js";
|
|
16
16
|
import { o as De } from "./options-rac.module-_THNq6Qq.js";
|
|
17
|
-
import { u as ve } from "./use-element-state-class-name-
|
|
18
|
-
import { u as Se } from "./use-text-input-class-name-
|
|
17
|
+
import { u as ve } from "./use-element-state-class-name-B2ecLjwN.js";
|
|
18
|
+
import { u as Se } from "./use-text-input-class-name-DGpCdZ_e.js";
|
|
19
19
|
function Re(e, t) {
|
|
20
20
|
return e.reduce((o, r) => (o[r[t]] = r, o), {});
|
|
21
21
|
}
|
|
@@ -35,10 +35,10 @@ function z(e, t) {
|
|
|
35
35
|
quantity: 1
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function xe(e) {
|
|
39
39
|
return e.find((t) => t.priceType === Q.DYNAMIC_PRICE);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function Pe(e, t) {
|
|
42
42
|
return (e == null ? void 0 : e.productId) === (t == null ? void 0 : t.id) ? String((e == null ? void 0 : e.price) ?? "") : "";
|
|
43
43
|
}
|
|
44
44
|
function Me(e, t, o) {
|
|
@@ -48,27 +48,27 @@ function Me(e, t, o) {
|
|
|
48
48
|
] : [];
|
|
49
49
|
}
|
|
50
50
|
const s = ({ children: e }) => {
|
|
51
|
-
const { id: t, value: o, onChange: r, disabled: a, required: u, onBlur: m, onFocus: I, validation: i, addOther: p, addOtherPlaceholder: c, FieldLayout: h, hasError:
|
|
52
|
-
var C,
|
|
53
|
-
return ((
|
|
51
|
+
const { id: t, value: o, onChange: r, disabled: a, required: u, onBlur: m, onFocus: I, validation: i, addOther: p, addOtherPlaceholder: c, FieldLayout: h, hasError: b } = L(), { labelId: O } = B(), { t: f } = ue(), { currency: A, regionalFormat: N } = j(), d = o == null ? void 0 : o[0], g = M(() => {
|
|
52
|
+
var C, P;
|
|
53
|
+
return ((P = (C = i == null ? void 0 : i.predefined) == null ? void 0 : C.paymentOptions) == null ? void 0 : P.products) || [];
|
|
54
54
|
}, [
|
|
55
55
|
i
|
|
56
56
|
]), T = M(() => Le(g), [
|
|
57
57
|
g
|
|
58
|
-
]), l = M(() => p ?
|
|
58
|
+
]), l = M(() => p ? xe(g) : void 0, [
|
|
59
59
|
g,
|
|
60
60
|
p
|
|
61
|
-
]), J =
|
|
61
|
+
]), J = Pe(d, l), [q, x] = ge({
|
|
62
62
|
sourceValue: J,
|
|
63
63
|
format: (C) => ye(String(C ?? ""), N),
|
|
64
64
|
regionalFormat: N
|
|
65
65
|
}), w = F((C) => {
|
|
66
|
-
r(Me(C, d, T)),
|
|
66
|
+
r(Me(C, d, T)), x("");
|
|
67
67
|
}, [
|
|
68
68
|
r,
|
|
69
69
|
T,
|
|
70
70
|
d,
|
|
71
|
-
|
|
71
|
+
x
|
|
72
72
|
]), k = F((C) => {
|
|
73
73
|
l && r(typeof C == "number" ? [
|
|
74
74
|
z(l, String(C))
|
|
@@ -80,8 +80,8 @@ const s = ({ children: e }) => {
|
|
|
80
80
|
k
|
|
81
81
|
]), K = F((C) => {
|
|
82
82
|
(d == null ? void 0 : d.productId) !== (l == null ? void 0 : l.id) && r(void 0);
|
|
83
|
-
const { validInput:
|
|
84
|
-
P
|
|
83
|
+
const { validInput: P, validNumber: ne } = be(C.target.value, Ae, q, N);
|
|
84
|
+
x(P), $(ne);
|
|
85
85
|
}, [
|
|
86
86
|
N,
|
|
87
87
|
r,
|
|
@@ -89,7 +89,7 @@ const s = ({ children: e }) => {
|
|
|
89
89
|
l,
|
|
90
90
|
q,
|
|
91
91
|
$,
|
|
92
|
-
|
|
92
|
+
x
|
|
93
93
|
]), H = (d == null ? void 0 : d.productId) || null, X = F(() => {
|
|
94
94
|
l != null && l.id && H !== l.id && w(l.id);
|
|
95
95
|
}, [
|
|
@@ -105,7 +105,7 @@ const s = ({ children: e }) => {
|
|
|
105
105
|
value: H,
|
|
106
106
|
onChange: w,
|
|
107
107
|
isDisabled: a,
|
|
108
|
-
isInvalid:
|
|
108
|
+
isInvalid: b,
|
|
109
109
|
isRequired: u,
|
|
110
110
|
onBlur: m,
|
|
111
111
|
onFocus: I
|
|
@@ -123,10 +123,10 @@ const s = ({ children: e }) => {
|
|
|
123
123
|
renderDescription: () => /* @__PURE__ */ n.createElement(n.Fragment, null, te, ee)
|
|
124
124
|
});
|
|
125
125
|
}, Be = ({ children: e, className: t, ...o }) => {
|
|
126
|
-
const { productsById: r, addOther: a, customAmount: u, onCustomAmountInputChange: m, currency: I, t: i, placeholder: p, customAmountProductId: c, onFocusCustomInput: h } = o, { hasError:
|
|
126
|
+
const { productsById: r, addOther: a, customAmount: u, onCustomAmountInputChange: m, currency: I, t: i, placeholder: p, customAmountProductId: c, onFocusCustomInput: h } = o, { hasError: b } = L(), O = E(e, s.Options), f = E(e, s.OtherInput);
|
|
127
127
|
return /* @__PURE__ */ n.createElement("div", {
|
|
128
128
|
className: t,
|
|
129
|
-
"data-invalid":
|
|
129
|
+
"data-invalid": b
|
|
130
130
|
}, O ? y(O, {
|
|
131
131
|
productsById: r
|
|
132
132
|
}) : null, a && c && /* @__PURE__ */ n.createElement(G, {
|
|
@@ -177,7 +177,7 @@ const s = ({ children: e }) => {
|
|
|
177
177
|
var O, f;
|
|
178
178
|
(f = (O = h.current) == null ? void 0 : O.querySelector("input")) == null || f.focus();
|
|
179
179
|
}, u);
|
|
180
|
-
const
|
|
180
|
+
const b = i ? y(i, {
|
|
181
181
|
price: a
|
|
182
182
|
}) : null;
|
|
183
183
|
return /* @__PURE__ */ n.createElement(G, {
|
|
@@ -185,7 +185,7 @@ const s = ({ children: e }) => {
|
|
|
185
185
|
}, /* @__PURE__ */ n.createElement(Y, {
|
|
186
186
|
className: t,
|
|
187
187
|
ref: h
|
|
188
|
-
}, /* @__PURE__ */ n.createElement(n.Fragment, null, c && p,
|
|
188
|
+
}, /* @__PURE__ */ n.createElement(n.Fragment, null, c && p, b, !c && p)));
|
|
189
189
|
}, je = ({ className: e, ...t }) => {
|
|
190
190
|
const { price: o } = t, { currency: r, regionalFormat: a } = j(), { value: u } = W({
|
|
191
191
|
amount: o,
|
|
@@ -204,7 +204,7 @@ const s = ({ children: e }) => {
|
|
|
204
204
|
S.Value = je;
|
|
205
205
|
S.Currency = qe;
|
|
206
206
|
const R = ({ children: e, className: t, ...o }) => {
|
|
207
|
-
const { customAmount: r, onCustomAmountInputChange: a, currency: u, t: m, placeholder: I, customAmountProductId: i, onFocusCustomInput: p } = o, { disabled: c, hasError: h } = L(), { labelId:
|
|
207
|
+
const { customAmount: r, onCustomAmountInputChange: a, currency: u, t: m, placeholder: I, customAmountProductId: i, onFocusCustomInput: p } = o, { disabled: c, hasError: h } = L(), { labelId: b, prefixId: O } = B(), f = E(e, R.Currency), A = E(e, R.Value), N = F((g) => {
|
|
208
208
|
a({
|
|
209
209
|
target: {
|
|
210
210
|
value: g
|
|
@@ -218,7 +218,7 @@ const R = ({ children: e, className: t, ...o }) => {
|
|
|
218
218
|
p
|
|
219
219
|
]);
|
|
220
220
|
return /* @__PURE__ */ n.createElement(ae, {
|
|
221
|
-
"aria-labelledby": `${
|
|
221
|
+
"aria-labelledby": `${b} ${O}`,
|
|
222
222
|
value: r,
|
|
223
223
|
onChange: N,
|
|
224
224
|
onFocus: d,
|
|
@@ -258,13 +258,13 @@ const R = ({ children: e, className: t, ...o }) => {
|
|
|
258
258
|
R.Currency = we;
|
|
259
259
|
R.Value = He;
|
|
260
260
|
U.Option = S;
|
|
261
|
-
s.Label =
|
|
261
|
+
s.Label = _e;
|
|
262
262
|
s.Control = Be;
|
|
263
263
|
s.Options = U;
|
|
264
264
|
s.OtherInput = R;
|
|
265
265
|
s.Description = he;
|
|
266
266
|
s.Error = Oe;
|
|
267
|
-
const Ue = "_control_1fjsf_1", ke = "_options_1fjsf_7", $e = "_option_1fjsf_7", Ve = "_optionHover_1fjsf_44", Ge = "_optionSelected_1fjsf_44", Ye = "_optionCurrency_1fjsf_94", Qe = "_otherInput_1fjsf_98", We = "_otherInputCurrency_1fjsf_117",
|
|
267
|
+
const Ue = "_control_1fjsf_1", ke = "_options_1fjsf_7", $e = "_option_1fjsf_7", Ve = "_optionHover_1fjsf_44", Ge = "_optionSelected_1fjsf_44", Ye = "_optionCurrency_1fjsf_94", Qe = "_otherInput_1fjsf_98", We = "_otherInputCurrency_1fjsf_117", _ = {
|
|
268
268
|
control: Ue,
|
|
269
269
|
options: ke,
|
|
270
270
|
option: $e,
|
|
@@ -277,11 +277,11 @@ const Ue = "_control_1fjsf_1", ke = "_options_1fjsf_7", $e = "_option_1fjsf_7",
|
|
|
277
277
|
content: e,
|
|
278
278
|
locale: t
|
|
279
279
|
}), Je = {
|
|
280
|
-
base:
|
|
281
|
-
selected:
|
|
282
|
-
hover:
|
|
280
|
+
base: _.option,
|
|
281
|
+
selected: _.optionSelected,
|
|
282
|
+
hover: _.optionHover
|
|
283
283
|
}, Ke = () => {
|
|
284
|
-
const e = Se(
|
|
284
|
+
const e = Se(_.otherInput), t = ve({
|
|
285
285
|
globalClasses: Ee,
|
|
286
286
|
moduleClasses: Je
|
|
287
287
|
});
|
|
@@ -290,20 +290,20 @@ const Ue = "_control_1fjsf_1", ke = "_options_1fjsf_7", $e = "_option_1fjsf_7",
|
|
|
290
290
|
}, /* @__PURE__ */ n.createElement(s.Label.Required, {
|
|
291
291
|
className: D(de, v.requiredMark)
|
|
292
292
|
})), /* @__PURE__ */ n.createElement(s.Control, {
|
|
293
|
-
className:
|
|
293
|
+
className: _.control
|
|
294
294
|
}, /* @__PURE__ */ n.createElement(s.Options, {
|
|
295
|
-
className: D(Ie, De.options,
|
|
295
|
+
className: D(Ie, De.options, _.options)
|
|
296
296
|
}, /* @__PURE__ */ n.createElement(s.Options.Option, {
|
|
297
297
|
className: ({ isSelected: o, isHovered: r }) => t({
|
|
298
298
|
isSelected: o,
|
|
299
299
|
isHovered: r
|
|
300
300
|
})
|
|
301
301
|
}, /* @__PURE__ */ n.createElement(s.Options.Option.Value, null), /* @__PURE__ */ n.createElement(s.Options.Option.Currency, {
|
|
302
|
-
className:
|
|
302
|
+
className: _.optionCurrency
|
|
303
303
|
}))), /* @__PURE__ */ n.createElement(s.OtherInput, {
|
|
304
304
|
className: e
|
|
305
305
|
}, /* @__PURE__ */ n.createElement(s.OtherInput.Currency, {
|
|
306
|
-
className:
|
|
306
|
+
className: _.otherInputCurrency
|
|
307
307
|
}), /* @__PURE__ */ n.createElement(s.OtherInput.Value, {
|
|
308
308
|
className: v.innerInput
|
|
309
309
|
}))), /* @__PURE__ */ n.createElement(s.Error, {
|
package/dist/component/{dropdown-field-headless-DzDE-6ha.js → dropdown-field-headless-C7l2TQYy.js}
RENAMED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import e, { useState as E, useCallback as g, useRef as A } from "react";
|
|
2
|
-
import { UNSAFE_PortalProvider as
|
|
3
|
-
import { Select as
|
|
4
|
-
import {
|
|
2
|
+
import { UNSAFE_PortalProvider as j } from "react-aria";
|
|
3
|
+
import { Select as M, SelectValue as U, ListBoxItem as _ } from "react-aria-components";
|
|
4
|
+
import { bh as f, be as O, bj as z } from "./form-D9IxiDXP.js";
|
|
5
5
|
import { f as d, a as F } from "./find-child-C60k4CxG.js";
|
|
6
|
-
import { D as G, E as H } from "./field-error-headless-
|
|
7
|
-
import { L as J } from "./field-label-headless-
|
|
6
|
+
import { D as G, E as H } from "./field-error-headless-DU0YsEXR.js";
|
|
7
|
+
import { L as J } from "./field-label-headless-CvdTZi6i.js";
|
|
8
8
|
import { S as K, N as Q } from "./non-modal-popover-DtIMXHbe.js";
|
|
9
|
-
import { a as W } from "./use-dropdown-trigger-class-name-
|
|
10
|
-
import { V as X } from "./use-dropdown-option-class-name-
|
|
9
|
+
import { a as W } from "./use-dropdown-trigger-class-name-BGQH0WCO.js";
|
|
10
|
+
import { V as X } from "./use-dropdown-option-class-name-opBd-YJA.js";
|
|
11
11
|
const r = ({ children: n }) => {
|
|
12
|
-
const { id: l, value: o, defaultValue: a, options: u = [], readOnly: s, onChange: t, placeholder: m, disabled: i, required: v, onBlur: y, onFocus: D, FieldLayout:
|
|
12
|
+
const { id: l, value: o, defaultValue: a, options: u = [], readOnly: s, onChange: t, placeholder: m, disabled: i, required: v, onBlur: y, onFocus: D, FieldLayout: h, hasError: C } = f(), [I, L] = E(!1), p = W(l), [B, N] = E(null), P = o && u.some((c) => (c.value ?? c.label) === o) ? o : a || null, { labelId: S } = O(), V = g((c) => {
|
|
13
13
|
s || t(typeof c == "string" ? c : null);
|
|
14
14
|
}, [
|
|
15
15
|
t,
|
|
16
16
|
s
|
|
17
|
-
]), T = g((c) =>
|
|
17
|
+
]), T = g((c) => L(c && !i && !s), [
|
|
18
18
|
i,
|
|
19
19
|
s
|
|
20
20
|
]), x = d(n, r.Label), R = d(n, r.Trigger), w = d(n, r.Options), k = d(n, r.Description), q = d(n, r.Error);
|
|
21
|
-
return /* @__PURE__ */ e.createElement(
|
|
21
|
+
return /* @__PURE__ */ e.createElement(h, {
|
|
22
22
|
fieldId: l,
|
|
23
23
|
renderLabel: () => x,
|
|
24
24
|
renderInput: () => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", {
|
|
@@ -26,16 +26,16 @@ const r = ({ children: n }) => {
|
|
|
26
26
|
style: {
|
|
27
27
|
display: "contents"
|
|
28
28
|
}
|
|
29
|
-
}), /* @__PURE__ */ e.createElement(
|
|
29
|
+
}), /* @__PURE__ */ e.createElement(j, {
|
|
30
30
|
getContainer: () => B
|
|
31
|
-
}, /* @__PURE__ */ e.createElement(
|
|
31
|
+
}, /* @__PURE__ */ e.createElement(M, {
|
|
32
32
|
"aria-labelledby": S,
|
|
33
33
|
value: P,
|
|
34
|
-
isOpen: p ||
|
|
34
|
+
isOpen: p || I && !i && !s,
|
|
35
35
|
onOpenChange: p ? void 0 : T,
|
|
36
36
|
onChange: V,
|
|
37
37
|
isDisabled: i,
|
|
38
|
-
isInvalid:
|
|
38
|
+
isInvalid: C,
|
|
39
39
|
isRequired: v,
|
|
40
40
|
placeholder: m,
|
|
41
41
|
onBlur: y,
|
|
@@ -57,7 +57,7 @@ const r = ({ children: n }) => {
|
|
|
57
57
|
className: l,
|
|
58
58
|
"data-invalid": s || void 0,
|
|
59
59
|
"data-loading": t || void 0
|
|
60
|
-
}, /* @__PURE__ */ e.createElement(
|
|
60
|
+
}, /* @__PURE__ */ e.createElement(U, null), n);
|
|
61
61
|
}, b = ({ children: n, className: l, ...o }) => {
|
|
62
62
|
const { isForcedOpen: a } = o, { options: u = [] } = f(), s = d(n, b.Option);
|
|
63
63
|
return /* @__PURE__ */ e.createElement(Q, {
|
|
@@ -74,7 +74,7 @@ const r = ({ children: n }) => {
|
|
|
74
74
|
}))));
|
|
75
75
|
}, Z = ({ className: n, ...l }) => {
|
|
76
76
|
const { value: o, label: a } = l;
|
|
77
|
-
return /* @__PURE__ */ e.createElement(
|
|
77
|
+
return /* @__PURE__ */ e.createElement(_, {
|
|
78
78
|
className: n,
|
|
79
79
|
id: o,
|
|
80
80
|
textValue: a
|
|
@@ -1,14 +1,14 @@
|
|
|
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-C7l2TQYy.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 { I as i, U as p, K as E, v as _, p as D } from "./form-
|
|
10
|
-
import { u as C } from "./use-dropdown-option-class-name-
|
|
11
|
-
import { u as O } from "./use-dropdown-trigger-class-name-
|
|
8
|
+
import { s as o } from "./field-rac.module-BIBNQEOK.js";
|
|
9
|
+
import { I as i, U as p, K as E, v as _, p as D } from "./form-D9IxiDXP.js";
|
|
10
|
+
import { u as C } from "./use-dropdown-option-class-name-opBd-YJA.js";
|
|
11
|
+
import { u as O } from "./use-dropdown-trigger-class-name-BGQH0WCO.js";
|
|
12
12
|
const R = ({ content: t, locale: s }) => /* @__PURE__ */ e.createElement(m, {
|
|
13
13
|
content: t,
|
|
14
14
|
locale: s
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import o, { useMemo as n } from "react";
|
|
2
|
-
import {
|
|
3
|
-
import { C as l } from "./checkbox-field-rac-
|
|
2
|
+
import { bh as a, br as c, aj as i } from "./form-D9IxiDXP.js";
|
|
3
|
+
import { C as l } from "./checkbox-field-rac-DLazY-iO.js";
|
|
4
4
|
const p = (e) => ({
|
|
5
5
|
nodes: [
|
|
6
6
|
{
|
package/dist/component/{email-input-field-rac-CUi08-gD.js → email-input-field-rac-rWyojsu0.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { RicosViewer as ie } from "@wix/ricos/viewer";
|
|
2
|
-
import
|
|
2
|
+
import j from "classnames";
|
|
3
3
|
import u, { createContext as z, useContext as Z, createElement as R, isValidElement as U, 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 {
|
|
5
|
+
import { be as fe, br as ge, bc as ve, d as ye, bh as Ee, bl as de, bf as be, ah as Se, I as Oe, U as he, v as Ie, p as Ne, a2 as Ae } from "./form-D9IxiDXP.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 B } from "./text-input-headless-
|
|
14
|
-
import { E as
|
|
15
|
-
import { s as H } from "./field-rac.module-
|
|
16
|
-
import { u as
|
|
13
|
+
import { T as B } from "./text-input-headless-DAxEZP1P.js";
|
|
14
|
+
import { E as De } from "./error-icon-hZxQ6DEy.js";
|
|
15
|
+
import { s as H } from "./field-rac.module-BIBNQEOK.js";
|
|
16
|
+
import { u as je } from "./use-text-input-class-name-DGpCdZ_e.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
|
"&": "&",
|
|
@@ -243,14 +243,14 @@ function Ge(e, t, a, o, c, r) {
|
|
|
243
243
|
return l;
|
|
244
244
|
}, []);
|
|
245
245
|
}
|
|
246
|
-
var
|
|
246
|
+
var D = S([{
|
|
247
247
|
dummy: !0,
|
|
248
248
|
children: e || []
|
|
249
249
|
}], T, M(e || []));
|
|
250
|
-
return G(
|
|
250
|
+
return G(D[0]);
|
|
251
251
|
}
|
|
252
252
|
function $e(e) {
|
|
253
|
-
var t = e.children, a = e.count, o = e.parent, c = e.i18nKey, r = e.context, g = e.tOptions, v = g === void 0 ? {} : g, d = e.values, b = e.defaults, T = e.components, O = e.ns, F = e.i18n, A = e.t, S = e.shouldUnescape,
|
|
253
|
+
var t = e.children, a = e.count, o = e.parent, c = e.i18nKey, r = e.context, g = e.tOptions, v = g === void 0 ? {} : g, d = e.values, b = e.defaults, T = e.components, O = e.ns, F = e.i18n, A = e.t, S = e.shouldUnescape, D = ee(e, Ve), y = Z(He) || {}, h = y.i18n, s = y.defaultNS, i = F || h || Ke();
|
|
254
254
|
if (!i)
|
|
255
255
|
return Ue("You will need to pass in an i18next instance by using i18nextReactModule"), t;
|
|
256
256
|
var I = A || i.t.bind(i) || function(q) {
|
|
@@ -270,7 +270,7 @@ function $e(e) {
|
|
|
270
270
|
defaultValue: E,
|
|
271
271
|
ns: n
|
|
272
272
|
}), V = N ? I(N, x) : E, P = Ge(T || t, V, i, l, x, S), _ = o !== void 0 ? o : l.defaultTransParent;
|
|
273
|
-
return _ ? R(_,
|
|
273
|
+
return _ ? R(_, D, P) : P;
|
|
274
274
|
}
|
|
275
275
|
const We = "email-mistype-suggestion", Xe = "email-mistype-suggestion-link", ae = /* @__PURE__ */ z(void 0);
|
|
276
276
|
function Je() {
|
|
@@ -449,13 +449,13 @@ const Qe = ({ activeSuggestion: e, applySuggestion: t, children: a }) => /* @__P
|
|
|
449
449
|
validate: v
|
|
450
450
|
};
|
|
451
451
|
}, f = ({ children: e }) => {
|
|
452
|
-
const { id: t, value: a, onChange: o, disabled: c, readOnly: r, required: g, hasError: v, onBlur: d, onFocus: b, error: T, description: O, FieldLayout: F } = Ee(), { isMistyped: A, suggestedEmail: S, validate:
|
|
452
|
+
const { id: t, value: a, onChange: o, disabled: c, readOnly: r, required: g, hasError: v, onBlur: d, onFocus: b, error: T, description: O, FieldLayout: F } = Ee(), { isMistyped: A, suggestedEmail: S, validate: D } = at({
|
|
453
453
|
email: a,
|
|
454
454
|
hasError: v
|
|
455
455
|
}), { setFocusedFieldId: y } = de(), s = A && (!r && !c) && S ? S : void 0, i = be(t, T, O, s), I = () => {
|
|
456
456
|
o(s), y(t);
|
|
457
457
|
}, l = () => {
|
|
458
|
-
|
|
458
|
+
D(), d == null || d();
|
|
459
459
|
}, n = C(e, f.Label), E = C(e, f.Input), k = C(e, f.Description), N = C(e, f.Error), m = C(e, f.Suggestion);
|
|
460
460
|
return /* @__PURE__ */ u.createElement(Se.Provider, {
|
|
461
461
|
value: i
|
|
@@ -490,19 +490,19 @@ const nt = "_suggestion_lysve_1", ot = {
|
|
|
490
490
|
content: e,
|
|
491
491
|
locale: t
|
|
492
492
|
}), ht = () => {
|
|
493
|
-
const e =
|
|
493
|
+
const e = je();
|
|
494
494
|
return /* @__PURE__ */ u.createElement(f, null, /* @__PURE__ */ u.createElement(f.Label, {
|
|
495
|
-
className:
|
|
495
|
+
className: j(Oe, H.label)
|
|
496
496
|
}, /* @__PURE__ */ u.createElement(f.Label.Required, {
|
|
497
|
-
className:
|
|
497
|
+
className: j(he, H.requiredMark)
|
|
498
498
|
})), /* @__PURE__ */ u.createElement(f.Input, {
|
|
499
499
|
className: e
|
|
500
500
|
}), /* @__PURE__ */ u.createElement(f.Error, {
|
|
501
|
-
className:
|
|
502
|
-
}, /* @__PURE__ */ u.createElement(
|
|
503
|
-
className:
|
|
501
|
+
className: j(Ie, H.error)
|
|
502
|
+
}, /* @__PURE__ */ u.createElement(De, null), /* @__PURE__ */ u.createElement(f.Error.Text, null)), /* @__PURE__ */ u.createElement(f.Description, {
|
|
503
|
+
className: j(Ne, H.description)
|
|
504
504
|
}, rt), /* @__PURE__ */ u.createElement(f.Suggestion, {
|
|
505
|
-
className:
|
|
505
|
+
className: j(Ae, ot.suggestion)
|
|
506
506
|
}));
|
|
507
507
|
};
|
|
508
508
|
export {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import t, { useState as
|
|
1
|
+
import t, { useState as $, useMemo as B, useCallback as V, useRef as k } from "react";
|
|
2
2
|
import x from "classnames";
|
|
3
3
|
import { NumberField as q, CheckboxField as J, CheckboxButton as Q, Group as W, Input as Y, Button as w } from "react-aria-components";
|
|
4
|
-
import {
|
|
4
|
+
import { bn as z, bo as H, bd as K, bi as P, aF as Z, bh as L, be as X, bj as j, al as ee, I as te, h as se, m as ne, l as oe } from "./form-D9IxiDXP.js";
|
|
5
5
|
import { f as C, a as y } from "./find-child-C60k4CxG.js";
|
|
6
|
-
import { L as re } from "./field-label-headless-
|
|
6
|
+
import { L as re } from "./field-label-headless-CvdTZi6i.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 M } 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-Bqo0QILF.js";
|
|
11
|
+
import { s as v } from "./field-rac.module-BIBNQEOK.js";
|
|
12
|
+
import { u as ue } from "./use-element-state-class-name-B2ecLjwN.js";
|
|
13
|
+
import { u as me } from "./use-text-input-class-name-DGpCdZ_e.js";
|
|
14
14
|
const ie = [], de = ({ id: e, fields: s, layout: a, value: o, onChange: n, errors: l = ie, validation: c }) => {
|
|
15
|
-
const [m, i] =
|
|
15
|
+
const [m, i] = $((o == null ? void 0 : o.length) || 0), u = B(() => o ?? [], [
|
|
16
16
|
o
|
|
17
17
|
]), d = z(), g = H(), E = K(), { validateFields: p } = P(), F = c.predefined.objectArrayOptions.maxItems, O = B(() => Z({
|
|
18
18
|
form: {
|
|
@@ -49,7 +49,7 @@ const ie = [], de = ({ id: e, fields: s, layout: a, value: o, onChange: n, error
|
|
|
49
49
|
]), D = V((b) => (I, h) => {
|
|
50
50
|
const N = Array.from({
|
|
51
51
|
length: m
|
|
52
|
-
}, (A,
|
|
52
|
+
}, (A, U) => u[U] ?? {});
|
|
53
53
|
N[b] = {
|
|
54
54
|
...N[b],
|
|
55
55
|
[I]: h
|
|
@@ -120,7 +120,7 @@ const ie = [], de = ({ id: e, fields: s, layout: a, value: o, onChange: n, error
|
|
|
120
120
|
}, n, c, l);
|
|
121
121
|
}, ge = ({ className: e }) => {
|
|
122
122
|
const { id: s } = L(), { inputId: a, ariaDescribedBy: o } = X(), n = k(null);
|
|
123
|
-
return
|
|
123
|
+
return j(() => {
|
|
124
124
|
var l;
|
|
125
125
|
(l = n.current) == null || l.focus();
|
|
126
126
|
}, s), /* @__PURE__ */ t.createElement(Y, {
|
|
@@ -138,7 +138,7 @@ const ie = [], de = ({ id: e, fields: s, layout: a, value: o, onChange: n, error
|
|
|
138
138
|
className: s
|
|
139
139
|
}, e), S = ({ children: e, className: s, ...a }) => {
|
|
140
140
|
const { guestCount: o, onGuestCountChange: n } = a, { id: l, label: c, disabled: m, readOnly: i, onBlur: u, onFocus: d } = L(), { inputId: g, ariaDescribedBy: E } = X(), p = k(null);
|
|
141
|
-
|
|
141
|
+
j(() => {
|
|
142
142
|
var G;
|
|
143
143
|
(G = p.current) == null || G.focus();
|
|
144
144
|
}, l);
|
|
@@ -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-vqR4TN-z.js";
|
|
5
5
|
import { E as i } from "./error-icon-hZxQ6DEy.js";
|
|
6
|
-
import { s as o } from "./field-rac.module-
|
|
7
|
-
import { I as E, U as p, P as R, Q as O, v as _, p as L, R as I } from "./form-
|
|
6
|
+
import { s as o } from "./field-rac.module-BIBNQEOK.js";
|
|
7
|
+
import { I as E, U as p, P as R, Q as O, v as _, p as L, R as I } from "./form-D9IxiDXP.js";
|
|
8
8
|
import { o as D } 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-B2ecLjwN.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-Ct41F8cQ.js → field-error-headless-DU0YsEXR.js}
RENAMED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import t, { createContext as m, useContext as M } from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { bh as c, be as i, b9 as f, aS as h, aT as x } from "./form-D9IxiDXP.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", {
|
|
6
6
|
className: r,
|
|
7
7
|
id: a,
|
|
8
|
-
"data-hook":
|
|
8
|
+
"data-hook": h(o)
|
|
9
9
|
}, e({
|
|
10
10
|
content: s,
|
|
11
11
|
locale: n
|
|
12
12
|
})) : null;
|
|
13
|
-
}, l = /* @__PURE__ */ m(void 0),
|
|
13
|
+
}, l = /* @__PURE__ */ m(void 0), b = l.Provider, v = ({ className: r }) => {
|
|
14
14
|
const e = M(l);
|
|
15
15
|
return /* @__PURE__ */ t.createElement("span", {
|
|
16
16
|
className: r
|
|
17
17
|
}, e ?? "");
|
|
18
18
|
}, D = ({ className: r, children: e, ...s }) => {
|
|
19
19
|
const { hasError: o, errorMessage: a } = s, { target: n, hasError: E, errorMessage: d } = c(), { errorId: g } = i(), u = o ?? E, p = a ?? d;
|
|
20
|
-
return u ? /* @__PURE__ */ t.createElement(
|
|
20
|
+
return u ? /* @__PURE__ */ t.createElement(b, {
|
|
21
21
|
value: p
|
|
22
22
|
}, /* @__PURE__ */ t.createElement("div", {
|
|
23
23
|
id: g,
|
|
24
|
-
"data-hook":
|
|
24
|
+
"data-hook": x(n),
|
|
25
25
|
className: r
|
|
26
26
|
}, e)) : null;
|
|
27
27
|
};
|
|
@@ -29,6 +29,6 @@ D.Text = v;
|
|
|
29
29
|
export {
|
|
30
30
|
H as D,
|
|
31
31
|
D as E,
|
|
32
|
-
|
|
32
|
+
b as a,
|
|
33
33
|
v as b
|
|
34
34
|
};
|
package/dist/component/{field-label-headless-DUqBV42_.js → field-label-headless-CvdTZi6i.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { bh as m, ay as d, az as p, be as D, br as B } from "./form-D9IxiDXP.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 o = "_label_179ql_1", e = "_requiredMark_179ql_11", t = "_input_179ql_16", n = "_inputGroup_179ql_17", c = "_inputHover_179ql_71", _ = "_innerInput_179ql_132", r = "_dropdownTrigger_179ql_182", p = "_dropdownIcon_179ql_192", l = "_dropdownPopover_179ql_211", s = "_selectPopover_179ql_217", i = "_selectOption_179ql_244", u = "_selectOptionHover_179ql_267", d = "_selectOptionSelected_179ql_271", q = "_selectOptionWithoutFocusRing_179ql_275", h = "_description_179ql_281", b = "_error_179ql_297", k = "_checkbox_179ql_316", v = "_checkboxInput_179ql_339", I = "_checkboxInputSelected_179ql_378", x = "_checkboxInputHover_179ql_382", O = {
|
|
2
|
+
label: o,
|
|
3
|
+
requiredMark: e,
|
|
4
|
+
input: t,
|
|
5
|
+
inputGroup: n,
|
|
6
|
+
inputHover: c,
|
|
7
|
+
innerInput: _,
|
|
8
|
+
dropdownTrigger: r,
|
|
9
|
+
dropdownIcon: p,
|
|
10
|
+
dropdownPopover: l,
|
|
11
|
+
selectPopover: s,
|
|
12
|
+
selectOption: i,
|
|
13
|
+
selectOptionHover: u,
|
|
14
|
+
selectOptionSelected: d,
|
|
15
|
+
selectOptionWithoutFocusRing: q,
|
|
16
|
+
description: h,
|
|
17
|
+
error: b,
|
|
18
|
+
checkbox: k,
|
|
19
|
+
checkboxInput: v,
|
|
20
|
+
checkboxInputSelected: I,
|
|
21
|
+
checkboxInputHover: x
|
|
22
|
+
};
|
|
23
|
+
export {
|
|
24
|
+
O as s
|
|
25
|
+
};
|