@wix/form-elements 1.80.0 → 1.81.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 (106) hide show
  1. package/dist/component/{appointment-rac-BYisg594.js → appointment-rac-DmwbqZse.js} +82 -82
  2. package/dist/component/{bookings-address-rac-CsILj67y.js → bookings-address-rac-RCzVU87c.js} +1 -1
  3. package/dist/component/{bookings-email-rac-CVmAPK_5.js → bookings-email-rac-Df_Wte1_.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-Dh41-RQ_.js → bookings-first-name-rac-BmdRGYxF.js} +1 -1
  5. package/dist/component/{bookings-header-rac-B6Fgfiz5.js → bookings-header-rac-DewQWtkZ.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-CuY8aaXv.js → bookings-last-name-rac-DmmNBuqy.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-B8JBcGs8.js → bookings-login-bar-rac-QskvFo0C.js} +5 -5
  8. package/dist/component/{bookings-phone-rac-Bspc3F7g.js → bookings-phone-rac-7wn8IXna.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-B1o0ZcfK.js → bookings-rich-text-rac-B5nk0BlD.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-thaR4lXB.js → checkbox-field-rac-BnVNfYWL.js} +5 -5
  11. package/dist/component/{checkbox-group-field-headless-DryeaW7l.js → checkbox-group-field-headless-Bx5Y-RMP.js} +3 -3
  12. package/dist/component/{checkbox-group-field-rac-CJfbT13O.js → checkbox-group-field-rac-CZW28rj5.js} +7 -7
  13. package/dist/component/{checkbox-group-rac-BwI7UHzO.js → checkbox-group-rac-B20t8dTB.js} +1 -1
  14. package/dist/component/{checkbox-rac-HRTKCRY4.js → checkbox-rac-ifC6qSE8.js} +1 -1
  15. package/dist/component/{contacts-address-rac-BIn9plXb.js → contacts-address-rac-XJRKvPlp.js} +1 -1
  16. package/dist/component/{contacts-birthdate-rac-oGP8bO3I.js → contacts-birthdate-rac-CKYESrPO.js} +1 -1
  17. package/dist/component/{contacts-company-rac-ChdjTt8-.js → contacts-company-rac-BXwEeb0p.js} +1 -1
  18. package/dist/component/{contacts-email-rac-BUluFo-o.js → contacts-email-rac-D8Yspo_m.js} +1 -1
  19. package/dist/component/{contacts-first-name-rac-tmboINSq.js → contacts-first-name-rac-mvCGP1LJ.js} +1 -1
  20. package/dist/component/{contacts-last-name-rac-BaD5OBVf.js → contacts-last-name-rac-Clg9RXal.js} +1 -1
  21. package/dist/component/{contacts-phone-rac-BoX2-IEP.js → contacts-phone-rac-qEwjhByI.js} +1 -1
  22. package/dist/component/{contacts-position-rac-BNDskehr.js → contacts-position-rac-Bh8fvf2M.js} +1 -1
  23. package/dist/component/{contacts-subscribe-rac-CVaQG4Qy.js → contacts-subscribe-rac-DEQ2XkZo.js} +2 -2
  24. package/dist/component/{contacts-tax-id-rac-Dxgxcv7c.js → contacts-tax-id-rac-0DUZ4tJz.js} +1 -1
  25. package/dist/component/{date-availability-BbrBYxgL.js → date-availability-2ek2RtXx.js} +1 -1
  26. package/dist/component/{date-input-field-rac-oibxt2dz.js → date-input-field-rac-Bp4SQB-t.js} +29 -29
  27. package/dist/component/{date-input-rac-h2vrPoah.js → date-input-rac-CYsJcMe5.js} +1 -1
  28. package/dist/component/{date-picker-field-rac-Cr9PMglz.js → date-picker-field-rac-BGQvnSYI.js} +9 -9
  29. package/dist/component/{date-picker-rac-8BOHRpaJ.js → date-picker-rac-BVncggYR.js} +1 -1
  30. package/dist/component/{date-time-input-field-rac-C7CZ4i6-.js → date-time-input-field-rac-B1mggelc.js} +33 -33
  31. package/dist/component/{date-time-input-rac-BARK1BJc.js → date-time-input-rac-DzdCno0L.js} +1 -1
  32. package/dist/component/{dext-checkbox-group-rac-CWc0W-zr.js → dext-checkbox-group-rac-CNCpeolD.js} +2 -2
  33. package/dist/component/{dext-checkbox-rac-NKcTYwpg.js → dext-checkbox-rac-BYDQ58Mo.js} +1 -1
  34. package/dist/component/{dext-date-picker-rac-SllyCpYt.js → dext-date-picker-rac-aYYk8Nrl.js} +1 -1
  35. package/dist/component/{dext-date-time-input-rac-JT9Pa7TG.js → dext-date-time-input-rac-v2v974p5.js} +1 -1
  36. package/dist/component/{dext-dropdown-rac-aBU9t_U4.js → dext-dropdown-rac-C846KZCe.js} +1 -1
  37. package/dist/component/{dext-email-rac-DKoJiyjE.js → dext-email-rac-izjbfME9.js} +1 -1
  38. package/dist/component/{dext-number-input-rac-BHkzAyzd.js → dext-number-input-rac-CnOFsD7l.js} +1 -1
  39. package/dist/component/{dext-phone-rac-Ou-fxcN5.js → dext-phone-rac-D8GMXD88.js} +1 -1
  40. package/dist/component/{dext-radio-group-rac-CH0WlRsF.js → dext-radio-group-rac-BtiyGCRh.js} +2 -2
  41. package/dist/component/{dext-rating-input-rac-D_jXx_VN.js → dext-rating-input-rac-BHJ1kitb.js} +1 -1
  42. package/dist/component/{dext-tags-rac-DBaT-lQT.js → dext-tags-rac-CvNjwS5R.js} +2 -2
  43. package/dist/component/{dext-text-area-rac-DWcCktYi.js → dext-text-area-rac-X5L0Q3sC.js} +1 -1
  44. package/dist/component/{dext-text-input-rac-CBX2wgW-.js → dext-text-input-rac-swkyAJqC.js} +1 -1
  45. package/dist/component/{dext-url-input-rac-DaqWDzIt.js → dext-url-input-rac-BYlXOAkz.js} +1 -1
  46. package/dist/component/donation-rac-CDWLBZZM.js +318 -0
  47. package/dist/component/{dropdown-field-headless-D7mOjVEJ.js → dropdown-field-headless-JJzbZvps.js} +3 -3
  48. package/dist/component/{dropdown-field-rac-DsRuMFo4.js → dropdown-field-rac-BodpIQ9Q.js} +5 -5
  49. package/dist/component/{dropdown-rac-8Fe66UGi.js → dropdown-rac-Bfbxxx9k.js} +1 -1
  50. package/dist/component/{ecom-address-rac-DbR_WEgu.js → ecom-address-rac-BCnsL5tr.js} +1 -1
  51. package/dist/component/{ecom-subscription-checkbox-rac-ByQsK79_.js → ecom-subscription-checkbox-rac-CNSdI_ty.js} +3 -3
  52. package/dist/component/{email-input-field-rac-BS0bFS0-.js → email-input-field-rac-Btaa4O5T.js} +48 -48
  53. package/dist/component/{events-repeater-rac-xhXarOw_.js → events-repeater-rac-xBwqJddt.js} +10 -10
  54. package/dist/component/{events-rsvp-rac-BLq-ro2E.js → events-rsvp-rac-D90PwkHd.js} +3 -3
  55. package/dist/component/{field-error-headless-C7IUibkK.js → field-error-headless-BErhh9GG.js} +1 -1
  56. package/dist/component/{field-label-headless-BQFy2iAr.js → field-label-headless-BGyK-5xW.js} +1 -1
  57. package/dist/component/{file-upload-rac-B84R44Bt.js → file-upload-rac-MxH3CVml.js} +21 -21
  58. package/dist/component/{fixed-payment-rac-D7Asu-Ws.js → fixed-payment-rac-DpBA9irF.js} +10 -10
  59. package/dist/component/{form-element-classes-BuM-vthE.js → form-element-classes-jC8D0LnK.js} +77 -63
  60. package/dist/component/{form-BmioUKtQ.js → form-f0tqdMye.js} +69 -69
  61. package/dist/component/form.css +1 -1
  62. package/dist/component/form.js +1 -1
  63. package/dist/component/{header-field-rac-CN5SyZpH.js → header-field-rac-BXxFqu9u.js} +3 -3
  64. package/dist/component/{header-rac-B9ITu2YO.js → header-rac-BN70esac.js} +1 -1
  65. package/dist/component/image-choice-rac-DLBGIBXL.js +158 -0
  66. package/dist/component/{index-3q1aCLZ8.js → index-BvB-uE1H.js} +2 -2
  67. package/dist/component/{index-CvWMG1x1.js → index-DXLEHYlA.js} +4 -4
  68. package/dist/component/{isObjectLike-xDv2bEeI.js → isObjectLike-BYOX5XY4.js} +1 -1
  69. package/dist/component/{multiline-address-field-rac-BLDqei5I.js → multiline-address-field-rac-fcQYnPlO.js} +52 -52
  70. package/dist/component/{multiline-address-rac-Dy9Km8P8.js → multiline-address-rac-D82Gbj3n.js} +1 -1
  71. package/dist/component/{number-input-field-rac-Dxu4WHzh.js → number-input-field-rac-B0-4Rz3w.js} +16 -16
  72. package/dist/component/{number-input-rac-hHEmwPao.js → number-input-rac-Bnsvb-SO.js} +1 -1
  73. package/dist/component/{password-rac-CEylicEt.js → password-rac-BdBjFa8y.js} +15 -15
  74. package/dist/component/{payment-input-rac-bvK_YQ78.js → payment-input-rac-DkAGOvaF.js} +18 -18
  75. package/dist/component/{phone-input-field-rac-CqYNWmiA.js → phone-input-field-rac-Ce_wuE46.js} +54 -54
  76. package/dist/component/{phone-rac-C72xrPL6.js → phone-rac-DslINtcH.js} +1 -1
  77. package/dist/component/{product-list-rac-DbftZgIh.js → product-list-rac-C4P_SOyG.js} +25 -25
  78. package/dist/component/{quiz-radio-group-rac-Bkg5poft.js → quiz-radio-group-rac-noy4fmD8.js} +2 -2
  79. package/dist/component/{radio-button-module-classes-Do4JmHrh.js → radio-button-module-classes-DXQ1UlmI.js} +3 -3
  80. package/dist/component/{radio-group-field-rac-BkoqJYp4.js → radio-group-field-rac-CYBDq7R1.js} +5 -5
  81. package/dist/component/{radio-group-rac-BGp1iRNt.js → radio-group-rac-CGHQFyJY.js} +1 -1
  82. package/dist/component/{rating-input-field-rac-Bozwq2E7.js → rating-input-field-rac-elaferlI.js} +18 -18
  83. package/dist/component/{rating-input-rac-Cxha4VPg.js → rating-input-rac-fnOtTKN8.js} +1 -1
  84. package/dist/component/{rich-content-rac.module-ZXCfVPY-.js → rich-content-rac.module-DbwuwQeo.js} +1 -1
  85. package/dist/component/{rich-text-field-rac-Ct4KowMZ.js → rich-text-field-rac-DtcQC8zU.js} +3 -3
  86. package/dist/component/{rich-text-rac-Cek5wjXa.js → rich-text-rac-CuT97sby.js} +1 -1
  87. package/dist/component/{service-dropdown-rac-B3K93XxF.js → service-dropdown-rac-rk2tzikX.js} +24 -24
  88. package/dist/component/{services-multi-choice-rac-2RTQqyG6.js → services-multi-choice-rac-BMQyF_xs.js} +7 -7
  89. package/dist/component/{signature-rac-BIbRkW1j.js → signature-rac-DeV9C6ta.js} +41 -41
  90. package/dist/component/{submit-button-rac-DofUaqHk.js → submit-button-rac-BpN-FYtM.js} +2 -2
  91. package/dist/component/tags-field-rac-ByC9DnyH.js +217 -0
  92. package/dist/component/{tags-rac-DuMX91gd.js → tags-rac-Dabz4jHd.js} +1 -1
  93. package/dist/component/{text-area-field-rac-BbHdTAJP.js → text-area-field-rac-CtSa8XW_.js} +14 -14
  94. package/dist/component/{text-area-rac-B9lDzZAb.js → text-area-rac-CDLF-_56.js} +1 -1
  95. package/dist/component/{text-input-field-rac-B_csZjOh.js → text-input-field-rac-C6fQYKhI.js} +5 -5
  96. package/dist/component/{text-input-headless-CVOWyi55.js → text-input-headless-BwVLU9cp.js} +3 -3
  97. package/dist/component/{text-input-rac-DowwSRpa.js → text-input-rac-CoGTzfo1.js} +1 -1
  98. package/dist/component/{time-input-rac-D9SXITBr.js → time-input-rac-DQDupKTA.js} +17 -17
  99. package/dist/component/{url-input-field-rac-BxT0Lgly.js → url-input-field-rac-4T8gcMHH.js} +8 -8
  100. package/dist/component/{url-input-rac-GX9rvIJd.js → url-input-rac-_d6XRdKX.js} +1 -1
  101. package/dist/component/{use-element-state-class-name-nCwOVSGM.js → use-element-state-class-name-BqmaTba3.js} +1 -1
  102. package/dist/component/{use-service-options-base-BO3Ackpl.js → use-service-options-base-CRgxxz7b.js} +1 -1
  103. package/package.json +2 -2
  104. package/dist/component/donation-rac-D1rcPi17.js +0 -307
  105. package/dist/component/image-choice-rac-9ncRxwZd.js +0 -146
  106. package/dist/component/tags-field-rac-DTOthwA5.js +0 -206
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { R as t } from "./rich-text-field-rac-Ct4KowMZ.js";
2
+ import { R as t } from "./rich-text-field-rac-DtcQC8zU.js";
3
3
  const R = () => /* @__PURE__ */ e.createElement(t, null);
4
4
  export {
5
5
  R as RichTextRAC
@@ -1,14 +1,14 @@
1
- import t, { useRef as N, useMemo as g, useCallback as h, useEffect as T } from "react";
2
- import { RicosViewer as A } from "@wix/ricos/viewer";
1
+ import t, { useRef as N, useMemo as g, useCallback as h, useEffect as P } from "react";
2
+ import { RicosViewer as T } from "@wix/ricos/viewer";
3
3
  import m from "classnames";
4
- import { ae as w, as as b, F as M, ai as y, ab as U, h as V } from "./form-BmioUKtQ.js";
5
- import { u as x } from "./use-service-options-base-BO3Ackpl.js";
6
- import { D as d } from "./dropdown-field-headless-D7mOjVEJ.js";
7
- import { C as B } from "./chevron-down-icon-CcpVm6B-.js";
8
- import { E as H } from "./error-icon-hZxQ6DEy.js";
9
- import { H as k } from "./custom-focus-class-_483Pkwp.js";
4
+ import { ae as w, as as b, F as M, ai as y, ab as x, h as U } from "./form-f0tqdMye.js";
5
+ import { u as V } from "./use-service-options-base-CRgxxz7b.js";
6
+ import { D as d } from "./dropdown-field-headless-JJzbZvps.js";
7
+ import { C as H } from "./chevron-down-icon-CcpVm6B-.js";
8
+ import { E as k } from "./error-icon-hZxQ6DEy.js";
9
+ import { H as q } from "./custom-focus-class-_483Pkwp.js";
10
10
  import { s as n } from "./field-rac.module-ColNPUt0.js";
11
- import { z as q, P as W, y as z, B as Q, p as Y, i as j } from "./form-element-classes-BuM-vthE.js";
11
+ import { y as B, O as W, x as Q, A as Y, o as j, i as z } from "./form-element-classes-jC8D0LnK.js";
12
12
  const G = "00000000-0000-0000-0000-000000000000", J = (e) => {
13
13
  const { actions: r } = w(), { t: C } = b(), { addOther: i, addOtherLabel: p } = e, c = p || C("add-other.default-other-option-label"), a = N(!0), E = g(() => {
14
14
  var s;
@@ -25,7 +25,7 @@ const G = "00000000-0000-0000-0000-000000000000", J = (e) => {
25
25
  ] : s, [
26
26
  i,
27
27
  c
28
- ]), { isLoading: f, options: l, isEmpty: D, shouldRender: I, setIsLoading: F, setOptions: L, setIsEmpty: S, processOptions: _ } = x({
28
+ ]), { isLoading: f, options: l, isEmpty: D, shouldRender: I, setIsLoading: F, setOptions: L, setIsEmpty: S, processOptions: _ } = V({
29
29
  fieldType: M.SERVICES_DROPDOWN,
30
30
  isEditor: e.isEditor,
31
31
  postProcessOptions: O
@@ -56,7 +56,7 @@ const G = "00000000-0000-0000-0000-000000000000", J = (e) => {
56
56
  L,
57
57
  S
58
58
  ]);
59
- T(() => {
59
+ P(() => {
60
60
  if (!e.isEditor && l.length > 0) {
61
61
  const s = i ? l.length - 1 : l.length;
62
62
  S(s === 0);
@@ -72,7 +72,7 @@ const G = "00000000-0000-0000-0000-000000000000", J = (e) => {
72
72
  }, [
73
73
  R,
74
74
  e.onFocus
75
- ]), P = h(
75
+ ]), A = h(
76
76
  (s) => {
77
77
  e.onChange && e.onChange(s), a.current = !0;
78
78
  },
@@ -86,11 +86,11 @@ const G = "00000000-0000-0000-0000-000000000000", J = (e) => {
86
86
  options: l,
87
87
  isEmpty: D,
88
88
  onFocus: v,
89
- onChange: P,
89
+ onChange: A,
90
90
  shouldRender: I
91
91
  };
92
92
  }, o = ({ children: e }) => {
93
- const r = y(), { addOther: C } = r, i = U(), p = r.isEditor || i.isEditor || i.isComposer, { isLoading: c, options: a, isEmpty: E, onFocus: O, onChange: f, shouldRender: l } = J({
93
+ const r = y(), { addOther: C } = r, i = x(), p = r.isEditor || i.isEditor || i.isComposer, { isLoading: c, options: a, isEmpty: E, onFocus: O, onChange: f, shouldRender: l } = J({
94
94
  ...r,
95
95
  isEditor: p
96
96
  }), D = g(() => ({
@@ -106,7 +106,7 @@ const G = "00000000-0000-0000-0000-000000000000", J = (e) => {
106
106
  O,
107
107
  f
108
108
  ]);
109
- return !p && E && !C || !l ? null : /* @__PURE__ */ t.createElement(V.Provider, {
109
+ return !p && E && !C || !l ? null : /* @__PURE__ */ t.createElement(U.Provider, {
110
110
  value: {
111
111
  v2: D
112
112
  }
@@ -117,25 +117,25 @@ o.Trigger = d.Trigger;
117
117
  o.Options = d.Options;
118
118
  o.Description = d.Description;
119
119
  o.Error = d.Error;
120
- const K = ({ content: e, locale: r }) => /* @__PURE__ */ t.createElement(A, {
120
+ const K = ({ content: e, locale: r }) => /* @__PURE__ */ t.createElement(T, {
121
121
  content: e,
122
122
  locale: r
123
123
  }), X = () => /* @__PURE__ */ t.createElement(o, null, /* @__PURE__ */ t.createElement(o.Label, {
124
- className: m(q, n.label)
124
+ className: m(B, n.label)
125
125
  }, /* @__PURE__ */ t.createElement(o.Label.Required, {
126
126
  className: m(W, n.requiredMark)
127
127
  })), /* @__PURE__ */ t.createElement(o.Trigger, {
128
- className: m(z, n.input, n.dropdownTrigger)
129
- }, /* @__PURE__ */ t.createElement(B, {
128
+ className: m(Q, n.input, n.dropdownTrigger)
129
+ }, /* @__PURE__ */ t.createElement(H, {
130
130
  className: n.dropdownIcon
131
131
  })), /* @__PURE__ */ t.createElement(o.Options, {
132
- className: m(Q, n.selectPopover, n.dropdownPopover)
132
+ className: m(Y, n.selectPopover, n.dropdownPopover)
133
133
  }, /* @__PURE__ */ t.createElement(o.Options.Option, {
134
- className: m(n.selectOption, k)
134
+ className: m(n.selectOption, q)
135
135
  })), /* @__PURE__ */ t.createElement(o.Error, {
136
- className: m(Y, n.error)
137
- }, /* @__PURE__ */ t.createElement(H, null), /* @__PURE__ */ t.createElement(o.Error.Text, null)), /* @__PURE__ */ t.createElement(o.Description, {
138
- className: m(j, n.description)
136
+ className: m(j, n.error)
137
+ }, /* @__PURE__ */ t.createElement(k, null), /* @__PURE__ */ t.createElement(o.Error.Text, null)), /* @__PURE__ */ t.createElement(o.Description, {
138
+ className: m(z, n.description)
139
139
  }, K)), le = () => /* @__PURE__ */ t.createElement(X, null);
140
140
  export {
141
141
  le as ServiceDropdownRAC
@@ -1,15 +1,15 @@
1
1
  import e, { useEffect as _, useMemo as I } from "react";
2
2
  import { RicosViewer as L } from "@wix/ricos/viewer";
3
3
  import r from "classnames";
4
- import { F as R, ai as d, h as D } from "./form-BmioUKtQ.js";
5
- import { u as F } from "./use-service-options-base-BO3Ackpl.js";
6
- import { C as a } from "./checkbox-group-field-headless-DryeaW7l.js";
4
+ import { F as R, ai as d, h as D } from "./form-f0tqdMye.js";
5
+ import { u as F } from "./use-service-options-base-CRgxxz7b.js";
6
+ import { C as a } from "./checkbox-group-field-headless-Bx5Y-RMP.js";
7
7
  import { E as f } from "./error-icon-hZxQ6DEy.js";
8
8
  import { C as N } from "./checkbox-indicator-module-classes-DqzGZQRQ.js";
9
9
  import { s as i } from "./field-rac.module-ColNPUt0.js";
10
- import { z as h, P as M, T as b, V as A, y as T, p as v, i as x, U as P } from "./form-element-classes-BuM-vthE.js";
10
+ import { y as h, O as M, S as b, U as A, x as T, o as v, i as x, T as y } from "./form-element-classes-jC8D0LnK.js";
11
11
  import { o as O } from "./options-rac.module-KM-VT_KY.js";
12
- import { u as y } from "./use-element-state-class-name-nCwOVSGM.js";
12
+ import { u as P } from "./use-element-state-class-name-BqmaTba3.js";
13
13
  const k = (s) => {
14
14
  var C;
15
15
  const { isLoading: o, options: n, isEmpty: c, shouldRender: m, setOptions: l, setIsEmpty: E, setHasInitialDataLoaded: p } = F({
@@ -55,8 +55,8 @@ const V = ({ content: s, locale: o }) => /* @__PURE__ */ e.createElement(L, {
55
55
  content: s,
56
56
  locale: o
57
57
  }), U = () => {
58
- const s = y({
59
- globalClasses: P,
58
+ const s = P({
59
+ globalClasses: y,
60
60
  moduleClasses: N
61
61
  });
62
62
  return /* @__PURE__ */ e.createElement(t, null, /* @__PURE__ */ e.createElement(t.Label, {
@@ -2,17 +2,17 @@ import s, { useRef as W, useCallback as I, useState as K, useEffect as Q, useMem
2
2
  import { RicosViewer as Re } from "@wix/ricos/viewer";
3
3
  import v from "classnames";
4
4
  import { useHover as ve, useFocusRing as xe, mergeProps as Se } from "react-aria";
5
- import { RadioGroup as Fe, Button as fe, TextField as Ae, Input as Pe, RadioField as _e, RadioButton as Ne } from "react-aria-components";
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 { z as Ue, ae as Oe, ab as Be, aq as ge, E as ce, e as G, ai as A, af as H, ak as Ee, as as Me } from "./form-BmioUKtQ.js";
7
+ import { z as Oe, ae as Ue, ab as Be, aq as ge, E as ce, e as G, ai as A, af as H, ak as Ee, as as Me } from "./form-f0tqdMye.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-C7IUibkK.js";
10
- import { L as Ye } from "./field-label-headless-BQFy2iAr.js";
9
+ import { D as We, E as He } from "./field-error-headless-BErhh9GG.js";
10
+ import { L as Ye } from "./field-label-headless-BGyK-5xW.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-ColNPUt0.js";
14
- import { z as ue, P as ze, y as B, a3 as Ve, p as Ze, i as Xe } from "./form-element-classes-BuM-vthE.js";
15
- const Ge = typeof s.useId == "function" ? s.useId : () => W(Ue()).current;
14
+ import { y as ue, O as ze, x as B, a1 as Ve, o as Ze, i as Xe } from "./form-element-classes-jC8D0LnK.js";
15
+ const Ge = typeof s.useId == "function" ? s.useId : () => W(Oe()).current;
16
16
  var w = /* @__PURE__ */ (function(e) {
17
17
  return e.TEXT = "text/plain", e.POINTS = "points/json", e;
18
18
  })({}), b = /* @__PURE__ */ (function(e) {
@@ -21,7 +21,7 @@ var w = /* @__PURE__ */ (function(e) {
21
21
  return e.DRAW = "draw", e.TYPE = "type", e.IMAGE = "image", e.UPLOAD = "upload", e;
22
22
  })({});
23
23
  const qe = (e) => {
24
- const { actions: t, formId: a } = Oe(), n = t == null ? void 0 : t.uploadFile;
24
+ const { actions: t, formId: a } = Ue(), n = t == null ? void 0 : t.uploadFile;
25
25
  return I(async (r) => {
26
26
  if (!n)
27
27
  throw new Error("No uploadFile action");
@@ -375,15 +375,15 @@ const dt = (e) => {
375
375
  }), o && F(d, {
376
376
  handleClear: i
377
377
  }));
378
- }, P = ({ children: e, className: t, ...a }) => {
378
+ }, _ = ({ children: e, className: t, ...a }) => {
379
379
  const { signatureMode: n, setSignatureMode: r, uploadEnabled: o } = a, { disabled: i } = A(), { labelId: l, inputId: c } = H(), d = I((h) => {
380
380
  r(h);
381
381
  }, [
382
382
  r
383
383
  ]), u = {
384
- [b.DRAW]: T(e, P.Draw),
385
- [b.TYPE]: T(e, P.Type),
386
- [b.UPLOAD]: o ? T(e, P.Upload) : null
384
+ [b.DRAW]: T(e, _.Draw),
385
+ [b.TYPE]: T(e, _.Type),
386
+ [b.UPLOAD]: o ? T(e, _.Upload) : null
387
387
  }, f = u[n], m = mt(f) ? f.props.description : void 0;
388
388
  return /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement("div", {
389
389
  role: "status",
@@ -404,7 +404,7 @@ const dt = (e) => {
404
404
  "data-hook": ke.SIGNATURE_FIELD_MODE_SELECT,
405
405
  className: t
406
406
  }, u[b.DRAW], u[b.TYPE], u[b.UPLOAD]));
407
- }, mt = (e) => /* @__PURE__ */ we(e), ne = ({ mode: e, children: t, className: a, "aria-label": n }) => /* @__PURE__ */ s.createElement(_e, {
407
+ }, mt = (e) => /* @__PURE__ */ we(e), ne = ({ mode: e, children: t, className: a, "aria-label": n }) => /* @__PURE__ */ s.createElement(Pe, {
408
408
  value: e,
409
409
  "aria-label": n
410
410
  }, /* @__PURE__ */ s.createElement(Ne, {
@@ -429,8 +429,8 @@ const dt = (e) => {
429
429
  "data-hook": `clear-${i}`,
430
430
  className: t
431
431
  }, e);
432
- }, _ = ({ children: e, className: t, ...a }) => {
433
- const { signatureView: n, signatureValueForView: r, handleChange: o, handleBeforeChange: i } = a, { disabled: l, readOnly: c, onBlur: d, onFocus: u, hasError: f } = A(), m = T(e, _.Canvas), h = T(e, _.Type), E = T(e, _.Upload);
432
+ }, P = ({ children: e, className: t, ...a }) => {
433
+ const { signatureView: n, signatureValueForView: r, handleChange: o, handleBeforeChange: i } = a, { disabled: l, readOnly: c, onBlur: d, onFocus: u, hasError: f } = A(), m = T(e, P.Canvas), h = T(e, P.Type), E = T(e, P.Upload);
434
434
  return /* @__PURE__ */ s.createElement("div", {
435
435
  className: t,
436
436
  "data-hook": "signature-input",
@@ -463,7 +463,7 @@ const dt = (e) => {
463
463
  onFocus: u
464
464
  }));
465
465
  }, Et = ({ className: e, emptyLabel: t, signedLabel: a, ...n }) => {
466
- const { value: r, onChange: o, onBeforeChange: i, disabled: l, readOnly: c, onBlur: d, onFocus: u } = n, { id: f } = A(), { inputId: m, ariaDescribedBy: h } = H(), E = te(), p = W(), L = W(), y = W(null), x = r == null ? void 0 : r.url, [U, Y] = K(!1);
466
+ const { value: r, onChange: o, onBeforeChange: i, disabled: l, readOnly: c, onBlur: d, onFocus: u } = n, { id: f } = A(), { inputId: m, ariaDescribedBy: h } = H(), E = te(), p = W(), L = W(), y = W(null), x = r == null ? void 0 : r.url, [O, Y] = K(!1);
467
467
  Ee(() => {
468
468
  var D;
469
469
  (D = L.current) == null || D.focus();
@@ -475,14 +475,14 @@ const dt = (e) => {
475
475
  maxWidth: 3,
476
476
  velocityFilterWeight: 0.2
477
477
  }), []), oe = I(() => {
478
- var O, k, $;
479
- if ((O = p.current) != null && O.isEmpty())
478
+ var U, k, $;
479
+ if ((U = p.current) != null && U.isEmpty())
480
480
  return "";
481
481
  const D = (k = p.current) == null ? void 0 : k.toData();
482
482
  return D ? et(D) : (($ = p.current) == null ? void 0 : $.toDataURL()) ?? "";
483
483
  }, []), q = I(() => {
484
- var O;
485
- const D = (O = p.current) == null ? void 0 : O.isEmpty();
484
+ var U;
485
+ const D = (U = p.current) == null ? void 0 : U.isEmpty();
486
486
  Y(!D), o(ee(oe()));
487
487
  }, [
488
488
  oe,
@@ -530,7 +530,7 @@ const dt = (e) => {
530
530
  onFocus: u,
531
531
  onBlur: d,
532
532
  role: "img",
533
- "aria-label": U ? a : t,
533
+ "aria-label": O ? a : t,
534
534
  "aria-describedby": h
535
535
  }));
536
536
  }, ae = ({ children: e, className: t, ...a }) => {
@@ -551,7 +551,7 @@ const dt = (e) => {
551
551
  n,
552
552
  h
553
553
  ]);
554
- const U = I((R) => {
554
+ const O = I((R) => {
555
555
  o == null || o(), R.trim() ? r(ee(Ce({
556
556
  data: R,
557
557
  mimeType: w.TEXT
@@ -563,7 +563,7 @@ const dt = (e) => {
563
563
  return /* @__PURE__ */ s.createElement(Ae, {
564
564
  "aria-labelledby": p,
565
565
  value: x,
566
- onChange: U,
566
+ onChange: O,
567
567
  onBlur: c,
568
568
  onFocus: d,
569
569
  isDisabled: i,
@@ -580,7 +580,7 @@ const dt = (e) => {
580
580
  })));
581
581
  }, Lt = ({ className: e, placeholder: t, ...a }) => {
582
582
  const { inputId: n, ariaDescribedBy: r } = a;
583
- return /* @__PURE__ */ s.createElement(Pe, {
583
+ return /* @__PURE__ */ s.createElement(_e, {
584
584
  id: n,
585
585
  "data-hook": "signature-text",
586
586
  "aria-describedby": r,
@@ -596,10 +596,10 @@ const dt = (e) => {
596
596
  o(null);
597
597
  return;
598
598
  }
599
- const x = y[0], U = new FileReader();
600
- U.onload = function() {
599
+ const x = y[0], O = new FileReader();
600
+ O.onload = function() {
601
601
  o(ee(this.result, x.name));
602
- }, U.readAsDataURL(x);
602
+ }, O.readAsDataURL(x);
603
603
  }, [
604
604
  o
605
605
  ]), p = r && dt(r);
@@ -657,15 +657,15 @@ g.Input = Z;
657
657
  g.Description = We;
658
658
  g.Error = He;
659
659
  Z.Header = X;
660
- Z.Value = _;
661
- X.Tabs = P;
660
+ Z.Value = P;
661
+ X.Tabs = _;
662
662
  X.Clear = gt;
663
- P.Draw = pt;
664
- P.Type = ft;
665
- P.Upload = ht;
666
- _.Canvas = Et;
667
- _.Type = ae;
668
- _.Upload = re;
663
+ _.Draw = pt;
664
+ _.Type = ft;
665
+ _.Upload = ht;
666
+ P.Canvas = Et;
667
+ P.Type = ae;
668
+ P.Upload = re;
669
669
  ae.Value = Lt;
670
670
  re.Button = yt;
671
671
  const Tt = () => {
@@ -724,20 +724,20 @@ const Tt = () => {
724
724
  }, /* @__PURE__ */ s.createElement("path", {
725
725
  fillRule: "evenodd",
726
726
  d: "M12,4 L12,5 L8,5 L8,16 L7,16 L7,5 L3,5 L3,4 L12,4 Z M18,8 L18,9 L15,9 L15,16 L14,16 L14,9 L11,9 L11,8 L18,8 Z"
727
- })), Rt = "_header_15ti0_1", vt = "_tabs_15ti0_8", xt = "_tab_15ti0_8", St = "_tabIcon_15ti0_74", Ft = "_clear_15ti0_81", At = "_value_15ti0_113", Pt = "_box_15ti0_118", _t = "_uploadBox_15ti0_119", Nt = "_typeInput_15ti0_230", C = {
727
+ })), Rt = "_header_15ti0_1", vt = "_tabs_15ti0_8", xt = "_tab_15ti0_8", St = "_tabIcon_15ti0_74", Ft = "_clear_15ti0_81", At = "_value_15ti0_113", _t = "_box_15ti0_118", Pt = "_uploadBox_15ti0_119", Nt = "_typeInput_15ti0_230", C = {
728
728
  header: Rt,
729
729
  tabs: vt,
730
730
  tab: xt,
731
731
  tabIcon: St,
732
732
  clear: Ft,
733
733
  value: At,
734
- box: Pt,
735
- uploadBox: _t,
734
+ box: _t,
735
+ uploadBox: Pt,
736
736
  typeInput: Nt
737
- }, Ut = ({ content: e, locale: t }) => /* @__PURE__ */ s.createElement(Re, {
737
+ }, Ot = ({ content: e, locale: t }) => /* @__PURE__ */ s.createElement(Re, {
738
738
  content: e,
739
739
  locale: t
740
- }), Ot = () => {
740
+ }), Ut = () => {
741
741
  const e = Tt();
742
742
  return /* @__PURE__ */ s.createElement(g, null, /* @__PURE__ */ s.createElement(g.Label, {
743
743
  className: v(ue, z.label)
@@ -788,8 +788,8 @@ const Tt = () => {
788
788
  className: v(Ze, z.error)
789
789
  }, /* @__PURE__ */ s.createElement($e, null), /* @__PURE__ */ s.createElement(g.Error.Text, null)), /* @__PURE__ */ s.createElement(g.Description, {
790
790
  className: v(Xe, z.description)
791
- }, Ut));
792
- }, Jt = () => /* @__PURE__ */ s.createElement(Ot, null);
791
+ }, Ot));
792
+ }, Jt = () => /* @__PURE__ */ s.createElement(Ut, null);
793
793
  export {
794
794
  Jt as SignatureRAC
795
795
  };
@@ -1,9 +1,9 @@
1
1
  import t from "react";
2
2
  import l from "classnames";
3
- import { ai as c } from "./form-BmioUKtQ.js";
3
+ import { ai as c } from "./form-f0tqdMye.js";
4
4
  import { ProgressBar as g, Button as b } from "react-aria-components";
5
5
  import { f as i } from "./find-child-C60k4CxG.js";
6
- import { a5 as v, a4 as N, a7 as f } from "./form-element-classes-BuM-vthE.js";
6
+ import { a3 as v, a2 as N, a5 as f } from "./form-element-classes-jC8D0LnK.js";
7
7
  function C(e) {
8
8
  const s = "calc(50% - 2px)";
9
9
  return /* @__PURE__ */ t.createElement(g, {
@@ -0,0 +1,217 @@
1
+ import { RicosViewer as Q } from "@wix/ricos/viewer";
2
+ import L from "classnames";
3
+ import e, { useMemo as C, useState as j, useRef as M, useLayoutEffect as w, useCallback as k } from "react";
4
+ import { CheckboxGroup as z, TextField as J, Input as K, CheckboxField as X, CheckboxButton as Y } from "react-aria-components";
5
+ import { ai as D, af as Z, as as v, ab as ee, ak as te } from "./form-f0tqdMye.js";
6
+ import { f, a as x } from "./find-child-C60k4CxG.js";
7
+ import { E as B, D as $ } from "./field-error-headless-BErhh9GG.js";
8
+ import { L as P } from "./field-label-headless-BGyK-5xW.js";
9
+ import { F as oe } from "./fieldset-headless-CD3fds9J.js";
10
+ import { N as y } from "./options-layout-constants-DEfIEJWD.js";
11
+ import { E as ne } from "./error-icon-hZxQ6DEy.js";
12
+ import { s as R } from "./field-rac.module-ColNPUt0.js";
13
+ import { y as ae, O as se, _ as re, x as le, o as ie, i as ce, $ as ue } from "./form-element-classes-jC8D0LnK.js";
14
+ import { o as de } from "./options-rac.module-KM-VT_KY.js";
15
+ import { u as me } from "./use-element-state-class-name-BqmaTba3.js";
16
+ const N = "Other", pe = (o, t) => {
17
+ const c = t.length + 2;
18
+ return (o.find((s) => s.startsWith(`${t}: `)) || "").slice(c);
19
+ }, he = (o) => o.map((t) => t.value ?? t.label), H = ({ className: o, ...t }) => {
20
+ const { label: a } = t;
21
+ return /* @__PURE__ */ e.createElement("span", {
22
+ className: o
23
+ }, a);
24
+ }, W = ({ className: o }) => {
25
+ const { value: t, onChange: a, addOtherLabel: c, addOtherPlaceholder: i, otherInputCharacterLimit: s, disabled: u, readOnly: b, hasError: d } = D(), { t: m } = v(), r = c || m("add-other.default-other-option-label") || N, p = C(() => pe(t || [], r), [
26
+ t,
27
+ r
28
+ ]), [n, _] = j(p), h = M(a);
29
+ w(() => {
30
+ h.current = a;
31
+ });
32
+ const I = k((E) => {
33
+ _(E);
34
+ const F = (t || []).filter((O) => !O.startsWith(`${r}:`) && O !== r), S = E ? `${r}: ${E}` : r;
35
+ h.current([
36
+ ...F,
37
+ S
38
+ ]);
39
+ }, [
40
+ t,
41
+ r
42
+ ]);
43
+ return /* @__PURE__ */ e.createElement(J, {
44
+ value: n,
45
+ onChange: I,
46
+ isDisabled: u,
47
+ isReadOnly: b,
48
+ isInvalid: d,
49
+ "aria-label": r
50
+ }, /* @__PURE__ */ e.createElement(K, {
51
+ "data-hook": "tags-other-input",
52
+ "data-filled": n ? !0 : void 0,
53
+ placeholder: i,
54
+ maxLength: s,
55
+ className: o
56
+ }));
57
+ }, T = ({ children: o, className: t, ...a }) => {
58
+ const { value: c, label: i, isOther: s, isFirstOption: u } = a, { id: b, value: d, onChange: m, options: r, disabled: p, readOnly: n, hasError: _ } = D(), h = M(null);
59
+ te(() => {
60
+ var O;
61
+ u && ((O = h.current) == null || O.focus({
62
+ preventScroll: !0
63
+ }));
64
+ }, b);
65
+ const I = f(o, H), E = C(() => d || [], [
66
+ d
67
+ ]), F = C(() => s ? E.find((O) => O === i || O.startsWith(`${i}: `)) || i : c, [
68
+ s,
69
+ E,
70
+ i,
71
+ c
72
+ ]), S = k((O) => {
73
+ const U = he(r || []), V = E.filter((G) => U.includes(G));
74
+ m(O ? [
75
+ ...V,
76
+ i
77
+ ] : V);
78
+ }, [
79
+ i,
80
+ m,
81
+ r,
82
+ E
83
+ ]);
84
+ return /* @__PURE__ */ e.createElement(X, {
85
+ inputRef: h,
86
+ value: F,
87
+ onChange: s ? S : void 0,
88
+ isDisabled: p,
89
+ isReadOnly: n,
90
+ isInvalid: _
91
+ }, /* @__PURE__ */ e.createElement(Y, {
92
+ className: t,
93
+ "data-hook": `tags-${s ? N : c}`
94
+ }, x(I, {
95
+ value: c,
96
+ label: i,
97
+ isOther: s,
98
+ isFirstOption: u
99
+ })));
100
+ }, A = ({ children: o, className: t }) => {
101
+ const { options: a, addOther: c, addOtherLabel: i, numberOfColumns: s = y.FREE_FLOW } = D(), { isMobile: u } = ee(), { t: b } = v(), d = u && s !== y.FREE_FLOW ? y.ONE : s, m = i || b("add-other.default-other-option-label") || N, r = f(o, T), p = C(() => {
102
+ const n = a || [];
103
+ return c ? [
104
+ ...n,
105
+ {
106
+ label: m,
107
+ value: m,
108
+ isOther: !0
109
+ }
110
+ ] : n;
111
+ }, [
112
+ a,
113
+ c,
114
+ m
115
+ ]);
116
+ return p.length === 0 ? null : /* @__PURE__ */ e.createElement("div", {
117
+ className: t,
118
+ "data-columns": d
119
+ }, p.map((n, _) => {
120
+ const h = n.value ?? n.label;
121
+ return x(r, {
122
+ key: n.isOther ? N : h,
123
+ value: h,
124
+ label: n.label,
125
+ isOther: n.isOther,
126
+ isFirstOption: _ === 0
127
+ });
128
+ }));
129
+ }, q = ({ children: o, className: t }) => {
130
+ const { addOther: a, addOtherLabel: c, hasError: i, readOnly: s, value: u } = D(), { t: b } = v(), d = c || b("add-other.default-other-option-label") || N, m = f(o, A), r = f(o, W), p = C(() => !a || !u ? !1 : u.some((n) => n === d || n.startsWith(`${d}:`)), [
131
+ a,
132
+ u,
133
+ d
134
+ ]);
135
+ return /* @__PURE__ */ e.createElement("div", {
136
+ className: t,
137
+ "data-invalid": i,
138
+ "data-readonly": s
139
+ }, m, p && r);
140
+ }, l = ({ children: o }) => {
141
+ const { id: t, value: a, onChange: c, FieldLayout: i, required: s, disabled: u, readOnly: b, hasError: d, onBlur: m, onFocus: r } = D(), { inputId: p, labelId: n, ariaDescribedBy: _ } = Z(), h = C(() => a || [], [
142
+ a
143
+ ]), I = f(o, P), E = f(o, q), F = f(o, $), S = f(o, B);
144
+ return /* @__PURE__ */ e.createElement(i, {
145
+ fieldId: t,
146
+ renderLabel: () => I,
147
+ renderInput: () => /* @__PURE__ */ e.createElement(oe, {
148
+ id: p,
149
+ ariaLabelledBy: n,
150
+ ariaDescribedBy: _,
151
+ required: s,
152
+ onBlur: m,
153
+ onFocus: r
154
+ }, /* @__PURE__ */ e.createElement(z, {
155
+ "aria-labelledby": n,
156
+ value: h,
157
+ onChange: c,
158
+ isDisabled: u,
159
+ isReadOnly: b,
160
+ isRequired: s,
161
+ isInvalid: d
162
+ }, E)),
163
+ renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, S, F)
164
+ });
165
+ };
166
+ A.Option = T;
167
+ T.Label = H;
168
+ l.Label = P;
169
+ l.Control = q;
170
+ l.Options = A;
171
+ l.OtherInput = W;
172
+ l.Description = $;
173
+ l.Error = B;
174
+ const Ee = "_control_7oh59_1", Oe = "_options_7oh59_7", be = "_option_7oh59_7", fe = "_optionHover_7oh59_72", _e = "_optionSelected_7oh59_72", g = {
175
+ control: Ee,
176
+ options: Oe,
177
+ option: be,
178
+ optionHover: fe,
179
+ optionSelected: _e
180
+ }, Le = ({ content: o, locale: t }) => /* @__PURE__ */ e.createElement(Q, {
181
+ content: o,
182
+ locale: t
183
+ }), Ce = {
184
+ base: g.option,
185
+ selected: g.optionSelected,
186
+ hover: g.optionHover
187
+ }, Be = () => {
188
+ const o = me({
189
+ globalClasses: ue,
190
+ moduleClasses: Ce
191
+ });
192
+ return /* @__PURE__ */ e.createElement(l, null, /* @__PURE__ */ e.createElement(l.Label, {
193
+ className: L(ae, R.label)
194
+ }, /* @__PURE__ */ e.createElement(l.Label.Required, {
195
+ className: L(se, R.requiredMark)
196
+ })), /* @__PURE__ */ e.createElement(l.Control, {
197
+ className: g.control
198
+ }, /* @__PURE__ */ e.createElement(l.Options, {
199
+ className: L(re, g.options)
200
+ }, /* @__PURE__ */ e.createElement(l.Options.Option, {
201
+ className: ({ isSelected: t, isHovered: a }) => o({
202
+ isSelected: t,
203
+ isHovered: a
204
+ })
205
+ }, /* @__PURE__ */ e.createElement(l.Options.Option.Label, {
206
+ className: de.optionLabel
207
+ }))), /* @__PURE__ */ e.createElement(l.OtherInput, {
208
+ className: L(le, R.input)
209
+ })), /* @__PURE__ */ e.createElement(l.Error, {
210
+ className: L(ie, R.error)
211
+ }, /* @__PURE__ */ e.createElement(ne, null), /* @__PURE__ */ e.createElement(l.Error.Text, null)), /* @__PURE__ */ e.createElement(l.Description, {
212
+ className: L(ce, R.description)
213
+ }, Le));
214
+ };
215
+ export {
216
+ Be as T
217
+ };
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { T as r } from "./tags-field-rac-DTOthwA5.js";
2
+ import { T as r } from "./tags-field-rac-ByC9DnyH.js";
3
3
  const a = () => /* @__PURE__ */ e.createElement(r, null);
4
4
  export {
5
5
  a as TagsRAC
@@ -1,16 +1,16 @@
1
- import { RicosViewer as S } from "@wix/ricos/viewer";
1
+ import { RicosViewer as O } from "@wix/ricos/viewer";
2
2
  import n from "classnames";
3
- import r, { useCallback as O, useRef as T } from "react";
3
+ import r, { useCallback as S, useRef as T } from "react";
4
4
  import { TextField as y, TextArea as N } from "react-aria-components";
5
- import { ai as p, af as E, ak as x } from "./form-BmioUKtQ.js";
5
+ import { ai as E, af as d, ak as x } from "./form-f0tqdMye.js";
6
6
  import { f as c } from "./find-child-C60k4CxG.js";
7
- import { D as h, E as M } from "./field-error-headless-C7IUibkK.js";
8
- import { L as g } from "./field-label-headless-BQFy2iAr.js";
7
+ import { D as h, E as M } from "./field-error-headless-BErhh9GG.js";
8
+ import { L as g } from "./field-label-headless-BGyK-5xW.js";
9
9
  import { E as v } from "./error-icon-hZxQ6DEy.js";
10
10
  import { s } from "./field-rac.module-ColNPUt0.js";
11
- import { z as q, P as B, y as P, p as k, i as U } from "./form-element-classes-BuM-vthE.js";
11
+ import { y as q, O as B, x as k, o as P, i as U } from "./form-element-classes-jC8D0LnK.js";
12
12
  const e = ({ children: t }) => {
13
- const { id: a, value: m, onChange: l, disabled: u, required: o, readOnly: i, onBlur: d, onFocus: f, FieldLayout: I, hasError: F } = p(), { labelId: L } = E(), R = O((C) => {
13
+ const { id: a, value: m, onChange: l, disabled: u, required: o, readOnly: i, onBlur: p, onFocus: f, FieldLayout: I, hasError: F } = E(), { labelId: L } = d(), R = S((C) => {
14
14
  l(C);
15
15
  }, [
16
16
  l
@@ -26,13 +26,13 @@ const e = ({ children: t }) => {
26
26
  isReadOnly: i,
27
27
  isRequired: o,
28
28
  isInvalid: F,
29
- onBlur: d,
29
+ onBlur: p,
30
30
  onFocus: f
31
31
  }, b),
32
32
  renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, A, D)
33
33
  });
34
34
  }, V = ({ className: t }) => {
35
- const { inputId: a, ariaDescribedBy: m } = E(), { id: l, placeholder: u } = p(), o = T(null);
35
+ const { inputId: a, ariaDescribedBy: m } = d(), { id: l, placeholder: u } = E(), o = T(null);
36
36
  return x(() => {
37
37
  var i;
38
38
  (i = o.current) == null || i.focus();
@@ -48,9 +48,9 @@ e.Label = g;
48
48
  e.Input = V;
49
49
  e.Description = h;
50
50
  e.Error = M;
51
- const w = "_input_ug5v8_1", z = {
51
+ const w = "_input_ug5v8_1", Q = {
52
52
  input: w
53
- }, Q = ({ content: t, locale: a }) => /* @__PURE__ */ r.createElement(S, {
53
+ }, $ = ({ content: t, locale: a }) => /* @__PURE__ */ r.createElement(O, {
54
54
  content: t,
55
55
  locale: a
56
56
  }), re = () => /* @__PURE__ */ r.createElement(e, null, /* @__PURE__ */ r.createElement(e.Label, {
@@ -58,12 +58,12 @@ const w = "_input_ug5v8_1", z = {
58
58
  }, /* @__PURE__ */ r.createElement(e.Label.Required, {
59
59
  className: n(B, s.requiredMark)
60
60
  })), /* @__PURE__ */ r.createElement(e.Input, {
61
- className: n(P, s.input, z.input)
61
+ className: n(k, s.input, Q.input)
62
62
  }), /* @__PURE__ */ r.createElement(e.Error, {
63
- className: n(k, s.error)
63
+ className: n(P, s.error)
64
64
  }, /* @__PURE__ */ r.createElement(v, null), /* @__PURE__ */ r.createElement(e.Error.Text, null)), /* @__PURE__ */ r.createElement(e.Description, {
65
65
  className: n(U, s.description)
66
- }, Q));
66
+ }, $));
67
67
  export {
68
68
  re as T
69
69
  };