@wix/form-elements 1.172.0 → 1.173.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.
Files changed (107) hide show
  1. package/dist/component/{appointment-rac-DZ0SFXmL.js → appointment-rac-DIV9zgmZ.js} +80 -80
  2. package/dist/component/{bookings-address-rac-BW9grc77.js → bookings-address-rac-C5cT4gkX.js} +1 -1
  3. package/dist/component/{bookings-email-rac-D8gMaAfB.js → bookings-email-rac-CQEhRS7N.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-CAjcs7b6.js → bookings-first-name-rac-BwdasJXd.js} +1 -1
  5. package/dist/component/{bookings-header-rac-BhKZ1kku.js → bookings-header-rac-CWzKq3yr.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-DpsMDuU0.js → bookings-last-name-rac-CoVWqEy5.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-BVdWmKS8.js → bookings-login-bar-rac-DwoI-iRQ.js} +4 -4
  8. package/dist/component/{bookings-phone-rac-DsqNi2mI.js → bookings-phone-rac-WAZU-1kD.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-elM4Ne3f.js → bookings-rich-text-rac-I5Uo-q87.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-BU4E73fD.js → checkbox-field-rac-CKbKBNcQ.js} +43 -43
  11. package/dist/component/{checkbox-group-field-headless-6yJdIbP2.js → checkbox-group-field-headless-7PMj-zW6.js} +47 -47
  12. package/dist/component/{checkbox-group-field-rac-CojbCWSF.js → checkbox-group-field-rac-BZ-YgEYR.js} +4 -4
  13. package/dist/component/{checkbox-group-rac-3qUVUc-C.js → checkbox-group-rac-CED8h4qI.js} +1 -1
  14. package/dist/component/{checkbox-rac-DwbTapd_.js → checkbox-rac-CbpEXMBz.js} +1 -1
  15. package/dist/component/{contacts-address-rac-BL7XDZuP.js → contacts-address-rac-F3Ui7iJu.js} +1 -1
  16. package/dist/component/{contacts-birthdate-rac-DeJYIHAg.js → contacts-birthdate-rac-CcxRV3RQ.js} +1 -1
  17. package/dist/component/{contacts-company-rac-BeImf5uc.js → contacts-company-rac-mDY20HzW.js} +1 -1
  18. package/dist/component/{contacts-email-rac-CtacwrZ0.js → contacts-email-rac-CoBPNuCj.js} +1 -1
  19. package/dist/component/{contacts-first-name-rac-CAdOqOOA.js → contacts-first-name-rac-DzbpBmNm.js} +1 -1
  20. package/dist/component/{contacts-last-name-rac-Db9mHzCW.js → contacts-last-name-rac-DEmV-MNE.js} +1 -1
  21. package/dist/component/{contacts-phone-rac-W0OLEbzL.js → contacts-phone-rac-BlEpatWP.js} +1 -1
  22. package/dist/component/{contacts-position-rac-CV4Ibt4Z.js → contacts-position-rac-DlZahRQc.js} +1 -1
  23. package/dist/component/{contacts-subscribe-rac-CQ3Q1pjZ.js → contacts-subscribe-rac-LXCEPvXl.js} +1 -1
  24. package/dist/component/{contacts-tax-id-rac-Dux-pk6r.js → contacts-tax-id-rac-DS0SDAtC.js} +1 -1
  25. package/dist/component/{date-availability-RkX-Qw7G.js → date-availability-DTFyrU8J.js} +1 -1
  26. package/dist/component/{date-input-field-rac-CYCT6qoa.js → date-input-field-rac-D7Pv-hqW.js} +62 -62
  27. package/dist/component/{date-input-rac-BkYZ7q_o.js → date-input-rac-BEsh54Gz.js} +1 -1
  28. package/dist/component/{date-picker-field-rac-eMidYtsl.js → date-picker-field-rac-DJirD93a.js} +15 -15
  29. package/dist/component/{date-picker-rac-D23rxZcF.js → date-picker-rac-B1fUqj_w.js} +1 -1
  30. package/dist/component/{date-time-input-field-rac-BjIj4dXQ.js → date-time-input-field-rac-CPFaQUXF.js} +38 -38
  31. package/dist/component/{date-time-input-rac-BSGAdk9L.js → date-time-input-rac-CAozBO0e.js} +1 -1
  32. package/dist/component/{dext-checkbox-group-rac-Xmb5IKrb.js → dext-checkbox-group-rac-B0yqJoj8.js} +2 -2
  33. package/dist/component/{dext-checkbox-rac-2eA7y0ld.js → dext-checkbox-rac-yZaUdHz1.js} +1 -1
  34. package/dist/component/{dext-date-picker-rac-CmLxVGGT.js → dext-date-picker-rac-AJ7XIW-h.js} +1 -1
  35. package/dist/component/{dext-date-time-input-rac-Cd9nwSjb.js → dext-date-time-input-rac-CPs79sUY.js} +1 -1
  36. package/dist/component/{dext-dropdown-rac-BKdQ0nGS.js → dext-dropdown-rac-W2QzqPG4.js} +1 -1
  37. package/dist/component/{dext-email-rac-07zDPxyf.js → dext-email-rac-CCW1Dk1m.js} +1 -1
  38. package/dist/component/{dext-number-input-rac-DRvGuppY.js → dext-number-input-rac-BAInaxoF.js} +1 -1
  39. package/dist/component/{dext-phone-rac-CKtTVjFg.js → dext-phone-rac-CYYgZiFW.js} +1 -1
  40. package/dist/component/{dext-radio-group-rac-BsBmMufq.js → dext-radio-group-rac-Dqvmxoai.js} +2 -2
  41. package/dist/component/{dext-rating-input-rac-CcFSTAIh.js → dext-rating-input-rac-CWl7X0zW.js} +1 -1
  42. package/dist/component/{dext-tags-rac-CCTDlCvX.js → dext-tags-rac-BpAfPh55.js} +2 -2
  43. package/dist/component/{dext-text-area-rac-Cif8po9h.js → dext-text-area-rac-CLTg8XXH.js} +1 -1
  44. package/dist/component/{dext-text-input-rac-2118X4iF.js → dext-text-input-rac-BV-F-ZsP.js} +1 -1
  45. package/dist/component/{dext-url-input-rac-DDImGkQe.js → dext-url-input-rac-B9wHRaZr.js} +1 -1
  46. package/dist/component/{donation-rac-Dnylss1d.js → donation-rac-Be4swKWD.js} +50 -50
  47. package/dist/component/{dropdown-field-rac-DDI4ZgZH.js → dropdown-field-rac-BFEB_WuX.js} +3 -3
  48. package/dist/component/{dropdown-rac-DX0Z3R_8.js → dropdown-rac-Dz7QtFVB.js} +1 -1
  49. package/dist/component/{ecom-address-rac-D9MeEQsk.js → ecom-address-rac-Bu6msDgo.js} +1 -1
  50. package/dist/component/{ecom-subscription-checkbox-rac-DKJ9j5dj.js → ecom-subscription-checkbox-rac-BRovQqrM.js} +2 -2
  51. package/dist/component/{email-input-field-rac-DaKrmlwe.js → email-input-field-rac-EERVxm6G.js} +42 -42
  52. package/dist/component/{events-repeater-rac-DWrOLT0Y.js → events-repeater-rac-xs0pooBs.js} +49 -49
  53. package/dist/component/{events-rsvp-rac-YBTR1tR0.js → events-rsvp-rac-CMi-8EqK.js} +3 -3
  54. package/dist/component/{field-error-headless-jksFrezt.js → field-error-headless-DbFXeaud.js} +8 -8
  55. package/dist/component/{field-label-headless-BBvJAVxI.js → field-label-headless-CWOYHPsb.js} +11 -11
  56. package/dist/component/{file-upload-rac-CgdmfUZG.js → file-upload-rac-vbMTIdDc.js} +61 -61
  57. package/dist/component/{fixed-payment-rac-v6rKwzFs.js → fixed-payment-rac-BRk7ams_.js} +7 -7
  58. package/dist/component/{form-BsiK682r.js → form-BjeODFzx.js} +238 -237
  59. package/dist/component/form.css +1 -1
  60. package/dist/component/form.js +1 -1
  61. package/dist/component/{header-field-rac-BuXybl7K.js → header-field-rac-CQexwZn7.js} +2 -2
  62. package/dist/component/{header-rac-CDyaLosW.js → header-rac-CYbPDl4_.js} +1 -1
  63. package/dist/component/{image-choice-rac-BRlMroBw.js → image-choice-rac-DDvlaK6K.js} +15 -15
  64. package/dist/component/{index-BanOeCAF.js → index-B6wFpWpe.js} +4 -4
  65. package/dist/component/{index-y9URYGEE.js → index-Bs9ypEe2.js} +6 -6
  66. package/dist/component/{isObjectLike-BG9nJ-rx.js → isObjectLike-Xcw2hQQ6.js} +1 -1
  67. package/dist/component/{multiline-address-field-rac-DRAkxI1l.js → multiline-address-field-rac-CYJR-MUz.js} +209 -209
  68. package/dist/component/{multiline-address-rac-JjTzWsEb.js → multiline-address-rac-DO1j_w6S.js} +1 -1
  69. package/dist/component/{number-input-field-rac-QrouG7Hv.js → number-input-field-rac-C-qvd8v9.js} +18 -18
  70. package/dist/component/{number-input-rac-DGmE7cLv.js → number-input-rac-CQSaifZE.js} +1 -1
  71. package/dist/component/{password-rac-DeyY228m.js → password-rac-CqnbZtR_.js} +28 -28
  72. package/dist/component/{payment-input-rac-DmIennLi.js → payment-input-rac-CbOcztkp.js} +28 -28
  73. package/dist/component/{phone-input-field-rac-F7e74TGA.js → phone-input-field-rac-BQ187I2C.js} +55 -55
  74. package/dist/component/{phone-rac-CQfB2CQD.js → phone-rac-CbA2xqF3.js} +1 -1
  75. package/dist/component/{product-list-rac--GGG8vvO.js → product-list-rac-MxB9tRiE.js} +103 -103
  76. package/dist/component/{quiz-radio-group-rac-DF2C2vNq.js → quiz-radio-group-rac-IViaDVRW.js} +1 -1
  77. package/dist/component/{radio-button-module-classes-DmpNo6F2.js → radio-button-module-classes-jtnooKMO.js} +33 -33
  78. package/dist/component/{radio-group-field-rac-BGcPYfKO.js → radio-group-field-rac-g3SQGJPp.js} +4 -4
  79. package/dist/component/{radio-group-rac-CqysUMCE.js → radio-group-rac-D8wmzlbu.js} +1 -1
  80. package/dist/component/{rating-input-field-rac-D-ei917Y.js → rating-input-field-rac-BqPXKKdi.js} +15 -15
  81. package/dist/component/{rating-input-rac-a9zJ74fw.js → rating-input-rac-CeZIpOmm.js} +1 -1
  82. package/dist/component/{rich-content-rac.module-CvyLVlXL.js → rich-content-rac.module-BLgdpRh_.js} +5 -5
  83. package/dist/component/{rich-text-field-rac-vf19nvyw.js → rich-text-field-rac-BpSVobCQ.js} +6 -6
  84. package/dist/component/{rich-text-rac-Cx_wpoxC.js → rich-text-rac-DqpaqbFH.js} +1 -1
  85. package/dist/component/{service-dropdown-rac-DITzKQxd.js → service-dropdown-rac-DKgtga1t.js} +30 -30
  86. package/dist/component/{services-multi-choice-rac-BtisN0Aq.js → services-multi-choice-rac-CAyB0b4q.js} +9 -9
  87. package/dist/component/{signature-rac-DUeIoS5O.js → signature-rac-DC20YN4f.js} +97 -97
  88. package/dist/component/{submit-button-rac-C8h6zeTw.js → submit-button-rac-ClWtqIkR.js} +30 -30
  89. package/dist/component/{tags-field-rac-CjFuiB0n.js → tags-field-rac-DHM9k8uf.js} +18 -18
  90. package/dist/component/{tags-rac-BO7rwyLl.js → tags-rac-Clg50jwY.js} +1 -1
  91. package/dist/component/{text-area-field-rac-CgUx3nQ0.js → text-area-field-rac-B2qJZ6wR.js} +16 -16
  92. package/dist/component/{text-area-rac-WgXYXIaf.js → text-area-rac-BwsVk7u7.js} +1 -1
  93. package/dist/component/{text-input-field-rac-DaxWFha-.js → text-input-field-rac-BQbo-3Ly.js} +6 -6
  94. package/dist/component/{text-input-headless-hjuRJTZN.js → text-input-headless-WICGIHcN.js} +3 -3
  95. package/dist/component/{text-input-rac-BzumrJBj.js → text-input-rac-D7BRYDZr.js} +1 -1
  96. package/dist/component/{time-input-rac-2FEkpQ7M.js → time-input-rac-Dnp-0_Js.js} +22 -22
  97. package/dist/component/{url-input-field-rac-BZ9f8D8I.js → url-input-field-rac-MC13zKST.js} +19 -19
  98. package/dist/component/{url-input-rac-D-AVlxkD.js → url-input-rac-DfAtTmKv.js} +1 -1
  99. package/dist/component/{use-dropdown-option-class-name-DwAAtzgX.js → use-dropdown-option-class-name-CVUEosg4.js} +2 -2
  100. package/dist/component/{use-dropdown-trigger-class-name-D-6n9YVG.js → use-dropdown-trigger-class-name-BHLG7EB-.js} +25 -25
  101. package/dist/component/{use-element-state-class-name-C5auxwhj.js → use-element-state-class-name-BVJylHPn.js} +3 -3
  102. package/dist/component/{use-hoverable-input-class-name-Nd2jqfz4.js → use-hoverable-input-class-name-DO9ctJ81.js} +2 -2
  103. package/dist/component/{use-is-forced-open-dropdown-CKaHhCqp.js → use-is-forced-open-dropdown-Czuo32Nq.js} +8 -8
  104. package/dist/component/{use-service-options-base-CvluFheT.js → use-service-options-base-DUuGIm38.js} +1 -1
  105. package/dist/component/use-text-input-class-name-LEnNGX0a.js +6 -0
  106. package/package.json +2 -2
  107. package/dist/component/use-text-input-class-name-DGTlYJxC.js +0 -6
@@ -2,7 +2,7 @@ import "react/jsx-runtime";
2
2
  import "react";
3
3
  import "classnames";
4
4
  import "@wix/fed-cli-i18next";
5
- import { aP as i, b8 as e } from "./form-BsiK682r.js";
5
+ import { aQ as i, b9 as e } from "./form-BjeODFzx.js";
6
6
  export {
7
7
  i as default,
8
8
  e as defaultProps
@@ -1,7 +1,7 @@
1
1
  import m from "classnames";
2
2
  import e from "react";
3
- import { bK as u, bm as i, bl as C, bo as R, aX as T, aF as d } from "./form-BsiK682r.js";
4
- import { u as g, R as p, s as S, T as h } from "./rich-content-rac.module-CvyLVlXL.js";
3
+ import { bL as u, bn as i, bm as C, bp as R, aY as T, aG as d } from "./form-BjeODFzx.js";
4
+ import { u as g, R as p, s as S, T as h } from "./rich-content-rac.module-BLgdpRh_.js";
5
5
  const f = ({ truncate: t = !0 } = {}) => {
6
6
  const { content: a, maxShownParagraphs: s } = u(), n = e.useMemo(() => ({
7
7
  colorPalette: R(),
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { H as r } from "./header-field-rac-BuXybl7K.js";
2
+ import { H as r } from "./header-field-rac-CQexwZn7.js";
3
3
  const a = () => /* @__PURE__ */ e.createElement(r, null);
4
4
  export {
5
5
  a as HeaderRAC
@@ -1,26 +1,26 @@
1
- import e, { useMemo as y, useCallback as T, useRef as G } from "react";
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 u from "classnames";
4
- import { bK as b, bH as x, bM as P, bD as j, X as B, al as q, T as U, V, M as w, I as K, U as z, f } from "./form-BsiK682r.js";
4
+ import { bL as b, bI as x, bN as P, bE as j, X as B, am as q, T as U, V, M as w, I as z, U as K, f } from "./form-BjeODFzx.js";
5
5
  import { CheckboxGroup as Q, CheckboxField as X, CheckboxButton as Y } from "react-aria-components";
6
6
  import { f as m, a as F } from "./find-child-C60k4CxG.js";
7
- import { L as $, g as J } from "./field-label-headless-BBvJAVxI.js";
8
- import { D as W, E as Z } from "./field-error-headless-jksFrezt.js";
7
+ import { L as $, g as J } from "./field-label-headless-CWOYHPsb.js";
8
+ import { D as W, E as Z } from "./field-error-headless-DbFXeaud.js";
9
9
  import { F as ee } from "./fieldset-headless-CD3fds9J.js";
10
10
  import { E as te } from "./error-icon-hZxQ6DEy.js";
11
11
  import { s as O } from "./field-rac.module-ts2t4WUO.js";
12
- import { u as ae } from "./use-element-state-class-name-C5auxwhj.js";
12
+ import { u as ae } from "./use-element-state-class-name-BVJylHPn.js";
13
13
  const a = ({ children: t, className: n }) => {
14
- const { id: s, value: o, onChange: i, disabled: l, readOnly: r, required: c, onBlur: I, onFocus: p, hasError: g, FieldLayout: C } = b(), { inputId: L, labelId: _, ariaDescribedBy: R } = x(), D = m(t, a.Label), S = m(t, a.Options), A = m(t, a.Description), M = m(t, a.Error), h = y(() => o || [], [
14
+ const { id: s, value: o, onChange: i, disabled: l, readOnly: r, required: c, onBlur: I, onFocus: p, hasError: g, FieldLayout: C } = b(), { inputId: L, labelId: _, ariaDescribedBy: R } = x(), S = m(t, a.Label), A = m(t, a.Options), D = m(t, a.Description), M = m(t, a.Error), h = H(() => o || [], [
15
15
  o
16
- ]), v = T((H) => {
17
- i == null || i(H);
16
+ ]), v = T((y) => {
17
+ i == null || i(y);
18
18
  }, [
19
19
  i
20
20
  ]);
21
21
  return /* @__PURE__ */ e.createElement(C, {
22
22
  fieldId: s,
23
- renderLabel: () => D,
23
+ renderLabel: () => S,
24
24
  renderInput: () => /* @__PURE__ */ e.createElement(ee, {
25
25
  id: L,
26
26
  ariaLabelledBy: _,
@@ -37,8 +37,8 @@ const a = ({ children: t, className: n }) => {
37
37
  isReadOnly: r,
38
38
  isRequired: c,
39
39
  isInvalid: g
40
- }, S)),
41
- renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, M, A)
40
+ }, A)),
41
+ renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, M, D)
42
42
  });
43
43
  }, N = ({ children: t, className: n }) => {
44
44
  const { id: s, options: o, numberOfColumns: i } = b(), l = m(t, N.Option);
@@ -127,7 +127,7 @@ const le = "_options_a5g3j_1", ie = "_optionInput_a5g3j_33", re = "_option_a5g3j
127
127
  hover: E.optionHover
128
128
  }, ue = () => {
129
129
  const t = ae({
130
- globalClasses: z,
130
+ globalClasses: K,
131
131
  moduleClasses: Ie
132
132
  }), n = j(f.IMAGE_CHOICE, f.IMAGE_CHOICE_OPTION, f.IMAGE_CHOICE_OPTION_IMAGE);
133
133
  return /* @__PURE__ */ e.createElement(a, null, /* @__PURE__ */ e.createElement(a.Label, {
@@ -147,9 +147,9 @@ const le = "_options_a5g3j_1", ie = "_optionInput_a5g3j_33", re = "_option_a5g3j
147
147
  }))), /* @__PURE__ */ e.createElement(a.Error, {
148
148
  className: u(w, O.error)
149
149
  }, /* @__PURE__ */ e.createElement(te, null), /* @__PURE__ */ e.createElement(a.Error.Text, null)), /* @__PURE__ */ e.createElement(a.Description, {
150
- className: u(K, O.description)
150
+ className: u(z, O.description)
151
151
  }, de));
152
- }, Ae = () => /* @__PURE__ */ e.createElement(ue, null);
152
+ }, De = () => /* @__PURE__ */ e.createElement(ue, null);
153
153
  export {
154
- Ae as ImageChoiceRAC
154
+ De as ImageChoiceRAC
155
155
  };
@@ -1,13 +1,13 @@
1
- import { e as R, b3 as _, bi as fe, b4 as O, aL as Ge, B as Be, aZ as qe, aS as He, aR as A, a_ as le, b7 as re, b1 as Ce, c as B, aT as M, bu as Ee, aV as je, aU as Te, aW as q } from "./form-BsiK682r.js";
2
- import { bp as Sn } from "./form-BsiK682r.js";
1
+ import { e as R, b4 as _, bj as fe, b5 as O, aM as Ge, B as Be, a_ as qe, aT as He, aS as A, a$ as le, b8 as re, b2 as Ce, c as B, aU as M, bv as Ee, aW as je, aV as Te, aX as q } from "./form-BjeODFzx.js";
2
+ import { bq as Sn } from "./form-BjeODFzx.js";
3
3
  import Xe from "ajv";
4
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-RkX-Qw7G.js";
10
- import { a as Cn } from "./date-availability-RkX-Qw7G.js";
9
+ import { p as Qe, i as et } from "./date-availability-DTFyrU8J.js";
10
+ import { a as Cn } from "./date-availability-DTFyrU8J.js";
11
11
  import { C as tt } from "./calling-country-codes-PyWuOTmF.js";
12
12
  function rt(e) {
13
13
  var t, r;
@@ -1,5 +1,5 @@
1
- import { bt as n } from "./form-BsiK682r.js";
2
- import { A as S, a as p, C as N, aY as g, bd as q, be as D, bv as L } from "./form-BsiK682r.js";
1
+ import { bu as n } from "./form-BjeODFzx.js";
2
+ import { A as S, a as p, C as N, aZ as g, be as q, bf as D, bw as L } from "./form-BjeODFzx.js";
3
3
  const l = (e = !1) => ({
4
4
  country: {
5
5
  required: e
@@ -26,14 +26,14 @@ const l = (e = !1) => ({
26
26
  required: e
27
27
  }
28
28
  });
29
- function d(e) {
29
+ function i(e) {
30
30
  const r = (e == null ? void 0 : e.number) || "", t = e != null && e.apt ? `-${e.apt}` : "";
31
31
  return r ? `${r}${t}` : "";
32
32
  }
33
- function i(e, r, t) {
33
+ function d(e, r, t) {
34
34
  if (!e)
35
35
  return t;
36
- const a = d(r);
36
+ const a = i(r);
37
37
  return `${(r == null ? void 0 : r.name) || ""} ${a}`.trim();
38
38
  }
39
39
  function m(e, r) {
@@ -47,7 +47,7 @@ function m(e, r) {
47
47
  subdivision: e.subdivision,
48
48
  city: e.city,
49
49
  zipCode: e.postalCode,
50
- addressLine1: i(o, a, e.addressLine),
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
  }
@@ -1,4 +1,4 @@
1
- import { b5 as c } from "./form-BsiK682r.js";
1
+ import { b6 as c } from "./form-BjeODFzx.js";
2
2
  var b, d;
3
3
  function k() {
4
4
  if (d) return b;