@wix/form-elements 1.89.0 → 1.90.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 (115) hide show
  1. package/dist/component/{appointment-rac-DG8GUJpn.js → appointment-rac-DtPa-JZ9.js} +6 -6
  2. package/dist/component/{bookings-address-rac-cNBSx-Pr.js → bookings-address-rac-4l8kqoLi.js} +1 -1
  3. package/dist/component/{bookings-email-rac-CYdSoVWP.js → bookings-email-rac-76vUcGtU.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-CQB2o8ww.js → bookings-first-name-rac-IS7LUMxg.js} +1 -1
  5. package/dist/component/{bookings-header-rac-CzKvQond.js → bookings-header-rac-2wTzY64_.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-oK1BC5Am.js → bookings-last-name-rac-nxA75igv.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-CZNEy748.js → bookings-login-bar-rac-CRi1nntD.js} +21 -21
  8. package/dist/component/{bookings-phone-rac-D_4WfolC.js → bookings-phone-rac-DZjvHly0.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-CrEfeL4P.js → bookings-rich-text-rac-CYn1wwYQ.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-CGqshW45.js → checkbox-field-rac-DAcFLQNT.js} +49 -49
  11. package/dist/component/{checkbox-group-field-headless-C3_5IR-E.js → checkbox-group-field-headless-BJmS0Ce5.js} +30 -30
  12. package/dist/component/{checkbox-group-field-rac-DIzdgyAw.js → checkbox-group-field-rac-CeFUt2Nr.js} +9 -9
  13. package/dist/component/{checkbox-group-rac-EvWVfusV.js → checkbox-group-rac-eDChVoVP.js} +1 -1
  14. package/dist/component/{checkbox-indicator-module-classes-Bb3xB1ve.js → checkbox-indicator-module-classes-mJ7hl_8K.js} +1 -1
  15. package/dist/component/{checkbox-rac-CT_69Jei.js → checkbox-rac-DGmZdPnl.js} +1 -1
  16. package/dist/component/{contacts-address-rac-M8MZd777.js → contacts-address-rac-CGS83PMu.js} +1 -1
  17. package/dist/component/{contacts-birthdate-rac-BS-8HeRD.js → contacts-birthdate-rac-DkP-7tZ9.js} +1 -1
  18. package/dist/component/{contacts-company-rac-gmgKLvic.js → contacts-company-rac-D_KYvkYe.js} +1 -1
  19. package/dist/component/{contacts-email-rac-QQ6E9VzX.js → contacts-email-rac-4lGD56E8.js} +1 -1
  20. package/dist/component/{contacts-first-name-rac-DR7XheRo.js → contacts-first-name-rac-C5L3U9QV.js} +1 -1
  21. package/dist/component/{contacts-last-name-rac-CBJgTkj5.js → contacts-last-name-rac-SL3FSAhE.js} +1 -1
  22. package/dist/component/{contacts-phone-rac-CTl25HdK.js → contacts-phone-rac-DkUwJ56_.js} +1 -1
  23. package/dist/component/{contacts-position-rac-DBDOW7QR.js → contacts-position-rac-CeKJ5oJh.js} +1 -1
  24. package/dist/component/{contacts-subscribe-rac-C0-uJ7fU.js → contacts-subscribe-rac-Bjldz7ed.js} +2 -2
  25. package/dist/component/{contacts-tax-id-rac-BtXc0V1S.js → contacts-tax-id-rac-D8QxyDiU.js} +1 -1
  26. package/dist/component/{date-availability-IQtwk-aX.js → date-availability-DdMI-zNj.js} +1 -1
  27. package/dist/component/{date-input-field-rac-2rbZiSgo.js → date-input-field-rac-Da6j7OP2.js} +99 -98
  28. package/dist/component/{date-input-rac-j4--xZ8s.js → date-input-rac-tlmhXr4A.js} +1 -1
  29. package/dist/component/{date-picker-field-rac-Cl7ueVVn.js → date-picker-field-rac-ClNfMoR1.js} +43 -43
  30. package/dist/component/{date-picker-rac-BrObkuYv.js → date-picker-rac-BV3TGjsx.js} +1 -1
  31. package/dist/component/date-time-input-field-rac-5eHyKry0.js +424 -0
  32. package/dist/component/{date-time-input-rac-BShquR72.js → date-time-input-rac-DQk2ylbE.js} +1 -1
  33. package/dist/component/{dext-checkbox-group-rac-DNXYnHDM.js → dext-checkbox-group-rac-CBj9Y7Tp.js} +2 -2
  34. package/dist/component/{dext-checkbox-rac-RBMWmgyT.js → dext-checkbox-rac-C1KI5I2J.js} +1 -1
  35. package/dist/component/{dext-date-picker-rac-Dph_kV11.js → dext-date-picker-rac-D-8Ss0bx.js} +1 -1
  36. package/dist/component/{dext-date-time-input-rac-C3_gQkBT.js → dext-date-time-input-rac-CRnwLBSZ.js} +1 -1
  37. package/dist/component/{dext-dropdown-rac-D34vhtST.js → dext-dropdown-rac-BVTEMS0W.js} +1 -1
  38. package/dist/component/{dext-email-rac-Yzf4-vSg.js → dext-email-rac-CXeM4iQj.js} +1 -1
  39. package/dist/component/{dext-number-input-rac-D0jZXKaI.js → dext-number-input-rac-DMh08cy5.js} +1 -1
  40. package/dist/component/{dext-phone-rac-bqTpmTa0.js → dext-phone-rac-E1fFjkVW.js} +1 -1
  41. package/dist/component/{dext-radio-group-rac-AYPAzpqZ.js → dext-radio-group-rac-_BhRzFAr.js} +2 -2
  42. package/dist/component/{dext-rating-input-rac-DOSq-xVQ.js → dext-rating-input-rac-BRYVQOYw.js} +1 -1
  43. package/dist/component/{dext-tags-rac-BXtFTlL0.js → dext-tags-rac-C4iwtRcw.js} +2 -2
  44. package/dist/component/{dext-text-area-rac-46wwBQg_.js → dext-text-area-rac-CQ1KAhkU.js} +1 -1
  45. package/dist/component/{dext-text-input-rac-DVj6V1VG.js → dext-text-input-rac-xCoKhEt3.js} +1 -1
  46. package/dist/component/{dext-url-input-rac-B5zu9R5K.js → dext-url-input-rac-DyoEEa_v.js} +1 -1
  47. package/dist/component/{donation-rac-DeBMssGg.js → donation-rac-CSDVxWUj.js} +51 -51
  48. package/dist/component/dropdown-field-headless-BXyP9KYi.js +101 -0
  49. package/dist/component/dropdown-field-rac-D1Z_Jbzd.js +36 -0
  50. package/dist/component/{dropdown-rac-bUNYh49x.js → dropdown-rac-BEi7CMKT.js} +1 -1
  51. package/dist/component/{ecom-address-rac-CtrERV3f.js → ecom-address-rac-DGl7rlwa.js} +1 -1
  52. package/dist/component/{ecom-subscription-checkbox-rac-BrpwOSYM.js → ecom-subscription-checkbox-rac-D5HzzRQk.js} +6 -6
  53. package/dist/component/{email-input-field-rac-4yYxYc1a.js → email-input-field-rac-DHAK2K8E.js} +63 -63
  54. package/dist/component/{events-repeater-rac-B308C1JK.js → events-repeater-rac-N1mGqD4R.js} +35 -35
  55. package/dist/component/{events-rsvp-rac-C4_LJ3Wz.js → events-rsvp-rac-Ds9PnqHG.js} +6 -6
  56. package/dist/component/{field-error-headless-PMBWtb3Z.js → field-error-headless-9MKScovg.js} +12 -12
  57. package/dist/component/{field-label-headless-0racVfdo.js → field-label-headless-BaoLrUWJ.js} +12 -12
  58. package/dist/component/field-rac.module-BUvPquav.js +26 -0
  59. package/dist/component/{file-upload-rac-CZIHV2OL.js → file-upload-rac-CNbLRxUz.js} +116 -116
  60. package/dist/component/{fixed-payment-rac-COhRKeun.js → fixed-payment-rac-BFnvUksR.js} +15 -15
  61. package/dist/component/{form-UCnayEKT.js → form-B3YjGh0T.js} +129 -128
  62. package/dist/component/{form-element-classes--p2vz_Bm.js → form-element-classes-CLZXu-91.js} +79 -69
  63. package/dist/component/form.css +1 -1
  64. package/dist/component/form.js +1 -1
  65. package/dist/component/{header-field-rac-CpXa-NlC.js → header-field-rac-64pYqszP.js} +3 -3
  66. package/dist/component/{header-rac-CCsguMlZ.js → header-rac-BtPQVL59.js} +1 -1
  67. package/dist/component/{image-choice-rac-j2UH4Q4I.js → image-choice-rac-BsojUR1h.js} +20 -20
  68. package/dist/component/{index-Bxa3IDHm.js → index-CtiBRBqZ.js} +4 -4
  69. package/dist/component/{index-jg8dn8po.js → index-f2JBxCTd.js} +2 -2
  70. package/dist/component/{isObjectLike-Zw6J9g91.js → isObjectLike-BgqHLNgn.js} +1 -1
  71. package/dist/component/{multiline-address-field-rac-BeFAYL7V.js → multiline-address-field-rac-CH1hCUTf.js} +575 -574
  72. package/dist/component/{multiline-address-rac-BYr5_DQd.js → multiline-address-rac-CkOPWXfI.js} +1 -1
  73. package/dist/component/{number-input-field-rac-BNdJecUL.js → number-input-field-rac-B7U_08UK.js} +24 -24
  74. package/dist/component/{number-input-rac-Cqkj4JAF.js → number-input-rac-1jcchySg.js} +1 -1
  75. package/dist/component/{password-rac-D4iSs1ds.js → password-rac-CAaV8OrL.js} +21 -21
  76. package/dist/component/{payment-input-rac-BvBP47HP.js → payment-input-rac-B3Knhzrz.js} +25 -25
  77. package/dist/component/{phone-input-field-rac-Cggx8IlY.js → phone-input-field-rac-BGsvxtXz.js} +185 -184
  78. package/dist/component/{phone-rac-BISmYt_n.js → phone-rac-BUAW-44w.js} +1 -1
  79. package/dist/component/{product-list-rac-C1bm-U2G.js → product-list-rac-C7Nq3ZG4.js} +43 -43
  80. package/dist/component/quiz-radio-group-rac-CRa3I_NR.js +13 -0
  81. package/dist/component/{radio-button-module-classes-blfiatlc.js → radio-button-module-classes-BEvf741q.js} +7 -7
  82. package/dist/component/{radio-group-field-rac-BiiPUxbQ.js → radio-group-field-rac-BYTXrpnE.js} +5 -5
  83. package/dist/component/{radio-group-rac-Bn_W-3xz.js → radio-group-rac-138JrIhm.js} +1 -1
  84. package/dist/component/{rating-input-field-rac-CjXIoNMc.js → rating-input-field-rac-D5pOVdFJ.js} +24 -24
  85. package/dist/component/{rating-input-rac-Ci4uPo22.js → rating-input-rac-DuK1q9JB.js} +1 -1
  86. package/dist/component/{rich-content-rac.module-CDZniyrZ.js → rich-content-rac.module-H3hPgDtD.js} +4 -4
  87. package/dist/component/{rich-text-field-rac-BBRE9_Kr.js → rich-text-field-rac-Btwqm4wb.js} +5 -5
  88. package/dist/component/{rich-text-rac-C3MfJK-H.js → rich-text-rac-DIu8StCg.js} +1 -1
  89. package/dist/component/service-dropdown-rac-N8jqoUC_.js +146 -0
  90. package/dist/component/{services-multi-choice-rac-FDHRjDLS.js → services-multi-choice-rac-DlP0tB9d.js} +18 -18
  91. package/dist/component/{signature-rac-DfGPV0Mw.js → signature-rac-DuRzxIkO.js} +53 -53
  92. package/dist/component/{submit-button-rac-DRsqyJcl.js → submit-button-rac-DFmPp4jT.js} +7 -7
  93. package/dist/component/{tags-field-rac-CZ4FBGG9.js → tags-field-rac-DIgyn5P9.js} +56 -56
  94. package/dist/component/{tags-rac-CMHMsiwv.js → tags-rac-C6R6RHl2.js} +1 -1
  95. package/dist/component/text-area-field-rac-opBEx_8s.js +73 -0
  96. package/dist/component/{text-area-rac-BKGDa4E3.js → text-area-rac-D4iKhAqc.js} +1 -1
  97. package/dist/component/{text-input-field-rac-CU8eBRM4.js → text-input-field-rac-Ckp8Ierz.js} +6 -6
  98. package/dist/component/{text-input-headless-C1eFy2gl.js → text-input-headless-D-LXpqS3.js} +6 -6
  99. package/dist/component/{text-input-rac-DO0eI3ty.js → text-input-rac-ChxuJj-q.js} +1 -1
  100. package/dist/component/{time-input-rac-BJ0AL2Be.js → time-input-rac-C5_rEy7W.js} +23 -23
  101. package/dist/component/{url-input-field-rac-BtpAuKfp.js → url-input-field-rac-CBOnhquz.js} +22 -22
  102. package/dist/component/{url-input-rac-CjnPbcHt.js → url-input-rac-BY-BVg6r.js} +1 -1
  103. package/dist/component/use-dropdown-option-class-name-C1iEE28P.js +28 -0
  104. package/dist/component/{use-element-state-class-name-X08kIFhd.js → use-element-state-class-name--YLulmsU.js} +1 -1
  105. package/dist/component/{use-service-options-base-DfHhMveM.js → use-service-options-base-BNLFmnHJ.js} +3 -3
  106. package/dist/component/{use-text-input-class-name-BAuokapo.js → use-text-input-class-name-3Xp-hNDT.js} +4 -4
  107. package/dist/form.d.ts +3 -0
  108. package/package.json +2 -2
  109. package/dist/component/date-time-input-field-rac-mqea6CtW.js +0 -423
  110. package/dist/component/dropdown-field-headless-ShcoDfPa.js +0 -84
  111. package/dist/component/dropdown-field-rac-DruF_YdZ.js +0 -32
  112. package/dist/component/field-rac.module-D06m9T9x.js +0 -24
  113. package/dist/component/quiz-radio-group-rac-BhNhoOSI.js +0 -13
  114. package/dist/component/service-dropdown-rac-DQkk3SlS.js +0 -142
  115. package/dist/component/text-area-field-rac-BnRuG5y8.js +0 -73
@@ -0,0 +1,73 @@
1
+ import { RicosViewer as N } from "@wix/ricos/viewer";
2
+ import o from "classnames";
3
+ import r, { useCallback as T, useRef as O } from "react";
4
+ import { TextField as S, TextArea as y } from "react-aria-components";
5
+ import { ak as p, ah as d, am as x } from "./form-B3YjGh0T.js";
6
+ import { f as i } from "./find-child-C60k4CxG.js";
7
+ import { D as h, E as g } from "./field-error-headless-9MKScovg.js";
8
+ import { L as q } from "./field-label-headless-BaoLrUWJ.js";
9
+ import { E as v } from "./error-icon-hZxQ6DEy.js";
10
+ import { s as c } from "./field-rac.module-BUvPquav.js";
11
+ import { B, R as M, q as k, i as P } from "./form-element-classes-CLZXu-91.js";
12
+ import { u as V } from "./use-text-input-class-name-3Xp-hNDT.js";
13
+ const e = ({ children: t }) => {
14
+ const { id: a, value: m, onChange: s, disabled: u, required: n, readOnly: l, onBlur: E, onFocus: f, FieldLayout: I, hasError: R } = p(), { labelId: b } = d(), F = T((A) => {
15
+ s(A);
16
+ }, [
17
+ s
18
+ ]), L = i(t, e.Label), D = i(t, e.Input), _ = i(t, e.Description), C = i(t, e.Error);
19
+ return /* @__PURE__ */ r.createElement(I, {
20
+ fieldId: a,
21
+ renderLabel: () => L,
22
+ renderInput: () => /* @__PURE__ */ r.createElement(S, {
23
+ "aria-labelledby": b,
24
+ value: m ?? "",
25
+ onChange: F,
26
+ isDisabled: u,
27
+ isReadOnly: l,
28
+ isRequired: n,
29
+ isInvalid: R,
30
+ onBlur: E,
31
+ onFocus: f
32
+ }, D),
33
+ renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, C, _)
34
+ });
35
+ }, w = ({ className: t }) => {
36
+ const { inputId: a, ariaDescribedBy: m } = d(), { id: s, placeholder: u } = p(), n = O(null);
37
+ return x(() => {
38
+ var l;
39
+ (l = n.current) == null || l.focus();
40
+ }, s), /* @__PURE__ */ r.createElement(y, {
41
+ ref: n,
42
+ id: a,
43
+ "aria-describedby": m,
44
+ placeholder: u,
45
+ className: t
46
+ });
47
+ };
48
+ e.Label = q;
49
+ e.Input = w;
50
+ e.Description = h;
51
+ e.Error = g;
52
+ const Q = "_input_ug5v8_1", U = {
53
+ input: Q
54
+ }, $ = ({ content: t, locale: a }) => /* @__PURE__ */ r.createElement(N, {
55
+ content: t,
56
+ locale: a
57
+ }), te = () => {
58
+ const t = V(U.input);
59
+ return /* @__PURE__ */ r.createElement(e, null, /* @__PURE__ */ r.createElement(e.Label, {
60
+ className: o(B, c.label)
61
+ }, /* @__PURE__ */ r.createElement(e.Label.Required, {
62
+ className: o(M, c.requiredMark)
63
+ })), /* @__PURE__ */ r.createElement(e.Input, {
64
+ className: t
65
+ }), /* @__PURE__ */ r.createElement(e.Error, {
66
+ className: o(k, c.error)
67
+ }, /* @__PURE__ */ r.createElement(v, null), /* @__PURE__ */ r.createElement(e.Error.Text, null)), /* @__PURE__ */ r.createElement(e.Description, {
68
+ className: o(P, c.description)
69
+ }, $));
70
+ };
71
+ export {
72
+ te as T
73
+ };
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { T as r } from "./text-area-field-rac-BnRuG5y8.js";
2
+ import { T as r } from "./text-area-field-rac-opBEx_8s.js";
3
3
  const a = () => /* @__PURE__ */ e.createElement(r, null);
4
4
  export {
5
5
  a as TextAreaRAC
@@ -1,12 +1,12 @@
1
1
  import { RicosViewer as l } from "@wix/ricos/viewer";
2
2
  import t from "classnames";
3
3
  import e from "react";
4
- import { T as r } from "./text-input-headless-C1eFy2gl.js";
4
+ import { T as r } from "./text-input-headless-D-LXpqS3.js";
5
5
  import { E as o } from "./error-icon-hZxQ6DEy.js";
6
- import { s as a } from "./field-rac.module-D06m9T9x.js";
7
- import { y as n, P as c, o as E, i } from "./form-element-classes--p2vz_Bm.js";
8
- import { u as p } from "./use-text-input-class-name-BAuokapo.js";
9
- const I = ({ content: s, locale: m }) => /* @__PURE__ */ e.createElement(l, {
6
+ import { s as a } from "./field-rac.module-BUvPquav.js";
7
+ import { B as n, R as c, q as E, i } from "./form-element-classes-CLZXu-91.js";
8
+ import { u as p } from "./use-text-input-class-name-3Xp-hNDT.js";
9
+ const R = ({ content: s, locale: m }) => /* @__PURE__ */ e.createElement(l, {
10
10
  content: s,
11
11
  locale: m
12
12
  }), C = () => {
@@ -21,7 +21,7 @@ const I = ({ content: s, locale: m }) => /* @__PURE__ */ e.createElement(l, {
21
21
  className: t(E, a.error)
22
22
  }, /* @__PURE__ */ e.createElement(o, null), /* @__PURE__ */ e.createElement(r.Error.Text, null)), /* @__PURE__ */ e.createElement(r.Description, {
23
23
  className: t(i, a.description)
24
- }, I));
24
+ }, R));
25
25
  };
26
26
  export {
27
27
  C as T
@@ -1,9 +1,9 @@
1
1
  import t, { useRef as L } from "react";
2
- import { TextField as R, Input as g } from "react-aria-components";
3
- import { aj as d, ag as c, al as v } from "./form-UCnayEKT.js";
2
+ import { TextField as R, Input as h } from "react-aria-components";
3
+ import { ak as d, ah as c, am as v } from "./form-B3YjGh0T.js";
4
4
  import { f as a } from "./find-child-C60k4CxG.js";
5
- import { D as T, E as h } from "./field-error-headless-PMBWtb3Z.js";
6
- import { L as x } from "./field-label-headless-0racVfdo.js";
5
+ import { D as T, E as g } from "./field-error-headless-9MKScovg.js";
6
+ import { L as x } from "./field-label-headless-BaoLrUWJ.js";
7
7
  const e = ({ children: r }) => {
8
8
  const { id: s, value: i, onChange: l, disabled: u, readOnly: n, required: o, hasError: p, onBlur: m, onFocus: b, FieldLayout: f } = d(), { labelId: E } = c(), I = a(r, e.Label), F = a(r, e.Input), y = a(r, e.Description), D = a(r, e.Error);
9
9
  return /* @__PURE__ */ t.createElement(f, {
@@ -27,7 +27,7 @@ const e = ({ children: r }) => {
27
27
  return v(() => {
28
28
  var o;
29
29
  (o = n.current) == null || o.focus();
30
- }, s), /* @__PURE__ */ t.createElement(g, {
30
+ }, s), /* @__PURE__ */ t.createElement(h, {
31
31
  ref: n,
32
32
  id: l,
33
33
  "aria-describedby": u,
@@ -38,7 +38,7 @@ const e = ({ children: r }) => {
38
38
  e.Label = x;
39
39
  e.Input = B;
40
40
  e.Description = T;
41
- e.Error = h;
41
+ e.Error = g;
42
42
  export {
43
43
  e as T
44
44
  };
@@ -1,5 +1,5 @@
1
1
  import t from "react";
2
- import { T as e } from "./text-input-field-rac-CU8eBRM4.js";
2
+ import { T as e } from "./text-input-field-rac-Ckp8Ierz.js";
3
3
  const o = () => /* @__PURE__ */ t.createElement(e, null);
4
4
  export {
5
5
  o as TextInputRAC
@@ -1,31 +1,31 @@
1
- import e, { useCallback as V, useRef as x, useContext as q } from "react";
2
- import { RicosViewer as v } from "@wix/ricos/viewer";
1
+ import e, { useCallback as V, useRef as q, useContext as x } from "react";
2
+ import { RicosViewer as B } from "@wix/ricos/viewer";
3
3
  import c from "classnames";
4
- import { parseTime as B } from "@internationalized/date";
5
- import { TimeField as k, DateInput as U, DateSegment as _, TimeFieldStateContext as j } from "react-aria-components";
6
- import { aj as p, ag as w, at as S, al as Q } from "./form-UCnayEKT.js";
4
+ import { parseTime as k } from "@internationalized/date";
5
+ import { TimeField as v, DateInput as U, DateSegment as _, TimeFieldStateContext as w } from "react-aria-components";
6
+ import { ak as p, ah as j, au as S, am as Q } from "./form-B3YjGh0T.js";
7
7
  import { f as m, a as F } from "./find-child-C60k4CxG.js";
8
- import { D as z, E as G } from "./field-error-headless-PMBWtb3Z.js";
9
- import { L as J } from "./field-label-headless-0racVfdo.js";
8
+ import { D as z, E as G } from "./field-error-headless-9MKScovg.js";
9
+ import { L as J } from "./field-label-headless-BaoLrUWJ.js";
10
10
  import { E as K } from "./error-icon-hZxQ6DEy.js";
11
11
  import { H as T } from "./custom-focus-class-_483Pkwp.js";
12
- import { s as f } from "./field-rac.module-D06m9T9x.js";
13
- import { y as W, P as X, o as Y, i as Z } from "./form-element-classes--p2vz_Bm.js";
14
- import { u as $ } from "./use-text-input-class-name-BAuokapo.js";
12
+ import { s as f } from "./field-rac.module-BUvPquav.js";
13
+ import { B as W, R as X, q as Y, i as Z } from "./form-element-classes-CLZXu-91.js";
14
+ import { u as $ } from "./use-text-input-class-name-3Xp-hNDT.js";
15
15
  const r = ({ children: t }) => {
16
- const { id: n, value: l, onChange: o, disabled: i, readOnly: s, required: a, onBlur: d, onFocus: E, use24HourFormat: g, FieldLayout: C, hasError: I } = p(), { inputId: D, ariaDescribedBy: L, labelId: R } = w(), b = V((M) => {
16
+ const { id: n, value: l, onChange: o, disabled: i, readOnly: s, required: a, onBlur: d, onFocus: E, use24HourFormat: C, FieldLayout: g, hasError: I } = p(), { inputId: R, ariaDescribedBy: D, labelId: L } = j(), b = V((M) => {
17
17
  const H = ae(M);
18
18
  o(H);
19
19
  }, [
20
20
  o
21
21
  ]), N = m(t, r.Label), y = m(t, r.Time), P = m(t, r.Description), A = m(t, r.Error), O = ne(l);
22
- return /* @__PURE__ */ e.createElement(C, {
22
+ return /* @__PURE__ */ e.createElement(g, {
23
23
  fieldId: n,
24
24
  renderLabel: () => N,
25
- renderInput: () => /* @__PURE__ */ e.createElement(k, {
26
- "aria-labelledby": R,
27
- id: D,
28
- "aria-describedby": L,
25
+ renderInput: () => /* @__PURE__ */ e.createElement(v, {
26
+ "aria-labelledby": L,
27
+ id: R,
28
+ "aria-describedby": D,
29
29
  value: O,
30
30
  onChange: b,
31
31
  isDisabled: i,
@@ -34,7 +34,7 @@ const r = ({ children: t }) => {
34
34
  isRequired: a,
35
35
  onBlur: d,
36
36
  onFocus: E,
37
- hourCycle: g ? 24 : 12
37
+ hourCycle: C ? 24 : 12
38
38
  }, y),
39
39
  renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, A, P)
40
40
  });
@@ -66,7 +66,7 @@ const r = ({ children: t }) => {
66
66
  }
67
67
  });
68
68
  }, ee = ({ className: t, ...n }) => {
69
- const { id: l, hidePlaceholder: o } = p(), { segment: i } = n, { t: s } = S(), a = x(null);
69
+ const { id: l, hidePlaceholder: o } = p(), { segment: i } = n, { t: s } = S(), a = q(null);
70
70
  Q(() => {
71
71
  var E;
72
72
  (E = a.current) == null || E.focus();
@@ -90,7 +90,7 @@ const r = ({ children: t }) => {
90
90
  }
91
91
  });
92
92
  }, re = ({ className: t, ...n }) => {
93
- const { hidePlaceholder: l } = p(), { segment: o } = n, { t: i } = S(), s = q(j), a = l ? void 0 : i("field.date.placeholder.period"), d = () => s == null ? void 0 : s.increment("dayPeriod");
93
+ const { hidePlaceholder: l } = p(), { segment: o } = n, { t: i } = S(), s = x(w), a = l ? void 0 : i("field.date.placeholder.period"), d = () => s == null ? void 0 : s.increment("dayPeriod");
94
94
  return /* @__PURE__ */ e.createElement(_, {
95
95
  segment: o,
96
96
  className: t,
@@ -111,7 +111,7 @@ function ne(t) {
111
111
  if (!t)
112
112
  return null;
113
113
  try {
114
- return B(t);
114
+ return k(t);
115
115
  } catch {
116
116
  return null;
117
117
  }
@@ -131,7 +131,7 @@ const oe = "_time_10p0h_1", se = "_hour_10p0h_14", le = "_minute_10p0h_15", ie =
131
131
  hour: se,
132
132
  minute: le,
133
133
  period: ie
134
- }, ce = ({ content: t, locale: n }) => /* @__PURE__ */ e.createElement(v, {
134
+ }, ce = ({ content: t, locale: n }) => /* @__PURE__ */ e.createElement(B, {
135
135
  content: t,
136
136
  locale: n
137
137
  }), me = () => {
@@ -153,7 +153,7 @@ const oe = "_time_10p0h_1", se = "_hour_10p0h_14", le = "_minute_10p0h_15", ie =
153
153
  }, /* @__PURE__ */ e.createElement(K, null), /* @__PURE__ */ e.createElement(r.Error.Text, null)), /* @__PURE__ */ e.createElement(r.Description, {
154
154
  className: c(Z, f.description)
155
155
  }, ce));
156
- }, Le = () => /* @__PURE__ */ e.createElement(me, null);
156
+ }, De = () => /* @__PURE__ */ e.createElement(me, null);
157
157
  export {
158
- Le as TimeInputRAC
158
+ De as TimeInputRAC
159
159
  };
@@ -1,28 +1,28 @@
1
- import { RicosViewer as S } from "@wix/ricos/viewer";
1
+ import { RicosViewer as N } from "@wix/ricos/viewer";
2
2
  import i from "classnames";
3
- import r, { useCallback as h, useRef as y } from "react";
4
- import { TextField as O, Input as A } from "react-aria-components";
5
- import { aj as d, ag as E, al as g } from "./form-UCnayEKT.js";
3
+ import r, { useCallback as S, useRef as O } from "react";
4
+ import { TextField as y, Input as A } from "react-aria-components";
5
+ import { ak as d, ah as E, am as B } from "./form-B3YjGh0T.js";
6
6
  import { f as c } from "./find-child-C60k4CxG.js";
7
- import { D as B, E as P } from "./field-error-headless-PMBWtb3Z.js";
8
- import { L as T } from "./field-label-headless-0racVfdo.js";
9
- import { u as k } from "./use-invoke-callback-UH73A_J3.js";
7
+ import { D as k, E as T } from "./field-error-headless-9MKScovg.js";
8
+ import { L as g } from "./field-label-headless-BaoLrUWJ.js";
9
+ import { u as q } from "./use-invoke-callback-UH73A_J3.js";
10
10
  import { E as v } from "./error-icon-hZxQ6DEy.js";
11
- import { s as u } from "./field-rac.module-D06m9T9x.js";
12
- import { y as M, P as q, o as x, i as U } from "./form-element-classes--p2vz_Bm.js";
13
- import { u as w } from "./use-text-input-class-name-BAuokapo.js";
11
+ import { s as u } from "./field-rac.module-BUvPquav.js";
12
+ import { B as M, R as P, q as x, i as U } from "./form-element-classes-CLZXu-91.js";
13
+ import { u as w } from "./use-text-input-class-name-3Xp-hNDT.js";
14
14
  const V = (t) => t ? `https://${String(t).replace(/^https?:\/\//, "")}` : "", e = ({ children: t }) => {
15
- const { id: o, value: a, onChange: s, disabled: m, readOnly: n, required: l, hasError: I, onBlur: f, onFocus: b, FieldLayout: R } = d(), { labelId: F } = E(), p = k(f), L = c(t, e.Label), D = c(t, e.Input), C = c(t, e.Description), _ = c(t, e.Error), N = h(() => {
15
+ const { id: o, value: a, onChange: s, disabled: m, readOnly: n, required: l, hasError: I, onBlur: f, onFocus: R, FieldLayout: b } = d(), { labelId: F } = E(), p = q(f), L = c(t, e.Label), D = c(t, e.Input), C = c(t, e.Description), _ = c(t, e.Error), h = S(() => {
16
16
  s(V(a)), p();
17
17
  }, [
18
18
  p,
19
19
  s,
20
20
  a
21
21
  ]);
22
- return /* @__PURE__ */ r.createElement(R, {
22
+ return /* @__PURE__ */ r.createElement(b, {
23
23
  fieldId: o,
24
24
  renderLabel: () => L,
25
- renderInput: () => /* @__PURE__ */ r.createElement(O, {
25
+ renderInput: () => /* @__PURE__ */ r.createElement(y, {
26
26
  "aria-labelledby": F,
27
27
  value: a ?? "",
28
28
  onChange: s,
@@ -30,14 +30,14 @@ const V = (t) => t ? `https://${String(t).replace(/^https?:\/\//, "")}` : "", e
30
30
  isReadOnly: n,
31
31
  isRequired: l,
32
32
  isInvalid: I,
33
- onBlur: N,
34
- onFocus: b
33
+ onBlur: h,
34
+ onFocus: R
35
35
  }, D),
36
36
  renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, _, C)
37
37
  });
38
38
  }, W = ({ className: t }) => {
39
- const { id: o, placeholder: a } = d(), { inputId: s, ariaDescribedBy: m } = E(), n = y(null);
40
- return g(() => {
39
+ const { id: o, placeholder: a } = d(), { inputId: s, ariaDescribedBy: m } = E(), n = O(null);
40
+ return B(() => {
41
41
  var l;
42
42
  (l = n.current) == null || l.focus();
43
43
  }, o), /* @__PURE__ */ r.createElement(A, {
@@ -49,11 +49,11 @@ const V = (t) => t ? `https://${String(t).replace(/^https?:\/\//, "")}` : "", e
49
49
  placeholder: a
50
50
  });
51
51
  };
52
- e.Label = T;
52
+ e.Label = g;
53
53
  e.Input = W;
54
- e.Description = B;
55
- e.Error = P;
56
- const $ = ({ content: t, locale: o }) => /* @__PURE__ */ r.createElement(S, {
54
+ e.Description = k;
55
+ e.Error = T;
56
+ const $ = ({ content: t, locale: o }) => /* @__PURE__ */ r.createElement(N, {
57
57
  content: t,
58
58
  locale: o
59
59
  }), oe = () => {
@@ -61,7 +61,7 @@ const $ = ({ content: t, locale: o }) => /* @__PURE__ */ r.createElement(S, {
61
61
  return /* @__PURE__ */ r.createElement(e, null, /* @__PURE__ */ r.createElement(e.Label, {
62
62
  className: i(M, u.label)
63
63
  }, /* @__PURE__ */ r.createElement(e.Label.Required, {
64
- className: i(q, u.requiredMark)
64
+ className: i(P, u.requiredMark)
65
65
  })), /* @__PURE__ */ r.createElement(e.Input, {
66
66
  className: t
67
67
  }), /* @__PURE__ */ r.createElement(e.Error, {
@@ -1,5 +1,5 @@
1
1
  import r from "react";
2
- import { U as t } from "./url-input-field-rac-BtpAuKfp.js";
2
+ import { U as t } from "./url-input-field-rac-CBOnhquz.js";
3
3
  const n = () => /* @__PURE__ */ r.createElement(t, null);
4
4
  export {
5
5
  n as UrlInputRAC
@@ -0,0 +1,28 @@
1
+ import r from "classnames";
2
+ import { s as a } from "./field-rac.module-BUvPquav.js";
3
+ import { l as O } from "./form-element-classes-CLZXu-91.js";
4
+ import { u as m } from "./use-element-state-class-name--YLulmsU.js";
5
+ const o = {
6
+ base: a.selectOption,
7
+ selected: a.selectOptionSelected,
8
+ hover: a.selectOptionHover
9
+ }, l = ({ isSelected: e, isHovered: s, isFocused: t }) => ({
10
+ isSelected: e,
11
+ isHovered: (s || t) && !e
12
+ }), d = (...e) => (s) => {
13
+ const { isSelected: t, isHovered: n } = l(s);
14
+ return r(o.base, {
15
+ [o.selected]: t,
16
+ [o.hover]: n
17
+ }, e);
18
+ }, S = (...e) => {
19
+ const s = m({
20
+ globalClasses: O,
21
+ moduleClasses: o
22
+ });
23
+ return (t) => r(s(l(t)), e);
24
+ };
25
+ export {
26
+ d as g,
27
+ S as u
28
+ };
@@ -1,5 +1,5 @@
1
1
  import E from "classnames";
2
- import { ac as f } from "./form-UCnayEKT.js";
2
+ import { ad as f } from "./form-B3YjGh0T.js";
3
3
  const k = ({ globalClasses: e, moduleClasses: r }) => {
4
4
  var d;
5
5
  const c = ((d = f(...e.parent ? [
@@ -1,6 +1,6 @@
1
1
  import { useState as o, useCallback as D, useEffect as m, useMemo as b } from "react";
2
- import { ai as v } from "./form-UCnayEKT.js";
3
- const k = (I) => {
2
+ import { aj as v } from "./form-B3YjGh0T.js";
3
+ const j = (I) => {
4
4
  const { fieldType: L, isEditor: t = !1, postProcessOptions: i, customFetchLogic: a, onInitialDataLoaded: n } = I, [O, h] = o(!1), [g, p] = o([]), [E, u] = o(!1), [c, f] = o(!1), s = v(L), r = D((e) => {
5
5
  let d = e.map((l) => ({
6
6
  value: l.id ?? "",
@@ -44,5 +44,5 @@ const k = (I) => {
44
44
  };
45
45
  };
46
46
  export {
47
- k as u
47
+ j as u
48
48
  };
@@ -1,7 +1,7 @@
1
- import { aj as l } from "./form-UCnayEKT.js";
2
- import { s } from "./field-rac.module-D06m9T9x.js";
3
- import { _ as m } from "./form-element-classes--p2vz_Bm.js";
4
- import { u as i } from "./use-element-state-class-name-X08kIFhd.js";
1
+ import { ak as l } from "./form-B3YjGh0T.js";
2
+ import { s } from "./field-rac.module-BUvPquav.js";
3
+ import { a0 as m } from "./form-element-classes-CLZXu-91.js";
4
+ import { u as i } from "./use-element-state-class-name--YLulmsU.js";
5
5
  const c = (...e) => {
6
6
  const { disabled: a, readOnly: t } = l(), o = i({
7
7
  globalClasses: m,
package/dist/form.d.ts CHANGED
@@ -6972,6 +6972,9 @@ type IconEntry = LeafEntry & {
6972
6972
  interface ElementTree extends Partial<Record<string, ElementEntry | IconEntry>> {
6973
6973
  }
6974
6974
  type ElementProps = ElementTree & {
6975
+ dropdown?: LeafEntry & {
6976
+ open?: boolean;
6977
+ };
6975
6978
  submitButton?: ElementEntry<{
6976
6979
  icon?: IconEntry;
6977
6980
  label?: LeafEntry;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/form-elements",
3
- "version": "1.89.0",
3
+ "version": "1.90.0",
4
4
  "description": "The Wix Forms rendering element for Builder apps, loaded at runtime as @wix/form-elements/Form",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -154,5 +154,5 @@
154
154
  ]
155
155
  }
156
156
  },
157
- "falconPackageHash": "a4ac53f9c71859310f43d0c9a43a9547bd0022fbc7568321b2191012"
157
+ "falconPackageHash": "f54a48414c803610ab3ced9555b77c06c442f63dfadc4e009caf95eb"
158
158
  }