@wix/form-elements 1.90.0 → 1.92.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-DtPa-JZ9.js → appointment-rac-bw0pvoxP.js} +4 -4
- package/dist/component/{bookings-address-rac-4l8kqoLi.js → bookings-address-rac-DECq7eWR.js} +1 -1
- package/dist/component/{bookings-email-rac-76vUcGtU.js → bookings-email-rac-DTLjh6Zw.js} +1 -1
- package/dist/component/{bookings-first-name-rac-IS7LUMxg.js → bookings-first-name-rac-DObRe-Gq.js} +1 -1
- package/dist/component/{bookings-header-rac-2wTzY64_.js → bookings-header-rac-DjpmYRJG.js} +1 -1
- package/dist/component/{bookings-last-name-rac-nxA75igv.js → bookings-last-name-rac-Ds3o0ABM.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-CRi1nntD.js → bookings-login-bar-rac-DPUL2jWj.js} +1 -1
- package/dist/component/{bookings-phone-rac-DZjvHly0.js → bookings-phone-rac-DIIHPxEP.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-CYn1wwYQ.js → bookings-rich-text-rac-BrcQO9xx.js} +1 -1
- package/dist/component/{checkbox-field-rac-DAcFLQNT.js → checkbox-field-rac-CD1MP1LT.js} +4 -4
- package/dist/component/{checkbox-group-field-headless-BJmS0Ce5.js → checkbox-group-field-headless-C0V6zq0u.js} +3 -3
- package/dist/component/{checkbox-group-field-rac-CeFUt2Nr.js → checkbox-group-field-rac-B-MYpz53.js} +3 -3
- package/dist/component/{checkbox-group-rac-eDChVoVP.js → checkbox-group-rac-BejQjiO2.js} +1 -1
- package/dist/component/{checkbox-rac-DGmZdPnl.js → checkbox-rac-B0YgCj29.js} +1 -1
- package/dist/component/{contacts-address-rac-CGS83PMu.js → contacts-address-rac-B1QNl3Lb.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-DkP-7tZ9.js → contacts-birthdate-rac-Cp-gh3P-.js} +1 -1
- package/dist/component/{contacts-company-rac-D_KYvkYe.js → contacts-company-rac-CSCU7JGm.js} +1 -1
- package/dist/component/{contacts-email-rac-4lGD56E8.js → contacts-email-rac-B1Oov6-3.js} +1 -1
- package/dist/component/{contacts-first-name-rac-C5L3U9QV.js → contacts-first-name-rac-rsHIOcjr.js} +1 -1
- package/dist/component/{contacts-last-name-rac-SL3FSAhE.js → contacts-last-name-rac-Csgq53Wm.js} +1 -1
- package/dist/component/{contacts-phone-rac-DkUwJ56_.js → contacts-phone-rac-r9SwjDZ4.js} +1 -1
- package/dist/component/{contacts-position-rac-CeKJ5oJh.js → contacts-position-rac-D7VcCM7v.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-Bjldz7ed.js → contacts-subscribe-rac-8Nu9ncZW.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-D8QxyDiU.js → contacts-tax-id-rac-CL_JSl_W.js} +1 -1
- package/dist/component/{date-availability-DdMI-zNj.js → date-availability-DLOKY9C4.js} +1 -1
- package/dist/component/date-input-field-rac-D23Al-Mr.js +292 -0
- package/dist/component/{date-input-rac-tlmhXr4A.js → date-input-rac-B6zgkw-L.js} +1 -1
- package/dist/component/{date-picker-field-rac-ClNfMoR1.js → date-picker-field-rac-BqdzPPzK.js} +4 -4
- package/dist/component/{date-picker-rac-BV3TGjsx.js → date-picker-rac-C7g6aceb.js} +1 -1
- package/dist/component/date-time-input-field-rac-BENzf6gc.js +428 -0
- package/dist/component/{date-time-input-rac-DQk2ylbE.js → date-time-input-rac-CVpK3mgw.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-CBj9Y7Tp.js → dext-checkbox-group-rac-CbEFDD3H.js} +2 -2
- package/dist/component/{dext-checkbox-rac-C1KI5I2J.js → dext-checkbox-rac-BdtZvn6I.js} +1 -1
- package/dist/component/{dext-date-picker-rac-D-8Ss0bx.js → dext-date-picker-rac-BAhFvUEx.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-CRnwLBSZ.js → dext-date-time-input-rac-iXMKMwQY.js} +1 -1
- package/dist/component/{dext-dropdown-rac-BVTEMS0W.js → dext-dropdown-rac-D-NPziZS.js} +1 -1
- package/dist/component/{dext-email-rac-CXeM4iQj.js → dext-email-rac-DYSwyB80.js} +1 -1
- package/dist/component/{dext-number-input-rac-DMh08cy5.js → dext-number-input-rac-DXx8hgFg.js} +1 -1
- package/dist/component/{dext-phone-rac-E1fFjkVW.js → dext-phone-rac-BtuLROzm.js} +1 -1
- package/dist/component/{dext-radio-group-rac-_BhRzFAr.js → dext-radio-group-rac-MdKNiJ2i.js} +2 -2
- package/dist/component/{dext-rating-input-rac-BRYVQOYw.js → dext-rating-input-rac-d998xond.js} +1 -1
- package/dist/component/{dext-tags-rac-C4iwtRcw.js → dext-tags-rac-DnSpOM9T.js} +2 -2
- package/dist/component/{dext-text-area-rac-CQ1KAhkU.js → dext-text-area-rac-KqjeDDWe.js} +1 -1
- package/dist/component/{dext-text-input-rac-xCoKhEt3.js → dext-text-input-rac-CtCnClfX.js} +1 -1
- package/dist/component/{dext-url-input-rac-DyoEEa_v.js → dext-url-input-rac-DSJQcLLr.js} +1 -1
- package/dist/component/{donation-rac-CSDVxWUj.js → donation-rac-B_KGkBgo.js} +5 -5
- package/dist/component/dropdown-field-headless-BUilB8wZ.js +89 -0
- package/dist/component/{dropdown-field-rac-D1Z_Jbzd.js → dropdown-field-rac-COupYC1a.js} +2 -2
- package/dist/component/{dropdown-rac-BEi7CMKT.js → dropdown-rac-Dj0UZrE0.js} +1 -1
- package/dist/component/{ecom-address-rac-DGl7rlwa.js → ecom-address-rac-C0xnn86e.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-D5HzzRQk.js → ecom-subscription-checkbox-rac-D-ekxwUE.js} +2 -2
- package/dist/component/{email-input-field-rac-DHAK2K8E.js → email-input-field-rac-DVj1qz_R.js} +3 -3
- package/dist/component/{events-repeater-rac-N1mGqD4R.js → events-repeater-rac-U0aq9Z4Q.js} +3 -3
- package/dist/component/{events-rsvp-rac-Ds9PnqHG.js → events-rsvp-rac-C7J58_5q.js} +2 -2
- package/dist/component/{field-error-headless-9MKScovg.js → field-error-headless-2nYJ2792.js} +1 -1
- package/dist/component/{field-label-headless-BaoLrUWJ.js → field-label-headless-D97ACnmc.js} +1 -1
- package/dist/component/{file-upload-rac-CNbLRxUz.js → file-upload-rac-BR7QpuPW.js} +3 -3
- package/dist/component/{fixed-payment-rac-BFnvUksR.js → fixed-payment-rac-COl18wW1.js} +3 -3
- package/dist/component/{form-B3YjGh0T.js → form-DKKTSAj1.js} +1110 -1109
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-64pYqszP.js → header-field-rac-B6DyMG3U.js} +2 -2
- package/dist/component/{header-rac-BtPQVL59.js → header-rac-x4H2qMky.js} +1 -1
- package/dist/component/{image-choice-rac-BsojUR1h.js → image-choice-rac-BVgmKTKk.js} +4 -4
- package/dist/component/{index-CtiBRBqZ.js → index-C47UMGhd.js} +4 -4
- package/dist/component/{index-f2JBxCTd.js → index-DnpqBcg5.js} +2 -2
- package/dist/component/{isObjectLike-BgqHLNgn.js → isObjectLike-BrrFBP4f.js} +1 -1
- package/dist/component/multiline-address-field-rac-B6ka-2Wy.js +1630 -0
- package/dist/component/{multiline-address-rac-CkOPWXfI.js → multiline-address-rac-Bh58qUEe.js} +1 -1
- package/dist/component/{number-input-field-rac-B7U_08UK.js → number-input-field-rac-pAmxvk3A.js} +4 -4
- package/dist/component/{number-input-rac-1jcchySg.js → number-input-rac-mKA2njIU.js} +1 -1
- package/dist/component/{password-rac-CAaV8OrL.js → password-rac-BbD7PQXO.js} +4 -4
- package/dist/component/{payment-input-rac-B3Knhzrz.js → payment-input-rac-UdkwC1ek.js} +4 -4
- package/dist/component/phone-input-field-rac-BVLVVDTq.js +487 -0
- package/dist/component/{phone-rac-BUAW-44w.js → phone-rac-LixcB9WV.js} +1 -1
- package/dist/component/{product-list-rac-C7Nq3ZG4.js → product-list-rac-B_dL1Ov-.js} +4 -4
- package/dist/component/{quiz-radio-group-rac-CRa3I_NR.js → quiz-radio-group-rac-Bj5XfqNf.js} +1 -1
- package/dist/component/{radio-button-module-classes-BEvf741q.js → radio-button-module-classes-y_PtsZPP.js} +3 -3
- package/dist/component/{radio-group-field-rac-BYTXrpnE.js → radio-group-field-rac-C8OElNAQ.js} +3 -3
- package/dist/component/{radio-group-rac-138JrIhm.js → radio-group-rac-BqJFboHE.js} +1 -1
- package/dist/component/{rating-input-field-rac-D5pOVdFJ.js → rating-input-field-rac-C9_ITvEh.js} +4 -4
- package/dist/component/{rating-input-rac-DuK1q9JB.js → rating-input-rac-CvTpEUoU.js} +1 -1
- package/dist/component/{rich-content-rac.module-H3hPgDtD.js → rich-content-rac.module-D4pEN-TY.js} +1 -1
- package/dist/component/{rich-text-field-rac-Btwqm4wb.js → rich-text-field-rac-B8cqCmaf.js} +2 -2
- package/dist/component/{rich-text-rac-DIu8StCg.js → rich-text-rac-C1o-tfXG.js} +1 -1
- package/dist/component/{service-dropdown-rac-N8jqoUC_.js → service-dropdown-rac-BOXqB2aq.js} +4 -4
- package/dist/component/{services-multi-choice-rac-DlP0tB9d.js → services-multi-choice-rac-Dk4rz-fw.js} +5 -5
- package/dist/component/{signature-rac-DuRzxIkO.js → signature-rac-h9GWVdez.js} +3 -3
- package/dist/component/{submit-button-rac-DFmPp4jT.js → submit-button-rac-qNaTyCxd.js} +1 -1
- package/dist/component/{tags-field-rac-DIgyn5P9.js → tags-field-rac-NMRn0YnW.js} +5 -5
- package/dist/component/{tags-rac-C6R6RHl2.js → tags-rac-DGx4KxEn.js} +1 -1
- package/dist/component/{text-area-field-rac-opBEx_8s.js → text-area-field-rac-C7u0D4l3.js} +4 -4
- package/dist/component/{text-area-rac-D4iKhAqc.js → text-area-rac-Yo-RIyLm.js} +1 -1
- package/dist/component/{text-input-field-rac-Ckp8Ierz.js → text-input-field-rac-CvU-1clq.js} +2 -2
- package/dist/component/{text-input-headless-D-LXpqS3.js → text-input-headless-DLRwVmwf.js} +3 -3
- package/dist/component/{text-input-rac-ChxuJj-q.js → text-input-rac-CWh5xjZA.js} +1 -1
- package/dist/component/{time-input-rac-C5_rEy7W.js → time-input-rac-BZlso9qK.js} +4 -4
- package/dist/component/{url-input-field-rac-CBOnhquz.js → url-input-field-rac-Bax0TB4Q.js} +4 -4
- package/dist/component/{url-input-rac-BY-BVg6r.js → url-input-rac-Bw2nfybR.js} +1 -1
- package/dist/component/use-dropdown-option-class-name-vKSagp3b.js +57 -0
- package/dist/component/{use-element-state-class-name--YLulmsU.js → use-element-state-class-name-C0zLrsDR.js} +1 -1
- package/dist/component/{use-service-options-base-BNLFmnHJ.js → use-service-options-base-Bkj6BSQL.js} +1 -1
- package/dist/component/{use-text-input-class-name-3Xp-hNDT.js → use-text-input-class-name-Biu89Ma7.js} +2 -2
- package/dist/form.d.ts +15 -7
- package/package.json +23 -22
- package/dist/component/date-input-field-rac-Da6j7OP2.js +0 -288
- package/dist/component/date-time-input-field-rac-5eHyKry0.js +0 -424
- package/dist/component/dropdown-field-headless-BXyP9KYi.js +0 -101
- package/dist/component/multiline-address-field-rac-CH1hCUTf.js +0 -1618
- package/dist/component/phone-input-field-rac-BGsvxtXz.js +0 -474
- package/dist/component/use-dropdown-option-class-name-C1iEE28P.js +0 -28
package/dist/component/{rating-input-field-rac-D5pOVdFJ.js → rating-input-field-rac-C9_ITvEh.js}
RENAMED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { RicosViewer as y } from "@wix/ricos/viewer";
|
|
2
2
|
import m from "classnames";
|
|
3
3
|
import e, { useCallback as N, useState as O, useRef as A } from "react";
|
|
4
|
-
import { ak as b, ah as v, au as T } from "./form-
|
|
4
|
+
import { ak as b, ah as v, au as T } from "./form-DKKTSAj1.js";
|
|
5
5
|
import { RadioGroup as H, RadioField as M, RadioButton as w } from "react-aria-components";
|
|
6
6
|
import { f as u, a as B } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as P, E as q } from "./field-error-headless-
|
|
8
|
-
import { L as k } from "./field-label-headless-
|
|
7
|
+
import { D as P, E as q } from "./field-error-headless-2nYJ2792.js";
|
|
8
|
+
import { L as k } from "./field-label-headless-D97ACnmc.js";
|
|
9
9
|
import { E as G } from "./error-icon-hZxQ6DEy.js";
|
|
10
10
|
import { s as g } from "./field-rac.module-BUvPquav.js";
|
|
11
11
|
import { B as x, R as Q, P as U, q as z, i as Z, Q as j } from "./form-element-classes-CLZXu-91.js";
|
|
12
|
-
import { u as J } from "./use-element-state-class-name
|
|
12
|
+
import { u as J } from "./use-element-state-class-name-C0zLrsDR.js";
|
|
13
13
|
const t = ({ children: a }) => {
|
|
14
14
|
const { id: n, value: r, onChange: l, disabled: o, readOnly: d, required: c, hasError: i, onBlur: E, onFocus: R, FieldLayout: C } = b(), { labelId: _ } = v(), L = N((D) => l(Number(D)), [
|
|
15
15
|
l
|
package/dist/component/{rich-content-rac.module-H3hPgDtD.js → rich-content-rac.module-D4pEN-TY.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import c, { useState as l } from "react";
|
|
2
|
-
import { ak as a, ac as i, au as T } from "./form-
|
|
2
|
+
import { ak as a, ac as i, au as T } from "./form-DKKTSAj1.js";
|
|
3
3
|
import { Button as d } from "react-aria-components";
|
|
4
4
|
import { D as r } from "./data-hooks-Dkw1pbRj.js";
|
|
5
5
|
import { truncateRichContent as _ } from "@wix/ricos/content";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import l from "classnames";
|
|
2
2
|
import e from "react";
|
|
3
|
-
import { ak as m, L as i, X as u, _ as R } from "./form-
|
|
4
|
-
import { u as T, R as C, s as d, T as p } from "./rich-content-rac.module-
|
|
3
|
+
import { ak as m, L as i, X as u, _ as R } from "./form-DKKTSAj1.js";
|
|
4
|
+
import { u as T, R as C, s as d, T as p } from "./rich-content-rac.module-D4pEN-TY.js";
|
|
5
5
|
import { a5 as g } from "./form-element-classes-CLZXu-91.js";
|
|
6
6
|
const h = {
|
|
7
7
|
colorPalette: R(),
|
package/dist/component/{service-dropdown-rac-N8jqoUC_.js → service-dropdown-rac-BOXqB2aq.js}
RENAMED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import t, { useRef as P, useMemo as L, useCallback as S, useEffect as T } from "react";
|
|
2
2
|
import { RicosViewer as w } from "@wix/ricos/viewer";
|
|
3
3
|
import u from "classnames";
|
|
4
|
-
import { ag as A, au as b, F as M, ak as y, ac as V, h as k } from "./form-
|
|
5
|
-
import { u as q } from "./use-service-options-base-
|
|
6
|
-
import { D as d } from "./dropdown-field-headless-
|
|
4
|
+
import { ag as A, au as b, F as M, ak as y, ac as V, h as k } from "./form-DKKTSAj1.js";
|
|
5
|
+
import { u as q } from "./use-service-options-base-Bkj6BSQL.js";
|
|
6
|
+
import { D as d } from "./dropdown-field-headless-BUilB8wZ.js";
|
|
7
7
|
import { C as x } from "./chevron-down-icon-CcpVm6B-.js";
|
|
8
8
|
import { E as B } from "./error-icon-hZxQ6DEy.js";
|
|
9
9
|
import { H } from "./custom-focus-class-_483Pkwp.js";
|
|
10
10
|
import { s as i } from "./field-rac.module-BUvPquav.js";
|
|
11
11
|
import { B as U, R as W, m as G, D as Q, q as Y, i as j } from "./form-element-classes-CLZXu-91.js";
|
|
12
|
-
import { u as z } from "./use-dropdown-option-class-name-
|
|
12
|
+
import { u as z } from "./use-dropdown-option-class-name-vKSagp3b.js";
|
|
13
13
|
const J = "00000000-0000-0000-0000-000000000000", K = (e) => {
|
|
14
14
|
const { actions: r } = A(), { t: h } = b(), { addOther: n, addOtherLabel: p } = e, c = p || h("add-other.default-other-option-label"), a = P(!0), E = L(() => {
|
|
15
15
|
var s;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import e, { useEffect as I, useMemo as L } from "react";
|
|
2
2
|
import { RicosViewer as R } from "@wix/ricos/viewer";
|
|
3
3
|
import r from "classnames";
|
|
4
|
-
import { F as S, ak as d, h as D } from "./form-
|
|
5
|
-
import { u as f } from "./use-service-options-base-
|
|
6
|
-
import { C as n } from "./checkbox-group-field-headless-
|
|
4
|
+
import { F as S, ak as d, h as D } from "./form-DKKTSAj1.js";
|
|
5
|
+
import { u as f } from "./use-service-options-base-Bkj6BSQL.js";
|
|
6
|
+
import { C as n } from "./checkbox-group-field-headless-C0V6zq0u.js";
|
|
7
7
|
import { E as F } from "./error-icon-hZxQ6DEy.js";
|
|
8
8
|
import { C as N } from "./checkbox-indicator-module-classes-mJ7hl_8K.js";
|
|
9
9
|
import { s as a } from "./field-rac.module-BUvPquav.js";
|
|
10
10
|
import { B as h, R as b, c as M, e as A, q as v, i as x, d as P } from "./form-element-classes-CLZXu-91.js";
|
|
11
11
|
import { o as _ } from "./options-rac.module-KM-VT_KY.js";
|
|
12
|
-
import { u as T } from "./use-element-state-class-name
|
|
13
|
-
import { u as k } from "./use-text-input-class-name-
|
|
12
|
+
import { u as T } from "./use-element-state-class-name-C0zLrsDR.js";
|
|
13
|
+
import { u as k } from "./use-text-input-class-name-Biu89Ma7.js";
|
|
14
14
|
const B = (s) => {
|
|
15
15
|
var C;
|
|
16
16
|
const { isLoading: o, options: i, isEmpty: c, shouldRender: m, setOptions: l, setIsEmpty: E, setHasInitialDataLoaded: p } = f({
|
|
@@ -4,10 +4,10 @@ import v from "classnames";
|
|
|
4
4
|
import { useHover as ve, useFocusRing as xe, mergeProps as Se } from "react-aria";
|
|
5
5
|
import { RadioGroup as Fe, Button as fe, TextField as Ae, Input as _e, RadioField as Pe, RadioButton as Ne } from "react-aria-components";
|
|
6
6
|
import he from "signature_pad";
|
|
7
|
-
import { G as Ue, ag as Oe, ac as Be, as as ge, E as ce, e as G, ak as A, ah as H, am as Ee, au as Me } from "./form-
|
|
7
|
+
import { G as Ue, ag as Oe, ac as Be, as as ge, E as ce, e as G, ak as A, ah as H, am as Ee, au as Me } from "./form-DKKTSAj1.js";
|
|
8
8
|
import { f as T, a as F } from "./find-child-C60k4CxG.js";
|
|
9
|
-
import { D as We, E as He } from "./field-error-headless-
|
|
10
|
-
import { L as Ye } from "./field-label-headless-
|
|
9
|
+
import { D as We, E as He } from "./field-error-headless-2nYJ2792.js";
|
|
10
|
+
import { L as Ye } from "./field-label-headless-D97ACnmc.js";
|
|
11
11
|
import { D as ke } from "./data-hooks-Dkw1pbRj.js";
|
|
12
12
|
import { E as $e } from "./error-icon-hZxQ6DEy.js";
|
|
13
13
|
import { s as z } from "./field-rac.module-BUvPquav.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t, { useRef as y, useCallback as f } from "react";
|
|
2
2
|
import P from "@wix/editor-react-components/AnimatedIcon";
|
|
3
3
|
import b from "classnames";
|
|
4
|
-
import { ak as B, ae as h } from "./form-
|
|
4
|
+
import { ak as B, ae as h } from "./form-DKKTSAj1.js";
|
|
5
5
|
import { ProgressBar as A, Button as N } from "react-aria-components";
|
|
6
6
|
import { f as c } from "./find-child-C60k4CxG.js";
|
|
7
7
|
import { a4 as I, a3 as O, a6 as w, a8 as F, A as k, a7 as R } from "./form-element-classes-CLZXu-91.js";
|
|
@@ -2,18 +2,18 @@ import { RicosViewer as Q } from "@wix/ricos/viewer";
|
|
|
2
2
|
import R from "classnames";
|
|
3
3
|
import e, { useMemo as L, useState as j, useRef as M, useLayoutEffect as w, useCallback as k } from "react";
|
|
4
4
|
import { CheckboxGroup as z, TextField as J, Input as K, CheckboxField as X, CheckboxButton as Y } from "react-aria-components";
|
|
5
|
-
import { ak as N, ah as Z, au as y, ac as ee, am as te } from "./form-
|
|
5
|
+
import { ak as N, ah as Z, au as y, ac as ee, am as te } from "./form-DKKTSAj1.js";
|
|
6
6
|
import { f, a as x } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { E as B, D as $ } from "./field-error-headless-
|
|
8
|
-
import { L as q } from "./field-label-headless-
|
|
7
|
+
import { E as B, D as $ } from "./field-error-headless-2nYJ2792.js";
|
|
8
|
+
import { L as q } from "./field-label-headless-D97ACnmc.js";
|
|
9
9
|
import { F as oe } from "./fieldset-headless-CD3fds9J.js";
|
|
10
10
|
import { N as v } from "./options-layout-constants-DEfIEJWD.js";
|
|
11
11
|
import { E as ne } from "./error-icon-hZxQ6DEy.js";
|
|
12
12
|
import { s as D } from "./field-rac.module-BUvPquav.js";
|
|
13
13
|
import { B as ae, R as se, _ as re, q as le, i as ie, $ as ce } from "./form-element-classes-CLZXu-91.js";
|
|
14
14
|
import { o as ue } from "./options-rac.module-KM-VT_KY.js";
|
|
15
|
-
import { u as de } from "./use-element-state-class-name
|
|
16
|
-
import { u as me } from "./use-text-input-class-name-
|
|
15
|
+
import { u as de } from "./use-element-state-class-name-C0zLrsDR.js";
|
|
16
|
+
import { u as me } from "./use-text-input-class-name-Biu89Ma7.js";
|
|
17
17
|
const g = "Other", pe = (o, t) => {
|
|
18
18
|
const s = t.length + 2;
|
|
19
19
|
return (o.find((r) => r.startsWith(`${t}: `)) || "").slice(s);
|
|
@@ -2,14 +2,14 @@ import { RicosViewer as N } from "@wix/ricos/viewer";
|
|
|
2
2
|
import o from "classnames";
|
|
3
3
|
import r, { useCallback as T, useRef as O } from "react";
|
|
4
4
|
import { TextField as S, TextArea as y } from "react-aria-components";
|
|
5
|
-
import { ak as p, ah as d, am as x } from "./form-
|
|
5
|
+
import { ak as p, ah as d, am as x } from "./form-DKKTSAj1.js";
|
|
6
6
|
import { f as i } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as h, E as g } from "./field-error-headless-
|
|
8
|
-
import { L as q } from "./field-label-headless-
|
|
7
|
+
import { D as h, E as g } from "./field-error-headless-2nYJ2792.js";
|
|
8
|
+
import { L as q } from "./field-label-headless-D97ACnmc.js";
|
|
9
9
|
import { E as v } from "./error-icon-hZxQ6DEy.js";
|
|
10
10
|
import { s as c } from "./field-rac.module-BUvPquav.js";
|
|
11
11
|
import { B, R as M, q as k, i as P } from "./form-element-classes-CLZXu-91.js";
|
|
12
|
-
import { u as V } from "./use-text-input-class-name-
|
|
12
|
+
import { u as V } from "./use-text-input-class-name-Biu89Ma7.js";
|
|
13
13
|
const e = ({ children: t }) => {
|
|
14
14
|
const { id: a, value: m, onChange: s, disabled: u, required: n, readOnly: l, onBlur: E, onFocus: f, FieldLayout: I, hasError: R } = p(), { labelId: b } = d(), F = T((A) => {
|
|
15
15
|
s(A);
|
package/dist/component/{text-input-field-rac-Ckp8Ierz.js → text-input-field-rac-CvU-1clq.js}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { RicosViewer as l } from "@wix/ricos/viewer";
|
|
2
2
|
import t from "classnames";
|
|
3
3
|
import e from "react";
|
|
4
|
-
import { T as r } from "./text-input-headless-
|
|
4
|
+
import { T as r } from "./text-input-headless-DLRwVmwf.js";
|
|
5
5
|
import { E as o } from "./error-icon-hZxQ6DEy.js";
|
|
6
6
|
import { s as a } from "./field-rac.module-BUvPquav.js";
|
|
7
7
|
import { B as n, R as c, q as E, i } from "./form-element-classes-CLZXu-91.js";
|
|
8
|
-
import { u as p } from "./use-text-input-class-name-
|
|
8
|
+
import { u as p } from "./use-text-input-class-name-Biu89Ma7.js";
|
|
9
9
|
const R = ({ content: s, locale: m }) => /* @__PURE__ */ e.createElement(l, {
|
|
10
10
|
content: s,
|
|
11
11
|
locale: m
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import t, { useRef as L } from "react";
|
|
2
2
|
import { TextField as R, Input as h } from "react-aria-components";
|
|
3
|
-
import { ak as d, ah as c, am as v } from "./form-
|
|
3
|
+
import { ak as d, ah as c, am as v } from "./form-DKKTSAj1.js";
|
|
4
4
|
import { f as a } from "./find-child-C60k4CxG.js";
|
|
5
|
-
import { D as T, E as g } from "./field-error-headless-
|
|
6
|
-
import { L as x } from "./field-label-headless-
|
|
5
|
+
import { D as T, E as g } from "./field-error-headless-2nYJ2792.js";
|
|
6
|
+
import { L as x } from "./field-label-headless-D97ACnmc.js";
|
|
7
7
|
const e = ({ children: r }) => {
|
|
8
8
|
const { id: s, value: i, onChange: l, disabled: u, readOnly: n, required: o, hasError: p, onBlur: m, onFocus: b, FieldLayout: f } = d(), { labelId: E } = c(), I = a(r, e.Label), F = a(r, e.Input), y = a(r, e.Description), D = a(r, e.Error);
|
|
9
9
|
return /* @__PURE__ */ t.createElement(f, {
|
|
@@ -3,15 +3,15 @@ import { RicosViewer as B } from "@wix/ricos/viewer";
|
|
|
3
3
|
import c from "classnames";
|
|
4
4
|
import { parseTime as k } from "@internationalized/date";
|
|
5
5
|
import { TimeField as v, DateInput as U, DateSegment as _, TimeFieldStateContext as w } from "react-aria-components";
|
|
6
|
-
import { ak as p, ah as j, au as S, am as Q } from "./form-
|
|
6
|
+
import { ak as p, ah as j, au as S, am as Q } from "./form-DKKTSAj1.js";
|
|
7
7
|
import { f as m, a as F } from "./find-child-C60k4CxG.js";
|
|
8
|
-
import { D as z, E as G } from "./field-error-headless-
|
|
9
|
-
import { L as J } from "./field-label-headless-
|
|
8
|
+
import { D as z, E as G } from "./field-error-headless-2nYJ2792.js";
|
|
9
|
+
import { L as J } from "./field-label-headless-D97ACnmc.js";
|
|
10
10
|
import { E as K } from "./error-icon-hZxQ6DEy.js";
|
|
11
11
|
import { H as T } from "./custom-focus-class-_483Pkwp.js";
|
|
12
12
|
import { s as f } from "./field-rac.module-BUvPquav.js";
|
|
13
13
|
import { B as W, R as X, q as Y, i as Z } from "./form-element-classes-CLZXu-91.js";
|
|
14
|
-
import { u as $ } from "./use-text-input-class-name-
|
|
14
|
+
import { u as $ } from "./use-text-input-class-name-Biu89Ma7.js";
|
|
15
15
|
const r = ({ children: t }) => {
|
|
16
16
|
const { id: n, value: l, onChange: o, disabled: i, readOnly: s, required: a, onBlur: d, onFocus: E, use24HourFormat: C, FieldLayout: g, hasError: I } = p(), { inputId: R, ariaDescribedBy: D, labelId: L } = j(), b = V((M) => {
|
|
17
17
|
const H = ae(M);
|
|
@@ -2,15 +2,15 @@ import { RicosViewer as N } from "@wix/ricos/viewer";
|
|
|
2
2
|
import i from "classnames";
|
|
3
3
|
import r, { useCallback as S, useRef as O } from "react";
|
|
4
4
|
import { TextField as y, Input as A } from "react-aria-components";
|
|
5
|
-
import { ak as d, ah as E, am as B } from "./form-
|
|
5
|
+
import { ak as d, ah as E, am as B } from "./form-DKKTSAj1.js";
|
|
6
6
|
import { f as c } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as k, E as T } from "./field-error-headless-
|
|
8
|
-
import { L as g } from "./field-label-headless-
|
|
7
|
+
import { D as k, E as T } from "./field-error-headless-2nYJ2792.js";
|
|
8
|
+
import { L as g } from "./field-label-headless-D97ACnmc.js";
|
|
9
9
|
import { u as q } from "./use-invoke-callback-UH73A_J3.js";
|
|
10
10
|
import { E as v } from "./error-icon-hZxQ6DEy.js";
|
|
11
11
|
import { s as u } from "./field-rac.module-BUvPquav.js";
|
|
12
12
|
import { B as M, R as P, q as x, i as U } from "./form-element-classes-CLZXu-91.js";
|
|
13
|
-
import { u as w } from "./use-text-input-class-name-
|
|
13
|
+
import { u as w } from "./use-text-input-class-name-Biu89Ma7.js";
|
|
14
14
|
const V = (t) => t ? `https://${String(t).replace(/^https?:\/\//, "")}` : "", e = ({ children: t }) => {
|
|
15
15
|
const { id: o, value: a, onChange: s, disabled: m, readOnly: n, required: l, hasError: I, onBlur: f, onFocus: R, FieldLayout: b } = d(), { labelId: F } = E(), p = q(f), L = c(t, e.Label), D = c(t, e.Input), C = c(t, e.Description), _ = c(t, e.Error), h = S(() => {
|
|
16
16
|
s(V(a)), p();
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { useContext as l, useMemo as p } from "react";
|
|
2
|
+
import { ae as E, l as u, ac as c, F as t } from "./form-DKKTSAj1.js";
|
|
3
|
+
import _ from "classnames";
|
|
4
|
+
import { s as a } from "./field-rac.module-BUvPquav.js";
|
|
5
|
+
import { l as S } from "./form-element-classes-CLZXu-91.js";
|
|
6
|
+
import { u as T } from "./use-element-state-class-name-C0zLrsDR.js";
|
|
7
|
+
const d = [
|
|
8
|
+
t.DROPDOWN,
|
|
9
|
+
t.DEXT_DROPDOWN,
|
|
10
|
+
t.SERVICES_DROPDOWN,
|
|
11
|
+
t.DATE_INPUT,
|
|
12
|
+
t.CONTACTS_BIRTHDATE,
|
|
13
|
+
t.DATE_TIME_INPUT,
|
|
14
|
+
t.DEXT_DATE_TIME_INPUT
|
|
15
|
+
], N = [
|
|
16
|
+
t.PHONE,
|
|
17
|
+
t.CONTACTS_PHONE,
|
|
18
|
+
t.BOOKINGS_PHONE,
|
|
19
|
+
t.DEXT_PHONE
|
|
20
|
+
], m = [
|
|
21
|
+
t.MULTILINE_ADDRESS,
|
|
22
|
+
t.BOOKINGS_ADDRESS,
|
|
23
|
+
t.ECOM_ADDRESS
|
|
24
|
+
], P = ({ properties: o }) => {
|
|
25
|
+
var e, s, n, r;
|
|
26
|
+
return ((r = (n = (s = (e = o.validation) == null ? void 0 : e.string) == null ? void 0 : s.phoneOptions) == null ? void 0 : n.allowedCountryCodes) == null ? void 0 : r.length) !== 1;
|
|
27
|
+
}, I = ({ properties: o }) => {
|
|
28
|
+
var e, s;
|
|
29
|
+
return ((s = (e = o.fieldSettings) == null ? void 0 : e.country) == null ? void 0 : s.show) !== !1;
|
|
30
|
+
}, C = (o, e) => N.includes(o.fieldType) ? !e && P(o) : m.includes(o.fieldType) ? I(o) : d.includes(o.fieldType), y = (o, e) => C(o, e) && !o.properties.hidden && !o.properties.disabled && !o.properties.readOnly, w = (o, e) => o.layout.row - e.layout.row || o.layout.column - e.layout.column, b = (o) => {
|
|
31
|
+
var O;
|
|
32
|
+
const e = ((O = E().dropdown) == null ? void 0 : O.open) === !0, s = l(u), { isMobile: n = !1 } = c(), r = p(() => {
|
|
33
|
+
var D;
|
|
34
|
+
return s && !s.parentId ? (D = s.fields.filter((i) => y(i, n)).sort(w)[0]) == null ? void 0 : D.id : void 0;
|
|
35
|
+
}, [
|
|
36
|
+
s,
|
|
37
|
+
n
|
|
38
|
+
]);
|
|
39
|
+
return e && r === o;
|
|
40
|
+
}, R = {
|
|
41
|
+
base: a.selectOption,
|
|
42
|
+
selected: a.selectOptionSelected,
|
|
43
|
+
hover: a.selectOptionHover
|
|
44
|
+
}, f = ({ isSelected: o, isHovered: e, isFocused: s }) => ({
|
|
45
|
+
isSelected: o,
|
|
46
|
+
isHovered: (e || s) && !o
|
|
47
|
+
}), g = (...o) => {
|
|
48
|
+
const e = T({
|
|
49
|
+
globalClasses: S,
|
|
50
|
+
moduleClasses: R
|
|
51
|
+
});
|
|
52
|
+
return (s) => _(e(f(s)), o);
|
|
53
|
+
};
|
|
54
|
+
export {
|
|
55
|
+
b as a,
|
|
56
|
+
g as u
|
|
57
|
+
};
|
package/dist/component/{use-service-options-base-BNLFmnHJ.js → use-service-options-base-Bkj6BSQL.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useState as o, useCallback as D, useEffect as m, useMemo as b } from "react";
|
|
2
|
-
import { aj as v } from "./form-
|
|
2
|
+
import { aj as v } from "./form-DKKTSAj1.js";
|
|
3
3
|
const j = (I) => {
|
|
4
4
|
const { fieldType: L, isEditor: t = !1, postProcessOptions: i, customFetchLogic: a, onInitialDataLoaded: n } = I, [O, h] = o(!1), [g, p] = o([]), [E, u] = o(!1), [c, f] = o(!1), s = v(L), r = D((e) => {
|
|
5
5
|
let d = e.map((l) => ({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ak as l } from "./form-
|
|
1
|
+
import { ak as l } from "./form-DKKTSAj1.js";
|
|
2
2
|
import { s } from "./field-rac.module-BUvPquav.js";
|
|
3
3
|
import { a0 as m } from "./form-element-classes-CLZXu-91.js";
|
|
4
|
-
import { u as i } from "./use-element-state-class-name
|
|
4
|
+
import { u as i } from "./use-element-state-class-name-C0zLrsDR.js";
|
|
5
5
|
const c = (...e) => {
|
|
6
6
|
const { disabled: a, readOnly: t } = l(), o = i({
|
|
7
7
|
globalClasses: m,
|
package/dist/form.d.ts
CHANGED
|
@@ -5194,7 +5194,7 @@ interface LayoutData {
|
|
|
5194
5194
|
containerData?: PluginContainerData;
|
|
5195
5195
|
/** Defines where selected design propertied applies to */
|
|
5196
5196
|
designTarget?: DesignTarget;
|
|
5197
|
-
/**
|
|
5197
|
+
/** Where this layout sits: an edge banner, or the paywall cut. One field, so the two can never be combined. */
|
|
5198
5198
|
banner?: Banner;
|
|
5199
5199
|
/** Background styling (color or gradient). */
|
|
5200
5200
|
background?: LayoutDataBackground;
|
|
@@ -5262,12 +5262,17 @@ interface BackgroundImage {
|
|
|
5262
5262
|
/** Color or gradient drawn on top of the image. When present, this is the authoritative overlay and `opacity` is ignored. Its presence also marks content as authored under the new overlay model (vs. the legacy `opacity`-based dimming on `background`/`backdrop`). */
|
|
5263
5263
|
overlay?: LayoutDataBackground;
|
|
5264
5264
|
}
|
|
5265
|
-
interface Banner {
|
|
5266
|
-
/** Origin of the banner */
|
|
5265
|
+
interface Banner extends BannerOriginPresenceOneOf {
|
|
5266
|
+
/** Origin of the banner. Edge positions only. */
|
|
5267
5267
|
origin?: Origin;
|
|
5268
|
-
/**
|
|
5268
|
+
/** Where the layout sits: an edge, or the paywall cut. */
|
|
5269
5269
|
position?: BannerPosition;
|
|
5270
5270
|
}
|
|
5271
|
+
/** @oneof */
|
|
5272
|
+
interface BannerOriginPresenceOneOf {
|
|
5273
|
+
/** Origin of the banner. Edge positions only. */
|
|
5274
|
+
origin?: Origin;
|
|
5275
|
+
}
|
|
5271
5276
|
declare enum Origin {
|
|
5272
5277
|
/** Banner originated from an image */
|
|
5273
5278
|
IMAGE = "IMAGE",
|
|
@@ -5275,10 +5280,12 @@ declare enum Origin {
|
|
|
5275
5280
|
LAYOUT = "LAYOUT"
|
|
5276
5281
|
}
|
|
5277
5282
|
declare enum BannerPosition {
|
|
5278
|
-
/** Attached to the top edge (banner) */
|
|
5283
|
+
/** Attached to the top edge (banner). The default, so a banner written before this field existed decodes as TOP. */
|
|
5279
5284
|
TOP = "TOP",
|
|
5280
|
-
/** Attached to the bottom edge (footer) */
|
|
5281
|
-
BOTTOM = "BOTTOM"
|
|
5285
|
+
/** Attached to the bottom edge (footer). */
|
|
5286
|
+
BOTTOM = "BOTTOM",
|
|
5287
|
+
/** The cut between free and paid content, not an edge banner. `origin` carries no meaning for it. */
|
|
5288
|
+
PAYWALL = "PAYWALL"
|
|
5282
5289
|
}
|
|
5283
5290
|
declare enum DesignTarget {
|
|
5284
5291
|
/** Design applied to layout */
|
|
@@ -6758,6 +6765,7 @@ interface FormSubmission {
|
|
|
6758
6765
|
/**
|
|
6759
6766
|
* Contact ID of a site visitor who created the submission.
|
|
6760
6767
|
* @format GUID
|
|
6768
|
+
* @readonly
|
|
6761
6769
|
* @immutable
|
|
6762
6770
|
*/
|
|
6763
6771
|
contactId?: string | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/form-elements",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.92.0",
|
|
4
4
|
"description": "The Wix Forms rendering element for Builder apps, loaded at runtime as @wix/form-elements/Form",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -47,21 +47,22 @@
|
|
|
47
47
|
"@babel/runtime": "^7.28.4",
|
|
48
48
|
"@internationalized/date": "^3.11.0",
|
|
49
49
|
"@wix/atlas": "^1.0.44",
|
|
50
|
-
"@wix/bookings": "^1.0.
|
|
50
|
+
"@wix/bookings": "^1.0.1722",
|
|
51
51
|
"@wix/essentials": "^1.0.15",
|
|
52
|
-
"@wix/fed-cli-i18next": "^1.
|
|
53
|
-
"@wix/form-templates": "^1.0.
|
|
54
|
-
"@wix/forms": "^1.0.
|
|
52
|
+
"@wix/fed-cli-i18next": "^1.7.1",
|
|
53
|
+
"@wix/form-templates": "^1.0.21",
|
|
54
|
+
"@wix/forms": "^1.0.533",
|
|
55
55
|
"@wix/image-kit": "^1.126.0",
|
|
56
56
|
"@wix/react-use-promise-polyfill": "^1.2.0",
|
|
57
|
-
"@wix/ricos": "^11.
|
|
57
|
+
"@wix/ricos": "^11.20.0",
|
|
58
58
|
"@wix/sdk-runtime": "^1.0.26",
|
|
59
59
|
"@wix/services-definitions": "^1.0.5",
|
|
60
|
-
"@wix/site-service-editor-context": "^1.0.
|
|
61
|
-
"@wix/site-service-lightbox": "^1.0.
|
|
62
|
-
"@wix/site-service-locale": "^1.0.
|
|
63
|
-
"@wix/site-service-
|
|
64
|
-
"@wix/
|
|
60
|
+
"@wix/site-service-editor-context": "^1.0.7",
|
|
61
|
+
"@wix/site-service-lightbox": "^1.0.4",
|
|
62
|
+
"@wix/site-service-locale": "^1.0.10",
|
|
63
|
+
"@wix/site-service-renderer-configuration": "^1.0.11",
|
|
64
|
+
"@wix/site-service-url": "^1.0.9",
|
|
65
|
+
"@wix/wix-ui-icons-common": "^3.190.8",
|
|
65
66
|
"ajv": "^8.18.0",
|
|
66
67
|
"ajv-errors": "^3.0.0",
|
|
67
68
|
"ajv-formats": "^2.1.1",
|
|
@@ -90,28 +91,28 @@
|
|
|
90
91
|
"@typescript/native": "npm:typescript@^7.0.2",
|
|
91
92
|
"@vercel/nft": "^1.11.0",
|
|
92
93
|
"@vitejs/plugin-react": "^4.7.0",
|
|
93
|
-
"@wix/ambassador-forms-v1-validation-result": "^1.0.
|
|
94
|
-
"@wix/ambassador-forms-v4-form-http": "^1.0.
|
|
95
|
-
"@wix/ambassador-forms-v4-submission-http": "^1.0.
|
|
96
|
-
"@wix/app-extensions": "^1.0.
|
|
94
|
+
"@wix/ambassador-forms-v1-validation-result": "^1.0.348",
|
|
95
|
+
"@wix/ambassador-forms-v4-form-http": "^1.0.616",
|
|
96
|
+
"@wix/ambassador-forms-v4-submission-http": "^1.0.590",
|
|
97
|
+
"@wix/app-extensions": "^1.0.194",
|
|
97
98
|
"@wix/babel-cli": "^1.20.0",
|
|
98
99
|
"@wix/builder-sandbox": "^1.12.2",
|
|
99
|
-
"@wix/cli": "^1.1.
|
|
100
|
+
"@wix/cli": "^1.1.263",
|
|
100
101
|
"@wix/component-protocol": "^1.253.0",
|
|
101
|
-
"@wix/custom-extensions": "^0.2.
|
|
102
|
+
"@wix/custom-extensions": "^0.2.24",
|
|
102
103
|
"@wix/dashboard": "^1.3.48",
|
|
103
|
-
"@wix/design-system": "^1.
|
|
104
|
-
"@wix/editor-react-types": "^1.0.
|
|
104
|
+
"@wix/design-system": "^1.338.0",
|
|
105
|
+
"@wix/editor-react-types": "^1.0.107",
|
|
105
106
|
"@wix/fed-cli-oxlint": "^1.0.6",
|
|
106
107
|
"@wix/fed-cli-plugin": "^1.0.1",
|
|
107
108
|
"@wix/fed-cli-sled": "^1.0.39",
|
|
108
|
-
"@wix/fed-cli-vitest": "^1.0.
|
|
109
|
+
"@wix/fed-cli-vitest": "^1.0.18",
|
|
109
110
|
"@wix/form-viewer": "^3.0.0",
|
|
110
111
|
"@wix/react-component-schema": "^1.10.0",
|
|
111
112
|
"@wix/react-component-utils": "^1.14.0",
|
|
112
113
|
"@wix/sdk-types": "^1.17.12",
|
|
113
114
|
"@wix/services-manager-react": "^1.0.8",
|
|
114
|
-
"@wix/sled-playwright": "^1.
|
|
115
|
+
"@wix/sled-playwright": "^1.398.0",
|
|
115
116
|
"oxfmt": "^0.62.0",
|
|
116
117
|
"oxlint": "^1.77.0",
|
|
117
118
|
"playwright": "~1.63.0",
|
|
@@ -154,5 +155,5 @@
|
|
|
154
155
|
]
|
|
155
156
|
}
|
|
156
157
|
},
|
|
157
|
-
"falconPackageHash": "
|
|
158
|
+
"falconPackageHash": "64c49dd1fd41e2f190e0dfa8e63c290146ebde8bdae0fef839ee992d"
|
|
158
159
|
}
|