@wix/form-elements 1.169.0 → 1.171.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 (109) hide show
  1. package/dist/component/{appointment-rac-BbXyKTd7.js → appointment-rac-DZ0SFXmL.js} +83 -83
  2. package/dist/component/{bookings-address-rac-VJkR_U9L.js → bookings-address-rac-BW9grc77.js} +1 -1
  3. package/dist/component/{bookings-email-rac-_EupwXpQ.js → bookings-email-rac-D8gMaAfB.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-DTZixHYj.js → bookings-first-name-rac-CAjcs7b6.js} +1 -1
  5. package/dist/component/{bookings-header-rac-BKbKTv5g.js → bookings-header-rac-BhKZ1kku.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-BDy860-C.js → bookings-last-name-rac-DpsMDuU0.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-DgNP-YNZ.js → bookings-login-bar-rac-BVdWmKS8.js} +3 -3
  8. package/dist/component/{bookings-phone-rac-B_I6n96b.js → bookings-phone-rac-DsqNi2mI.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-prYPbIiz.js → bookings-rich-text-rac-elM4Ne3f.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-C-4PXuxG.js → checkbox-field-rac-BU4E73fD.js} +43 -43
  11. package/dist/component/{checkbox-group-field-headless-D16bAcaq.js → checkbox-group-field-headless-6yJdIbP2.js} +41 -41
  12. package/dist/component/{checkbox-group-field-rac-GUQ5dO_s.js → checkbox-group-field-rac-CojbCWSF.js} +4 -4
  13. package/dist/component/{checkbox-group-rac-Bl6xL5-H.js → checkbox-group-rac-3qUVUc-C.js} +1 -1
  14. package/dist/component/{checkbox-rac-Blg0KVyP.js → checkbox-rac-DwbTapd_.js} +1 -1
  15. package/dist/component/{contacts-address-rac-BfOhCAj8.js → contacts-address-rac-BL7XDZuP.js} +1 -1
  16. package/dist/component/{contacts-birthdate-rac-DYBvDh62.js → contacts-birthdate-rac-DeJYIHAg.js} +1 -1
  17. package/dist/component/{contacts-company-rac-DIJr7zjA.js → contacts-company-rac-BeImf5uc.js} +1 -1
  18. package/dist/component/{contacts-email-rac-DjmqELhC.js → contacts-email-rac-CtacwrZ0.js} +1 -1
  19. package/dist/component/{contacts-first-name-rac-DGNll7gw.js → contacts-first-name-rac-CAdOqOOA.js} +1 -1
  20. package/dist/component/{contacts-last-name-rac-BJ8AZYQN.js → contacts-last-name-rac-Db9mHzCW.js} +1 -1
  21. package/dist/component/{contacts-phone-rac-BC-QtpEN.js → contacts-phone-rac-W0OLEbzL.js} +1 -1
  22. package/dist/component/{contacts-position-rac-BQia__74.js → contacts-position-rac-CV4Ibt4Z.js} +1 -1
  23. package/dist/component/{contacts-subscribe-rac-CTFptz01.js → contacts-subscribe-rac-CQ3Q1pjZ.js} +1 -1
  24. package/dist/component/{contacts-tax-id-rac-Cy72Jouc.js → contacts-tax-id-rac-Dux-pk6r.js} +1 -1
  25. package/dist/component/{date-availability-BC6updcS.js → date-availability-RkX-Qw7G.js} +1 -1
  26. package/dist/component/date-input-field-rac-CYCT6qoa.js +309 -0
  27. package/dist/component/{date-input-rac-KkRyWRP_.js → date-input-rac-BkYZ7q_o.js} +1 -1
  28. package/dist/component/{date-picker-field-rac-BLWVJbTJ.js → date-picker-field-rac-eMidYtsl.js} +31 -31
  29. package/dist/component/{date-picker-rac-DKCQza7v.js → date-picker-rac-D23rxZcF.js} +1 -1
  30. package/dist/component/{date-time-input-field-rac-CZxZW6fz.js → date-time-input-field-rac-BjIj4dXQ.js} +111 -111
  31. package/dist/component/{date-time-input-rac-DQ-iBwmr.js → date-time-input-rac-BSGAdk9L.js} +1 -1
  32. package/dist/component/{dext-checkbox-group-rac-kp1Jbwt-.js → dext-checkbox-group-rac-Xmb5IKrb.js} +2 -2
  33. package/dist/component/{dext-checkbox-rac-CBm9cRUz.js → dext-checkbox-rac-2eA7y0ld.js} +1 -1
  34. package/dist/component/{dext-date-picker-rac-DsVKWsRy.js → dext-date-picker-rac-CmLxVGGT.js} +1 -1
  35. package/dist/component/{dext-date-time-input-rac-CO26-8Qo.js → dext-date-time-input-rac-Cd9nwSjb.js} +1 -1
  36. package/dist/component/{dext-dropdown-rac-eRzu2C-y.js → dext-dropdown-rac-BKdQ0nGS.js} +1 -1
  37. package/dist/component/{dext-email-rac-DDrZzE_G.js → dext-email-rac-07zDPxyf.js} +1 -1
  38. package/dist/component/{dext-number-input-rac-Dj7sInLk.js → dext-number-input-rac-DRvGuppY.js} +1 -1
  39. package/dist/component/{dext-phone-rac-g8M77F7m.js → dext-phone-rac-CKtTVjFg.js} +1 -1
  40. package/dist/component/{dext-radio-group-rac-BjhygC0R.js → dext-radio-group-rac-BsBmMufq.js} +2 -2
  41. package/dist/component/{dext-rating-input-rac-BraNjvyA.js → dext-rating-input-rac-CcFSTAIh.js} +1 -1
  42. package/dist/component/{dext-tags-rac-B5mAIuDi.js → dext-tags-rac-CCTDlCvX.js} +2 -2
  43. package/dist/component/{dext-text-area-rac-D_YBnaWi.js → dext-text-area-rac-Cif8po9h.js} +1 -1
  44. package/dist/component/{dext-text-input-rac-BzeWH1jv.js → dext-text-input-rac-2118X4iF.js} +1 -1
  45. package/dist/component/{dext-url-input-rac-Cn0h_vx3.js → dext-url-input-rac-DDImGkQe.js} +1 -1
  46. package/dist/component/{donation-rac-CQRdHxWh.js → donation-rac-Dnylss1d.js} +103 -103
  47. package/dist/component/{dropdown-field-rac-C7LL0W5Z.js → dropdown-field-rac-DDI4ZgZH.js} +3 -3
  48. package/dist/component/{dropdown-rac-Nb2VyJ0x.js → dropdown-rac-DX0Z3R_8.js} +1 -1
  49. package/dist/component/{ecom-address-rac-_c2YIIwg.js → ecom-address-rac-D9MeEQsk.js} +1 -1
  50. package/dist/component/{ecom-subscription-checkbox-rac-Bma7TAVj.js → ecom-subscription-checkbox-rac-DKJ9j5dj.js} +2 -2
  51. package/dist/component/{email-input-field-rac-2E2tEaS5.js → email-input-field-rac-DaKrmlwe.js} +55 -55
  52. package/dist/component/{events-repeater-rac-COWHYBFD.js → events-repeater-rac-DWrOLT0Y.js} +45 -45
  53. package/dist/component/{events-rsvp-rac-CXp8j19Y.js → events-rsvp-rac-YBTR1tR0.js} +6 -6
  54. package/dist/component/{field-error-headless-S-ugOQQX.js → field-error-headless-jksFrezt.js} +10 -10
  55. package/dist/component/{field-label-headless-_n4I0_tX.js → field-label-headless-BBvJAVxI.js} +10 -10
  56. package/dist/component/{file-upload-rac-DCH_iwDg.js → file-upload-rac-CgdmfUZG.js} +168 -168
  57. package/dist/component/{fixed-payment-rac-CYkKJUfM.js → fixed-payment-rac-v6rKwzFs.js} +13 -13
  58. package/dist/component/{form-jK8ezTss.js → form-BsiK682r.js} +530 -502
  59. package/dist/component/form.js +1 -1
  60. package/dist/component/{header-field-rac-DnbjI6W5.js → header-field-rac-BuXybl7K.js} +6 -6
  61. package/dist/component/{header-rac-DKUICrni.js → header-rac-CDyaLosW.js} +1 -1
  62. package/dist/component/{image-choice-rac-B_9ponST.js → image-choice-rac-BRlMroBw.js} +41 -41
  63. package/dist/component/{index-BxdMzOvN.js → index-BanOeCAF.js} +242 -236
  64. package/dist/component/{index-ZYnsxY-a.js → index-y9URYGEE.js} +6 -6
  65. package/dist/component/{isObjectLike-BW-9QEQl.js → isObjectLike-BG9nJ-rx.js} +7 -7
  66. package/dist/component/{multiline-address-field-rac-k-P0ijWG.js → multiline-address-field-rac-DRAkxI1l.js} +342 -342
  67. package/dist/component/{multiline-address-rac-Bbn9mNDa.js → multiline-address-rac-JjTzWsEb.js} +1 -1
  68. package/dist/component/{number-input-field-rac--lom-B_X.js → number-input-field-rac-QrouG7Hv.js} +22 -22
  69. package/dist/component/{number-input-rac-Bhbd6T9S.js → number-input-rac-DGmE7cLv.js} +1 -1
  70. package/dist/component/{password-rac-BV_uTHb3.js → password-rac-DeyY228m.js} +28 -28
  71. package/dist/component/{payment-input-rac-cawyGN_t.js → payment-input-rac-DmIennLi.js} +45 -45
  72. package/dist/component/{phone-input-field-rac-CsElHRto.js → phone-input-field-rac-F7e74TGA.js} +76 -76
  73. package/dist/component/{phone-rac-XrHN5Nko.js → phone-rac-CQfB2CQD.js} +1 -1
  74. package/dist/component/{product-list-rac-cxv_xz7K.js → product-list-rac--GGG8vvO.js} +62 -62
  75. package/dist/component/{quiz-radio-group-rac-DGaxOPE1.js → quiz-radio-group-rac-DF2C2vNq.js} +1 -1
  76. package/dist/component/{radio-button-module-classes-Xv2Jn01x.js → radio-button-module-classes-DmpNo6F2.js} +17 -17
  77. package/dist/component/{radio-group-field-rac-DgGqgTql.js → radio-group-field-rac-BGcPYfKO.js} +6 -6
  78. package/dist/component/{radio-group-rac-Bh0E-oe1.js → radio-group-rac-CqysUMCE.js} +1 -1
  79. package/dist/component/{rating-input-field-rac-C3YLV971.js → rating-input-field-rac-D-ei917Y.js} +24 -24
  80. package/dist/component/{rating-input-rac-CfcC5EUh.js → rating-input-rac-a9zJ74fw.js} +1 -1
  81. package/dist/component/{rich-content-rac.module-DUjzLGtX.js → rich-content-rac.module-CvyLVlXL.js} +5 -5
  82. package/dist/component/{rich-text-field-rac-BmguoJhk.js → rich-text-field-rac-vf19nvyw.js} +7 -7
  83. package/dist/component/{rich-text-rac-BWhHcq25.js → rich-text-rac-Cx_wpoxC.js} +1 -1
  84. package/dist/component/{service-dropdown-rac-C5oX-ql7.js → service-dropdown-rac-DITzKQxd.js} +26 -26
  85. package/dist/component/{services-multi-choice-rac-C1fem9NB.js → services-multi-choice-rac-BtisN0Aq.js} +11 -11
  86. package/dist/component/{signature-rac-BtHqiWj1.js → signature-rac-DUeIoS5O.js} +226 -226
  87. package/dist/component/{submit-button-rac-OYeKJFF8.js → submit-button-rac-C8h6zeTw.js} +36 -36
  88. package/dist/component/{tags-field-rac-kA2RSijL.js → tags-field-rac-CjFuiB0n.js} +51 -51
  89. package/dist/component/{tags-rac-B_2qCZGu.js → tags-rac-BO7rwyLl.js} +1 -1
  90. package/dist/component/{text-area-field-rac-DeO609Mv.js → text-area-field-rac-CgUx3nQ0.js} +23 -23
  91. package/dist/component/{text-area-rac-BAQFBOZd.js → text-area-rac-WgXYXIaf.js} +1 -1
  92. package/dist/component/{text-input-field-rac-CCcKwuLZ.js → text-input-field-rac-DaxWFha-.js} +6 -6
  93. package/dist/component/{text-input-headless-D8-jkaYm.js → text-input-headless-hjuRJTZN.js} +6 -6
  94. package/dist/component/{text-input-rac-BVcgjj8g.js → text-input-rac-BzumrJBj.js} +1 -1
  95. package/dist/component/{time-input-rac-BYctyHgU.js → time-input-rac-2FEkpQ7M.js} +18 -18
  96. package/dist/component/{url-input-field-rac-COC9qgcs.js → url-input-field-rac-BZ9f8D8I.js} +26 -26
  97. package/dist/component/{url-input-rac-BZXLh0Ej.js → url-input-rac-D-AVlxkD.js} +1 -1
  98. package/dist/component/{use-dropdown-option-class-name-BTltqRl1.js → use-dropdown-option-class-name-DwAAtzgX.js} +11 -11
  99. package/dist/component/{use-dropdown-trigger-class-name-BjJZfl3i.js → use-dropdown-trigger-class-name-D-6n9YVG.js} +18 -18
  100. package/dist/component/{use-element-state-class-name-CkT6Ga8t.js → use-element-state-class-name-C5auxwhj.js} +3 -3
  101. package/dist/component/{use-hoverable-input-class-name-BkoSr6tr.js → use-hoverable-input-class-name-Nd2jqfz4.js} +2 -2
  102. package/dist/component/use-is-forced-open-dropdown-CKaHhCqp.js +64 -0
  103. package/dist/component/{use-service-options-base-Wp8RZ4Z8.js → use-service-options-base-CvluFheT.js} +3 -3
  104. package/dist/component/use-text-input-class-name-DGTlYJxC.js +6 -0
  105. package/dist/form.d.ts +19 -0
  106. package/package.json +2 -2
  107. package/dist/component/date-input-field-rac-b_T1yf8D.js +0 -309
  108. package/dist/component/use-is-forced-open-dropdown-fo_NCnSk.js +0 -53
  109. package/dist/component/use-text-input-class-name-DS7i03Gk.js +0 -6
@@ -1,24 +1,24 @@
1
1
  import { RicosViewer as ye } from "@wix/ricos/viewer";
2
- import b from "classnames";
3
- import t, { useMemo as j, useState as A, useRef as F, useEffect as k, useCallback as z, createContext as ne, useContext as q, useId as Ee } from "react";
4
- import { bm as fe, bN as D, bv as oe, bM as he, bD as w, bA as re, bF as ge, U as be, af as Oe, Z as Q, K as _e, G as Ne, $ as Le, _ as Se, Y as Ie } from "./form-jK8ezTss.js";
2
+ import O from "classnames";
3
+ import t, { useMemo as T, useState as $, useRef as F, useEffect as k, useCallback as Z, createContext as ne, useContext as q, useId as Ee } from "react";
4
+ import { bt as fe, bU as D, bC as oe, bT as he, bK as w, bH as re, bM as ge, X as Oe, al as be, a3 as Q, M as _e, I as Ne, a5 as Le, a4 as Se, a2 as Ie } from "./form-BsiK682r.js";
5
5
  import { UNSAFE_PortalProvider as Pe } from "react-aria";
6
- import { Dialog as ae, OverlayTriggerStateContext as ve, ModalOverlay as Fe, Modal as De, SearchField as we, Group as H, ListBoxItem as Be, DialogTrigger as Re, Select as xe, Input as se, Autocomplete as Me } from "react-aria-components";
6
+ import { Dialog as ae, OverlayTriggerStateContext as ve, ModalOverlay as Fe, Modal as De, SearchField as we, Group as U, ListBoxItem as Be, DialogTrigger as Re, Select as xe, Input as se, Autocomplete as Me } from "react-aria-components";
7
7
  import { f as h, a as I } from "./find-child-C60k4CxG.js";
8
- import { D as $e, E as je } from "./field-error-headless-S-ugOQQX.js";
9
- import { L as Ae } from "./field-label-headless-_n4I0_tX.js";
10
- import { N as Te, S as ke } from "./non-modal-popover-D-u13tmp.js";
8
+ import { D as je, E as Te } from "./field-error-headless-jksFrezt.js";
9
+ import { L as $e } from "./field-label-headless-BBvJAVxI.js";
10
+ import { N as Ae, S as ke } from "./non-modal-popover-D-u13tmp.js";
11
11
  import { u as Ve } from "./use-invoke-callback-UH73A_J3.js";
12
- import { b as Ue } from "./use-is-forced-open-dropdown-fo_NCnSk.js";
13
- import { V as He, a as qe } from "./use-dropdown-option-class-name-BTltqRl1.js";
14
- import ce, { AsYouType as Ge, isValidPhoneNumber as Ye, isSupportedCountry as Ke } from "libphonenumber-js";
12
+ import { d as He } from "./use-is-forced-open-dropdown-CKaHhCqp.js";
13
+ import { V as Ue, a as qe } from "./use-dropdown-option-class-name-DwAAtzgX.js";
14
+ import ce, { AsYouType as Ge, isValidPhoneNumber as Ke, isSupportedCountry as Ye } from "libphonenumber-js";
15
15
  import "libphonenumber-js/metadata.min.json";
16
16
  import { C as W } from "./calling-country-codes-PyWuOTmF.js";
17
- import { C as Ze } from "./chevron-down-icon-CcpVm6B-.js";
18
- import { E as ze } from "./error-icon-hZxQ6DEy.js";
19
- import { H as J } from "./custom-focus-class-_483Pkwp.js";
20
- import { s as O } from "./field-rac.module-ts2t4WUO.js";
21
- import { u as X } from "./use-hoverable-input-class-name-BkoSr6tr.js";
17
+ import { C as ze } from "./chevron-down-icon-CcpVm6B-.js";
18
+ import { E as Ze } from "./error-icon-hZxQ6DEy.js";
19
+ import { H as X } from "./custom-focus-class-_483Pkwp.js";
20
+ import { s as b } from "./field-rac.module-ts2t4WUO.js";
21
+ import { u as J } from "./use-hoverable-input-class-name-Nd2jqfz4.js";
22
22
  function ee(e) {
23
23
  const n = e ? ce(e) : void 0, r = n == null ? void 0 : n.country;
24
24
  if (r)
@@ -37,7 +37,7 @@ function te(e, n) {
37
37
  if (e && n)
38
38
  try {
39
39
  const r = ce(e, n), o = r == null ? void 0 : r.formatInternational();
40
- if (o && Ye(o))
40
+ if (o && Ke(o))
41
41
  return o.replace(/\s+/g, "");
42
42
  } catch {
43
43
  }
@@ -45,9 +45,9 @@ function te(e, n) {
45
45
  }
46
46
  function Qe() {
47
47
  const { t: e } = D(), { language: n } = oe();
48
- return j(() => Object.keys(W).reduce((o, a) => {
48
+ return T(() => Object.keys(W).reduce((o, a) => {
49
49
  const c = W[a], l = G(c), i = e(`locale-dataset.countries.${c.toUpperCase()}`);
50
- return l && Ke(a) && o.push({
50
+ return l && Ye(a) && o.push({
51
51
  countryName: i,
52
52
  longCountryCode: c,
53
53
  shortCountryCode: a,
@@ -61,19 +61,19 @@ function Qe() {
61
61
  function We(e, n) {
62
62
  return e.filter((r) => n && n.length > 0 ? n.includes(r.shortCountryCode) : !0);
63
63
  }
64
- function Je(e, n) {
64
+ function Xe(e, n) {
65
65
  const { countryName: r, callingCode: o, shortCountryCode: a } = e;
66
- return !!(U(r, n) || U(o, n) || U(a, n));
66
+ return !!(H(r, n) || H(o, n) || H(a, n));
67
67
  }
68
- function U(e, n) {
68
+ function H(e, n) {
69
69
  return e.toLowerCase().includes(n.toLowerCase());
70
70
  }
71
- function Xe({ value: e, defaultCountryCode: n, allowedCountryCodes: r, onChange: o }) {
72
- const [a, c] = A(e || ""), l = F(V(e ?? null) ?? ""), [i, u] = A(n);
71
+ function Je({ value: e, defaultCountryCode: n, allowedCountryCodes: r, onChange: o }) {
72
+ const [a, c] = $(e || ""), l = F(V(e ?? null) ?? ""), [i, u] = $(n);
73
73
  he(() => {
74
74
  c(""), l.current = "", u(n), o("");
75
75
  });
76
- const p = j(() => ee(a), [
76
+ const p = T(() => ee(a), [
77
77
  a
78
78
  ]);
79
79
  k(() => {
@@ -92,7 +92,7 @@ function Xe({ value: e, defaultCountryCode: n, allowedCountryCodes: r, onChange:
92
92
  p,
93
93
  n
94
94
  ]);
95
- const C = z((m) => {
95
+ const C = Z((m) => {
96
96
  if (c(m), !m) {
97
97
  l.current = "", o(null);
98
98
  return;
@@ -105,7 +105,7 @@ function Xe({ value: e, defaultCountryCode: n, allowedCountryCodes: r, onChange:
105
105
  }, [
106
106
  r,
107
107
  o
108
- ]), d = z((m) => {
108
+ ]), d = Z((m) => {
109
109
  u(m), c((f) => {
110
110
  const y = V(te(f, m));
111
111
  return l.current = y ?? "", o(y), f;
@@ -125,12 +125,12 @@ const le = /* @__PURE__ */ ne(null), _ = () => {
125
125
  if (!e)
126
126
  throw new Error("Phone input components must be used within PhoneInput component");
127
127
  return e;
128
- }, ue = /* @__PURE__ */ ne(null), Y = () => {
128
+ }, ue = /* @__PURE__ */ ne(null), K = () => {
129
129
  const e = q(ue);
130
130
  if (!e)
131
131
  throw new Error("Option sub-components must be used within Option component");
132
132
  return e;
133
- }, K = ({ longCountryCode: e, className: n }) => {
133
+ }, Y = ({ longCountryCode: e, className: n }) => {
134
134
  function r(c, l) {
135
135
  const i = "https://static.parastorage.com/services/linguist-flags/1.1005.0/assets/flags/square/", p = `${c}${l === "2x" ? "_2x" : ""}.png`;
136
136
  return `${i}${p}`;
@@ -146,12 +146,12 @@ const le = /* @__PURE__ */ ne(null), _ = () => {
146
146
  });
147
147
  }, s = ({ children: e }) => {
148
148
  var L, v;
149
- const { id: n, value: r, onChange: o, FieldLayout: a, defaultCountry: c, validation: l } = w(), [i, u] = A(null), p = (v = (L = l == null ? void 0 : l.string) == null ? void 0 : L.phoneOptions) == null ? void 0 : v.allowedCountryCodes, C = Qe(), d = j(() => We(C, p), [
149
+ const { id: n, value: r, onChange: o, FieldLayout: a, defaultCountry: c, validation: l } = w(), [i, u] = $(null), p = (v = (L = l == null ? void 0 : l.string) == null ? void 0 : L.phoneOptions) == null ? void 0 : v.allowedCountryCodes, C = Qe(), d = T(() => We(C, p), [
150
150
  C,
151
151
  p
152
- ]), m = j(() => d.map(($) => $.shortCountryCode), [
152
+ ]), m = T(() => d.map((j) => j.shortCountryCode), [
153
153
  d
154
- ]), { currentValue: f, selectedCountryCode: y, handlePhoneChange: S, handleCountryCodeChange: N } = Xe({
154
+ ]), { currentValue: f, selectedCountryCode: y, handlePhoneChange: S, handleCountryCodeChange: N } = Je({
155
155
  value: r,
156
156
  defaultCountryCode: c,
157
157
  allowedCountryCodes: m,
@@ -178,7 +178,7 @@ const le = /* @__PURE__ */ ne(null), _ = () => {
178
178
  }), R),
179
179
  renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, M, x)
180
180
  }));
181
- }, Z = ({ children: e, className: n }) => {
181
+ }, z = ({ children: e, className: n }) => {
182
182
  const { labelId: r } = re(), { hasError: o, disabled: a, readOnly: c } = w(), { t: l } = D(), { selectedCountryCode: i, countries: u } = _(), p = Ee(), C = i ? u.find((y) => y.shortCountryCode === i) : void 0, d = C && G(C.longCountryCode) || "", m = l("field.phone.country-code.aria-label"), f = C ? `${m}, ${C.countryName}, ${d}` : m;
183
183
  return /* @__PURE__ */ t.createElement(ke, {
184
184
  isDisabled: a || c,
@@ -190,7 +190,7 @@ const le = /* @__PURE__ */ ne(null), _ = () => {
190
190
  }, e);
191
191
  }, et = ({ className: e }) => {
192
192
  const { selectedCountryCode: n, countries: r } = _(), o = r.find((a) => a.shortCountryCode === n);
193
- return o ? /* @__PURE__ */ t.createElement(K, {
193
+ return o ? /* @__PURE__ */ t.createElement(Y, {
194
194
  className: e,
195
195
  longCountryCode: o.longCountryCode
196
196
  }) : null;
@@ -200,8 +200,8 @@ const le = /* @__PURE__ */ ne(null), _ = () => {
200
200
  className: n
201
201
  }, e);
202
202
  };
203
- Z.Flag = et;
204
- Z.EmptyState = tt;
203
+ z.Flag = et;
204
+ z.EmptyState = tt;
205
205
  const g = ({ children: e, className: n, "aria-label": r, placement: o, offset: a, ...c }) => {
206
206
  const { triggerRef: l, optionsRef: i, isForcedOpen: u, isOpen: p } = c, { popoverContainer: C } = _(), d = h(e, g.Search);
207
207
  if (!p)
@@ -211,7 +211,7 @@ const g = ({ children: e, className: n, "aria-label": r, placement: o, offset: a
211
211
  }, e);
212
212
  return /* @__PURE__ */ t.createElement(Pe, {
213
213
  getContainer: () => C
214
- }, /* @__PURE__ */ t.createElement(Te, {
214
+ }, /* @__PURE__ */ t.createElement(Ae, {
215
215
  ref: i,
216
216
  triggerRef: l,
217
217
  className: n,
@@ -245,7 +245,7 @@ const g = ({ children: e, className: n, "aria-label": r, placement: o, offset: a
245
245
  }
246
246
  }, e)))));
247
247
  }, ie = ({ children: e, listBoxProps: n, isForcedOpen: r }) => {
248
- const { countries: o } = _(), a = h(e, g.Option), c = h(e, g.Search), l = h(e, g.EmptyState), i = /* @__PURE__ */ t.createElement(He, {
248
+ const { countries: o } = _(), a = h(e, g.Option), c = h(e, g.Search), l = h(e, g.EmptyState), i = /* @__PURE__ */ t.createElement(Ue, {
249
249
  isForcedOpen: r === !0,
250
250
  ...n,
251
251
  renderEmptyState: l ? () => l : void 0
@@ -262,7 +262,7 @@ const g = ({ children: e, className: n, "aria-label": r, placement: o, offset: a
262
262
  return c ? /* @__PURE__ */ t.createElement(Me, {
263
263
  filter: (u, p, C) => {
264
264
  const d = o.find((m) => m.shortCountryCode === C.key);
265
- return !!d && Je(d, p);
265
+ return !!d && Xe(d, p);
266
266
  }
267
267
  }, r ? I(c, {
268
268
  autoFocus: !1
@@ -275,7 +275,7 @@ const me = ({ className: e, children: n, "aria-label": r, ...o }) => {
275
275
  return /* @__PURE__ */ t.createElement(we, {
276
276
  "aria-label": r,
277
277
  autoFocus: a
278
- }, /* @__PURE__ */ t.createElement(H, {
278
+ }, /* @__PURE__ */ t.createElement(U, {
279
279
  className: e
280
280
  }, n));
281
281
  }, ot = ({ className: e, placeholder: n }) => /* @__PURE__ */ t.createElement(se, {
@@ -288,7 +288,7 @@ const rt = ({ children: e, className: n }) => /* @__PURE__ */ t.createElement("d
288
288
  className: n
289
289
  }, e);
290
290
  g.EmptyState = rt;
291
- const T = ({ children: e, className: n, ...r }) => {
291
+ const A = ({ children: e, className: n, ...r }) => {
292
292
  const { countryCode: o, dialingCode: a, countryName: c, longCountryCode: l } = r, i = {
293
293
  countryCode: o,
294
294
  dialingCode: a,
@@ -303,26 +303,26 @@ const T = ({ children: e, className: n, ...r }) => {
303
303
  value: i
304
304
  }, u));
305
305
  }, pe = ({ className: e }) => {
306
- const { longCountryCode: n } = Y();
307
- return /* @__PURE__ */ t.createElement(K, {
306
+ const { longCountryCode: n } = K();
307
+ return /* @__PURE__ */ t.createElement(Y, {
308
308
  className: e,
309
309
  longCountryCode: n
310
310
  });
311
311
  }, Ce = ({ className: e }) => {
312
- const { countryName: n } = Y();
312
+ const { countryName: n } = K();
313
313
  return /* @__PURE__ */ t.createElement("span", {
314
314
  className: e
315
315
  }, n);
316
316
  }, de = ({ className: e }) => {
317
- const { dialingCode: n } = Y();
317
+ const { dialingCode: n } = K();
318
318
  return /* @__PURE__ */ t.createElement("span", {
319
319
  className: e
320
320
  }, n);
321
321
  };
322
- T.Flag = pe;
323
- T.Name = Ce;
324
- T.Code = de;
325
- g.Option = T;
322
+ A.Flag = pe;
323
+ A.Name = Ce;
324
+ A.Code = de;
325
+ g.Option = A;
326
326
  const at = ({ className: e }) => {
327
327
  const { t: n } = D(), { inputId: r, ariaDescribedBy: o } = re(), { id: a, placeholder: c, disabled: l, readOnly: i, required: u, label: p, hasError: C } = w(), { currentValue: d, handlePhoneChange: m } = _(), f = F(null);
328
328
  return ge(() => {
@@ -347,7 +347,7 @@ const at = ({ className: e }) => {
347
347
  className: e
348
348
  });
349
349
  }, st = ({ children: e, ...n }) => {
350
- const r = n, { isForcedOpen: o } = r, { disabled: a, readOnly: c, required: l, hasError: i } = w(), [u, p] = A(!1), { t: C } = D(), { selectedCountryCode: d, handleCountryCodeChange: m } = _(), f = o || u && !a && !c;
350
+ const r = n, { isForcedOpen: o } = r, { disabled: a, readOnly: c, required: l, hasError: i } = w(), [u, p] = $(!1), { t: C } = D(), { selectedCountryCode: d, handleCountryCodeChange: m } = _(), f = o || u && !a && !c;
351
351
  return /* @__PURE__ */ t.createElement(xe, {
352
352
  "aria-label": C("field.phone.country-code.aria-label"),
353
353
  value: d ?? null,
@@ -367,7 +367,7 @@ const at = ({ className: e }) => {
367
367
  const r = n;
368
368
  return /* @__PURE__ */ t.createElement(Re, null, h(e, s.CountryButton), I(h(e, s.CountryOptions.Modal), r));
369
369
  }, lt = ({ children: e, className: n }) => {
370
- const r = F(null), o = F(null), a = F(!1), { id: c, disabled: l, hasError: i, showFlag: u, onFocus: p, onBlur: C } = w(), d = Ve(C), { countries: m } = _(), f = h(e, s.CountryDrawer), y = h(e, s.CountryPopover), S = h(e, s.PhoneNumber), N = m.length > 1, B = Ue(c) && !!y && N, R = typeof n == "function" ? ({ isHovered: P, isFocusWithin: L }) => n({
370
+ const r = F(null), o = F(null), a = F(!1), { id: c, disabled: l, hasError: i, showFlag: u, onFocus: p, onBlur: C } = w(), d = Ve(C), { countries: m } = _(), f = h(e, s.CountryDrawer), y = h(e, s.CountryPopover), S = h(e, s.PhoneNumber), N = m.length > 1, B = He(c) && !!y && N, R = typeof n == "function" ? ({ isHovered: P, isFocusWithin: L }) => n({
371
371
  hasCountryOptions: N,
372
372
  isHovered: P,
373
373
  isFocusWithin: L
@@ -380,20 +380,20 @@ const at = ({ className: e }) => {
380
380
  a.current || (a.current = !0, p == null || p());
381
381
  },
382
382
  onBlur: (P) => {
383
- var v, $;
383
+ var v, j;
384
384
  const L = P.relatedTarget;
385
- !((v = r.current) != null && v.contains(L)) && !(($ = o.current) != null && $.contains(L)) && (a.current = !1, d());
385
+ !((v = r.current) != null && v.contains(L)) && !((j = o.current) != null && j.contains(L)) && (a.current = !1, d());
386
386
  }
387
387
  };
388
- return m.length === 1 ? /* @__PURE__ */ t.createElement(H, {
388
+ return m.length === 1 ? /* @__PURE__ */ t.createElement(U, {
389
389
  ref: r,
390
390
  className: R,
391
391
  isDisabled: l,
392
392
  isInvalid: i,
393
393
  ...M
394
- }, u && /* @__PURE__ */ t.createElement(K, {
394
+ }, u && /* @__PURE__ */ t.createElement(Y, {
395
395
  longCountryCode: m[0].longCountryCode
396
- }), S) : /* @__PURE__ */ t.createElement(H, {
396
+ }), S) : /* @__PURE__ */ t.createElement(U, {
397
397
  ref: r,
398
398
  className: R,
399
399
  isDisabled: l,
@@ -401,15 +401,15 @@ const at = ({ className: e }) => {
401
401
  ...M
402
402
  }, !B && I(f, x), I(y, x), S);
403
403
  };
404
- s.Label = Ae;
404
+ s.Label = $e;
405
405
  s.Control = lt;
406
- s.CountryButton = Z;
406
+ s.CountryButton = z;
407
407
  s.CountryDrawer = ct;
408
408
  s.CountryPopover = st;
409
409
  s.CountryOptions = g;
410
410
  s.PhoneNumber = at;
411
- s.Description = $e;
412
- s.Error = je;
411
+ s.Description = je;
412
+ s.Error = Te;
413
413
  const ut = (e) => /* @__PURE__ */ t.createElement("svg", {
414
414
  width: 24,
415
415
  height: 24,
@@ -430,7 +430,7 @@ const ut = (e) => /* @__PURE__ */ t.createElement("svg", {
430
430
  }, /* @__PURE__ */ t.createElement("path", {
431
431
  fillRule: "evenodd",
432
432
  d: "M6.6108,14.3887 C5.5718,13.3497 4.9998,11.9687 4.9998,10.4997 C4.9998,9.0317 5.5718,7.6507 6.6108,6.6117 C7.6498,5.5727 9.0308,4.9997 10.4998,4.9997 C11.9688,4.9997 13.3498,5.5727 14.3888,6.6117 C15.4278,7.6507 15.9998,9.0317 15.9998,10.4997 C15.9998,11.9687 15.4278,13.3497 14.3888,14.3887 C13.3498,15.4277 11.9688,15.9997 10.4998,15.9997 C9.0308,15.9997 7.6498,15.4277 6.6108,14.3887 L6.6108,14.3887 Z M20.0028,19.2957 L15.4328,14.7247 C16.4438,13.5477 16.9998,12.0687 16.9998,10.4997 C16.9998,8.7637 16.3238,7.1317 15.0958,5.9047 C13.8688,4.6767 12.2358,3.9997 10.4998,3.9997 C8.7638,3.9997 7.1318,4.6767 5.9038,5.9047 C4.6758,7.1317 3.9998,8.7637 3.9998,10.4997 C3.9998,12.2367 4.6758,13.8677 5.9038,15.0957 C7.1318,16.3237 8.7638,16.9997 10.4998,16.9997 C12.0688,16.9997 13.5478,16.4437 14.7258,15.4317 L19.2958,20.0027 L20.0028,19.2957 Z"
433
- })), mt = "_control_o9wij_1", pt = "_countryButton_o9wij_9", Ct = "_drawerButton_o9wij_25", dt = "_popoverButton_o9wij_34", yt = "_chevron_o9wij_39", Et = "_globeIcon_o9wij_48", ft = "_searchIcon_o9wij_56", ht = "_flag_o9wij_61", gt = "_option_o9wij_67", bt = "_phoneNumber_o9wij_80", Ot = "_countryOptions_o9wij_106", _t = "_countrySearch_o9wij_123", Nt = "_mobileDrawer_o9wij_131", Lt = "_name_o9wij_140", St = "_code_o9wij_144", It = "_mobileOverlay_o9wij_161", E = {
433
+ })), mt = "_control_o9wij_1", pt = "_countryButton_o9wij_9", Ct = "_drawerButton_o9wij_25", dt = "_popoverButton_o9wij_34", yt = "_chevron_o9wij_39", Et = "_globeIcon_o9wij_48", ft = "_searchIcon_o9wij_56", ht = "_flag_o9wij_61", gt = "_option_o9wij_67", Ot = "_phoneNumber_o9wij_80", bt = "_countryOptions_o9wij_106", _t = "_countrySearch_o9wij_123", Nt = "_mobileDrawer_o9wij_131", Lt = "_name_o9wij_140", St = "_code_o9wij_144", It = "_mobileOverlay_o9wij_161", E = {
434
434
  control: mt,
435
435
  countryButton: pt,
436
436
  drawerButton: Ct,
@@ -440,8 +440,8 @@ const ut = (e) => /* @__PURE__ */ t.createElement("svg", {
440
440
  searchIcon: ft,
441
441
  flag: ht,
442
442
  option: gt,
443
- phoneNumber: bt,
444
- countryOptions: Ot,
443
+ phoneNumber: Ot,
444
+ countryOptions: bt,
445
445
  countrySearch: _t,
446
446
  mobileDrawer: Nt,
447
447
  name: Lt,
@@ -453,10 +453,10 @@ const ut = (e) => /* @__PURE__ */ t.createElement("svg", {
453
453
  }), vt = () => /* @__PURE__ */ t.createElement("span", {
454
454
  className: E.chevron,
455
455
  "aria-hidden": "true"
456
- }, /* @__PURE__ */ t.createElement(Ze, null)), Qt = () => {
457
- const e = qe(Se, O.selectOptionWithoutFocusRing, E.option, J), n = X(Ie, [
456
+ }, /* @__PURE__ */ t.createElement(ze, null)), Qt = () => {
457
+ const e = qe(Se, b.selectOptionWithoutFocusRing, E.option, X), n = J(Ie, [
458
458
  E.control
459
- ]), r = X(Le, [
459
+ ]), r = J(Le, [
460
460
  E.countrySearch
461
461
  ]), { t: o } = D(), { PortalContainer: a } = oe(), c = /* @__PURE__ */ t.createElement(s.CountryOptions.Search, {
462
462
  className: r,
@@ -464,7 +464,7 @@ const ut = (e) => /* @__PURE__ */ t.createElement("svg", {
464
464
  }, /* @__PURE__ */ t.createElement(it, {
465
465
  className: E.searchIcon
466
466
  }), /* @__PURE__ */ t.createElement(s.CountryOptions.Search.Input, {
467
- className: b(O.innerInput, J),
467
+ className: O(b.innerInput, X),
468
468
  placeholder: o("field.phone.country-search-input.placeholder")
469
469
  })), l = /* @__PURE__ */ t.createElement(s.CountryOptions.EmptyState, null, o("field.phone.country-selector-dropdown.no-result")), i = /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement(s.CountryButton.Flag, {
470
470
  className: E.flag
@@ -480,31 +480,31 @@ const ut = (e) => /* @__PURE__ */ t.createElement("svg", {
480
480
  className: E.code
481
481
  }));
482
482
  return /* @__PURE__ */ t.createElement(s, null, /* @__PURE__ */ t.createElement(s.Label, {
483
- className: b(be, O.label)
483
+ className: O(Oe, b.label)
484
484
  }, /* @__PURE__ */ t.createElement(s.Label.Required, {
485
- className: b(Oe, O.requiredMark)
485
+ className: O(be, b.requiredMark)
486
486
  })), /* @__PURE__ */ t.createElement(s.Control, {
487
487
  className: ({ hasCountryOptions: p, ...C }) => n(C)
488
488
  }, /* @__PURE__ */ t.createElement(s.CountryDrawer, null, /* @__PURE__ */ t.createElement(s.CountryButton, {
489
- className: b(E.countryButton, E.drawerButton)
489
+ className: O(E.countryButton, E.drawerButton)
490
490
  }, i), /* @__PURE__ */ t.createElement(s.CountryOptions.Modal, {
491
- className: b(Q, O.selectPopover, E.mobileDrawer),
491
+ className: O(Q, b.selectPopover, E.mobileDrawer),
492
492
  overlayClassName: E.mobileOverlay,
493
493
  portalContainer: a,
494
494
  "aria-label": o("field.phone.country-code.aria-label")
495
495
  }, c, l, u)), /* @__PURE__ */ t.createElement(s.CountryPopover, null, /* @__PURE__ */ t.createElement(s.CountryButton, {
496
- className: b(E.countryButton, E.popoverButton)
496
+ className: O(E.countryButton, E.popoverButton)
497
497
  }, i), /* @__PURE__ */ t.createElement(s.CountryOptions.Popover, {
498
- className: b(Q, O.selectPopover, E.countryOptions),
498
+ className: O(Q, b.selectPopover, E.countryOptions),
499
499
  placement: "bottom start",
500
500
  offset: 0,
501
501
  "aria-label": o("field.phone.country-code.aria-label")
502
502
  }, c, l, u)), /* @__PURE__ */ t.createElement(s.PhoneNumber, {
503
- className: b(O.innerInput, E.phoneNumber)
503
+ className: O(b.innerInput, E.phoneNumber)
504
504
  })), /* @__PURE__ */ t.createElement(s.Error, {
505
- className: b(_e, O.error)
506
- }, /* @__PURE__ */ t.createElement(ze, null), /* @__PURE__ */ t.createElement(s.Error.Text, null)), /* @__PURE__ */ t.createElement(s.Description, {
507
- className: b(Ne, O.description)
505
+ className: O(_e, b.error)
506
+ }, /* @__PURE__ */ t.createElement(Ze, null), /* @__PURE__ */ t.createElement(s.Error.Text, null)), /* @__PURE__ */ t.createElement(s.Description, {
507
+ className: O(Ne, b.description)
508
508
  }, Pt));
509
509
  };
510
510
  export {
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { P as o } from "./phone-input-field-rac-CsElHRto.js";
2
+ import { P as o } from "./phone-input-field-rac-F7e74TGA.js";
3
3
  const r = () => /* @__PURE__ */ e.createElement(o, null);
4
4
  export {
5
5
  r as PhoneRAC