@wix/form-elements 1.166.0 → 1.167.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-BXpWILhi.js → appointment-rac-BbXyKTd7.js} +72 -72
- package/dist/component/{bookings-address-rac-Cf--TgsR.js → bookings-address-rac-VJkR_U9L.js} +1 -1
- package/dist/component/{bookings-email-rac-BtB8owOl.js → bookings-email-rac-_EupwXpQ.js} +1 -1
- package/dist/component/{bookings-first-name-rac-CBFDjB_k.js → bookings-first-name-rac-DTZixHYj.js} +1 -1
- package/dist/component/{bookings-header-rac-CrJORcuL.js → bookings-header-rac-BKbKTv5g.js} +1 -1
- package/dist/component/{bookings-last-name-rac-erG4ldFt.js → bookings-last-name-rac-BDy860-C.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-Di4qLQUH.js → bookings-login-bar-rac-DgNP-YNZ.js} +5 -5
- package/dist/component/{bookings-phone-rac-DdM48Obh.js → bookings-phone-rac-B_I6n96b.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-Cl8zOiU1.js → bookings-rich-text-rac-prYPbIiz.js} +1 -1
- package/dist/component/{checkbox-field-rac-CzIDF6aj.js → checkbox-field-rac-C-4PXuxG.js} +4 -4
- package/dist/component/{checkbox-group-field-headless-B8tsQCwV.js → checkbox-group-field-headless-D16bAcaq.js} +35 -35
- package/dist/component/{checkbox-group-field-rac-h02K8CPA.js → checkbox-group-field-rac-GUQ5dO_s.js} +4 -4
- package/dist/component/{checkbox-group-rac-GfebLnuS.js → checkbox-group-rac-Bl6xL5-H.js} +1 -1
- package/dist/component/{checkbox-rac-Dn24U4oG.js → checkbox-rac-Blg0KVyP.js} +1 -1
- package/dist/component/{contacts-address-rac-CtVtIwOV.js → contacts-address-rac-BfOhCAj8.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-CK2odpbJ.js → contacts-birthdate-rac-DYBvDh62.js} +1 -1
- package/dist/component/{contacts-company-rac-ue8vAn9A.js → contacts-company-rac-DIJr7zjA.js} +1 -1
- package/dist/component/{contacts-email-rac-lleErjYl.js → contacts-email-rac-DjmqELhC.js} +1 -1
- package/dist/component/{contacts-first-name-rac-D5wtz4Z1.js → contacts-first-name-rac-DGNll7gw.js} +1 -1
- package/dist/component/{contacts-last-name-rac-Cj9GKWBY.js → contacts-last-name-rac-BJ8AZYQN.js} +1 -1
- package/dist/component/{contacts-phone-rac-BP6unckw.js → contacts-phone-rac-BC-QtpEN.js} +1 -1
- package/dist/component/{contacts-position-rac-XjUdZglr.js → contacts-position-rac-BQia__74.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-Dnpbgw5C.js → contacts-subscribe-rac-CTFptz01.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-pNFMOZl6.js → contacts-tax-id-rac-Cy72Jouc.js} +1 -1
- package/dist/component/{date-availability-BRA7k6ep.js → date-availability-BC6updcS.js} +1 -1
- package/dist/component/{date-input-field-rac-B15XH-D_.js → date-input-field-rac-b_T1yf8D.js} +38 -38
- package/dist/component/{date-input-rac-B7XvsFeB.js → date-input-rac-KkRyWRP_.js} +1 -1
- package/dist/component/{date-picker-field-rac-BNgKcgVi.js → date-picker-field-rac-BLWVJbTJ.js} +6 -6
- package/dist/component/{date-picker-rac-P54cHP86.js → date-picker-rac-DKCQza7v.js} +1 -1
- package/dist/component/{date-time-input-field-rac-Dt-jUznP.js → date-time-input-field-rac-CZxZW6fz.js} +45 -45
- package/dist/component/{date-time-input-rac-DHmOLCvg.js → date-time-input-rac-DQ-iBwmr.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-Bo2ZRcJc.js → dext-checkbox-group-rac-kp1Jbwt-.js} +2 -2
- package/dist/component/{dext-checkbox-rac-BdA2i9PR.js → dext-checkbox-rac-CBm9cRUz.js} +1 -1
- package/dist/component/{dext-date-picker-rac-BME9ZDFy.js → dext-date-picker-rac-DsVKWsRy.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-owEU8r5-.js → dext-date-time-input-rac-CO26-8Qo.js} +1 -1
- package/dist/component/{dext-dropdown-rac-BAeN43fo.js → dext-dropdown-rac-eRzu2C-y.js} +1 -1
- package/dist/component/{dext-email-rac-D7HBfCis.js → dext-email-rac-DDrZzE_G.js} +1 -1
- package/dist/component/{dext-number-input-rac-DEB2ji5S.js → dext-number-input-rac-Dj7sInLk.js} +1 -1
- package/dist/component/{dext-phone-rac-TOfFCmhD.js → dext-phone-rac-g8M77F7m.js} +1 -1
- package/dist/component/{dext-radio-group-rac-DGsQLres.js → dext-radio-group-rac-BjhygC0R.js} +2 -2
- package/dist/component/{dext-rating-input-rac-CFcRQeE7.js → dext-rating-input-rac-BraNjvyA.js} +1 -1
- package/dist/component/{dext-tags-rac-CGsaKVfb.js → dext-tags-rac-B5mAIuDi.js} +2 -2
- package/dist/component/{dext-text-area-rac-BqbLXOdt.js → dext-text-area-rac-D_YBnaWi.js} +1 -1
- package/dist/component/{dext-text-input-rac-CpXfQV53.js → dext-text-input-rac-BzeWH1jv.js} +1 -1
- package/dist/component/{dext-url-input-rac-Bbm3_OG9.js → dext-url-input-rac-Cn0h_vx3.js} +1 -1
- package/dist/component/{donation-rac-DvBAOz6H.js → donation-rac-CQRdHxWh.js} +46 -46
- package/dist/component/{dropdown-field-rac-BW0UDoBO.js → dropdown-field-rac-C7LL0W5Z.js} +3 -3
- package/dist/component/{dropdown-rac-B6ZD6Qgb.js → dropdown-rac-Nb2VyJ0x.js} +1 -1
- package/dist/component/{ecom-address-rac-Dnv9Yswd.js → ecom-address-rac-_c2YIIwg.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-BVqvUwn4.js → ecom-subscription-checkbox-rac-Bma7TAVj.js} +2 -2
- package/dist/component/{email-input-field-rac-CuaMcfZR.js → email-input-field-rac-2E2tEaS5.js} +47 -47
- package/dist/component/events-repeater-rac-COWHYBFD.js +280 -0
- package/dist/component/{events-rsvp-rac-D4hSrIsE.js → events-rsvp-rac-CXp8j19Y.js} +3 -3
- package/dist/component/{field-error-headless-NGaTm3dF.js → field-error-headless-S-ugOQQX.js} +7 -7
- package/dist/component/{field-label-headless-Bx1UjEcp.js → field-label-headless-_n4I0_tX.js} +14 -14
- package/dist/component/{file-upload-rac-oOnemmUg.js → file-upload-rac-DCH_iwDg.js} +79 -79
- package/dist/component/{fixed-payment-rac-C9YkIvQO.js → fixed-payment-rac-CYkKJUfM.js} +14 -14
- package/dist/component/{form-sH9m0ReT.js → form-jK8ezTss.js} +1110 -1109
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-N5Oclne_.js → header-field-rac-DnbjI6W5.js} +6 -6
- package/dist/component/{header-rac-CTmSJdoY.js → header-rac-DKUICrni.js} +1 -1
- package/dist/component/{image-choice-rac-BYZ61yof.js → image-choice-rac-B_9ponST.js} +4 -4
- package/dist/component/{index-B56GTN_5.js → index-BxdMzOvN.js} +68 -68
- package/dist/component/{index-SHZx7XzS.js → index-ZYnsxY-a.js} +2 -2
- package/dist/component/{isObjectLike-BFpR7Q-o.js → isObjectLike-BW-9QEQl.js} +9 -9
- package/dist/component/{multiline-address-field-rac-DvMyN2gF.js → multiline-address-field-rac-k-P0ijWG.js} +40 -40
- package/dist/component/{multiline-address-rac-Cfv0QzzV.js → multiline-address-rac-Bbn9mNDa.js} +1 -1
- package/dist/component/{number-input-field-rac-CWQw7p2k.js → number-input-field-rac--lom-B_X.js} +7 -7
- package/dist/component/{number-input-rac-DJ2Nh9Vm.js → number-input-rac-Bhbd6T9S.js} +1 -1
- package/dist/component/{password-rac-ayoa5FQV.js → password-rac-BV_uTHb3.js} +14 -14
- package/dist/component/{payment-input-rac-CBjP_xjz.js → payment-input-rac-cawyGN_t.js} +28 -28
- package/dist/component/{phone-input-field-rac-BWOEiUK7.js → phone-input-field-rac-CsElHRto.js} +67 -67
- package/dist/component/{phone-rac-Dp7FouV3.js → phone-rac-XrHN5Nko.js} +1 -1
- package/dist/component/{product-list-rac-D_EoPXl-.js → product-list-rac-cxv_xz7K.js} +30 -30
- package/dist/component/{quiz-radio-group-rac-RWM0riuU.js → quiz-radio-group-rac-DGaxOPE1.js} +1 -1
- package/dist/component/{radio-button-module-classes-nK-xhmxh.js → radio-button-module-classes-Xv2Jn01x.js} +21 -21
- package/dist/component/{radio-group-field-rac-Cc-pvwZn.js → radio-group-field-rac-DgGqgTql.js} +4 -4
- package/dist/component/{radio-group-rac-xvesuLSn.js → radio-group-rac-Bh0E-oe1.js} +1 -1
- package/dist/component/{rating-input-field-rac-BgMRUXQy.js → rating-input-field-rac-C3YLV971.js} +10 -10
- package/dist/component/{rating-input-rac-CeZtJR2S.js → rating-input-rac-CfcC5EUh.js} +1 -1
- package/dist/component/{rich-content-rac.module-Cv7PIbmM.js → rich-content-rac.module-DUjzLGtX.js} +5 -5
- package/dist/component/{rich-text-field-rac-CmbNBe2u.js → rich-text-field-rac-BmguoJhk.js} +5 -5
- package/dist/component/{rich-text-rac-9hwPCQXl.js → rich-text-rac-BWhHcq25.js} +1 -1
- package/dist/component/{service-dropdown-rac-2Wjgmo75.js → service-dropdown-rac-C5oX-ql7.js} +30 -30
- package/dist/component/{services-multi-choice-rac-cZ7elBhc.js → services-multi-choice-rac-C1fem9NB.js} +12 -12
- package/dist/component/{signature-rac-BfE2328G.js → signature-rac-BtHqiWj1.js} +62 -62
- package/dist/component/{submit-button-rac-oYO7pska.js → submit-button-rac-OYeKJFF8.js} +39 -39
- package/dist/component/{tags-field-rac-B-_LzCFU.js → tags-field-rac-kA2RSijL.js} +37 -37
- package/dist/component/{tags-rac-D5bRM462.js → tags-rac-B_2qCZGu.js} +1 -1
- package/dist/component/{text-area-field-rac-fwtICvjX.js → text-area-field-rac-DeO609Mv.js} +17 -17
- package/dist/component/{text-area-rac-C4EkhfB5.js → text-area-rac-BAQFBOZd.js} +1 -1
- package/dist/component/{text-input-field-rac-CxZYUtxX.js → text-input-field-rac-CCcKwuLZ.js} +3 -3
- package/dist/component/{text-input-headless-DK5wBGBb.js → text-input-headless-D8-jkaYm.js} +8 -8
- package/dist/component/{text-input-rac-FS49SxCK.js → text-input-rac-BVcgjj8g.js} +1 -1
- package/dist/component/{time-input-rac-CDUVS7kp.js → time-input-rac-BYctyHgU.js} +11 -11
- package/dist/component/{url-input-field-rac-B2ypvh7T.js → url-input-field-rac-COC9qgcs.js} +23 -23
- package/dist/component/{url-input-rac-DbJx2T1R.js → url-input-rac-BZXLh0Ej.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-0ZlT4g7h.js → use-dropdown-option-class-name-BTltqRl1.js} +2 -2
- package/dist/component/use-dropdown-trigger-class-name-BjJZfl3i.js +98 -0
- package/dist/component/{use-element-state-class-name-DCAoZgWT.js → use-element-state-class-name-CkT6Ga8t.js} +3 -3
- package/dist/component/{use-hoverable-input-class-name-BvP8fzTQ.js → use-hoverable-input-class-name-BkoSr6tr.js} +2 -2
- package/dist/component/{use-is-forced-open-dropdown-B-eR29aQ.js → use-is-forced-open-dropdown-fo_NCnSk.js} +1 -1
- package/dist/component/{use-service-options-base-BF_peAsS.js → use-service-options-base-Wp8RZ4Z8.js} +1 -1
- package/dist/component/use-text-input-class-name-DS7i03Gk.js +6 -0
- package/package.json +2 -2
- package/dist/component/events-repeater-rac-CNsh8NRh.js +0 -271
- package/dist/component/use-dropdown-trigger-class-name-PItHRYWo.js +0 -96
- package/dist/component/use-text-input-class-name-CQf8yep5.js +0 -6
|
@@ -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 { u as n, D as r } from "./use-dropdown-trigger-class-name-
|
|
4
|
+
import { u as n, D as r } from "./use-dropdown-trigger-class-name-BjJZfl3i.js";
|
|
5
5
|
import { C as l } from "./chevron-down-icon-CcpVm6B-.js";
|
|
6
6
|
import { E as c } from "./error-icon-hZxQ6DEy.js";
|
|
7
7
|
import { H as i } from "./custom-focus-class-_483Pkwp.js";
|
|
8
8
|
import { s as o } from "./field-rac.module-ts2t4WUO.js";
|
|
9
|
-
import { U as p,
|
|
10
|
-
import { u as R } from "./use-dropdown-option-class-name-
|
|
9
|
+
import { U as p, af as E, H as D, K as _, G as O } from "./form-jK8ezTss.js";
|
|
10
|
+
import { u as R } from "./use-dropdown-option-class-name-BTltqRl1.js";
|
|
11
11
|
const C = ({ 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 {
|
|
3
|
-
import { C as l } from "./checkbox-field-rac-
|
|
2
|
+
import { bD as a, bN as c, aF as i } from "./form-jK8ezTss.js";
|
|
3
|
+
import { C as l } from "./checkbox-field-rac-C-4PXuxG.js";
|
|
4
4
|
const p = (e) => ({
|
|
5
5
|
nodes: [
|
|
6
6
|
{
|
package/dist/component/{email-input-field-rac-CuaMcfZR.js → email-input-field-rac-2E2tEaS5.js}
RENAMED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { RicosViewer as ie } from "@wix/ricos/viewer";
|
|
2
|
-
import
|
|
3
|
-
import u, { createContext as z, useContext as Z, createElement as R, isValidElement as
|
|
2
|
+
import j from "classnames";
|
|
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 {
|
|
6
|
-
import { f as
|
|
5
|
+
import { bA as fe, bN as ge, by as ve, d as ye, bD as Ee, bH as de, bB as be, aD as Se, U as Oe, af as he, K as Ie, G as Ne, ao as Ae } from "./form-jK8ezTss.js";
|
|
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";
|
|
9
9
|
import Fe from "@babel/runtime/helpers/defineProperty";
|
|
10
10
|
import ke from "html-parse-stringify";
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import { T as
|
|
14
|
-
import { E as
|
|
11
|
+
import De from "@babel/runtime/helpers/classCallCheck";
|
|
12
|
+
import Te from "@babel/runtime/helpers/createClass";
|
|
13
|
+
import { T as U } from "./text-input-headless-D8-jkaYm.js";
|
|
14
|
+
import { E as xe } from "./error-icon-hZxQ6DEy.js";
|
|
15
15
|
import { s as H } from "./field-rac.module-ts2t4WUO.js";
|
|
16
|
-
import { u as
|
|
17
|
-
var
|
|
16
|
+
import { u as je } from "./use-text-input-class-name-DS7i03Gk.js";
|
|
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
|
"&": "&",
|
|
20
20
|
"<": "<",
|
|
@@ -38,7 +38,7 @@ var De = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#1
|
|
|
38
38
|
}, Me = function(t) {
|
|
39
39
|
return Le[t];
|
|
40
40
|
}, Pe = function(t) {
|
|
41
|
-
return t.replace(
|
|
41
|
+
return t.replace(Ce, Me);
|
|
42
42
|
}, _e = {
|
|
43
43
|
bindI18n: "languageChanged",
|
|
44
44
|
bindI18nStore: "",
|
|
@@ -54,9 +54,9 @@ function Re() {
|
|
|
54
54
|
}
|
|
55
55
|
(function() {
|
|
56
56
|
function e() {
|
|
57
|
-
|
|
57
|
+
De(this, e), this.usedNamespaces = {};
|
|
58
58
|
}
|
|
59
|
-
return
|
|
59
|
+
return Te(e, [{
|
|
60
60
|
key: "addUsedNamespaces",
|
|
61
61
|
value: function(a) {
|
|
62
62
|
var o = this;
|
|
@@ -82,12 +82,12 @@ function K() {
|
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
var J = {};
|
|
85
|
-
function
|
|
85
|
+
function Be() {
|
|
86
86
|
for (var e = arguments.length, t = new Array(e), a = 0; a < e; a++)
|
|
87
87
|
t[a] = arguments[a];
|
|
88
88
|
typeof t[0] == "string" && J[t[0]] || (typeof t[0] == "string" && (J[t[0]] = /* @__PURE__ */ new Date()), K.apply(void 0, t));
|
|
89
89
|
}
|
|
90
|
-
var
|
|
90
|
+
var Ue = ["format"], Ve = ["children", "count", "parent", "i18nKey", "context", "tOptions", "values", "defaults", "components", "ns", "i18n", "t", "shouldUnescape"];
|
|
91
91
|
function Q(e, t) {
|
|
92
92
|
var a = Object.keys(e);
|
|
93
93
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -119,7 +119,7 @@ function Y(e) {
|
|
|
119
119
|
}
|
|
120
120
|
function qe(e) {
|
|
121
121
|
return Object.prototype.toString.call(e) !== "[object Array]" ? !1 : e.every(function(t) {
|
|
122
|
-
return
|
|
122
|
+
return B(t);
|
|
123
123
|
});
|
|
124
124
|
}
|
|
125
125
|
function M(e) {
|
|
@@ -135,7 +135,7 @@ function te(e, t) {
|
|
|
135
135
|
return o.forEach(function(r, g) {
|
|
136
136
|
if (typeof r == "string")
|
|
137
137
|
a += "".concat(r);
|
|
138
|
-
else if (
|
|
138
|
+
else if (B(r)) {
|
|
139
139
|
var v = Object.keys(r.props).length, d = c.indexOf(r.type) > -1, b = r.props.children;
|
|
140
140
|
if (!b && d && v === 0)
|
|
141
141
|
a += "<".concat(r.type, "/>");
|
|
@@ -146,13 +146,13 @@ function te(e, t) {
|
|
|
146
146
|
else if (d && v === 1 && typeof b == "string")
|
|
147
147
|
a += "<".concat(r.type, ">").concat(b, "</").concat(r.type, ">");
|
|
148
148
|
else {
|
|
149
|
-
var
|
|
150
|
-
a += "<".concat(g, ">").concat(
|
|
149
|
+
var D = te(b, t);
|
|
150
|
+
a += "<".concat(g, ">").concat(D, "</").concat(g, ">");
|
|
151
151
|
}
|
|
152
152
|
} else if (r === null)
|
|
153
153
|
K("Trans: the passed in value is invalid - seems you passed in a null child.");
|
|
154
154
|
else if (L(r) === "object") {
|
|
155
|
-
var O = r.format, F = ee(r,
|
|
155
|
+
var O = r.format, F = ee(r, Ue), A = Object.keys(F);
|
|
156
156
|
if (A.length === 1) {
|
|
157
157
|
var S = O ? "".concat(A[0], ", ").concat(O) : A[0];
|
|
158
158
|
a += "{{".concat(S, "}}");
|
|
@@ -170,11 +170,11 @@ function Ye(e, t, a, o, c, r) {
|
|
|
170
170
|
function b(y) {
|
|
171
171
|
var h = M(y);
|
|
172
172
|
h.forEach(function(s) {
|
|
173
|
-
typeof s != "string" && (G(s) ? b(Y(s)) : L(s) === "object" && !
|
|
173
|
+
typeof s != "string" && (G(s) ? b(Y(s)) : L(s) === "object" && !B(s) && Object.assign(d, s));
|
|
174
174
|
});
|
|
175
175
|
}
|
|
176
176
|
b(e);
|
|
177
|
-
var
|
|
177
|
+
var D = ke.parse("<0>".concat(t, "</0>")), O = p(p({}, d), c);
|
|
178
178
|
function F(y, h, s) {
|
|
179
179
|
var i = Y(y), I = S(i, h.children, s);
|
|
180
180
|
return qe(i) && I.length === 0 ? i : I;
|
|
@@ -193,7 +193,7 @@ function Ye(e, t, a, o, c, r) {
|
|
|
193
193
|
!N && s.length === 1 && s[0][n.name] && (N = s[0][n.name]), N || (N = {});
|
|
194
194
|
var m = Object.keys(n.attrs).length !== 0 ? Ge({
|
|
195
195
|
props: n.attrs
|
|
196
|
-
}, N) : N,
|
|
196
|
+
}, N) : N, T = B(m), V = T && G(n, !0) && !n.voidElement, P = v && L(m) === "object" && m.dummy && !T, _ = L(e) === "object" && e !== null && Object.hasOwnProperty.call(e, n.name);
|
|
197
197
|
if (typeof m == "string") {
|
|
198
198
|
var q = a.services.interpolator.interpolate(m, O, a.language);
|
|
199
199
|
l.push(q);
|
|
@@ -226,7 +226,7 @@ function Ye(e, t, a, o, c, r) {
|
|
|
226
226
|
var ce = S(i, n.children, s);
|
|
227
227
|
l.push("<".concat(n.name, ">").concat(ce, "</").concat(n.name, ">"));
|
|
228
228
|
}
|
|
229
|
-
else if (L(m) === "object" && !
|
|
229
|
+
else if (L(m) === "object" && !T) {
|
|
230
230
|
var $ = n.children[0] ? k : null;
|
|
231
231
|
$ && l.push($);
|
|
232
232
|
} else n.children.length === 1 && k ? l.push(w(m, p(p({}, m.props), {}, {
|
|
@@ -243,16 +243,16 @@ function Ye(e, t, a, o, c, r) {
|
|
|
243
243
|
return l;
|
|
244
244
|
}, []);
|
|
245
245
|
}
|
|
246
|
-
var
|
|
246
|
+
var x = S([{
|
|
247
247
|
dummy: !0,
|
|
248
248
|
children: e || []
|
|
249
|
-
}],
|
|
250
|
-
return Y(
|
|
249
|
+
}], D, M(e || []));
|
|
250
|
+
return Y(x[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,
|
|
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, D = e.components, O = e.ns, F = e.i18n, A = e.t, S = e.shouldUnescape, x = ee(e, Ve), y = Z(He) || {}, h = y.i18n, s = y.defaultNS, i = F || h || Ke();
|
|
254
254
|
if (!i)
|
|
255
|
-
return
|
|
255
|
+
return Be("You will need to pass in an i18next instance by using i18nextReactModule"), t;
|
|
256
256
|
var I = A || i.t.bind(i) || function(q) {
|
|
257
257
|
return q;
|
|
258
258
|
};
|
|
@@ -264,13 +264,13 @@ function $e(e) {
|
|
|
264
264
|
prefix: "#$?",
|
|
265
265
|
suffix: "?$#"
|
|
266
266
|
})
|
|
267
|
-
},
|
|
267
|
+
}, T = p(p(p(p({}, v), {}, {
|
|
268
268
|
count: a
|
|
269
269
|
}, d), m), {}, {
|
|
270
270
|
defaultValue: E,
|
|
271
271
|
ns: n
|
|
272
|
-
}), V = N ? I(N,
|
|
273
|
-
return _ ? R(_,
|
|
272
|
+
}), V = N ? I(N, T) : E, P = Ye(D || t, V, i, l, T, S), _ = o !== void 0 ? o : l.defaultTransParent;
|
|
273
|
+
return _ ? R(_, x, 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,14 +449,14 @@ 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:
|
|
452
|
+
const { id: t, value: a, onChange: o, disabled: c, readOnly: r, required: g, hasError: v, onBlur: d, onFocus: b, error: D, description: O, FieldLayout: F } = Ee(), { isMistyped: A, suggestedEmail: S, validate: x } = at({
|
|
453
453
|
email: a,
|
|
454
454
|
hasError: v
|
|
455
|
-
}), { setFocusedFieldId: y } = de(), s = A && (!r && !c) && S ? S : void 0, i = be(t,
|
|
455
|
+
}), { setFocusedFieldId: y } = de(), s = A && (!r && !c) && S ? S : void 0, i = be(t, D, O, s), I = () => {
|
|
456
456
|
o(s), y(t);
|
|
457
457
|
}, l = () => {
|
|
458
|
-
|
|
459
|
-
}, n =
|
|
458
|
+
x(), d == null || d();
|
|
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
|
|
462
462
|
}, /* @__PURE__ */ u.createElement(Qe, {
|
|
@@ -481,10 +481,10 @@ const Qe = ({ activeSuggestion: e, applySuggestion: t, children: a }) => /* @__P
|
|
|
481
481
|
renderDescription: () => /* @__PURE__ */ u.createElement(u.Fragment, null, N, m, k)
|
|
482
482
|
})));
|
|
483
483
|
};
|
|
484
|
-
f.Label =
|
|
485
|
-
f.Input =
|
|
486
|
-
f.Description =
|
|
487
|
-
f.Error =
|
|
484
|
+
f.Label = U.Label;
|
|
485
|
+
f.Input = U.Input;
|
|
486
|
+
f.Description = U.Description;
|
|
487
|
+
f.Error = U.Error;
|
|
488
488
|
f.Suggestion = ze;
|
|
489
489
|
const nt = "_suggestion_lysve_1", ot = {
|
|
490
490
|
suggestion: nt
|
|
@@ -492,19 +492,19 @@ const nt = "_suggestion_lysve_1", ot = {
|
|
|
492
492
|
content: e,
|
|
493
493
|
locale: t
|
|
494
494
|
}), ht = () => {
|
|
495
|
-
const e =
|
|
495
|
+
const e = je();
|
|
496
496
|
return /* @__PURE__ */ u.createElement(f, null, /* @__PURE__ */ u.createElement(f.Label, {
|
|
497
|
-
className:
|
|
497
|
+
className: j(Oe, H.label)
|
|
498
498
|
}, /* @__PURE__ */ u.createElement(f.Label.Required, {
|
|
499
|
-
className:
|
|
499
|
+
className: j(he, H.requiredMark)
|
|
500
500
|
})), /* @__PURE__ */ u.createElement(f.Input, {
|
|
501
501
|
className: e
|
|
502
502
|
}), /* @__PURE__ */ u.createElement(f.Error, {
|
|
503
|
-
className:
|
|
504
|
-
}, /* @__PURE__ */ u.createElement(
|
|
505
|
-
className:
|
|
503
|
+
className: j(Ie, H.error)
|
|
504
|
+
}, /* @__PURE__ */ u.createElement(xe, null), /* @__PURE__ */ u.createElement(f.Error.Text, null)), /* @__PURE__ */ u.createElement(f.Description, {
|
|
505
|
+
className: j(Ne, H.description)
|
|
506
506
|
}, rt), /* @__PURE__ */ u.createElement(f.Suggestion, {
|
|
507
|
-
className:
|
|
507
|
+
className: j(Ae, ot.suggestion)
|
|
508
508
|
}));
|
|
509
509
|
};
|
|
510
510
|
export {
|
|
@@ -0,0 +1,280 @@
|
|
|
1
|
+
import t, { useState as X, useMemo as T, useCallback as x, useRef as k } from "react";
|
|
2
|
+
import v from "classnames";
|
|
3
|
+
import { NumberField as q, CheckboxField as Q, CheckboxButton as W, Group as Y, Input as Z, Button as w } from "react-aria-components";
|
|
4
|
+
import { bJ as P, bK as j, bz as U, bE as H, a$ as ee, bD as O, bA as $, bF as K, aH as te, aa as se, ac as ne, ae as oe, ab as re, ad as ae } from "./form-jK8ezTss.js";
|
|
5
|
+
import { f as C, a as R } from "./find-child-C60k4CxG.js";
|
|
6
|
+
import { L as le } from "./field-label-headless-_n4I0_tX.js";
|
|
7
|
+
import { S as ce } from "./selection-indicator-XQ8MYHUQ.js";
|
|
8
|
+
import { u as ue } from "./use-invoke-callback-UH73A_J3.js";
|
|
9
|
+
import { C as M } from "./chevron-down-icon-CcpVm6B-.js";
|
|
10
|
+
import { C as me } from "./checkbox-indicator-module-classes-DUTR4mcg.js";
|
|
11
|
+
import { s as B } from "./field-rac.module-ts2t4WUO.js";
|
|
12
|
+
import { u as ie } from "./use-element-state-class-name-CkT6Ga8t.js";
|
|
13
|
+
import { u as de } from "./use-hoverable-input-class-name-BkoSr6tr.js";
|
|
14
|
+
const Ee = [], pe = ({ id: e, fields: s, layout: a, value: o, onChange: n, errors: l = Ee, validation: c }) => {
|
|
15
|
+
const [i, E] = X((o == null ? void 0 : o.length) || 0), u = T(() => o ?? [], [
|
|
16
|
+
o
|
|
17
|
+
]), p = P(), G = j(), d = U(), { validateFields: m } = H(), F = c.predefined.objectArrayOptions.maxItems, y = T(() => ee({
|
|
18
|
+
form: {
|
|
19
|
+
fields: s,
|
|
20
|
+
steps: [
|
|
21
|
+
{
|
|
22
|
+
layout: a
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
|
+
},
|
|
26
|
+
parentId: e,
|
|
27
|
+
recursive: !1
|
|
28
|
+
}), [
|
|
29
|
+
s,
|
|
30
|
+
a,
|
|
31
|
+
e
|
|
32
|
+
]), I = T(() => l.reduce((b, L) => {
|
|
33
|
+
const [S, N] = L.errorPath.split("/"), D = parseInt(S, 10);
|
|
34
|
+
return b[D] || (b[D] = []), b[D].push({
|
|
35
|
+
...L,
|
|
36
|
+
errorPath: N
|
|
37
|
+
}), b;
|
|
38
|
+
}, []), [
|
|
39
|
+
l
|
|
40
|
+
]), _ = x((b) => {
|
|
41
|
+
const L = Number.isNaN(b) ? 0 : Math.min(Math.max(b, 0), F);
|
|
42
|
+
E(L), n == null || n(Array.from({
|
|
43
|
+
length: L
|
|
44
|
+
}, (S, N) => u[N] ?? {}));
|
|
45
|
+
}, [
|
|
46
|
+
F,
|
|
47
|
+
u,
|
|
48
|
+
n
|
|
49
|
+
]), h = x((b) => (L, S) => {
|
|
50
|
+
const N = Array.from({
|
|
51
|
+
length: i
|
|
52
|
+
}, (D, J) => u[J] ?? {});
|
|
53
|
+
N[b] = {
|
|
54
|
+
...N[b],
|
|
55
|
+
[L]: S
|
|
56
|
+
}, n == null || n(N);
|
|
57
|
+
}, [
|
|
58
|
+
i,
|
|
59
|
+
u,
|
|
60
|
+
n
|
|
61
|
+
]);
|
|
62
|
+
return {
|
|
63
|
+
guestLimit: F,
|
|
64
|
+
guestCount: i,
|
|
65
|
+
guests: u,
|
|
66
|
+
errorsByIndex: I,
|
|
67
|
+
formView: y,
|
|
68
|
+
formSchema: p,
|
|
69
|
+
formFields: G,
|
|
70
|
+
fieldActions: d,
|
|
71
|
+
validateFields: m,
|
|
72
|
+
changeGuestCount: _,
|
|
73
|
+
changeGuestField: h
|
|
74
|
+
};
|
|
75
|
+
}, be = [], Ce = {}, r = ({ children: e, className: s }) => {
|
|
76
|
+
const a = O(), { id: o, FieldLayout: n } = a, { guestLimit: l, guestCount: c, guests: i, errorsByIndex: E, formView: u, changeGuestCount: p, changeGuestField: G } = pe(a), d = C(e, r.Label), m = C(e, r.GuestCount), F = C(e, r.GuestToggle), y = C(e, r.Guests), I = l > 1;
|
|
77
|
+
return /* @__PURE__ */ t.createElement(n, {
|
|
78
|
+
fieldId: o,
|
|
79
|
+
renderLabel: () => I ? d : null,
|
|
80
|
+
renderInput: () => /* @__PURE__ */ t.createElement("div", {
|
|
81
|
+
className: s
|
|
82
|
+
}, I ? R(m, {
|
|
83
|
+
guestLimit: l,
|
|
84
|
+
guestCount: c,
|
|
85
|
+
onGuestCountChange: p
|
|
86
|
+
}) : R(F, {
|
|
87
|
+
guestCount: c,
|
|
88
|
+
onGuestCountChange: p
|
|
89
|
+
}), R(y, {
|
|
90
|
+
guestCount: c,
|
|
91
|
+
guests: i,
|
|
92
|
+
errorsByIndex: E,
|
|
93
|
+
formView: u,
|
|
94
|
+
onGuestFieldChange: G
|
|
95
|
+
})),
|
|
96
|
+
renderDescription: () => null
|
|
97
|
+
});
|
|
98
|
+
}, z = ({ className: e }) => /* @__PURE__ */ t.createElement(le, {
|
|
99
|
+
className: e
|
|
100
|
+
}, null), g = ({ children: e, className: s, ...a }) => {
|
|
101
|
+
const { guestLimit: o, guestCount: n, onGuestCountChange: l } = a, { label: c, disabled: i, readOnly: E, onBlur: u, onFocus: p } = O(), G = ue(u), d = C(e, g.Label), m = C(e, g.Control);
|
|
102
|
+
return /* @__PURE__ */ t.createElement(q, {
|
|
103
|
+
className: s,
|
|
104
|
+
"aria-label": c,
|
|
105
|
+
value: n,
|
|
106
|
+
onChange: l,
|
|
107
|
+
minValue: 0,
|
|
108
|
+
maxValue: o,
|
|
109
|
+
step: 1,
|
|
110
|
+
isDisabled: i,
|
|
111
|
+
isReadOnly: E,
|
|
112
|
+
onBlur: G,
|
|
113
|
+
onFocus: p
|
|
114
|
+
}, d, m);
|
|
115
|
+
}, ge = ({ children: e, className: s }) => {
|
|
116
|
+
const { disabled: a, readOnly: o } = O(), n = C(e, g.Input), l = C(e, g.Decrement), c = C(e, g.Increment);
|
|
117
|
+
return /* @__PURE__ */ t.createElement(Y, {
|
|
118
|
+
className: s,
|
|
119
|
+
isDisabled: a,
|
|
120
|
+
isReadOnly: o
|
|
121
|
+
}, n, c, l);
|
|
122
|
+
}, Ge = ({ className: e }) => {
|
|
123
|
+
const { id: s } = O(), { inputId: a, ariaDescribedBy: o } = $(), n = k(null);
|
|
124
|
+
return K(() => {
|
|
125
|
+
var l;
|
|
126
|
+
(l = n.current) == null || l.focus({
|
|
127
|
+
preventScroll: !0
|
|
128
|
+
});
|
|
129
|
+
}, s), /* @__PURE__ */ t.createElement(Z, {
|
|
130
|
+
ref: n,
|
|
131
|
+
id: a,
|
|
132
|
+
"aria-describedby": o,
|
|
133
|
+
className: e,
|
|
134
|
+
inputMode: "numeric"
|
|
135
|
+
});
|
|
136
|
+
}, _e = ({ children: e, className: s }) => /* @__PURE__ */ t.createElement(w, {
|
|
137
|
+
slot: "decrement",
|
|
138
|
+
className: s
|
|
139
|
+
}, e), fe = ({ children: e, className: s }) => /* @__PURE__ */ t.createElement(w, {
|
|
140
|
+
slot: "increment",
|
|
141
|
+
className: s
|
|
142
|
+
}, e), A = ({ children: e, className: s, ...a }) => {
|
|
143
|
+
const { guestCount: o, onGuestCountChange: n } = a, { id: l, label: c, disabled: i, readOnly: E, onBlur: u, onFocus: p } = O(), { inputId: G, ariaDescribedBy: d } = $(), m = k(null);
|
|
144
|
+
K(() => {
|
|
145
|
+
var _;
|
|
146
|
+
(_ = m.current) == null || _.focus({
|
|
147
|
+
preventScroll: !0
|
|
148
|
+
});
|
|
149
|
+
}, l);
|
|
150
|
+
const F = C(e, A.Input), y = C(e, A.Label), I = x((_) => {
|
|
151
|
+
n(_ ? 1 : 0);
|
|
152
|
+
}, [
|
|
153
|
+
n
|
|
154
|
+
]);
|
|
155
|
+
return /* @__PURE__ */ t.createElement(Q, {
|
|
156
|
+
inputRef: m,
|
|
157
|
+
id: G,
|
|
158
|
+
"aria-describedby": d,
|
|
159
|
+
isSelected: o > 0,
|
|
160
|
+
onChange: I,
|
|
161
|
+
isDisabled: i,
|
|
162
|
+
isReadOnly: E,
|
|
163
|
+
onBlur: u,
|
|
164
|
+
onFocus: p
|
|
165
|
+
}, /* @__PURE__ */ t.createElement(W, {
|
|
166
|
+
className: s
|
|
167
|
+
}, ({ isSelected: _, isHovered: h, isFocused: b }) => /* @__PURE__ */ t.createElement(t.Fragment, null, R(F, {
|
|
168
|
+
isSelected: _,
|
|
169
|
+
isHovered: h,
|
|
170
|
+
isFocused: b
|
|
171
|
+
}), R(y, {
|
|
172
|
+
label: c
|
|
173
|
+
}))));
|
|
174
|
+
}, Fe = ({ className: e, ...s }) => {
|
|
175
|
+
const { label: a } = s;
|
|
176
|
+
return /* @__PURE__ */ t.createElement("span", {
|
|
177
|
+
className: e
|
|
178
|
+
}, a);
|
|
179
|
+
}, V = ({ children: e, className: s, ...a }) => {
|
|
180
|
+
const { guestCount: o, guests: n, errorsByIndex: l, formView: c, onGuestFieldChange: i } = a, { disabled: E, readOnly: u } = O(), p = T(() => ({
|
|
181
|
+
...c,
|
|
182
|
+
fields: c.fields.map((d) => ({
|
|
183
|
+
...d,
|
|
184
|
+
properties: {
|
|
185
|
+
...d.properties,
|
|
186
|
+
disabled: !!(E || d.properties.disabled),
|
|
187
|
+
readOnly: !!(u || d.properties.readOnly)
|
|
188
|
+
}
|
|
189
|
+
}))
|
|
190
|
+
}), [
|
|
191
|
+
c,
|
|
192
|
+
E,
|
|
193
|
+
u
|
|
194
|
+
]), G = C(e, V.Guest);
|
|
195
|
+
return o ? /* @__PURE__ */ t.createElement("div", {
|
|
196
|
+
className: s
|
|
197
|
+
}, Array.from({
|
|
198
|
+
length: o
|
|
199
|
+
}, (d, m) => R(G, {
|
|
200
|
+
key: m,
|
|
201
|
+
index: m,
|
|
202
|
+
formView: p,
|
|
203
|
+
values: n[m] ?? Ce,
|
|
204
|
+
errors: l[m] ?? be,
|
|
205
|
+
onFieldChange: i(m)
|
|
206
|
+
}))) : null;
|
|
207
|
+
}, Le = ({ className: e, ...s }) => {
|
|
208
|
+
const { index: a, formView: o, values: n, errors: l, onFieldChange: c } = s, i = P(), E = j(), u = U(), { validateFields: p } = H();
|
|
209
|
+
return /* @__PURE__ */ t.createElement("div", {
|
|
210
|
+
className: e,
|
|
211
|
+
"data-hook": `guest-${a}`
|
|
212
|
+
}, /* @__PURE__ */ t.createElement(te, {
|
|
213
|
+
form: o,
|
|
214
|
+
formSchema: i,
|
|
215
|
+
values: n,
|
|
216
|
+
errors: l,
|
|
217
|
+
validateFields: p,
|
|
218
|
+
onFieldChange: c,
|
|
219
|
+
fields: E,
|
|
220
|
+
fieldActions: u
|
|
221
|
+
}));
|
|
222
|
+
};
|
|
223
|
+
g.Label = z;
|
|
224
|
+
g.Control = ge;
|
|
225
|
+
g.Input = Ge;
|
|
226
|
+
g.Decrement = _e;
|
|
227
|
+
g.Increment = fe;
|
|
228
|
+
A.Input = ce;
|
|
229
|
+
A.Label = Fe;
|
|
230
|
+
V.Guest = Le;
|
|
231
|
+
r.Label = z;
|
|
232
|
+
r.GuestCount = g;
|
|
233
|
+
r.GuestToggle = A;
|
|
234
|
+
r.Guests = V;
|
|
235
|
+
const Ne = "_container_xcjm5_1", Ie = "_count_xcjm5_8", Re = "_toggle_xcjm5_14", Oe = "_countLabel_xcjm5_18", ye = "_countGroup_xcjm5_22", Ae = "_increment_xcjm5_32", Se = "_decrement_xcjm5_33", f = {
|
|
236
|
+
container: Ne,
|
|
237
|
+
count: Ie,
|
|
238
|
+
toggle: Re,
|
|
239
|
+
countLabel: Oe,
|
|
240
|
+
countGroup: ye,
|
|
241
|
+
increment: Ae,
|
|
242
|
+
decrement: Se
|
|
243
|
+
}, De = () => {
|
|
244
|
+
const e = de(re, [
|
|
245
|
+
f.countGroup
|
|
246
|
+
]), s = ie({
|
|
247
|
+
globalClasses: ae,
|
|
248
|
+
moduleClasses: me
|
|
249
|
+
});
|
|
250
|
+
return /* @__PURE__ */ t.createElement(r, {
|
|
251
|
+
className: v(se, f.container)
|
|
252
|
+
}, /* @__PURE__ */ t.createElement(r.GuestCount, {
|
|
253
|
+
className: f.count
|
|
254
|
+
}, /* @__PURE__ */ t.createElement(r.GuestCount.Label, {
|
|
255
|
+
className: v(ne, B.label, f.countLabel)
|
|
256
|
+
}), /* @__PURE__ */ t.createElement(r.GuestCount.Control, {
|
|
257
|
+
className: e
|
|
258
|
+
}, /* @__PURE__ */ t.createElement(r.GuestCount.Input, {
|
|
259
|
+
className: B.innerInput
|
|
260
|
+
}), /* @__PURE__ */ t.createElement(r.GuestCount.Increment, {
|
|
261
|
+
className: f.increment
|
|
262
|
+
}, /* @__PURE__ */ t.createElement(M, {
|
|
263
|
+
style: {
|
|
264
|
+
transform: "rotate(180deg)"
|
|
265
|
+
}
|
|
266
|
+
})), /* @__PURE__ */ t.createElement(r.GuestCount.Decrement, {
|
|
267
|
+
className: f.decrement
|
|
268
|
+
}, /* @__PURE__ */ t.createElement(M, null)))), /* @__PURE__ */ t.createElement(r.GuestToggle, {
|
|
269
|
+
className: v(B.checkbox, f.toggle)
|
|
270
|
+
}, /* @__PURE__ */ t.createElement(r.GuestToggle.Input, {
|
|
271
|
+
className: s
|
|
272
|
+
}), /* @__PURE__ */ t.createElement(r.GuestToggle.Label, {
|
|
273
|
+
className: oe
|
|
274
|
+
})), /* @__PURE__ */ t.createElement(r.Guests, {
|
|
275
|
+
className: f.container
|
|
276
|
+
}, /* @__PURE__ */ t.createElement(r.Guests.Guest, null)));
|
|
277
|
+
}, $e = () => /* @__PURE__ */ t.createElement(De, null);
|
|
278
|
+
export {
|
|
279
|
+
$e as EventsRepeaterRAC
|
|
280
|
+
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import t from "react";
|
|
2
2
|
import { RicosViewer as m } from "@wix/ricos/viewer";
|
|
3
3
|
import a from "classnames";
|
|
4
|
-
import { a as s, s as n, R as c } from "./radio-button-module-classes-
|
|
4
|
+
import { a as s, s as n, R as c } from "./radio-button-module-classes-Xv2Jn01x.js";
|
|
5
5
|
import { E as i } from "./error-icon-hZxQ6DEy.js";
|
|
6
6
|
import { s as o } from "./field-rac.module-ts2t4WUO.js";
|
|
7
|
-
import { U as E,
|
|
7
|
+
import { U as E, af as p, a5 as R, a6 as O, K as _, G as L, a7 as D } from "./form-jK8ezTss.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-CkT6Ga8t.js";
|
|
10
10
|
const e = ({ children: r, className: l }) => /* @__PURE__ */ t.createElement(s, {
|
|
11
11
|
className: l
|
|
12
12
|
}, r);
|
package/dist/component/{field-error-headless-NGaTm3dF.js → field-error-headless-S-ugOQQX.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import t, { createContext as m, useContext as M } from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { bD as c, bA as i, bv as b, bc as f, bd as v } from "./form-jK8ezTss.js";
|
|
3
3
|
const H = ({ className: r, children: e }) => {
|
|
4
4
|
const { description: s, target: o } = c(), { descriptionId: a } = i(), { language: n } = b();
|
|
5
5
|
return s ? /* @__PURE__ */ t.createElement("div", {
|
|
@@ -10,13 +10,13 @@ const H = ({ className: r, children: e }) => {
|
|
|
10
10
|
content: s,
|
|
11
11
|
locale: n
|
|
12
12
|
})) : null;
|
|
13
|
-
}, l = /* @__PURE__ */ m(void 0), x = l.Provider,
|
|
13
|
+
}, l = /* @__PURE__ */ m(void 0), x = l.Provider, D = ({ className: r }) => {
|
|
14
14
|
const e = M(l);
|
|
15
15
|
return /* @__PURE__ */ t.createElement("span", {
|
|
16
16
|
className: r
|
|
17
17
|
}, e ?? "");
|
|
18
|
-
},
|
|
19
|
-
const { hasError: o, errorMessage: a } = s, { target: n, hasError:
|
|
18
|
+
}, h = ({ className: r, children: e, ...s }) => {
|
|
19
|
+
const { hasError: o, errorMessage: a } = s, { target: n, hasError: d, errorMessage: E } = c(), { errorId: g } = i(), u = o ?? d, p = a ?? E;
|
|
20
20
|
return u ? /* @__PURE__ */ t.createElement(x, {
|
|
21
21
|
value: p
|
|
22
22
|
}, /* @__PURE__ */ t.createElement("div", {
|
|
@@ -25,10 +25,10 @@ const H = ({ className: r, children: e }) => {
|
|
|
25
25
|
className: r
|
|
26
26
|
}, e)) : null;
|
|
27
27
|
};
|
|
28
|
-
|
|
28
|
+
h.Text = D;
|
|
29
29
|
export {
|
|
30
30
|
H as D,
|
|
31
|
-
|
|
31
|
+
h as E,
|
|
32
32
|
x as a,
|
|
33
|
-
|
|
33
|
+
D as b
|
|
34
34
|
};
|