@wix/form-elements 1.160.0 → 1.161.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 (108) hide show
  1. package/dist/component/{appointment-rac-BmHu56e5.js → appointment-rac-BubC8I9X.js} +395 -388
  2. package/dist/component/{bookings-address-rac-DY9l2g0h.js → bookings-address-rac-BbwvVs86.js} +1 -1
  3. package/dist/component/{bookings-email-rac-B5vNSOsS.js → bookings-email-rac-C2HCkcfa.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-CJiefCNz.js → bookings-first-name-rac-Uy7c5EBs.js} +1 -1
  5. package/dist/component/{bookings-header-rac-BFu7Ko5w.js → bookings-header-rac-nmwsWRjS.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-DegMM13h.js → bookings-last-name-rac-BAioQLCg.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-DrA-5tBH.js → bookings-login-bar-rac-CO6vOBjG.js} +7 -7
  8. package/dist/component/{bookings-phone-rac-DsaeqxCI.js → bookings-phone-rac-Cr16h-_R.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-jRHiwqi8.js → bookings-rich-text-rac-CHLH3jd7.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-CyoBb6Yf.js → checkbox-field-rac-CMwmwFMD.js} +43 -43
  11. package/dist/component/{checkbox-group-field-headless-Bv1gU3oL.js → checkbox-group-field-headless-BNs_S-nT.js} +24 -24
  12. package/dist/component/{checkbox-group-field-rac-DasArcdV.js → checkbox-group-field-rac-BA60EPAN.js} +12 -12
  13. package/dist/component/{checkbox-group-rac-CzmufV1U.js → checkbox-group-rac-BJZ4Oer9.js} +1 -1
  14. package/dist/component/{checkbox-rac-6C7XoUoZ.js → checkbox-rac-KsVlI6_V.js} +1 -1
  15. package/dist/component/{contacts-address-rac-BZobbFtz.js → contacts-address-rac-CRYkz87z.js} +1 -1
  16. package/dist/component/{contacts-birthdate-rac-DIzf41DS.js → contacts-birthdate-rac-BIz-1-ZX.js} +1 -1
  17. package/dist/component/{contacts-company-rac-BiBDO28r.js → contacts-company-rac-B8G__j6I.js} +1 -1
  18. package/dist/component/{contacts-email-rac-5mqokCSD.js → contacts-email-rac-Dztkvp5i.js} +1 -1
  19. package/dist/component/{contacts-first-name-rac-BXe3_Nz5.js → contacts-first-name-rac-CVSEWpLU.js} +1 -1
  20. package/dist/component/{contacts-last-name-rac-Cfqgh7u1.js → contacts-last-name-rac-Blz4M5bk.js} +1 -1
  21. package/dist/component/{contacts-phone-rac-cmLUWnAc.js → contacts-phone-rac-CPCE5soY.js} +1 -1
  22. package/dist/component/{contacts-position-rac-DTyvklfN.js → contacts-position-rac-Dd_kBjqG.js} +1 -1
  23. package/dist/component/{contacts-subscribe-rac-D-ZEX1A3.js → contacts-subscribe-rac-C6AlsP10.js} +1 -1
  24. package/dist/component/{contacts-tax-id-rac-B4NYJwWt.js → contacts-tax-id-rac-CQ1n29zI.js} +1 -1
  25. package/dist/component/{date-availability-Dach9aRC.js → date-availability-DDj1j0z5.js} +1 -1
  26. package/dist/component/{date-input-field-rac-B72mHcya.js → date-input-field-rac-D5r1n_ah.js} +59 -59
  27. package/dist/component/{date-input-rac-CYix11gT.js → date-input-rac-Cyi5mU_P.js} +1 -1
  28. package/dist/component/{date-picker-field-rac-B8pvtPir.js → date-picker-field-rac-CeG391Zo.js} +34 -34
  29. package/dist/component/{date-picker-rac-D6cR0zH9.js → date-picker-rac-Ci9aHgav.js} +1 -1
  30. package/dist/component/{date-time-input-field-rac-B7Y3Yf5l.js → date-time-input-field-rac-CrbYEbJJ.js} +89 -89
  31. package/dist/component/{date-time-input-rac-DMN-noQX.js → date-time-input-rac-DDJLkqs0.js} +1 -1
  32. package/dist/component/{dext-checkbox-group-rac-Kq0GnteP.js → dext-checkbox-group-rac-C3ftVHBA.js} +4 -4
  33. package/dist/component/{dext-checkbox-rac-BY9GZ4n1.js → dext-checkbox-rac-BGLYWn68.js} +1 -1
  34. package/dist/component/{dext-date-picker-rac-CXArIddp.js → dext-date-picker-rac-Cy9RlDlt.js} +1 -1
  35. package/dist/component/{dext-date-time-input-rac-B39TtxGq.js → dext-date-time-input-rac-88ZoTd5e.js} +1 -1
  36. package/dist/component/{dext-dropdown-rac-C3y0G8cS.js → dext-dropdown-rac-CPxDUuk9.js} +1 -1
  37. package/dist/component/{dext-email-rac-BIg3cq7Q.js → dext-email-rac-BAvQwDPA.js} +1 -1
  38. package/dist/component/{dext-number-input-rac-27sHJ7yN.js → dext-number-input-rac-D7HYQVKq.js} +1 -1
  39. package/dist/component/{dext-phone-rac-CcohoFQp.js → dext-phone-rac--FhcplSI.js} +1 -1
  40. package/dist/component/{dext-radio-group-rac-eead3Gve.js → dext-radio-group-rac-DBz8iCKW.js} +2 -2
  41. package/dist/component/{dext-rating-input-rac-B_E6OcBr.js → dext-rating-input-rac-Cv7nThfe.js} +1 -1
  42. package/dist/component/{dext-tags-rac-Yd9aAtnF.js → dext-tags-rac-CRUUc5dr.js} +2 -2
  43. package/dist/component/{dext-text-area-rac-CMACri2C.js → dext-text-area-rac-DQBQXV1L.js} +1 -1
  44. package/dist/component/{dext-text-input-rac-sNjSCfQ-.js → dext-text-input-rac-4CpM581y.js} +1 -1
  45. package/dist/component/{dext-url-input-rac-DwhbzJty.js → dext-url-input-rac-0C1jTEr9.js} +1 -1
  46. package/dist/component/{donation-rac-BVAN3kMk.js → donation-rac-Cgt0ZE50.js} +68 -68
  47. package/dist/component/{dropdown-field-rac-DdoGigWx.js → dropdown-field-rac-DlGKR7pZ.js} +3 -3
  48. package/dist/component/{dropdown-rac-CRkt5w47.js → dropdown-rac-CYFW_3x_.js} +1 -1
  49. package/dist/component/{ecom-address-rac-C36hFHW0.js → ecom-address-rac-CQfQHpXC.js} +1 -1
  50. package/dist/component/{ecom-subscription-checkbox-rac-BKfQ348w.js → ecom-subscription-checkbox-rac-D2v2Upvz.js} +2 -2
  51. package/dist/component/{email-input-field-rac-MOaISYxa.js → email-input-field-rac-CVw25yRo.js} +45 -45
  52. package/dist/component/{events-repeater-rac-D6p-NgE8.js → events-repeater-rac-BCVUcmFj.js} +22 -22
  53. package/dist/component/{events-rsvp-rac-DVpgN8gm.js → events-rsvp-rac-DwbqEr8z.js} +3 -3
  54. package/dist/component/{field-error-headless-XNWmDH3E.js → field-error-headless-XnVcMmsL.js} +3 -3
  55. package/dist/component/{field-label-headless-CORRAJGt.js → field-label-headless-BRTLT2Yt.js} +14 -14
  56. package/dist/component/{file-upload-rac-DRMr7E4b.js → file-upload-rac-Dkwg9Jk4.js} +115 -115
  57. package/dist/component/{fixed-payment-rac-BUXzNex9.js → fixed-payment-rac-ST98xAa2.js} +20 -20
  58. package/dist/component/{form-DSpx-AO8.js → form-BUqSKOvc.js} +235 -234
  59. package/dist/component/form.js +1 -1
  60. package/dist/component/{header-field-rac-CiDXlNsa.js → header-field-rac-CzNTGYWq.js} +5 -5
  61. package/dist/component/{header-rac-B5Rg-h8u.js → header-rac-DUt6AIAE.js} +1 -1
  62. package/dist/component/{image-choice-rac-CtoA_KDp.js → image-choice-rac-DuBgrSt2.js} +21 -21
  63. package/dist/component/{index-Bz7ZhQsF.js → index-CDO22hht.js} +106 -106
  64. package/dist/component/{index-CwruESwc.js → index-cZZeAuuu.js} +5 -5
  65. package/dist/component/{isObjectLike-C5dHxHP0.js → isObjectLike-cs4bARpC.js} +3 -3
  66. package/dist/component/{multiline-address-field-rac-Z-qF366L.js → multiline-address-field-rac-vcEWhUCV.js} +73 -73
  67. package/dist/component/{multiline-address-rac-CJIHTMw5.js → multiline-address-rac-WQaI2eUX.js} +1 -1
  68. package/dist/component/{number-input-field-rac-D4vf6I6N.js → number-input-field-rac-CBUMqATk.js} +26 -26
  69. package/dist/component/{number-input-rac-B2jW6JUQ.js → number-input-rac-B4j5hyzS.js} +1 -1
  70. package/dist/component/{password-rac-DGRZ17Jl.js → password-rac-DwLyf45N.js} +28 -28
  71. package/dist/component/{payment-input-rac-BtD-tAKv.js → payment-input-rac-D0Od---y.js} +28 -28
  72. package/dist/component/{phone-input-field-rac-KD4-APhr.js → phone-input-field-rac-COlu9IeC.js} +64 -64
  73. package/dist/component/{phone-rac-Cw2yccgg.js → phone-rac-Dh4RacOF.js} +1 -1
  74. package/dist/component/{product-list-rac-XbzTDdbp.js → product-list-rac-D7zHDE2D.js} +47 -47
  75. package/dist/component/{quiz-radio-group-rac-BDw_mAw5.js → quiz-radio-group-rac-1AaKphJt.js} +1 -1
  76. package/dist/component/{radio-button-module-classes-CFGf0Hzh.js → radio-button-module-classes-VqaP6vpA.js} +29 -29
  77. package/dist/component/{radio-group-field-rac-CXN7tyVu.js → radio-group-field-rac-Cp3LRN3C.js} +6 -6
  78. package/dist/component/{radio-group-rac-COHzqjBh.js → radio-group-rac-KhmhzYGf.js} +1 -1
  79. package/dist/component/{rating-input-field-rac-DCXNZgf1.js → rating-input-field-rac-10n6ciCr.js} +22 -22
  80. package/dist/component/{rating-input-rac-DwQt9ML7.js → rating-input-rac-XZjjY2Gp.js} +1 -1
  81. package/dist/component/{rich-content-rac.module-B7rPwNns.js → rich-content-rac.module-kMwDoLBa.js} +1 -1
  82. package/dist/component/{rich-text-field-rac-DlER7NRD.js → rich-text-field-rac-H5bd8fAt.js} +6 -6
  83. package/dist/component/{rich-text-rac-CjicsHA7.js → rich-text-rac-88GSQR62.js} +1 -1
  84. package/dist/component/{service-dropdown-rac-B81LC_6_.js → service-dropdown-rac-B1_Xr_X3.js} +31 -31
  85. package/dist/component/{services-multi-choice-rac-BR6gZeHk.js → services-multi-choice-rac-DWp_Llbi.js} +17 -17
  86. package/dist/component/{signature-rac-XFj7Ddtp.js → signature-rac-zN_6KRDp.js} +44 -44
  87. package/dist/component/{submit-button-rac-Bz7zs_3W.js → submit-button-rac-Dv6UarYX.js} +2 -2
  88. package/dist/component/{tags-field-rac-DWWkNKqc.js → tags-field-rac-sVN6MHfJ.js} +38 -38
  89. package/dist/component/{tags-rac-BXyiQ9i1.js → tags-rac-DhTHs_XN.js} +1 -1
  90. package/dist/component/{text-area-field-rac-DsIRYi0d.js → text-area-field-rac-DrWkww7W.js} +21 -21
  91. package/dist/component/{text-area-rac-CF9pDP9d.js → text-area-rac-CXXh-ZdY.js} +1 -1
  92. package/dist/component/{text-input-field-rac-BwIDZACz.js → text-input-field-rac-C2YiMr-g.js} +3 -3
  93. package/dist/component/{text-input-headless-5kQs2_Xu.js → text-input-headless-BJMNbsMY.js} +12 -12
  94. package/dist/component/{text-input-rac-CRmSuw1k.js → text-input-rac-CpsPh7FH.js} +1 -1
  95. package/dist/component/{time-input-rac-BRMNpe51.js → time-input-rac-DG_1KxS4.js} +23 -23
  96. package/dist/component/{url-input-field-rac-CKLS3QDk.js → url-input-field-rac-twxRREnl.js} +26 -26
  97. package/dist/component/{url-input-rac-Dv-kp50D.js → url-input-rac-BTStO0NP.js} +1 -1
  98. package/dist/component/{use-dropdown-option-class-name-BQi_qE_-.js → use-dropdown-option-class-name-DbMMg1ws.js} +2 -2
  99. package/dist/component/{use-dropdown-trigger-class-name-bAK8aHiG.js → use-dropdown-trigger-class-name-Yes4kC_0.js} +17 -17
  100. package/dist/component/{use-element-state-class-name-rXM_lHug.js → use-element-state-class-name-DlncY4hk.js} +1 -1
  101. package/dist/component/{use-hoverable-input-class-name-BnV_uerV.js → use-hoverable-input-class-name-C__zqP5j.js} +2 -2
  102. package/dist/component/use-is-forced-open-dropdown-DnK_MQRO.js +53 -0
  103. package/dist/component/{use-service-options-base-CLeE9-Tx.js → use-service-options-base-DKJe52Vk.js} +6 -6
  104. package/dist/component/use-text-input-class-name-D9tJTR-b.js +6 -0
  105. package/dist/form.d.ts +3 -0
  106. package/package.json +2 -2
  107. package/dist/component/use-is-forced-open-dropdown-Bp-5Xpmw.js +0 -53
  108. package/dist/component/use-text-input-class-name-DIKWvfkm.js +0 -6
@@ -1,20 +1,20 @@
1
1
  import t, { useState as j, useMemo as h, useCallback as V, useRef as M } from "react";
2
- import w from "classnames";
3
- import { NumberField as z, CheckboxField as J, CheckboxButton as Q, Group as W, Input as Y, Button as k } from "react-aria-components";
4
- import { bF as X, bG as q, bv as H, bA as K, aX as Z, bz as y, bw as P, bB as U, aD as ee, V as te, n as se, s as ne, r as oe } from "./form-DSpx-AO8.js";
2
+ import x from "classnames";
3
+ import { NumberField as W, CheckboxField as Y, CheckboxButton as z, Group as J, Input as Q, Button as k } from "react-aria-components";
4
+ import { bG as H, bH as q, bw as K, bB as P, aY as Z, bA as y, bx as X, bC as U, aE as ee, W as te, o as se, t as ne, s as oe } from "./form-BUqSKOvc.js";
5
5
  import { f as b, a as L } from "./find-child-C60k4CxG.js";
6
- import { L as re } from "./field-label-headless-CORRAJGt.js";
6
+ import { L as re } from "./field-label-headless-BRTLT2Yt.js";
7
7
  import { S as ae } from "./selection-indicator-XQ8MYHUQ.js";
8
8
  import { u as le } from "./use-invoke-callback-UH73A_J3.js";
9
- import { C as x } from "./chevron-down-icon-CcpVm6B-.js";
9
+ import { C as w } from "./chevron-down-icon-CcpVm6B-.js";
10
10
  import { C as ce } from "./checkbox-indicator-module-classes-akWZsZNn.js";
11
11
  import { s as v } from "./field-rac.module-DP0lkkEv.js";
12
- import { u as ue } from "./use-element-state-class-name-rXM_lHug.js";
13
- import { u as me } from "./use-text-input-class-name-DIKWvfkm.js";
12
+ import { u as ue } from "./use-element-state-class-name-DlncY4hk.js";
13
+ import { u as me } from "./use-text-input-class-name-D9tJTR-b.js";
14
14
  const ie = [], de = ({ id: e, fields: s, layout: a, value: o, onChange: n, errors: l = ie, validation: c }) => {
15
15
  const [m, i] = j((o == null ? void 0 : o.length) || 0), u = h(() => o ?? [], [
16
16
  o
17
- ]), d = X(), g = q(), C = H(), { validateFields: p } = K(), F = c.predefined.objectArrayOptions.maxItems, O = h(() => Z({
17
+ ]), d = H(), g = q(), C = K(), { validateFields: p } = P(), F = c.predefined.objectArrayOptions.maxItems, O = h(() => Z({
18
18
  form: {
19
19
  fields: s,
20
20
  steps: [
@@ -99,7 +99,7 @@ const ie = [], de = ({ id: e, fields: s, layout: a, value: o, onChange: n, error
99
99
  className: e
100
100
  }, null), f = ({ children: e, ...s }) => {
101
101
  const { guestLimit: a, guestCount: o, onGuestCountChange: n } = s, { label: l, disabled: c, readOnly: m, onBlur: i, onFocus: u } = y(), d = le(i), g = b(e, f.Control);
102
- return /* @__PURE__ */ t.createElement(z, {
102
+ return /* @__PURE__ */ t.createElement(W, {
103
103
  "aria-label": l,
104
104
  value: o,
105
105
  onChange: n,
@@ -113,19 +113,19 @@ const ie = [], de = ({ id: e, fields: s, layout: a, value: o, onChange: n, error
113
113
  }, g);
114
114
  }, be = ({ children: e, className: s }) => {
115
115
  const { disabled: a, readOnly: o } = y(), n = b(e, f.Input), l = b(e, f.Decrement), c = b(e, f.Increment);
116
- return /* @__PURE__ */ t.createElement(W, {
116
+ return /* @__PURE__ */ t.createElement(J, {
117
117
  className: s,
118
118
  isDisabled: a,
119
119
  isReadOnly: o
120
120
  }, n, c, l);
121
121
  }, ge = ({ className: e }) => {
122
- const { id: s } = y(), { inputId: a, ariaDescribedBy: o } = P(), n = M(null);
122
+ const { id: s } = y(), { inputId: a, ariaDescribedBy: o } = X(), n = M(null);
123
123
  return U(() => {
124
124
  var l;
125
125
  (l = n.current) == null || l.focus({
126
126
  preventScroll: !0
127
127
  });
128
- }, s), /* @__PURE__ */ t.createElement(Y, {
128
+ }, s), /* @__PURE__ */ t.createElement(Q, {
129
129
  ref: n,
130
130
  id: a,
131
131
  "aria-describedby": o,
@@ -139,7 +139,7 @@ const ie = [], de = ({ id: e, fields: s, layout: a, value: o, onChange: n, error
139
139
  slot: "increment",
140
140
  className: s
141
141
  }, e), S = ({ children: e, className: s, ...a }) => {
142
- const { guestCount: o, onGuestCountChange: n } = a, { id: l, label: c, disabled: m, readOnly: i, onBlur: u, onFocus: d } = y(), { inputId: g, ariaDescribedBy: C } = P(), p = M(null);
142
+ const { guestCount: o, onGuestCountChange: n } = a, { id: l, label: c, disabled: m, readOnly: i, onBlur: u, onFocus: d } = y(), { inputId: g, ariaDescribedBy: C } = X(), p = M(null);
143
143
  U(() => {
144
144
  var G;
145
145
  (G = p.current) == null || G.focus({
@@ -151,7 +151,7 @@ const ie = [], de = ({ id: e, fields: s, layout: a, value: o, onChange: n, error
151
151
  }, [
152
152
  n
153
153
  ]);
154
- return /* @__PURE__ */ t.createElement(J, {
154
+ return /* @__PURE__ */ t.createElement(Y, {
155
155
  inputRef: p,
156
156
  id: g,
157
157
  "aria-describedby": C,
@@ -161,7 +161,7 @@ const ie = [], de = ({ id: e, fields: s, layout: a, value: o, onChange: n, error
161
161
  isReadOnly: i,
162
162
  onBlur: u,
163
163
  onFocus: d
164
- }, /* @__PURE__ */ t.createElement(Q, {
164
+ }, /* @__PURE__ */ t.createElement(z, {
165
165
  className: s
166
166
  }, ({ isSelected: G, isHovered: D, isFocused: E }) => /* @__PURE__ */ t.createElement(t.Fragment, null, L(F, {
167
167
  isSelected: G,
@@ -204,7 +204,7 @@ const ie = [], de = ({ id: e, fields: s, layout: a, value: o, onChange: n, error
204
204
  onFieldChange: m(p)
205
205
  }))) : null;
206
206
  }, Ie = ({ className: e, ...s }) => {
207
- const { index: a, formView: o, values: n, errors: l, onFieldChange: c } = s, m = X(), i = q(), u = H(), { validateFields: d } = K();
207
+ const { index: a, formView: o, values: n, errors: l, onFieldChange: c } = s, m = H(), i = q(), u = K(), { validateFields: d } = P();
208
208
  return /* @__PURE__ */ t.createElement("div", {
209
209
  className: e,
210
210
  "data-hook": `guest-${a}`
@@ -243,21 +243,21 @@ const Ne = "_container_p2psq_1", _e = "_countGroup_p2psq_8", Le = "_increment_p2
243
243
  return /* @__PURE__ */ t.createElement(r, {
244
244
  className: R.container
245
245
  }, /* @__PURE__ */ t.createElement(r.Label, {
246
- className: w(te, v.label)
246
+ className: x(te, v.label)
247
247
  }), /* @__PURE__ */ t.createElement(r.GuestCount, null, /* @__PURE__ */ t.createElement(r.GuestCount.Control, {
248
248
  className: e
249
249
  }, /* @__PURE__ */ t.createElement(r.GuestCount.Input, {
250
250
  className: v.innerInput
251
251
  }), /* @__PURE__ */ t.createElement(r.GuestCount.Increment, {
252
252
  className: R.increment
253
- }, /* @__PURE__ */ t.createElement(x, {
253
+ }, /* @__PURE__ */ t.createElement(w, {
254
254
  style: {
255
255
  transform: "rotate(180deg)"
256
256
  }
257
257
  })), /* @__PURE__ */ t.createElement(r.GuestCount.Decrement, {
258
258
  className: R.decrement
259
- }, /* @__PURE__ */ t.createElement(x, null)))), /* @__PURE__ */ t.createElement(r.GuestToggle, {
260
- className: w(se, v.checkbox)
259
+ }, /* @__PURE__ */ t.createElement(w, null)))), /* @__PURE__ */ t.createElement(r.GuestToggle, {
260
+ className: x(se, v.checkbox)
261
261
  }, /* @__PURE__ */ t.createElement(r.GuestToggle.Input, {
262
262
  className: s
263
263
  }), /* @__PURE__ */ t.createElement(r.GuestToggle.Label, {
@@ -265,7 +265,7 @@ const Ne = "_container_p2psq_1", _e = "_countGroup_p2psq_8", Le = "_increment_p2
265
265
  })), /* @__PURE__ */ t.createElement(r.Guests, {
266
266
  className: R.container
267
267
  }, /* @__PURE__ */ t.createElement(r.Guests.Guest, null)));
268
- }, Xe = () => /* @__PURE__ */ t.createElement(Oe, null);
268
+ }, He = () => /* @__PURE__ */ t.createElement(Oe, null);
269
269
  export {
270
- Xe as EventsRepeaterRAC
270
+ He as EventsRepeaterRAC
271
271
  };
@@ -1,12 +1,12 @@
1
1
  import t from "react";
2
2
  import { RicosViewer as m } from "@wix/ricos/viewer";
3
3
  import a from "classnames";
4
- import { a as s, s as n, R as c } from "./radio-button-module-classes-CFGf0Hzh.js";
4
+ import { a as s, s as n, R as c } from "./radio-button-module-classes-VqaP6vpA.js";
5
5
  import { E as i } from "./error-icon-hZxQ6DEy.js";
6
6
  import { s as o } from "./field-rac.module-DP0lkkEv.js";
7
- import { V as E, ab as p, a6 as R, a7 as O, L as _, z as L, a8 as D } from "./form-DSpx-AO8.js";
7
+ import { W as E, ac as p, a7 as R, a8 as O, M as _, G as L, a9 as D } from "./form-BUqSKOvc.js";
8
8
  import { o as I } from "./options-rac.module-_THNq6Qq.js";
9
- import { u as S } from "./use-element-state-class-name-rXM_lHug.js";
9
+ import { u as S } from "./use-element-state-class-name-DlncY4hk.js";
10
10
  const e = ({ children: r, className: l }) => /* @__PURE__ */ t.createElement(s, {
11
11
  className: l
12
12
  }, r);
@@ -1,11 +1,11 @@
1
1
  import t, { createContext as m, useContext as M } from "react";
2
- import { bz as c, bw as i, br as b, b8 as f, b9 as x } from "./form-DSpx-AO8.js";
2
+ import { bA as c, bx as i, bs as b, b9 as x, ba as f } from "./form-BUqSKOvc.js";
3
3
  const H = ({ className: r, children: e }) => {
4
4
  const { description: s, target: o } = c(), { descriptionId: a } = i(), { language: n } = b();
5
5
  return s ? /* @__PURE__ */ t.createElement("div", {
6
6
  className: r,
7
7
  id: a,
8
- "data-hook": f(o)
8
+ "data-hook": x(o)
9
9
  }, e({
10
10
  content: s,
11
11
  locale: n
@@ -21,7 +21,7 @@ const H = ({ className: r, children: e }) => {
21
21
  value: p
22
22
  }, /* @__PURE__ */ t.createElement("div", {
23
23
  id: g,
24
- "data-hook": x(n),
24
+ "data-hook": f(n),
25
25
  className: r
26
26
  }, e)) : null;
27
27
  };
@@ -1,29 +1,29 @@
1
- import { bz as m, aQ as d, aR as p, bw as D, bJ as B } from "./form-DSpx-AO8.js";
1
+ import { bA as m, aR as d, aS as p, bx as D, bK as S } from "./form-BUqSKOvc.js";
2
2
  import l from "react";
3
3
  import { f as L } from "./find-child-C60k4CxG.js";
4
4
  import { sdk as R } from "@wix/image-kit";
5
- function N({ id: e, width: t, height: n }, a, r, o = "fill") {
5
+ function x({ id: e, width: t, height: n }, a, r, o = "fill") {
6
6
  return (o === "fit" ? R.getScaleToFitImageURL : R.getScaleToFillImageURL)(e, t, n, typeof a == "number" ? a : parseInt(a, 10), typeof r == "number" ? r : parseInt(r, 10));
7
7
  }
8
8
  var u = /* @__PURE__ */ (function(e) {
9
9
  return e.TOP = "top", e.BOTTOM = "bottom", e;
10
10
  })({});
11
- const S = {
11
+ const B = {
12
12
  visibility: "hidden",
13
13
  display: "block",
14
14
  height: 0,
15
15
  margin: 0,
16
16
  padding: 0
17
- }, U = "​", i = ({ children: e, className: t, ...n }) => {
18
- const { as: a = "label", requiredIndicatorHidden: r = !1, label: o } = n, { label: T, required: g = !1, hideLabel: F = !1, requiredIndicatorType: q = d.ASTERISK, requiredIndicatorPlacement: O = p.AFTER_FIELD_TITLE, media: y, mediaSettings: s } = m(), { labelId: A, inputId: P } = D(), _ = a, b = g && !r ? L(e, i.Required) : null, c = y ? L(e, i.Image) : null, E = (s == null ? void 0 : s.imagePosition) ?? u.TOP, h = q === d.ASTERISK && O === p.BEFORE_FIELD_TITLE, f = (o ?? T) || U, I = /* @__PURE__ */ l.createElement(_, {
19
- id: A,
17
+ }, N = "​", i = ({ children: e, className: t, ...n }) => {
18
+ const { as: a = "label", requiredIndicatorHidden: r = !1, label: o } = n, { label: T, required: g = !1, hideLabel: F = !1, requiredIndicatorType: q = d.ASTERISK, requiredIndicatorPlacement: O = p.AFTER_FIELD_TITLE, media: A, mediaSettings: s } = m(), { labelId: y, inputId: P } = D(), _ = a, b = g && !r ? L(e, i.Required) : null, c = A ? L(e, i.Image) : null, E = (s == null ? void 0 : s.imagePosition) ?? u.TOP, h = q === d.ASTERISK && O === p.BEFORE_FIELD_TITLE, f = (o ?? T) || N, I = /* @__PURE__ */ l.createElement(_, {
19
+ id: y,
20
20
  htmlFor: a === "label" ? P : void 0,
21
21
  className: t,
22
- style: F ? S : void 0
22
+ style: F ? B : void 0
23
23
  }, h ? /* @__PURE__ */ l.createElement(l.Fragment, null, b, f) : /* @__PURE__ */ l.createElement(l.Fragment, null, f, b));
24
24
  return c ? /* @__PURE__ */ l.createElement("div", null, E === u.TOP ? c : null, I, E === u.BOTTOM ? c : null) : I;
25
- }, v = ({ className: e }) => {
26
- const { t } = B(), { requiredIndicatorType: n } = m();
25
+ }, U = ({ className: e }) => {
26
+ const { t } = S(), { requiredIndicatorType: n } = m();
27
27
  return n === d.TEXT ? /* @__PURE__ */ l.createElement("span", {
28
28
  className: e,
29
29
  "aria-hidden": "true"
@@ -31,11 +31,11 @@ const S = {
31
31
  className: e,
32
32
  "aria-hidden": "true"
33
33
  }, "*");
34
- }, x = ({ className: e }) => {
34
+ }, v = ({ className: e }) => {
35
35
  const { media: t, mediaSettings: n } = m();
36
36
  if (!t)
37
37
  return null;
38
- const a = N(t, t.width, t.height);
38
+ const a = x(t, t.width, t.height);
39
39
  return a ? /* @__PURE__ */ l.createElement("img", {
40
40
  className: e,
41
41
  src: a,
@@ -44,9 +44,9 @@ const S = {
44
44
  "data-alignment": n == null ? void 0 : n.imageAlignment
45
45
  }) : null;
46
46
  };
47
- i.Required = v;
48
- i.Image = x;
47
+ i.Required = U;
48
+ i.Image = v;
49
49
  export {
50
50
  i as L,
51
- N as g
51
+ x as g
52
52
  };