@wix/form-elements 1.147.0 → 1.148.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 (112) hide show
  1. package/dist/component/{appointment-rac-BG5-bIZU.js → appointment-rac-BNqXl3dq.js} +93 -89
  2. package/dist/component/{bookings-address-rac-8e8PqKsp.js → bookings-address-rac-DzLf588z.js} +1 -1
  3. package/dist/component/{bookings-email-rac-CtlnU8ws.js → bookings-email-rac-BCNWH7ss.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-CrivNlXM.js → bookings-first-name-rac-D36aHUOJ.js} +1 -1
  5. package/dist/component/{bookings-header-rac-DWDAjfqq.js → bookings-header-rac-CNr2y2ES.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-qAthWem2.js → bookings-last-name-rac-yHE6ZIxr.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-BNyUDqlM.js → bookings-login-bar-rac-C3weOc1i.js} +1 -1
  8. package/dist/component/{bookings-phone-rac-Tc39XLr7.js → bookings-phone-rac-CIo_ApRf.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-CPNaPtFK.js → bookings-rich-text-rac-rgKnvt57.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-DEa78Tpf.js → checkbox-field-rac-CMaVxLNe.js} +9 -7
  11. package/dist/component/{checkbox-group-field-headless-BxBaMg29.js → checkbox-group-field-headless-XPtqS8Km.js} +3 -3
  12. package/dist/component/{checkbox-group-field-rac-CRRP03Qk.js → checkbox-group-field-rac-C_58XfQt.js} +6 -6
  13. package/dist/component/{checkbox-group-rac-TOofMGl3.js → checkbox-group-rac-FQrWViSh.js} +1 -1
  14. package/dist/component/{checkbox-indicator-module-classes-6173wvuW.js → checkbox-indicator-module-classes-akWZsZNn.js} +1 -1
  15. package/dist/component/{checkbox-rac-CHMHr8Ry.js → checkbox-rac-C5Lj2b1N.js} +1 -1
  16. package/dist/component/{contacts-address-rac-Bc5yDvTL.js → contacts-address-rac-OhpLzD0X.js} +1 -1
  17. package/dist/component/{contacts-birthdate-rac-Ubtg5ncv.js → contacts-birthdate-rac-Dnqq84ct.js} +1 -1
  18. package/dist/component/{contacts-company-rac-BksH9IoV.js → contacts-company-rac-DMnTF55t.js} +1 -1
  19. package/dist/component/{contacts-email-rac-DDPEtMAm.js → contacts-email-rac-DmZhScW2.js} +1 -1
  20. package/dist/component/{contacts-first-name-rac-DUlCvEdx.js → contacts-first-name-rac-B6A4fuzK.js} +1 -1
  21. package/dist/component/{contacts-last-name-rac-BikqNgUr.js → contacts-last-name-rac-DVz97lew.js} +1 -1
  22. package/dist/component/{contacts-phone-rac-B4OEgM_8.js → contacts-phone-rac-DV8aO0uS.js} +1 -1
  23. package/dist/component/{contacts-position-rac-BfybzySV.js → contacts-position-rac-BP_yBIE4.js} +1 -1
  24. package/dist/component/{contacts-subscribe-rac-CMHb33v1.js → contacts-subscribe-rac-wmTprtLf.js} +1 -1
  25. package/dist/component/{contacts-tax-id-rac-C-qEqwO5.js → contacts-tax-id-rac-CUEPBQye.js} +1 -1
  26. package/dist/component/{date-availability-DZ3J3LLm.js → date-availability-BK_0gLRv.js} +1 -1
  27. package/dist/component/{date-input-field-rac-DeL5vuE7.js → date-input-field-rac-BfWPvRnd.js} +75 -69
  28. package/dist/component/{date-input-rac-Di6TQvFf.js → date-input-rac-B7vAMRBX.js} +1 -1
  29. package/dist/component/{date-picker-field-rac-BcdpTkjV.js → date-picker-field-rac-CpDY4EkU.js} +10 -8
  30. package/dist/component/{date-picker-rac-Brne65gr.js → date-picker-rac-BCswaZB1.js} +1 -1
  31. package/dist/component/{date-time-input-field-rac-BtQfAxRp.js → date-time-input-field-rac-D9w4eEa0.js} +115 -109
  32. package/dist/component/{date-time-input-rac-DM_HXiqV.js → date-time-input-rac-_im8-JRC.js} +1 -1
  33. package/dist/component/{dext-checkbox-group-rac-WTVwhGG0.js → dext-checkbox-group-rac-Di7B1Wzv.js} +2 -2
  34. package/dist/component/{dext-checkbox-rac-BR5YwmLQ.js → dext-checkbox-rac-BPendOsP.js} +1 -1
  35. package/dist/component/{dext-date-picker-rac-DvDuRGYi.js → dext-date-picker-rac-_-Ig9Qn6.js} +1 -1
  36. package/dist/component/{dext-date-time-input-rac-C6RgbaVv.js → dext-date-time-input-rac-dKFW87yu.js} +1 -1
  37. package/dist/component/{dext-dropdown-rac-CWjSdcZx.js → dext-dropdown-rac-Cpdpps7P.js} +1 -1
  38. package/dist/component/{dext-email-rac-D-C1gVTq.js → dext-email-rac-D4UmYH5m.js} +1 -1
  39. package/dist/component/{dext-number-input-rac-YKzZS2ZG.js → dext-number-input-rac-DUetGnYJ.js} +1 -1
  40. package/dist/component/{dext-phone-rac-CFZlEH2a.js → dext-phone-rac-Bsz_DAT9.js} +1 -1
  41. package/dist/component/{dext-radio-group-rac-DiH0wIIl.js → dext-radio-group-rac-B_soj2FD.js} +2 -2
  42. package/dist/component/{dext-rating-input-rac-D0s-i0qO.js → dext-rating-input-rac-cm40qt4O.js} +1 -1
  43. package/dist/component/{dext-tags-rac-Br48OQQ5.js → dext-tags-rac-D1ULx6t1.js} +2 -2
  44. package/dist/component/{dext-text-area-rac-6jG8gJ7i.js → dext-text-area-rac-IkL67rHB.js} +1 -1
  45. package/dist/component/{dext-text-input-rac-FAJTCXuf.js → dext-text-input-rac-DsYSTEL2.js} +1 -1
  46. package/dist/component/{dext-url-input-rac-BoMP8sQB.js → dext-url-input-rac-BKvEkpYu.js} +1 -1
  47. package/dist/component/{donation-rac-DNi4p-v5.js → donation-rac-CaCXMa-H.js} +60 -58
  48. package/dist/component/{dropdown-field-headless-7SCC-xOC.js → dropdown-field-headless-DcrQK8mL.js} +29 -27
  49. package/dist/component/{dropdown-field-rac-CMzZh6J6.js → dropdown-field-rac-CuGoz_6I.js} +4 -4
  50. package/dist/component/{dropdown-rac-qeugpHXY.js → dropdown-rac-rIe6ZqaZ.js} +1 -1
  51. package/dist/component/{ecom-address-rac-D8b_L5md.js → ecom-address-rac-DT0rzvvp.js} +1 -1
  52. package/dist/component/{ecom-subscription-checkbox-rac-BnAuR9La.js → ecom-subscription-checkbox-rac-ZfbiME6e.js} +2 -2
  53. package/dist/component/{email-input-field-rac-CunXRyc5.js → email-input-field-rac-8Qn3yskh.js} +4 -4
  54. package/dist/component/{events-repeater-rac-DMjyIOkB.js → events-repeater-rac-DyHrMd3y.js} +12 -8
  55. package/dist/component/{events-rsvp-rac-BsuDPq2K.js → events-rsvp-rac-CoL-euuc.js} +4 -4
  56. package/dist/component/{field-error-headless-E8WjFr_n.js → field-error-headless-RylIeqXr.js} +1 -1
  57. package/dist/component/{field-label-headless-BakLOu5E.js → field-label-headless-d3hZxIEc.js} +1 -1
  58. package/dist/component/field-rac.module-DP0lkkEv.js +25 -0
  59. package/dist/component/{file-upload-rac-Clu_c--0.js → file-upload-rac-rXbabrgc.js} +148 -144
  60. package/dist/component/{fixed-payment-rac-CzAXxsb-.js → fixed-payment-rac-CaR7pXXA.js} +4 -4
  61. package/dist/component/{form-DHAKwnLt.js → form-DhIEC3nB.js} +2251 -2256
  62. package/dist/component/form.css +1 -1
  63. package/dist/component/form.js +1 -1
  64. package/dist/component/{header-field-rac-CwmVpz3r.js → header-field-rac-nELbyGjP.js} +2 -2
  65. package/dist/component/{header-rac-ahkGRjSy.js → header-rac-q80EQNmM.js} +1 -1
  66. package/dist/component/{image-choice-rac-BwxkkdUu.js → image-choice-rac-CLMiTQK0.js} +32 -32
  67. package/dist/component/{index-BQf23zZi.js → index-C-jVrv9Y.js} +4 -4
  68. package/dist/component/{index-BFi_n6B7.js → index-DnLJzPM-.js} +2 -2
  69. package/dist/component/{isObjectLike-DHcMRYYH.js → isObjectLike-Bf577MHV.js} +1 -1
  70. package/dist/component/{multiline-address-field-rac-C6xaqNOk.js → multiline-address-field-rac-BVAv1w9F.js} +106 -88
  71. package/dist/component/{multiline-address-rac-DF4TFuDx.js → multiline-address-rac-qMuUHA9U.js} +1 -1
  72. package/dist/component/{number-input-field-rac-uVJ3SBv2.js → number-input-field-rac-B_vnBWFG.js} +16 -14
  73. package/dist/component/{number-input-rac-D6ERhrSM.js → number-input-rac-BPCIW8Fz.js} +1 -1
  74. package/dist/component/{password-rac-CAiC0ZKl.js → password-rac-D72HG72u.js} +13 -11
  75. package/dist/component/{payment-input-rac-Bu25xvby.js → payment-input-rac-DthVgsAi.js} +13 -11
  76. package/dist/component/{phone-input-field-rac-32qUvCsC.js → phone-input-field-rac-XIPkH8Fb.js} +7 -7
  77. package/dist/component/{phone-rac-mNrpj30q.js → phone-rac-U94fCfer.js} +1 -1
  78. package/dist/component/{product-list-rac-zHdM9rHw.js → product-list-rac-BRMGPyhr.js} +49 -49
  79. package/dist/component/{quiz-radio-group-rac-BaSlT8w3.js → quiz-radio-group-rac-DafNzzgX.js} +1 -1
  80. package/dist/component/radio-button-module-classes-DtFlHID_.js +134 -0
  81. package/dist/component/{radio-group-field-rac-DI0UgTBr.js → radio-group-field-rac-BXrYWjew.js} +5 -5
  82. package/dist/component/{radio-group-rac-D2ESG8J4.js → radio-group-rac-BNyFfQYV.js} +1 -1
  83. package/dist/component/{rating-input-field-rac-BYT2XqOK.js → rating-input-field-rac-KbkiVCZ7.js} +5 -5
  84. package/dist/component/{rating-input-rac-D-5CmVAX.js → rating-input-rac-zT4vPkwP.js} +1 -1
  85. package/dist/component/{rich-content-rac.module-Dp9Advo9.js → rich-content-rac.module-C0OQetct.js} +1 -1
  86. package/dist/component/{rich-text-field-rac-COEUwoXQ.js → rich-text-field-rac-T4NoShC0.js} +2 -2
  87. package/dist/component/{rich-text-rac-CQZLjBQ0.js → rich-text-rac-m6VRCRZu.js} +1 -1
  88. package/dist/component/{service-dropdown-rac-BTtJVFv8.js → service-dropdown-rac-BFwKhL1l.js} +5 -5
  89. package/dist/component/{services-multi-choice-rac-hbY3g0Kb.js → services-multi-choice-rac-DjzcuRWv.js} +7 -7
  90. package/dist/component/{signature-rac-CTCNclwL.js → signature-rac-B1LPKnIw.js} +271 -269
  91. package/dist/component/{submit-button-rac-kKGeVgsG.js → submit-button-rac-Cz3PVtW4.js} +2 -2
  92. package/dist/component/{tags-field-rac-CVf7oQr_.js → tags-field-rac-DzSoL__s.js} +75 -75
  93. package/dist/component/{tags-rac-DiX1_nTT.js → tags-rac-DMYJDrm-.js} +1 -1
  94. package/dist/component/{text-area-field-rac-IhBNXiDl.js → text-area-field-rac-SuMzBm-Q.js} +15 -13
  95. package/dist/component/{text-area-rac-DHevCtFF.js → text-area-rac-C-zmnJgt.js} +1 -1
  96. package/dist/component/{text-input-field-rac-Da3_wTdh.js → text-input-field-rac-BmQlXTK9.js} +4 -4
  97. package/dist/component/text-input-headless-BsrjGTK4.js +47 -0
  98. package/dist/component/{text-input-rac-564LIZ1_.js → text-input-rac-DhQFKG4h.js} +1 -1
  99. package/dist/component/{time-input-rac-p-Nnsxp_.js → time-input-rac-CRZZdbTI.js} +29 -27
  100. package/dist/component/{url-input-field-rac-DjrcpRtm.js → url-input-field-rac-D617Pvsf.js} +20 -18
  101. package/dist/component/{url-input-rac-B3brpyop.js → url-input-rac-CLvxaWZz.js} +1 -1
  102. package/dist/component/{use-dropdown-trigger-class-name-BWTT7ltv.js → use-dropdown-trigger-class-name-C4uqTKFP.js} +4 -4
  103. package/dist/component/{use-element-state-class-name-CUZuhFvZ.js → use-element-state-class-name-DJx-T0zf.js} +1 -1
  104. package/dist/component/{use-hoverable-input-class-name-ugX8-g4E.js → use-hoverable-input-class-name-pwVZXwrY.js} +3 -3
  105. package/dist/component/{use-is-forced-open-dropdown-DUZMvWpk.js → use-is-forced-open-dropdown-DBpm1D-o.js} +1 -1
  106. package/dist/component/{use-service-options-base-hqO9Ev38.js → use-service-options-base-xHeVTve3.js} +1 -1
  107. package/dist/component/use-text-input-class-name-CrEjJ2Z8.js +6 -0
  108. package/package.json +2 -2
  109. package/dist/component/field-rac.module-DfEb7pBp.js +0 -25
  110. package/dist/component/radio-button-module-classes-BdWjkBlX.js +0 -132
  111. package/dist/component/text-input-headless-DcZRRXCp.js +0 -45
  112. package/dist/component/use-text-input-class-name-wp9dzpEy.js +0 -6
@@ -1,10 +1,10 @@
1
1
  import d, { useContext as N, useRef as x, useState as f, Children as y, useLayoutEffect as p, useMemo as I } from "react";
2
2
  import { CollectionRendererContext as g, DefaultCollectionRenderer as E, ListBox as L } from "react-aria-components";
3
3
  import M from "classnames";
4
- import { s as R } from "./field-rac.module-DfEb7pBp.js";
5
- import { z as T, G as P } from "./form-DHAKwnLt.js";
6
- import { u as H } from "./use-element-state-class-name-CUZuhFvZ.js";
7
- import { u as B } from "./use-hoverable-input-class-name-ugX8-g4E.js";
4
+ import { s as R } from "./field-rac.module-DP0lkkEv.js";
5
+ import { z as T, G as P } from "./form-DhIEC3nB.js";
6
+ import { u as H } from "./use-element-state-class-name-DJx-T0zf.js";
7
+ import { u as B } from "./use-hoverable-input-class-name-pwVZXwrY.js";
8
8
  const h = 1 / 0, A = {
9
9
  position: "absolute",
10
10
  width: 0,
@@ -1,5 +1,5 @@
1
1
  import i from "classnames";
2
- import { bh as s, aQ as v } from "./form-DHAKwnLt.js";
2
+ import { bh as s, aQ as v } from "./form-DhIEC3nB.js";
3
3
  const x = ({ globalClasses: e, moduleClasses: r }) => {
4
4
  var d;
5
5
  const c = ((d = s(...v(e))) == null ? void 0 : d.split(/\s+/)) ?? [], o = [
@@ -1,6 +1,6 @@
1
- import { bo as n } from "./form-DHAKwnLt.js";
2
- import { s as e } from "./field-rac.module-DfEb7pBp.js";
3
- import { u } from "./use-element-state-class-name-CUZuhFvZ.js";
1
+ import { bo as n } from "./form-DhIEC3nB.js";
2
+ import { s as e } from "./field-rac.module-DP0lkkEv.js";
3
+ import { u } from "./use-element-state-class-name-DJx-T0zf.js";
4
4
  const b = (s, a) => {
5
5
  const { disabled: t, readOnly: o } = n(), r = u({
6
6
  globalClasses: s,
@@ -1,5 +1,5 @@
1
1
  import { useContext as i, useMemo as c } from "react";
2
- import { bi as E, au as T, bg as a, F as s } from "./form-DHAKwnLt.js";
2
+ import { bi as E, au as T, bg as a, F as s } from "./form-DhIEC3nB.js";
3
3
  const u = [
4
4
  s.DROPDOWN,
5
5
  s.DEXT_DROPDOWN,
@@ -1,5 +1,5 @@
1
1
  import { useState as o, useCallback as y, useEffect as m, useMemo as D } from "react";
2
- import { bn as v } from "./form-DHAKwnLt.js";
2
+ import { bn as v } from "./form-DhIEC3nB.js";
3
3
  const k = (I) => {
4
4
  const { fieldType: L, isEditor: t = !1, postProcessOptions: i, customFetchLogic: n, onInitialDataLoaded: a } = I, [O, h] = o(!1), [g, p] = o([]), [E, u] = o(!1), [c, f] = o(!1), s = v(L), r = y((e) => {
5
5
  let d = e.map((l) => ({
@@ -0,0 +1,6 @@
1
+ import { ac as a } from "./form-DhIEC3nB.js";
2
+ import { u as e } from "./use-hoverable-input-class-name-pwVZXwrY.js";
3
+ const m = (...s) => e(a, s);
4
+ export {
5
+ m as u
6
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/form-elements",
3
- "version": "1.147.0",
3
+ "version": "1.148.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": [
@@ -156,5 +156,5 @@
156
156
  ]
157
157
  }
158
158
  },
159
- "falconPackageHash": "dcde916fdec9c1773c083248f6cc45a6b733ed0fb4d29edda6c57445"
159
+ "falconPackageHash": "a6483bff283eb3c40d63a3133af65737b1727dea49830efd452cc8e3"
160
160
  }
@@ -1,25 +0,0 @@
1
- const o = "_label_1l2r2_1", e = "_requiredMark_1l2r2_11", t = "_input_1l2r2_16", r = "_inputGroup_1l2r2_17", n = "_inputHover_1l2r2_70", c = "_innerInput_1l2r2_141", _ = "_dropdownTrigger_1l2r2_191", p = "_dropdownIcon_1l2r2_201", l = "_dropdownPopover_1l2r2_220", s = "_selectPopover_1l2r2_226", i = "_selectOption_1l2r2_253", u = "_selectOptionHover_1l2r2_276", d = "_selectOptionSelected_1l2r2_280", h = "_selectOptionWithoutFocusRing_1l2r2_284", b = "_description_1l2r2_290", k = "_error_1l2r2_306", v = "_checkbox_1l2r2_325", I = "_checkboxInput_1l2r2_348", x = "_checkboxInputSelected_1l2r2_387", O = "_checkboxInputHover_1l2r2_391", g = {
2
- label: o,
3
- requiredMark: e,
4
- input: t,
5
- inputGroup: r,
6
- inputHover: n,
7
- innerInput: c,
8
- dropdownTrigger: _,
9
- dropdownIcon: p,
10
- dropdownPopover: l,
11
- selectPopover: s,
12
- selectOption: i,
13
- selectOptionHover: u,
14
- selectOptionSelected: d,
15
- selectOptionWithoutFocusRing: h,
16
- description: b,
17
- error: k,
18
- checkbox: v,
19
- checkboxInput: I,
20
- checkboxInputSelected: x,
21
- checkboxInputHover: O
22
- };
23
- export {
24
- g as s
25
- };
@@ -1,132 +0,0 @@
1
- import a, { useRef as F, useState as V, useEffect as T, useCallback as B } from "react";
2
- import { RadioGroup as H, RadioField as k, RadioButton as A, TextField as G, Input as P } from "react-aria-components";
3
- import { bo as g, bl as $, by as D, bq as x } from "./form-DHAKwnLt.js";
4
- import { f as d, a as v } from "./find-child-C60k4CxG.js";
5
- import { D as U, E as M } from "./field-error-headless-E8WjFr_n.js";
6
- import { L as j } from "./field-label-headless-BakLOu5E.js";
7
- import { S as w } from "./selection-indicator-XQ8MYHUQ.js";
8
- const L = "Other", z = (e, t) => e == null ? void 0 : e.find((n) => (n.value ?? n.label) === t), S = (e, t) => !!t && !z(e, t), J = (e, t) => {
9
- const l = t ? t.length + 2 : 0;
10
- return e.slice(l);
11
- }, i = ({ children: e, className: t }) => {
12
- const { id: n, value: l, onChange: O, disabled: p, readOnly: f, required: b, onBlur: E, onFocus: m, hasError: r, FieldLayout: c, options: o } = g(), { inputId: h, labelId: C, ariaDescribedBy: I } = $(), s = d(e, i.Label), _ = d(e, i.Options), R = d(e, i.Description), q = d(e, i.Error), N = S(o, l) ? L : l || null;
13
- return /* @__PURE__ */ a.createElement(c, {
14
- fieldId: n,
15
- renderLabel: () => v(s, {
16
- as: "div"
17
- }),
18
- renderInput: () => /* @__PURE__ */ a.createElement(H, {
19
- id: h,
20
- className: t,
21
- "aria-labelledby": C,
22
- "aria-describedby": I,
23
- value: N,
24
- onChange: O,
25
- isDisabled: p,
26
- isReadOnly: f,
27
- isRequired: b,
28
- isInvalid: r,
29
- onBlur: E,
30
- onFocus: m
31
- }, _),
32
- renderDescription: () => /* @__PURE__ */ a.createElement(a.Fragment, null, q, R)
33
- });
34
- }, K = ({ children: e, className: t }) => {
35
- const { options: n, addOther: l, addOtherLabel: O, id: p, numberOfColumns: f, hasError: b } = g(), { t: E } = D(), m = d(e, i.Option), r = F(null), c = O || E("add-other.default-other-option-label") || L;
36
- return x(() => {
37
- var o;
38
- (o = r.current) == null || o.focus();
39
- }, p), /* @__PURE__ */ a.createElement("div", {
40
- className: t,
41
- "data-columns": f,
42
- "data-invalid": b
43
- }, n.map((o, h) => v(m, {
44
- key: o.value ?? o.label,
45
- value: o.value ?? o.label,
46
- label: o.label,
47
- index: h,
48
- radioRef: h === 0 ? r : void 0
49
- })), l && v(m, {
50
- key: L,
51
- value: L,
52
- label: c,
53
- isOther: !0
54
- }));
55
- }, u = ({ children: e, className: t, ...n }) => {
56
- var I;
57
- const { value: l, label: O, isOther: p = !1, radioRef: f } = n, { value: b, options: E } = g(), m = d(e, u.Label), r = d(e, u.Input), c = d(e, u.Control), o = d(e, u.OtherInput), h = p ? S(E, b) : b === l, C = (I = r == null ? void 0 : r.props) == null ? void 0 : I.className;
58
- return /* @__PURE__ */ a.createElement("div", {
59
- className: t
60
- }, /* @__PURE__ */ a.createElement(k, {
61
- value: l
62
- }, /* @__PURE__ */ a.createElement(A, {
63
- ref: f,
64
- className: C
65
- }, ({ isSelected: s, isHovered: _, isFocused: R }) => /* @__PURE__ */ a.createElement(a.Fragment, null, v(c, {
66
- isSelected: s,
67
- isHovered: _,
68
- isFocused: R
69
- }), v(m, {
70
- label: O
71
- })))), p && h && o);
72
- }, Q = ({ className: e, ...t }) => {
73
- const { label: n } = t;
74
- return /* @__PURE__ */ a.createElement("span", {
75
- className: e
76
- }, n);
77
- }, W = (e) => null, X = ({ className: e }) => {
78
- const { value: t, onChange: n, addOtherLabel: l, addOtherPlaceholder: O, otherInputCharacterLimit: p, disabled: f, readOnly: b, options: E } = g(), { t: m } = D(), r = F(null), c = S(E, t), o = l || m("add-other.default-other-option-label") || L, [h, C] = V(c && t ? J(t, l) : "");
79
- T(() => {
80
- var s;
81
- c && r.current && ((s = r.current) == null || s.focus());
82
- }, [
83
- c
84
- ]);
85
- const I = B((s) => {
86
- let _;
87
- s ? _ = `${l}: ${s}` : _ = o, n(_), C(s);
88
- }, [
89
- n,
90
- l,
91
- o
92
- ]);
93
- return /* @__PURE__ */ a.createElement(G, {
94
- "aria-label": o,
95
- value: h,
96
- onChange: I,
97
- isDisabled: f,
98
- isReadOnly: b
99
- }, /* @__PURE__ */ a.createElement(P, {
100
- ref: r,
101
- className: e,
102
- placeholder: O,
103
- maxLength: p
104
- }));
105
- };
106
- u.Label = Q;
107
- u.Input = W;
108
- u.Control = w;
109
- u.OtherInput = X;
110
- i.Label = j;
111
- i.Options = K;
112
- i.Option = u;
113
- i.Description = U;
114
- i.Error = M;
115
- const Y = "_labelImage_1bq4s_1", Z = "_option_1bq4s_26", ee = "_optionInput_1bq4s_32", te = "_optionControl_1bq4s_50", oe = "_optionControlHover_1bq4s_72", ne = "_optionControlSelected_1bq4s_90", le = "_optionLabel_1bq4s_125", y = {
116
- labelImage: Y,
117
- option: Z,
118
- optionInput: ee,
119
- optionControl: te,
120
- optionControlHover: oe,
121
- optionControlSelected: ne,
122
- optionLabel: le
123
- }, pe = {
124
- base: y.optionControl,
125
- selected: y.optionControlSelected,
126
- hover: y.optionControlHover
127
- };
128
- export {
129
- pe as R,
130
- i as a,
131
- y as s
132
- };
@@ -1,45 +0,0 @@
1
- import t, { useRef as C } from "react";
2
- import { TextField as R, Input as v } from "react-aria-components";
3
- import { bo as d, bl as c, bq as T } from "./form-DHAKwnLt.js";
4
- import { f as s } from "./find-child-C60k4CxG.js";
5
- import { D as g, E as h } from "./field-error-headless-E8WjFr_n.js";
6
- import { L as q } from "./field-label-headless-BakLOu5E.js";
7
- const e = ({ children: r }) => {
8
- const { id: a, value: l, onChange: i, disabled: u, readOnly: n, required: o, hasError: p, onBlur: m, onFocus: b, autoComplete: f, FieldLayout: E } = d(), { labelId: I } = c(), F = s(r, e.Label), y = s(r, e.Input), D = s(r, e.Description), L = s(r, e.Error);
9
- return /* @__PURE__ */ t.createElement(E, {
10
- fieldId: a,
11
- renderLabel: () => F,
12
- renderInput: () => /* @__PURE__ */ t.createElement(R, {
13
- autoComplete: f,
14
- "aria-labelledby": I,
15
- value: l ?? "",
16
- onChange: i,
17
- isDisabled: u,
18
- isReadOnly: n,
19
- isRequired: o,
20
- isInvalid: p,
21
- onBlur: m,
22
- onFocus: b
23
- }, y),
24
- renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, L, D)
25
- });
26
- }, x = ({ className: r }) => {
27
- const { id: a, placeholder: l } = d(), { inputId: i, ariaDescribedBy: u } = c(), n = C(null);
28
- return T(() => {
29
- var o;
30
- (o = n.current) == null || o.focus();
31
- }, a), /* @__PURE__ */ t.createElement(v, {
32
- ref: n,
33
- id: i,
34
- "aria-describedby": u,
35
- className: r,
36
- placeholder: l
37
- });
38
- };
39
- e.Label = q;
40
- e.Input = x;
41
- e.Description = g;
42
- e.Error = h;
43
- export {
44
- e as T
45
- };
@@ -1,6 +0,0 @@
1
- import { ac as a } from "./form-DHAKwnLt.js";
2
- import { u as e } from "./use-hoverable-input-class-name-ugX8-g4E.js";
3
- const m = (...s) => e(a, s);
4
- export {
5
- m as u
6
- };