@wix/form-elements 1.125.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-Z-zuUkSk.js → appointment-rac-BrC7gcpn.js} +5 -5
- package/dist/component/{bookings-address-rac-CKDBaGLn.js → bookings-address-rac-D-UmBxjD.js} +1 -1
- package/dist/component/{bookings-email-rac-D4aI_Jzq.js → bookings-email-rac-CjHDzU0Q.js} +1 -1
- package/dist/component/{bookings-first-name-rac-zzQHBi06.js → bookings-first-name-rac-ChBkkkWm.js} +1 -1
- package/dist/component/{bookings-header-rac-Ck8ODZZj.js → bookings-header-rac-ERfGeYyw.js} +1 -1
- package/dist/component/{bookings-last-name-rac-Bf6GZjrX.js → bookings-last-name-rac-CuTJ7Y8w.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-DFDj9-BP.js → bookings-login-bar-rac-pudlQ67l.js} +6 -6
- package/dist/component/{bookings-phone-rac-Bv1-qlMw.js → bookings-phone-rac-nLPnLRfS.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-D7B-s_XR.js → bookings-rich-text-rac-DOmGQlyG.js} +1 -1
- package/dist/component/{checkbox-field-rac-CiKYZvTz.js → checkbox-field-rac-DLazY-iO.js} +86 -86
- package/dist/component/{checkbox-group-field-headless-CV6U8eSj.js → checkbox-group-field-headless-CPyWmFBH.js} +3 -3
- package/dist/component/{checkbox-group-field-rac-BQlPsFkN.js → checkbox-group-field-rac-Bir3gaI9.js} +6 -6
- package/dist/component/{checkbox-group-rac-DS3C_O04.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-dUEfjEya.js → checkbox-rac-D_wZVUFV.js} +1 -1
- package/dist/component/{contacts-address-rac-CpszOK8V.js → contacts-address-rac-CNldSQbf.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-8VQHFq-M.js → contacts-birthdate-rac-AVyldaRF.js} +1 -1
- package/dist/component/{contacts-company-rac-BOBr0Kk7.js → contacts-company-rac-CiP1Ctpa.js} +1 -1
- package/dist/component/{contacts-email-rac-CTLHE5HL.js → contacts-email-rac-CzjMVEJZ.js} +1 -1
- package/dist/component/{contacts-first-name-rac-nYNH569s.js → contacts-first-name-rac-G0kE0HmA.js} +1 -1
- package/dist/component/{contacts-last-name-rac-BX1D0mI7.js → contacts-last-name-rac-cnTTtnMZ.js} +1 -1
- package/dist/component/{contacts-phone-rac-DKbEfOsH.js → contacts-phone-rac-DJ9oxox4.js} +1 -1
- package/dist/component/{contacts-position-rac-B0y-O-4j.js → contacts-position-rac-e0uQ-eqL.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-5yYJn7F0.js → contacts-subscribe-rac-D4J2x78f.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-BB5ngpkv.js → contacts-tax-id-rac-DwJuNH-C.js} +1 -1
- package/dist/component/{date-availability-C87SaTKG.js → date-availability-D2BSwZ_r.js} +1 -1
- package/dist/component/{date-input-field-rac-CS8QQO3m.js → date-input-field-rac-ztJ02C60.js} +42 -42
- package/dist/component/{date-input-rac-VHB7v5UL.js → date-input-rac-D-SFsC6P.js} +1 -1
- package/dist/component/{date-picker-field-rac-Cri5p6Ms.js → date-picker-field-rac-DaNwsa8z.js} +15 -15
- package/dist/component/{date-picker-rac-B57G3x5E.js → date-picker-rac-Bn0sA6P1.js} +1 -1
- package/dist/component/{date-time-input-field-rac-4Qka-NnP.js → date-time-input-field-rac-D-ArMpcJ.js} +64 -64
- package/dist/component/{date-time-input-rac-DGCjjMFb.js → date-time-input-rac-qYLa3IDx.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-DWvCwPTc.js → dext-checkbox-group-rac-Dir6tyvo.js} +2 -2
- package/dist/component/{dext-checkbox-rac-33LSTC36.js → dext-checkbox-rac-ByiMc3BH.js} +1 -1
- package/dist/component/{dext-date-picker-rac-Bf7NykP3.js → dext-date-picker-rac-BwOozu5y.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-Bao0DdBz.js → dext-date-time-input-rac-CaJEzZa4.js} +1 -1
- package/dist/component/{dext-dropdown-rac-DmcOs3JV.js → dext-dropdown-rac-DJnMjggU.js} +1 -1
- package/dist/component/{dext-email-rac-BQZuGJyR.js → dext-email-rac-CF4SQ86l.js} +1 -1
- package/dist/component/{dext-number-input-rac-BkRW3syI.js → dext-number-input-rac--3goVI8C.js} +1 -1
- package/dist/component/{dext-phone-rac-BQTtIO3M.js → dext-phone-rac-MYJYG040.js} +1 -1
- package/dist/component/{dext-radio-group-rac-8OX3bK1R.js → dext-radio-group-rac-Q2J5Hk5W.js} +4 -4
- package/dist/component/{dext-rating-input-rac-DzsAbe6_.js → dext-rating-input-rac-CAWhD-lI.js} +1 -1
- package/dist/component/{dext-tags-rac-vBL9kqB4.js → dext-tags-rac-DyxI5ooy.js} +4 -4
- package/dist/component/{dext-text-area-rac-DnaX_wQ4.js → dext-text-area-rac-CZpM-r49.js} +1 -1
- package/dist/component/{dext-text-input-rac-D94mFw2C.js → dext-text-input-rac-Bv5Mhyw6.js} +1 -1
- package/dist/component/{dext-url-input-rac-BbGsxHGa.js → dext-url-input-rac-BkbTjbAI.js} +1 -1
- package/dist/component/{donation-rac-BMSQOEKY.js → donation-rac-DZjFeJFy.js} +36 -36
- package/dist/component/{dropdown-field-headless-DfV7Hu_x.js → dropdown-field-headless-C7l2TQYy.js} +16 -16
- package/dist/component/{dropdown-field-rac-DV8KVcfL.js → dropdown-field-rac-DOAlecw8.js} +5 -5
- package/dist/component/{dropdown-rac-CWxp-u5t.js → dropdown-rac-D8HtaeBe.js} +1 -1
- package/dist/component/{ecom-address-rac-DDUa9lKf.js → ecom-address-rac-B25o-GVv.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-C6Bl1HwZ.js → ecom-subscription-checkbox-rac-NvdWnD0v.js} +2 -2
- package/dist/component/{email-input-field-rac-DssxRa6A.js → email-input-field-rac-rWyojsu0.js} +19 -19
- package/dist/component/{events-repeater-rac-C-Y70-hO.js → events-repeater-rac-D2HvNt0y.js} +11 -11
- package/dist/component/{events-rsvp-rac-CH8cmC73.js → events-rsvp-rac-D4WLn0Bx.js} +4 -4
- package/dist/component/{field-error-headless-B-dJmWQP.js → field-error-headless-DU0YsEXR.js} +6 -6
- package/dist/component/{field-label-headless-BMozN-s1.js → field-label-headless-CvdTZi6i.js} +1 -1
- package/dist/component/field-rac.module-BIBNQEOK.js +25 -0
- package/dist/component/{file-upload-rac-q-JbJbUf.js → file-upload-rac-CMelyfA8.js} +68 -68
- package/dist/component/{fixed-payment-rac-BUeec_59.js → fixed-payment-rac-CewsqE-k.js} +9 -9
- package/dist/component/{form-D_BE2Fzt.js → form-D9IxiDXP.js} +2400 -2346
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +3 -3
- package/dist/component/{header-field-rac-DWDGXZ-1.js → header-field-rac-CYBfb_5D.js} +6 -6
- package/dist/component/{header-rac-DSJRq-aS.js → header-rac-BIq3DmbL.js} +1 -1
- package/dist/component/{image-choice-rac-CZhE0M_b.js → image-choice-rac-aOObRIMi.js} +12 -12
- package/dist/component/{index-COa1NdN9.js → index-BXqA4oNj.js} +15 -15
- package/dist/component/{index-CbQKmL2D.js → index-D-g3wQ-z.js} +43 -43
- package/dist/component/{isObjectLike-OXbnWiQZ.js → isObjectLike-BNDXzCto.js} +7 -7
- package/dist/component/{multiline-address-field-rac-uwvOu2s8.js → multiline-address-field-rac-BcTa7Von.js} +8 -8
- package/dist/component/{multiline-address-rac-dechT7TO.js → multiline-address-rac-Cd_BFreP.js} +1 -1
- package/dist/component/{number-input-field-rac-Dzd1zIZ3.js → number-input-field-rac-_JlH34_3.js} +9 -9
- package/dist/component/{number-input-rac-CEkIm28k.js → number-input-rac-CiM20ScT.js} +1 -1
- package/dist/component/{password-rac-CWitmbZm.js → password-rac-DrpXSY74.js} +32 -32
- package/dist/component/{payment-input-rac-CM0uC5on.js → payment-input-rac-RnMeVWDc.js} +15 -15
- package/dist/component/{phone-input-field-rac-fWGQuICi.js → phone-input-field-rac-nNp7D7gK.js} +39 -39
- package/dist/component/{phone-rac-Yz8_o8zI.js → phone-rac-B2JjPT2w.js} +1 -1
- package/dist/component/{product-list-rac-CEWFFKC_.js → product-list-rac-Cv_fjFn3.js} +28 -28
- package/dist/component/{quiz-radio-group-rac-D0x2dT8O.js → quiz-radio-group-rac-CNqF6Tq3.js} +1 -1
- package/dist/component/{radio-button-module-classes-ByzyRWGZ.js → radio-button-module-classes-vqR4TN-z.js} +3 -3
- package/dist/component/{radio-group-field-rac-Bp-gAa8G.js → radio-group-field-rac-Bpyr40q-.js} +5 -5
- package/dist/component/{radio-group-rac-v2iHQ7Do.js → radio-group-rac-DBLPP0YC.js} +1 -1
- package/dist/component/{rating-input-field-rac-Cy2FMWGM.js → rating-input-field-rac-BOi0G37L.js} +10 -10
- package/dist/component/{rating-input-rac-BbVp3WB3.js → rating-input-rac-CxpmV0Pa.js} +1 -1
- package/dist/component/{rich-content-rac.module-CD6SVCbh.js → rich-content-rac.module-Dmm9GyQq.js} +1 -1
- package/dist/component/{rich-text-field-rac-BpNrx6yp.js → rich-text-field-rac-C466OrTf.js} +9 -9
- package/dist/component/{rich-text-rac-Dhy7uiP1.js → rich-text-rac-BvVxD7oJ.js} +1 -1
- package/dist/component/{service-dropdown-rac-CAneRKHw.js → service-dropdown-rac-pmUKH0sP.js} +14 -14
- package/dist/component/{services-multi-choice-rac-D6sXFbh-.js → services-multi-choice-rac-B65i6q2D.js} +7 -7
- package/dist/component/signature-rac-BRyM06Vz.js +918 -0
- package/dist/component/{submit-button-rac-BXXTjOsT.js → submit-button-rac-DaCRjZlQ.js} +15 -15
- package/dist/component/{tags-field-rac-C5UfRny_.js → tags-field-rac-CEdfh-EQ.js} +17 -17
- package/dist/component/{tags-rac-B9CeCJ7N.js → tags-rac-CGSTQ0qK.js} +1 -1
- package/dist/component/{text-area-field-rac-CPRcMTLB.js → text-area-field-rac-C-EHPWwQ.js} +15 -15
- package/dist/component/{text-area-rac-DTP1F7-n.js → text-area-rac-Df1nSb2q.js} +1 -1
- package/dist/component/{text-input-field-rac-BNWvKfLB.js → text-input-field-rac-DmCZtBi_.js} +4 -4
- package/dist/component/{text-input-headless-CLQsDBPq.js → text-input-headless-DAxEZP1P.js} +8 -8
- package/dist/component/{text-input-rac-D-x0vJ11.js → text-input-rac-DgpO17dl.js} +1 -1
- package/dist/component/{time-input-rac-CDyfV8is.js → time-input-rac-Dld_tLub.js} +10 -10
- package/dist/component/{url-input-field-rac-DS-y2pYu.js → url-input-field-rac-DHZ6bpxZ.js} +10 -10
- package/dist/component/{url-input-rac-mPuawQc5.js → url-input-rac-CZlWy5RB.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-C8fUy9a7.js → use-dropdown-option-class-name-opBd-YJA.js} +3 -3
- package/dist/component/{use-dropdown-trigger-class-name-TB7azWxx.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-Dd0kMkOT.js → use-hoverable-input-class-name-B42rAp82.js} +3 -3
- package/dist/component/{use-service-options-base-CZXMLBQ0.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 +11 -1
- package/package.json +23 -23
- package/dist/component/field-rac.module-DQxyEwK7.js +0 -26
- package/dist/component/signature-rac-D_mfewhJ.js +0 -794
- package/dist/component/use-element-state-class-name-BUWRj3G2.js +0 -22
- package/dist/component/use-text-input-class-name-BJ6Qm1bq.js +0 -6
package/dist/component/form.js
CHANGED
|
@@ -2,8 +2,8 @@ import "react/jsx-runtime";
|
|
|
2
2
|
import "react";
|
|
3
3
|
import "classnames";
|
|
4
4
|
import "@wix/fed-cli-i18next";
|
|
5
|
-
import {
|
|
5
|
+
import { am as i, aH as e } from "./form-D9IxiDXP.js";
|
|
6
6
|
export {
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
i as default,
|
|
8
|
+
e as defaultProps
|
|
9
9
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import m from "classnames";
|
|
2
2
|
import e from "react";
|
|
3
|
-
import {
|
|
4
|
-
import { u as g, R as p, s as
|
|
5
|
-
const
|
|
3
|
+
import { bh as u, aV as i, aU as C, aX as R, au as T, ac as d } from "./form-D9IxiDXP.js";
|
|
4
|
+
import { u as g, R as p, s as h, T as S } from "./rich-content-rac.module-Dmm9GyQq.js";
|
|
5
|
+
const y = ({ truncate: t = !0 } = {}) => {
|
|
6
6
|
const { content: a, maxShownParagraphs: s } = u(), n = e.useMemo(() => ({
|
|
7
7
|
colorPalette: R(),
|
|
8
8
|
customStyles: {
|
|
@@ -11,14 +11,14 @@ const f = ({ truncate: t = !0 } = {}) => {
|
|
|
11
11
|
}
|
|
12
12
|
}), []), { displayedContent: o, isTruncated: r, isTruncateButtonShown: c, toggleTruncate: l } = g(a, t ? s : void 0);
|
|
13
13
|
return /* @__PURE__ */ e.createElement(p, null, () => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(T, {
|
|
14
|
-
className: m(d,
|
|
14
|
+
className: m(d, h.richContent),
|
|
15
15
|
content: o,
|
|
16
16
|
customTheme: n
|
|
17
|
-
}), c && /* @__PURE__ */ e.createElement(
|
|
17
|
+
}), c && /* @__PURE__ */ e.createElement(S, {
|
|
18
18
|
isTruncated: r,
|
|
19
19
|
onClick: l
|
|
20
20
|
})));
|
|
21
21
|
};
|
|
22
22
|
export {
|
|
23
|
-
|
|
23
|
+
y as H
|
|
24
24
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import e, { useMemo as H, useCallback as T, useRef as G } from "react";
|
|
2
2
|
import { RicosViewer as k } from "@wix/ricos/viewer";
|
|
3
3
|
import I from "classnames";
|
|
4
|
-
import {
|
|
5
|
-
import { CheckboxGroup as
|
|
4
|
+
import { bh as b, be as x, bj as P, ba as B, I as q, U, w, y as V, v as j, p as z, x as K, f as g } from "./form-D9IxiDXP.js";
|
|
5
|
+
import { CheckboxGroup as Q, CheckboxField as Y, CheckboxButton as $ } from "react-aria-components";
|
|
6
6
|
import { f as m, a as F } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { L as J, g as W } from "./field-label-headless-
|
|
8
|
-
import { D as X, E as Z } from "./field-error-headless-
|
|
7
|
+
import { L as J, g as W } from "./field-label-headless-CvdTZi6i.js";
|
|
8
|
+
import { D as X, E as Z } from "./field-error-headless-DU0YsEXR.js";
|
|
9
9
|
import { F as ee } from "./fieldset-headless-CD3fds9J.js";
|
|
10
10
|
import { E as te } from "./error-icon-hZxQ6DEy.js";
|
|
11
|
-
import { s as O } from "./field-rac.module-
|
|
12
|
-
import { u as oe } from "./use-element-state-class-name-
|
|
11
|
+
import { s as O } from "./field-rac.module-BIBNQEOK.js";
|
|
12
|
+
import { u as oe } from "./use-element-state-class-name-B2ecLjwN.js";
|
|
13
13
|
const o = ({ children: t, className: s }) => {
|
|
14
14
|
const { id: n, value: a, onChange: i, disabled: l, readOnly: r, required: c, onBlur: u, onFocus: p, hasError: C, FieldLayout: L } = b(), { inputId: f, labelId: _, ariaDescribedBy: R } = x(), S = m(t, o.Label), A = m(t, o.Options), D = m(t, o.Description), h = m(t, o.Error), M = H(() => a || [], [
|
|
15
15
|
a
|
|
@@ -28,7 +28,7 @@ const o = ({ children: t, className: s }) => {
|
|
|
28
28
|
required: c,
|
|
29
29
|
onBlur: u,
|
|
30
30
|
onFocus: p
|
|
31
|
-
}, /* @__PURE__ */ e.createElement(
|
|
31
|
+
}, /* @__PURE__ */ e.createElement(Q, {
|
|
32
32
|
className: s,
|
|
33
33
|
"aria-labelledby": _,
|
|
34
34
|
value: M,
|
|
@@ -86,12 +86,12 @@ const o = ({ children: t, className: s }) => {
|
|
|
86
86
|
}));
|
|
87
87
|
}, l);
|
|
88
88
|
const C = m(t, d.Input), L = m(t, d.Image), f = m(t, d.Label);
|
|
89
|
-
return /* @__PURE__ */ e.createElement(
|
|
89
|
+
return /* @__PURE__ */ e.createElement(Y, {
|
|
90
90
|
value: a.label,
|
|
91
91
|
isDisabled: r,
|
|
92
92
|
isReadOnly: c,
|
|
93
93
|
isInvalid: u
|
|
94
|
-
}, /* @__PURE__ */ e.createElement(
|
|
94
|
+
}, /* @__PURE__ */ e.createElement($, {
|
|
95
95
|
ref: p,
|
|
96
96
|
"aria-label": a.isLabelHidden ? a.label : void 0,
|
|
97
97
|
className: s,
|
|
@@ -127,7 +127,7 @@ const le = "_options_eo1fu_1", ie = "_optionInput_eo1fu_33", re = "_option_eo1fu
|
|
|
127
127
|
hover: E.optionHover
|
|
128
128
|
}, Ie = () => {
|
|
129
129
|
const t = oe({
|
|
130
|
-
globalClasses:
|
|
130
|
+
globalClasses: K,
|
|
131
131
|
moduleClasses: ue
|
|
132
132
|
}), s = B(g.IMAGE_CHOICE, g.IMAGE_CHOICE_OPTION, g.IMAGE_CHOICE_OPTION_IMAGE);
|
|
133
133
|
return /* @__PURE__ */ e.createElement(o, null, /* @__PURE__ */ e.createElement(o.Label, {
|
|
@@ -148,9 +148,9 @@ const le = "_options_eo1fu_1", ie = "_optionInput_eo1fu_33", re = "_option_eo1fu
|
|
|
148
148
|
}), /* @__PURE__ */ e.createElement(o.Options.Option.Label, {
|
|
149
149
|
className: E.optionLabel
|
|
150
150
|
}))), /* @__PURE__ */ e.createElement(o.Error, {
|
|
151
|
-
className: I(
|
|
151
|
+
className: I(j, O.error)
|
|
152
152
|
}, /* @__PURE__ */ e.createElement(te, null), /* @__PURE__ */ e.createElement(o.Error.Text, null)), /* @__PURE__ */ e.createElement(o.Description, {
|
|
153
|
-
className: I(
|
|
153
|
+
className: I(z, O.description)
|
|
154
154
|
}, de));
|
|
155
155
|
}, De = () => /* @__PURE__ */ e.createElement(Ie, null);
|
|
156
156
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { A as
|
|
1
|
+
import { b0 as n } from "./form-D9IxiDXP.js";
|
|
2
|
+
import { A as N, a as S, C as p, av as g, aM as q, aN as D, b2 as L } from "./form-D9IxiDXP.js";
|
|
3
3
|
const l = (e = !1) => ({
|
|
4
4
|
country: {
|
|
5
5
|
required: e
|
|
@@ -27,34 +27,34 @@ const l = (e = !1) => ({
|
|
|
27
27
|
}
|
|
28
28
|
});
|
|
29
29
|
function i(e) {
|
|
30
|
-
const r = (e == null ? void 0 : e.number) || "",
|
|
31
|
-
return r ? `${r}${
|
|
30
|
+
const r = (e == null ? void 0 : e.number) || "", t = e != null && e.apt ? `-${e.apt}` : "";
|
|
31
|
+
return r ? `${r}${t}` : "";
|
|
32
32
|
}
|
|
33
|
-
function d(e, r,
|
|
33
|
+
function d(e, r, t) {
|
|
34
34
|
if (!e)
|
|
35
|
-
return
|
|
36
|
-
const
|
|
37
|
-
return `${(r == null ? void 0 : r.name) || ""} ${
|
|
35
|
+
return t;
|
|
36
|
+
const a = i(r);
|
|
37
|
+
return `${(r == null ? void 0 : r.name) || ""} ${a}`.trim();
|
|
38
38
|
}
|
|
39
39
|
function m(e, r) {
|
|
40
|
-
const
|
|
40
|
+
const t = e.country ? n.getCountryByShortKey(e.country) : void 0, a = {
|
|
41
41
|
name: e.streetName,
|
|
42
42
|
number: e.streetNumber,
|
|
43
43
|
apt: e.apartment
|
|
44
|
-
}, o = Object.values(
|
|
44
|
+
}, o = Object.values(a).some(Boolean), u = t && (r != null && r.translateCountry) ? r.translateCountry(t.displayName, r.language) : e.country;
|
|
45
45
|
return n.getFormattedAddress({
|
|
46
46
|
country: u,
|
|
47
47
|
subdivision: e.subdivision,
|
|
48
48
|
city: e.city,
|
|
49
49
|
zipCode: e.postalCode,
|
|
50
|
-
addressLine1: d(o,
|
|
50
|
+
addressLine1: d(o, a, e.addressLine),
|
|
51
51
|
addressLine2: e.addressLine2
|
|
52
|
-
},
|
|
52
|
+
}, t == null ? void 0 : t.key).replace(/^[\s,]+|[\s,]+$/g, "");
|
|
53
53
|
}
|
|
54
54
|
export {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
55
|
+
N as ADDRESS_FORM_IDS,
|
|
56
|
+
S as ADDRESS_FORM_ID_BY_COUNTRY,
|
|
57
|
+
p as COUNTRY_CODES,
|
|
58
58
|
g as MultilineAddressToolkit,
|
|
59
59
|
m as formatMultilineAddress,
|
|
60
60
|
q as getCountryField,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { e as R,
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
import { e as R, aC as _, aR as de, aD as O, ai as Ge, B as Be, aw as qe, ap as He, ao as I, ax as Ee, aG as re, aA as Fe, c as B, aq as M, b1 as Te, as as je, ar as he, at as q } from "./form-D9IxiDXP.js";
|
|
2
|
+
import { aY as Mn } from "./form-D9IxiDXP.js";
|
|
3
|
+
import Xe from "ajv";
|
|
4
|
+
import ke from "ajv-errors";
|
|
5
5
|
import We from "ajv-formats";
|
|
6
6
|
import Ke from "fast-deep-equal";
|
|
7
7
|
import { parsePhoneNumber as ze, parsePhoneNumberWithError as Ve, ParseError as Ze } from "libphonenumber-js/max";
|
|
8
8
|
import Je from "libphonenumber-js/metadata.max.json";
|
|
9
|
-
import { p as Qe, i as et } from "./date-availability-
|
|
10
|
-
import { a as Sn } from "./date-availability-
|
|
9
|
+
import { p as Qe, i as et } from "./date-availability-D2BSwZ_r.js";
|
|
10
|
+
import { a as Sn } from "./date-availability-D2BSwZ_r.js";
|
|
11
11
|
import { C as tt } from "./calling-country-codes-PyWuOTmF.js";
|
|
12
12
|
function rt(e) {
|
|
13
13
|
var t, r;
|
|
@@ -214,7 +214,7 @@ const dt = (e, t) => {
|
|
|
214
214
|
var t;
|
|
215
215
|
return !!((t = e.validation) != null && t.required) && !e.hidden && !e.readOnly;
|
|
216
216
|
};
|
|
217
|
-
var H = { exports: {} },
|
|
217
|
+
var H = { exports: {} }, X = { exports: {} }, Re;
|
|
218
218
|
function Tt() {
|
|
219
219
|
return Re || (Re = 1, (function(e, t) {
|
|
220
220
|
Object.defineProperty(t, "__esModule", { value: !0 });
|
|
@@ -272,7 +272,7 @@ function Tt() {
|
|
|
272
272
|
});
|
|
273
273
|
}
|
|
274
274
|
e.exports = s;
|
|
275
|
-
})(
|
|
275
|
+
})(X, X.exports)), X.exports;
|
|
276
276
|
}
|
|
277
277
|
var Ae = H.exports, Ie;
|
|
278
278
|
function ht() {
|
|
@@ -723,9 +723,9 @@ const oe = "¡--
|
|
|
723
723
|
"za",
|
|
724
724
|
"zh",
|
|
725
725
|
"zu"
|
|
726
|
-
],
|
|
727
|
-
function
|
|
728
|
-
return
|
|
726
|
+
], Ct = new Set(St);
|
|
727
|
+
function bt(e) {
|
|
728
|
+
return Ct.has(e);
|
|
729
729
|
}
|
|
730
730
|
function Ft(e) {
|
|
731
731
|
try {
|
|
@@ -750,7 +750,7 @@ const ye = {
|
|
|
750
750
|
email: Pt,
|
|
751
751
|
"color-hex": /^#(?:[0-9A-F]{3,4}|[0-9A-F]{6}|[0-9A-F]{8})$/i,
|
|
752
752
|
currency: gt,
|
|
753
|
-
language:
|
|
753
|
+
language: bt,
|
|
754
754
|
"time-zone": Ft
|
|
755
755
|
};
|
|
756
756
|
function Ut(e, t, r) {
|
|
@@ -895,11 +895,11 @@ function Ht(e) {
|
|
|
895
895
|
}
|
|
896
896
|
function jt(e, t, r) {
|
|
897
897
|
return function(s) {
|
|
898
|
-
const i = new
|
|
898
|
+
const i = new Xe({
|
|
899
899
|
allErrors: !0,
|
|
900
900
|
multipleOfPrecision: 8
|
|
901
901
|
});
|
|
902
|
-
return We(i), vt(i, t), Ut(i, t, r),
|
|
902
|
+
return We(i), vt(i, t), Ut(i, t, r), ke(i), At(i), s.forEach((o) => {
|
|
903
903
|
if (!i.getSchema(h(o.id, o, "id"))) {
|
|
904
904
|
const u = e(o);
|
|
905
905
|
u && i.addSchema(u);
|
|
@@ -910,7 +910,7 @@ function jt(e, t, r) {
|
|
|
910
910
|
var y = /* @__PURE__ */ (function(e) {
|
|
911
911
|
return e.OBJECT = "object", e.STRING = "string", e.NUMBER = "number", e.INTEGER = "integer", e.BOOLEAN = "boolean", e.ARRAY = "array", e;
|
|
912
912
|
})({});
|
|
913
|
-
function
|
|
913
|
+
function Xt(e, t) {
|
|
914
914
|
return function(c) {
|
|
915
915
|
const E = c.fields || [], d = c.deletedFields || [], m = E.filter(o), T = d.filter(o), g = r(m, T), N = t === O.UNRESTRICTED_UPDATE ? [] : m.filter((A) => !u(A)).filter(i).map((A) => h(A.target, A, "target"));
|
|
916
916
|
return {
|
|
@@ -967,7 +967,7 @@ function kt(e, t) {
|
|
|
967
967
|
return !!p.nestedFormId || ((E = (c = p.validation) == null ? void 0 : c.predefined) == null ? void 0 : E.format) === _.MULTILINE_ADDRESS;
|
|
968
968
|
}
|
|
969
969
|
}
|
|
970
|
-
function
|
|
970
|
+
function kt(e, t) {
|
|
971
971
|
return function(l) {
|
|
972
972
|
const p = l.formFields || [], c = l.deletedFormFields || [], E = p.filter(a), d = c.filter(a), m = n(E, d);
|
|
973
973
|
return {
|
|
@@ -1338,8 +1338,8 @@ function or() {
|
|
|
1338
1338
|
var g = d[T], N = g.type, A = g.value, P = r[N];
|
|
1339
1339
|
P >= 0 && (m[P] = parseInt(A, 10));
|
|
1340
1340
|
}
|
|
1341
|
-
var D = m[3], F = D === 24 ? 0 : D,
|
|
1342
|
-
return (o.utc(
|
|
1341
|
+
var D = m[3], F = D === 24 ? 0 : D, C = m[0] + "-" + m[1] + "-" + m[2] + " " + F + ":" + m[4] + ":" + m[5] + ":000", L = +c;
|
|
1342
|
+
return (o.utc(C).valueOf() - (L -= L % 1e3)) / 6e4;
|
|
1343
1343
|
}, l = i.prototype;
|
|
1344
1344
|
l.tz = function(c, E) {
|
|
1345
1345
|
c === void 0 && (c = a);
|
|
@@ -1364,11 +1364,11 @@ function or() {
|
|
|
1364
1364
|
}, o.tz = function(c, E, d) {
|
|
1365
1365
|
var m = d && E, T = d || E || a, g = f(+o(), T);
|
|
1366
1366
|
if (typeof c != "string") return o(c).tz(T);
|
|
1367
|
-
var N = (function(F,
|
|
1368
|
-
var
|
|
1369
|
-
if (
|
|
1370
|
-
var se = f(
|
|
1371
|
-
return $ === se ? [
|
|
1367
|
+
var N = (function(F, C, L) {
|
|
1368
|
+
var b = F - 60 * C * 1e3, $ = f(b, L);
|
|
1369
|
+
if (C === $) return [b, C];
|
|
1370
|
+
var se = f(b -= 60 * ($ - C) * 1e3, L);
|
|
1371
|
+
return $ === se ? [b, $] : [F - 60 * Math.min($, se) * 1e3, Math.max($, se)];
|
|
1372
1372
|
})(o.utc(c, m).valueOf(), g, T), A = N[0], P = N[1], D = o(A).utcOffset(P);
|
|
1373
1373
|
return D.$x.$timezone = T, D;
|
|
1374
1374
|
}, o.tz.guess = function() {
|
|
@@ -1419,8 +1419,8 @@ function mr() {
|
|
|
1419
1419
|
D === void 0 && (D = "");
|
|
1420
1420
|
var F = D.match(n);
|
|
1421
1421
|
if (!F) return null;
|
|
1422
|
-
var
|
|
1423
|
-
return
|
|
1422
|
+
var C = ("" + F[0]).match(s) || ["-", 0, 0], L = C[0], b = 60 * +C[1] + +C[2];
|
|
1423
|
+
return b === 0 ? 0 : L === "+" ? b : -b;
|
|
1424
1424
|
})(m), m === null)) return this;
|
|
1425
1425
|
var N = Math.abs(m) <= 16 ? 60 * m : m;
|
|
1426
1426
|
if (N === 0) return this.utc(T);
|
|
@@ -1663,17 +1663,17 @@ function te(e, t) {
|
|
|
1663
1663
|
type: y.OBJECT,
|
|
1664
1664
|
additionalProperties: !1,
|
|
1665
1665
|
properties: r,
|
|
1666
|
-
...
|
|
1666
|
+
...Cr(e, t)
|
|
1667
1667
|
};
|
|
1668
1668
|
}
|
|
1669
|
-
function
|
|
1669
|
+
function Cr(e, t) {
|
|
1670
1670
|
return t !== O.UNRESTRICTED_UPDATE ? {
|
|
1671
|
-
required:
|
|
1671
|
+
required: br(e.properties)
|
|
1672
1672
|
} : {
|
|
1673
1673
|
required: []
|
|
1674
1674
|
};
|
|
1675
1675
|
}
|
|
1676
|
-
function
|
|
1676
|
+
function br(e = {}) {
|
|
1677
1677
|
return Object.keys(e).reduce((r, n) => {
|
|
1678
1678
|
const s = e[n];
|
|
1679
1679
|
return Fr(s) && r.push(n), r;
|
|
@@ -1935,7 +1935,7 @@ class Nn {
|
|
|
1935
1935
|
return !!((s = t == null ? void 0 : t.properties) != null && s.disabled || r);
|
|
1936
1936
|
}
|
|
1937
1937
|
getFormSchemaMapper() {
|
|
1938
|
-
return this.platformisedFieldBasedValidation ?
|
|
1938
|
+
return this.platformisedFieldBasedValidation ? kt(wr, this.validationMode ?? O.UNKNOWN) : Xt(Y, this.validationMode ?? O.UNKNOWN);
|
|
1939
1939
|
}
|
|
1940
1940
|
initAJvWithSchemas(t, r) {
|
|
1941
1941
|
const n = this.getFormSchemaMapper(), s = jt(n, this.validationMode !== O.UNRESTRICTED_UPDATE, this.lenientPhoneValidation), i = this.formSchemas.flatMap((u) => (u.nestedForms || []).flatMap(({ targets: f, form: l }) => (f || []).map((p) => ({
|
|
@@ -2048,15 +2048,15 @@ function jr(e, t) {
|
|
|
2048
2048
|
}
|
|
2049
2049
|
};
|
|
2050
2050
|
}
|
|
2051
|
-
var
|
|
2051
|
+
var Ce;
|
|
2052
2052
|
(function(e) {
|
|
2053
2053
|
e.NOT_ASCEND = "NOT_ASCEND", e.FREE = "FREE", e.BASIC = "BASIC", e.PROFESSIONAL = "PROFESSIONAL", e.UNLIMITED = "UNLIMITED";
|
|
2054
|
-
})(
|
|
2054
|
+
})(Ce || (Ce = {}));
|
|
2055
2055
|
var fe;
|
|
2056
2056
|
(function(e) {
|
|
2057
2057
|
e.UNKNOWN_FEATURE = "UNKNOWN_FEATURE", e.FILE_UPLOAD_FIELD = "FILE_UPLOAD_FIELD", e.ACCEPT_PAYMENTS = "ACCEPT_PAYMENTS", e.REMOVE_WIX_BRANDING = "REMOVE_WIX_BRANDING", e.SIGNATURE_FIELD = "SIGNATURE_FIELD", e.FILE_DOWNLOAD = "FILE_DOWNLOAD";
|
|
2058
2058
|
})(fe || (fe = {}));
|
|
2059
|
-
const
|
|
2059
|
+
const Xr = "FILE_UPLOAD";
|
|
2060
2060
|
function gn(e, t, r) {
|
|
2061
2061
|
var s, i, o, a;
|
|
2062
2062
|
const n = [
|
|
@@ -2074,26 +2074,26 @@ function gn(e, t, r) {
|
|
|
2074
2074
|
})
|
|
2075
2075
|
];
|
|
2076
2076
|
if (nn(r)) {
|
|
2077
|
-
const u =
|
|
2077
|
+
const u = k(r.currentForm), f = k(t);
|
|
2078
2078
|
return {
|
|
2079
|
-
errors:
|
|
2079
|
+
errors: be(n, f, u)
|
|
2080
2080
|
};
|
|
2081
2081
|
}
|
|
2082
2082
|
if (sn(r)) {
|
|
2083
|
-
const u =
|
|
2083
|
+
const u = k(), f = k(t);
|
|
2084
2084
|
return {
|
|
2085
|
-
errors:
|
|
2085
|
+
errors: be([
|
|
2086
2086
|
...n,
|
|
2087
|
-
|
|
2087
|
+
kr(W((a = e.formsLimit) == null ? void 0 : a.limit), h(r.existingFormsCount, r, "existingFormsCount"))
|
|
2088
2088
|
], f, u)
|
|
2089
2089
|
};
|
|
2090
2090
|
}
|
|
2091
2091
|
throw new Error("Unknown validation action");
|
|
2092
2092
|
}
|
|
2093
|
-
function
|
|
2093
|
+
function be(e, t, r) {
|
|
2094
2094
|
return e.map((n) => n(t, r)).filter(Boolean).map((n) => n);
|
|
2095
2095
|
}
|
|
2096
|
-
const
|
|
2096
|
+
const kr = (e, t) => () => ne(e, t, t + 1) ? Jr(e) : null, Wr = ({ limit: e }) => (t, r) => ne(e, r.inputFieldsCount, t.inputFieldsCount) || le(e, r.inputFieldsCount, t.inputFieldIds, r.inputFieldIds) ? Qr(e) : null, Kr = ({ limit: e }) => (t, r) => ne(e, r.stepsCount, t.stepsCount) || le(e, r.stepsCount, t.stepsIds, r.stepsIds) ? en(e) : null, zr = ({ limit: e }) => (t, r) => ne(e, r.rulesCount, t.rulesCount) || le(e, r.rulesCount, t.rulesIds, r.rulesIds) ? tn(e) : null, Vr = ({ featureRestricted: e }) => (t, r) => Ye(t.fileUploadFieldIds, r.fileUploadFieldIds).length && e(fe.FILE_UPLOAD_FIELD) ? rn() : null;
|
|
2097
2097
|
function Ye(e, t) {
|
|
2098
2098
|
const r = new Set(t);
|
|
2099
2099
|
return e.filter((n) => !r.has(n));
|
|
@@ -2152,7 +2152,7 @@ function rn() {
|
|
|
2152
2152
|
errorMessage: "File upload field is not enabled for the given site"
|
|
2153
2153
|
};
|
|
2154
2154
|
}
|
|
2155
|
-
function
|
|
2155
|
+
function k(e) {
|
|
2156
2156
|
const t = e ?? {}, r = (t.fields ?? []).filter((n) => !!n.target);
|
|
2157
2157
|
return {
|
|
2158
2158
|
inputFieldsCount: r.length,
|
|
@@ -2161,7 +2161,7 @@ function X(e) {
|
|
|
2161
2161
|
inputFieldIds: r.map((n) => n.id),
|
|
2162
2162
|
stepsIds: (t.steps ?? []).map((n) => n.id),
|
|
2163
2163
|
rulesIds: (t.rules ?? []).map((n) => n.id),
|
|
2164
|
-
fileUploadFieldIds: (t.fields ?? []).filter((n) => (n.view ?? {}).fieldType ===
|
|
2164
|
+
fileUploadFieldIds: (t.fields ?? []).filter((n) => (n.view ?? {}).fieldType === Xr).map((n) => n.id)
|
|
2165
2165
|
};
|
|
2166
2166
|
}
|
|
2167
2167
|
function nn(e) {
|
|
@@ -2276,7 +2276,7 @@ export {
|
|
|
2276
2276
|
S as DateFieldErrorSuffix,
|
|
2277
2277
|
v as DateTimeFieldErrorSuffix,
|
|
2278
2278
|
R as ErrorTypes,
|
|
2279
|
-
|
|
2279
|
+
Xr as FILE_UPLOAD_FIELD_TYPE,
|
|
2280
2280
|
On as FormSchemaValidator,
|
|
2281
2281
|
Nn as FormValidator,
|
|
2282
2282
|
O as ValidationMode,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aE as c } from "./form-D9IxiDXP.js";
|
|
2
2
|
var b, d;
|
|
3
3
|
function k() {
|
|
4
4
|
if (d) return b;
|
|
@@ -48,7 +48,7 @@ function P() {
|
|
|
48
48
|
return l = t, l;
|
|
49
49
|
}
|
|
50
50
|
var j, q;
|
|
51
|
-
function
|
|
51
|
+
function F() {
|
|
52
52
|
if (q) return j;
|
|
53
53
|
q = 1;
|
|
54
54
|
var r = R(), e = L(), t = P(), i = "[object Null]", o = "[object Undefined]", u = r ? r.toStringTag : void 0;
|
|
@@ -58,7 +58,7 @@ function N() {
|
|
|
58
58
|
return j = n, j;
|
|
59
59
|
}
|
|
60
60
|
var v, m;
|
|
61
|
-
function
|
|
61
|
+
function N() {
|
|
62
62
|
if (m) return v;
|
|
63
63
|
m = 1;
|
|
64
64
|
function r(e) {
|
|
@@ -68,7 +68,7 @@ function U() {
|
|
|
68
68
|
return v = r, v;
|
|
69
69
|
}
|
|
70
70
|
var T, p;
|
|
71
|
-
function
|
|
71
|
+
function U() {
|
|
72
72
|
if (p) return T;
|
|
73
73
|
p = 1;
|
|
74
74
|
function r(e) {
|
|
@@ -77,10 +77,10 @@ function z() {
|
|
|
77
77
|
return T = r, T;
|
|
78
78
|
}
|
|
79
79
|
export {
|
|
80
|
-
|
|
80
|
+
U as a,
|
|
81
81
|
R as b,
|
|
82
|
-
|
|
82
|
+
F as c,
|
|
83
83
|
k as d,
|
|
84
84
|
I as e,
|
|
85
|
-
|
|
85
|
+
N as r
|
|
86
86
|
};
|
|
@@ -2,21 +2,21 @@ import { RicosViewer as G } from "@wix/ricos/viewer";
|
|
|
2
2
|
import L from "classnames";
|
|
3
3
|
import r, { useMemo as q, createContext as Ve, useContext as Ce, useState as be, useRef as x, useCallback as R, useEffect as _e } from "react";
|
|
4
4
|
import { UNSAFE_PortalProvider as _t } from "react-aria";
|
|
5
|
-
import {
|
|
5
|
+
import { bc as ft, d as yt, b7 as Pt, b9 as Ct, aM as Tt, aN as wt, aF as Mt, aL as W, F as K, br as Pe, b0 as lt, bh as P, be as T, bj as ae, bd as It, aR as qt, C as Oe, a_ as xt, b2 as Bt, bo as kt, bi as $t, bn as Ut, b5 as Vt, aW as Wt, b4 as Kt, bk as Yt, al as Ht, I as z, U as Q, K as ge, v as Z, p as ee } from "./form-D9IxiDXP.js";
|
|
6
6
|
import { f as E, a as F } from "./find-child-C60k4CxG.js";
|
|
7
7
|
import { F as jt, V as Jt } from "./headless-styles-CmcyA_pi.js";
|
|
8
|
-
import { a as Xt, u as Gt } from "./use-dropdown-trigger-class-name-
|
|
8
|
+
import { a as Xt, u as Gt } from "./use-dropdown-trigger-class-name-BGQH0WCO.js";
|
|
9
9
|
import { TextField as fe, Input as le, ComboBoxStateContext as We, ComboBox as he, Popover as De, ListBox as Te, ListBoxItem as Se, Group as Lt, Button as Nt } from "react-aria-components";
|
|
10
|
-
import { D as ie, E as ce } from "./field-error-headless-
|
|
11
|
-
import { L as de } from "./field-label-headless-
|
|
12
|
-
import { e as zt, c as Qt, a as Zt, r as gt } from "./isObjectLike-
|
|
13
|
-
import { V as en, u as tn } from "./use-dropdown-option-class-name-
|
|
10
|
+
import { D as ie, E as ce } from "./field-error-headless-DU0YsEXR.js";
|
|
11
|
+
import { L as de } from "./field-label-headless-CvdTZi6i.js";
|
|
12
|
+
import { e as zt, c as Qt, a as Zt, r as gt } from "./isObjectLike-BNDXzCto.js";
|
|
13
|
+
import { V as en, u as tn } from "./use-dropdown-option-class-name-opBd-YJA.js";
|
|
14
14
|
import { u as nn } from "./use-invoke-callback-UH73A_J3.js";
|
|
15
15
|
import { C as it } from "./chevron-down-icon-CcpVm6B-.js";
|
|
16
16
|
import { E as te } from "./error-icon-hZxQ6DEy.js";
|
|
17
17
|
import { H as we } from "./custom-focus-class-_483Pkwp.js";
|
|
18
|
-
import { s as I } from "./field-rac.module-
|
|
19
|
-
import { u as rn } from "./use-text-input-class-name-
|
|
18
|
+
import { s as I } from "./field-rac.module-BIBNQEOK.js";
|
|
19
|
+
import { u as rn } from "./use-text-input-class-name-DGpCdZ_e.js";
|
|
20
20
|
const on = (e, t, o) => {
|
|
21
21
|
var a, l, i, s;
|
|
22
22
|
const n = (a = e.steps) == null ? void 0 : a.map((d) => {
|
package/dist/component/{number-input-field-rac-Dzd1zIZ3.js → number-input-field-rac-_JlH34_3.js}
RENAMED
|
@@ -2,18 +2,18 @@ import { RicosViewer as P } from "@wix/ricos/viewer";
|
|
|
2
2
|
import i from "classnames";
|
|
3
3
|
import r, { useState as U, useCallback as j, useEffect as Q, useRef as $ } from "react";
|
|
4
4
|
import { NumberField as z, Input as G } from "react-aria-components";
|
|
5
|
-
import {
|
|
5
|
+
import { bh as _, be as S, br as H, bj as J, I as K, U as W, v as X, p as Y } from "./form-D9IxiDXP.js";
|
|
6
6
|
import { f as c } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as Z, E as w } from "./field-error-headless-
|
|
8
|
-
import { L as ee } from "./field-label-headless-
|
|
7
|
+
import { D as Z, E as w } from "./field-error-headless-DU0YsEXR.js";
|
|
8
|
+
import { L as ee } from "./field-label-headless-CvdTZi6i.js";
|
|
9
9
|
import { g as re, c as te } from "./numeric-input-utils-CuBMi4-a.js";
|
|
10
10
|
import { u as ne } from "./use-invoke-callback-UH73A_J3.js";
|
|
11
11
|
import { E as ae } from "./error-icon-hZxQ6DEy.js";
|
|
12
|
-
import { s as p } from "./field-rac.module-
|
|
13
|
-
import { u as se } from "./use-text-input-class-name-
|
|
12
|
+
import { s as p } from "./field-rac.module-BIBNQEOK.js";
|
|
13
|
+
import { u as se } from "./use-text-input-class-name-DGpCdZ_e.js";
|
|
14
14
|
const e = ({ children: t }) => {
|
|
15
15
|
var F, L, R;
|
|
16
|
-
const { id: a, value: s, onChange: l, disabled: d, required: b, readOnly: o, onBlur: E, onFocus: f, FieldLayout: m, hasError: u, validation: n } = _(), { labelId: y } = S(), D = ((F = n == null ? void 0 : n.number) == null ? void 0 : F.multipleOf) || 1, A = (L = n == null ? void 0 : n.number) == null ? void 0 : L.maximum, g = (R = n == null ? void 0 : n.number) == null ? void 0 : R.minimum,
|
|
16
|
+
const { id: a, value: s, onChange: l, disabled: d, required: b, readOnly: o, onBlur: E, onFocus: f, FieldLayout: m, hasError: u, validation: n } = _(), { labelId: y } = S(), D = ((F = n == null ? void 0 : n.number) == null ? void 0 : F.multipleOf) || 1, A = (L = n == null ? void 0 : n.number) == null ? void 0 : L.maximum, g = (R = n == null ? void 0 : n.number) == null ? void 0 : R.minimum, h = O(s), [x, I] = U(h), T = ne(E), V = c(t, e.Label), q = c(t, e.Input), M = c(t, e.Description), k = c(t, e.Error), B = j((N) => {
|
|
17
17
|
if (N === void 0 || Number.isNaN(N)) {
|
|
18
18
|
l(""), I(NaN);
|
|
19
19
|
return;
|
|
@@ -30,16 +30,16 @@ const e = ({ children: t }) => {
|
|
|
30
30
|
s
|
|
31
31
|
]), /* @__PURE__ */ r.createElement(m, {
|
|
32
32
|
fieldId: a,
|
|
33
|
-
renderLabel: () =>
|
|
33
|
+
renderLabel: () => V,
|
|
34
34
|
renderInput: () => /* @__PURE__ */ r.createElement(z, {
|
|
35
35
|
"aria-labelledby": y,
|
|
36
|
-
value:
|
|
36
|
+
value: x,
|
|
37
37
|
onChange: B,
|
|
38
38
|
isDisabled: d,
|
|
39
39
|
isRequired: b,
|
|
40
40
|
isReadOnly: o,
|
|
41
41
|
isInvalid: u,
|
|
42
|
-
onBlur:
|
|
42
|
+
onBlur: T,
|
|
43
43
|
onFocus: f,
|
|
44
44
|
minValue: g ?? void 0,
|
|
45
45
|
maxValue: A ?? void 0
|