@wix/form-elements 1.113.0 → 1.115.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 (110) hide show
  1. package/dist/component/{appointment-rac-BZ9sCf_L.js → appointment-rac-CN3z7X0K.js} +204 -204
  2. package/dist/component/{bookings-address-rac-DDisJZwl.js → bookings-address-rac-C3_L2-L5.js} +1 -1
  3. package/dist/component/{bookings-email-rac-ovewChXn.js → bookings-email-rac-jf6DBtqR.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-CyudJnHy.js → bookings-first-name-rac-Dv5X7Xdt.js} +1 -1
  5. package/dist/component/{bookings-header-rac-BSN_BoC0.js → bookings-header-rac-B7pVOaU9.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-SdX5IANy.js → bookings-last-name-rac-DUwYiliZ.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-COQ2BOsY.js → bookings-login-bar-rac-NJDeVd7j.js} +1 -1
  8. package/dist/component/{bookings-phone-rac-DlUfTzEz.js → bookings-phone-rac-Bkr85nD5.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-Dx0uxbQc.js → bookings-rich-text-rac-Wa8I8MHJ.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-DueJINhA.js → checkbox-field-rac-DbKz4tNx.js} +4 -4
  11. package/dist/component/{checkbox-group-field-headless-wj9ITlbE.js → checkbox-group-field-headless-CfXdn4Ff.js} +3 -3
  12. package/dist/component/{checkbox-group-field-rac-CrD849TZ.js → checkbox-group-field-rac-D6I8L5vF.js} +8 -10
  13. package/dist/component/{checkbox-group-rac-Wdz1ShJh.js → checkbox-group-rac-C3qVOH_9.js} +1 -1
  14. package/dist/component/{checkbox-rac-BC7A8y2w.js → checkbox-rac-CKsZjKGO.js} +1 -1
  15. package/dist/component/{contacts-address-rac-DoWo8zyH.js → contacts-address-rac-iX8JJdvR.js} +1 -1
  16. package/dist/component/{contacts-birthdate-rac-CEXkyOuk.js → contacts-birthdate-rac-B7U3XVSs.js} +1 -1
  17. package/dist/component/{contacts-company-rac-CYaVpLCk.js → contacts-company-rac-gTys-wAp.js} +1 -1
  18. package/dist/component/{contacts-email-rac-teBI-Rpu.js → contacts-email-rac-Bo0GTj47.js} +1 -1
  19. package/dist/component/{contacts-first-name-rac-BOPuOgk1.js → contacts-first-name-rac-D2723xQx.js} +1 -1
  20. package/dist/component/{contacts-last-name-rac-DdRhuv9q.js → contacts-last-name-rac-BrTL8dWN.js} +1 -1
  21. package/dist/component/{contacts-phone-rac-BMiop0kR.js → contacts-phone-rac-CPrOsDjh.js} +1 -1
  22. package/dist/component/{contacts-position-rac-C8iM62rN.js → contacts-position-rac-CXK8WpP3.js} +1 -1
  23. package/dist/component/{contacts-subscribe-rac-CkToH-f2.js → contacts-subscribe-rac-BJXzn1dy.js} +1 -1
  24. package/dist/component/{contacts-tax-id-rac-JM0KJre8.js → contacts-tax-id-rac-Dkx_VwKM.js} +1 -1
  25. package/dist/component/{date-availability-DJyvNJ6w.js → date-availability-CvLIxT4E.js} +1 -1
  26. package/dist/component/{date-input-field-rac-CStB2jP7.js → date-input-field-rac-CHLxtBFZ.js} +42 -42
  27. package/dist/component/{date-input-rac-DUSJH8am.js → date-input-rac-CKK-Gx0P.js} +1 -1
  28. package/dist/component/{date-picker-field-rac-6xffgnXB.js → date-picker-field-rac-DQEWIIOn.js} +5 -5
  29. package/dist/component/{date-picker-rac-Dpe0w0G6.js → date-picker-rac-DCXIiPH7.js} +1 -1
  30. package/dist/component/{date-time-input-field-rac-CX39V3G1.js → date-time-input-field-rac-Cdko026n.js} +32 -32
  31. package/dist/component/{date-time-input-rac-DBVMIbom.js → date-time-input-rac-CHYJiwQN.js} +1 -1
  32. package/dist/component/{dext-checkbox-group-rac-CAxyCWQY.js → dext-checkbox-group-rac-CSbzWhrQ.js} +2 -2
  33. package/dist/component/{dext-checkbox-rac-CRBzElbv.js → dext-checkbox-rac-DynyHr0h.js} +1 -1
  34. package/dist/component/{dext-date-picker-rac-DNzXwBkg.js → dext-date-picker-rac-DR87-bl9.js} +1 -1
  35. package/dist/component/{dext-date-time-input-rac-D2W3buJP.js → dext-date-time-input-rac-BUDSzPar.js} +1 -1
  36. package/dist/component/{dext-dropdown-rac-CTTreT77.js → dext-dropdown-rac-CXn0jJKa.js} +1 -1
  37. package/dist/component/{dext-email-rac-BwI4-hML.js → dext-email-rac-DSO2U9wf.js} +1 -1
  38. package/dist/component/{dext-number-input-rac-DT5pQiC3.js → dext-number-input-rac-B5NmGYdT.js} +1 -1
  39. package/dist/component/{dext-phone-rac-MA6wyUxM.js → dext-phone-rac-DAIqe6sm.js} +1 -1
  40. package/dist/component/{dext-radio-group-rac-3PYEgYHn.js → dext-radio-group-rac-C28aYLZj.js} +2 -2
  41. package/dist/component/{dext-rating-input-rac-I3e9k3Tp.js → dext-rating-input-rac-BOuSmqPF.js} +1 -1
  42. package/dist/component/{dext-tags-rac-Bf4tEUAW.js → dext-tags-rac-yLwjhfPp.js} +2 -2
  43. package/dist/component/{dext-text-area-rac-5oOAM6zJ.js → dext-text-area-rac-8tlma9gL.js} +1 -1
  44. package/dist/component/{dext-text-input-rac-8nHhvQfO.js → dext-text-input-rac-D_okxmlQ.js} +1 -1
  45. package/dist/component/{dext-url-input-rac-DSAfDqx1.js → dext-url-input-rac-BA9iqu2_.js} +1 -1
  46. package/dist/component/{donation-rac-DJiD7Fel.js → donation-rac-CeGI5IS5.js} +70 -70
  47. package/dist/component/{dropdown-field-headless-B_W8kD-t.js → dropdown-field-headless-De1WEEXn.js} +4 -4
  48. package/dist/component/{dropdown-field-rac-IDVaMgoc.js → dropdown-field-rac-CqX5mLGE.js} +3 -3
  49. package/dist/component/{dropdown-rac-I2ZO66jF.js → dropdown-rac-7iaHY50r.js} +1 -1
  50. package/dist/component/{ecom-address-rac-B1knDuog.js → ecom-address-rac-PAnE6xQW.js} +1 -1
  51. package/dist/component/{ecom-subscription-checkbox-rac-BQPJb2kl.js → ecom-subscription-checkbox-rac-0uCN5_Dz.js} +2 -2
  52. package/dist/component/{email-input-field-rac-DsjMnxGw.js → email-input-field-rac-CdQLnxHp.js} +3 -3
  53. package/dist/component/{events-repeater-rac-CT7scvgS.js → events-repeater-rac-BQQveKCR.js} +4 -4
  54. package/dist/component/events-rsvp-rac-DSsAsXGm.js +48 -0
  55. package/dist/component/{field-error-headless-DRkkbv__.js → field-error-headless-E5JcyvTx.js} +1 -1
  56. package/dist/component/{field-label-headless-m633nF93.js → field-label-headless-iSxxobxd.js} +1 -1
  57. package/dist/component/{file-upload-rac-DaExm5ny.js → file-upload-rac-BOyE5XpC.js} +4 -4
  58. package/dist/component/{fixed-payment-rac-BglZ8zc0.js → fixed-payment-rac-Bz0J89wO.js} +3 -3
  59. package/dist/component/{form-CY-iFZdC.js → form-CJ_Fa4im.js} +1201 -1196
  60. package/dist/component/form.css +1 -1
  61. package/dist/component/form.js +1 -1
  62. package/dist/component/{header-field-rac-B6Mzqr3b.js → header-field-rac-B3LiQV-q.js} +2 -2
  63. package/dist/component/{header-rac-CB2NDeCJ.js → header-rac-wqjuLzYn.js} +1 -1
  64. package/dist/component/{image-choice-rac-gtYrnTGg.js → image-choice-rac-CGukvBje.js} +54 -57
  65. package/dist/component/{index-wR-OU2AH.js → index-Bd0x52fb.js} +4 -4
  66. package/dist/component/{index-Ozpoh9do.js → index-CNgJ9B-N.js} +2 -2
  67. package/dist/component/{isObjectLike-DsBVSQ_O.js → isObjectLike-CSA_-cuj.js} +1 -1
  68. package/dist/component/{multiline-address-field-rac-Z4hKy_B_.js → multiline-address-field-rac-BHXDan0o.js} +7 -7
  69. package/dist/component/{multiline-address-rac-DWV0BZHX.js → multiline-address-rac-B1L72JOQ.js} +1 -1
  70. package/dist/component/{number-input-field-rac-DKpSb1S_.js → number-input-field-rac-BgfwQQSP.js} +4 -4
  71. package/dist/component/{number-input-rac-Di7Q8CH9.js → number-input-rac-DMIjiN5s.js} +1 -1
  72. package/dist/component/options-rac.module-_THNq6Qq.js +7 -0
  73. package/dist/component/{password-rac-B9RT0izw.js → password-rac-BhgMZqAu.js} +4 -4
  74. package/dist/component/{payment-input-rac-DdGNnPcd.js → payment-input-rac-D1VqfYhh.js} +4 -4
  75. package/dist/component/{phone-input-field-rac-B-5gHBXY.js → phone-input-field-rac-DeDVNdf0.js} +6 -6
  76. package/dist/component/{phone-rac-CmZwJyH7.js → phone-rac-DXS3Mogp.js} +1 -1
  77. package/dist/component/{product-list-rac-BInJ4cw_.js → product-list-rac-ByQz3AOS.js} +5 -5
  78. package/dist/component/{quiz-radio-group-rac-B1EIBOt5.js → quiz-radio-group-rac-B1MDx7gg.js} +1 -1
  79. package/dist/component/radio-button-module-classes-mIRaJBuM.js +131 -0
  80. package/dist/component/{radio-group-field-rac-DAwCG8w2.js → radio-group-field-rac-DOVrrH9g.js} +15 -16
  81. package/dist/component/{radio-group-rac-CExbY0aw.js → radio-group-rac-Brc8ZKVX.js} +1 -1
  82. package/dist/component/{rating-input-field-rac-DTeubyLu.js → rating-input-field-rac-MfJkvu8m.js} +4 -4
  83. package/dist/component/{rating-input-rac-P7Fdwrm3.js → rating-input-rac-CqcZ73CF.js} +1 -1
  84. package/dist/component/{rich-content-rac.module-DgQubdPj.js → rich-content-rac.module-En_EemWS.js} +1 -1
  85. package/dist/component/{rich-text-field-rac-8dkTMWKw.js → rich-text-field-rac-BcxoOePq.js} +2 -2
  86. package/dist/component/{rich-text-rac-C6u_hF5R.js → rich-text-rac-B_2paTxf.js} +1 -1
  87. package/dist/component/{service-dropdown-rac-CTSCew5q.js → service-dropdown-rac-BklQyiab.js} +4 -4
  88. package/dist/component/{services-multi-choice-rac-BUFJHq-l.js → services-multi-choice-rac-ChBS2WU3.js} +27 -29
  89. package/dist/component/{signature-rac-yO924Qfv.js → signature-rac-Cf9YLYPi.js} +3 -3
  90. package/dist/component/{submit-button-rac-BurhcqZP.js → submit-button-rac-CZTeK1uB.js} +1 -1
  91. package/dist/component/{tags-field-rac-qbNQcwnE.js → tags-field-rac-9v2644JD.js} +54 -54
  92. package/dist/component/{tags-rac-DVHcpxNG.js → tags-rac-CeUucfxg.js} +1 -1
  93. package/dist/component/{text-area-field-rac-BKhGX0CL.js → text-area-field-rac-BdCpgmgG.js} +4 -4
  94. package/dist/component/{text-area-rac-CHHEDeUX.js → text-area-rac-6fZvUFD8.js} +1 -1
  95. package/dist/component/{text-input-field-rac-BGitxCuC.js → text-input-field-rac-C7G_xyfv.js} +3 -3
  96. package/dist/component/{text-input-headless-BBn1G2s9.js → text-input-headless-BiNwU3sG.js} +3 -3
  97. package/dist/component/{text-input-rac-CHX-U7Kp.js → text-input-rac-DOaoH5TA.js} +1 -1
  98. package/dist/component/{time-input-rac-Bp6B2gO3.js → time-input-rac-MqQpSz7I.js} +4 -4
  99. package/dist/component/{url-input-field-rac-CPibLAWz.js → url-input-field-rac-DukAWJtU.js} +4 -4
  100. package/dist/component/{url-input-rac-Bj4PV2YJ.js → url-input-rac-BRFCsqH0.js} +1 -1
  101. package/dist/component/{use-dropdown-option-class-name-CE1u4RLT.js → use-dropdown-option-class-name-Bm5e7RIh.js} +2 -2
  102. package/dist/component/{use-element-state-class-name-Dn_LpP1k.js → use-element-state-class-name-jIzS-0f1.js} +1 -1
  103. package/dist/component/{use-is-forced-open-dropdown-B2mdY7ku.js → use-is-forced-open-dropdown-CjqjVZmI.js} +1 -1
  104. package/dist/component/{use-service-options-base-DBvqU30V.js → use-service-options-base-1CckNmPE.js} +1 -1
  105. package/dist/component/{use-text-input-class-name-BUW0svzK.js → use-text-input-class-name-Bce8xMys.js} +2 -2
  106. package/dist/form.d.ts +1 -1
  107. package/package.json +2 -2
  108. package/dist/component/events-rsvp-rac-Dcrc1yxR.js +0 -49
  109. package/dist/component/options-rac.module-CTDdATiz.js +0 -8
  110. package/dist/component/radio-button-module-classes-CjDU2x_m.js +0 -133
@@ -1,5 +1,5 @@
1
1
  import r from "react";
2
- import { U as t } from "./url-input-field-rac-CPibLAWz.js";
2
+ import { U as t } from "./url-input-field-rac-DukAWJtU.js";
3
3
  const n = () => /* @__PURE__ */ r.createElement(t, null);
4
4
  export {
5
5
  n as UrlInputRAC
@@ -1,7 +1,7 @@
1
1
  import a from "classnames";
2
2
  import { s as o } from "./field-rac.module-B4l_0KRU.js";
3
- import { s as r } from "./form-CY-iFZdC.js";
4
- import { u as l } from "./use-element-state-class-name-Dn_LpP1k.js";
3
+ import { s as r } from "./form-CJ_Fa4im.js";
4
+ import { u as l } from "./use-element-state-class-name-jIzS-0f1.js";
5
5
  const O = {
6
6
  base: o.selectOption,
7
7
  selected: o.selectOptionSelected,
@@ -1,5 +1,5 @@
1
1
  import E from "classnames";
2
- import { b2 as f } from "./form-CY-iFZdC.js";
2
+ import { b2 as f } from "./form-CJ_Fa4im.js";
3
3
  const k = ({ globalClasses: e, moduleClasses: r }) => {
4
4
  var d;
5
5
  const c = ((d = f(...e.parent ? [
@@ -1,5 +1,5 @@
1
1
  import { useContext as T, useMemo as p } from "react";
2
- import { b3 as u, ag as O, b1 as _, F as n } from "./form-CY-iFZdC.js";
2
+ import { b3 as u, ag as O, b1 as _, F as n } from "./form-CJ_Fa4im.js";
3
3
  const a = [
4
4
  n.DROPDOWN,
5
5
  n.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 { b8 as v } from "./form-CY-iFZdC.js";
2
+ import { b8 as v } from "./form-CJ_Fa4im.js";
3
3
  const k = (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 = y((e) => {
5
5
  let d = e.map((l) => ({
@@ -1,6 +1,6 @@
1
- import { b9 as r, _ as i } from "./form-CY-iFZdC.js";
1
+ import { b9 as r, _ as i } from "./form-CJ_Fa4im.js";
2
2
  import { s } from "./field-rac.module-B4l_0KRU.js";
3
- import { u as m } from "./use-element-state-class-name-Dn_LpP1k.js";
3
+ import { u as m } from "./use-element-state-class-name-jIzS-0f1.js";
4
4
  const d = (...e) => {
5
5
  const { disabled: a, readOnly: t } = r(), o = m({
6
6
  globalClasses: i,
package/dist/form.d.ts CHANGED
@@ -7004,7 +7004,7 @@ type FormHandle = {
7004
7004
  validateStep?: (stepId: string) => Promise<boolean>;
7005
7005
  getValues?: () => FormValues;
7006
7006
  };
7007
- type FormState = 'success';
7007
+ type FormState = 'success' | 'hiddenFields';
7008
7008
  type FormProps = {
7009
7009
  id?: string;
7010
7010
  className?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/form-elements",
3
- "version": "1.113.0",
3
+ "version": "1.115.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": "2ea86578c2a6f3fadbd54066d4b721d2b8b4276a85960f0434dbda69"
159
+ "falconPackageHash": "5ad1ec08435f2f377125dfd0d287af916e2010997288b46293195446"
160
160
  }
@@ -1,49 +0,0 @@
1
- import t from "react";
2
- import { RicosViewer as m } from "@wix/ricos/viewer";
3
- import s from "classnames";
4
- import { a, s as o, R as c } from "./radio-button-module-classes-CjDU2x_m.js";
5
- import { E } from "./error-icon-hZxQ6DEy.js";
6
- import { s as l } from "./field-rac.module-B4l_0KRU.js";
7
- import { I as i, U as p, P as R, Q as O, v as _, p as L, R as I } from "./form-CY-iFZdC.js";
8
- import { u as D } from "./use-element-state-class-name-Dn_LpP1k.js";
9
- const e = ({ children: r, className: n }) => /* @__PURE__ */ t.createElement(a, {
10
- className: n
11
- }, r);
12
- e.Label = a.Label;
13
- e.Options = a.Options;
14
- e.Option = a.Option;
15
- e.Description = a.Description;
16
- e.Error = a.Error;
17
- const N = ({ content: r, locale: n }) => /* @__PURE__ */ t.createElement(m, {
18
- content: r,
19
- locale: n
20
- }), S = () => {
21
- const r = D({
22
- globalClasses: I,
23
- moduleClasses: c
24
- });
25
- return /* @__PURE__ */ t.createElement(e, {
26
- className: o.group
27
- }, /* @__PURE__ */ t.createElement(e.Label, {
28
- className: s(i, l.label)
29
- }, /* @__PURE__ */ t.createElement(e.Label.Required, {
30
- className: s(p, l.requiredMark)
31
- })), /* @__PURE__ */ t.createElement(e.Options, {
32
- className: s(R, o.options)
33
- }, /* @__PURE__ */ t.createElement(e.Option, {
34
- className: o.option
35
- }, /* @__PURE__ */ t.createElement(e.Option.Input, {
36
- className: o.optionInput
37
- }), /* @__PURE__ */ t.createElement(e.Option.Control, {
38
- className: r
39
- }), /* @__PURE__ */ t.createElement(e.Option.Label, {
40
- className: s(O, o.optionLabel)
41
- }))), /* @__PURE__ */ t.createElement(e.Error, {
42
- className: s(_, l.error)
43
- }, /* @__PURE__ */ t.createElement(E, null), /* @__PURE__ */ t.createElement(e.Error.Text, null)), /* @__PURE__ */ t.createElement(e.Description, {
44
- className: s(L, l.description)
45
- }, N));
46
- }, T = () => /* @__PURE__ */ t.createElement(S, null);
47
- export {
48
- T as EventsRsvpRAC
49
- };
@@ -1,8 +0,0 @@
1
- const o = "_group_ydgpj_1", p = "_options_ydgpj_5", t = "_optionLabel_ydgpj_31", n = {
2
- group: o,
3
- options: p,
4
- optionLabel: t
5
- };
6
- export {
7
- n as o
8
- };
@@ -1,133 +0,0 @@
1
- import a, { useRef as S, 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 { b9 as v, b6 as $, bj as F, bb as x } from "./form-CY-iFZdC.js";
4
- import { f as u, a as g } from "./find-child-C60k4CxG.js";
5
- import { D as U, E as j } from "./field-error-headless-DRkkbv__.js";
6
- import { L as M } from "./field-label-headless-m633nF93.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), y = (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: d, readOnly: _, required: m, onBlur: f, onFocus: b, hasError: r, FieldLayout: c, options: o } = v(), { inputId: h, labelId: C, ariaDescribedBy: I } = $(), s = u(e, i.Label), E = u(e, i.Options), q = u(e, i.Description), D = u(e, i.Error), N = y(o, l) ? L : l || null;
13
- return /* @__PURE__ */ a.createElement(c, {
14
- fieldId: n,
15
- renderLabel: () => g(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: d,
26
- isReadOnly: _,
27
- isRequired: m,
28
- isInvalid: r,
29
- onBlur: f,
30
- onFocus: b
31
- }, E),
32
- renderDescription: () => /* @__PURE__ */ a.createElement(a.Fragment, null, D, q)
33
- });
34
- }, K = ({ children: e, className: t }) => {
35
- const { options: n, addOther: l, addOtherLabel: O, id: d, numberOfColumns: _, hasError: m } = v(), { t: f } = F(), b = u(e, i.Option), r = S(null), c = O || f("add-other.default-other-option-label") || L;
36
- return x(() => {
37
- var o;
38
- (o = r.current) == null || o.focus();
39
- }, d), /* @__PURE__ */ a.createElement("div", {
40
- className: t,
41
- "data-columns": _,
42
- "data-invalid": m
43
- }, n.map((o, h) => g(b, {
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 && g(b, {
50
- key: L,
51
- value: L,
52
- label: c,
53
- isOther: !0
54
- }));
55
- }, p = ({ children: e, className: t, ...n }) => {
56
- var I;
57
- const { value: l, label: O, isOther: d = !1, radioRef: _ } = n, { value: m, options: f } = v(), b = u(e, p.Label), r = u(e, p.Input), c = u(e, p.Control), o = u(e, p.OtherInput), h = d ? y(f, m) : m === 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: _,
64
- className: C
65
- }, ({ isSelected: s, isHovered: E }) => /* @__PURE__ */ a.createElement(a.Fragment, null, g(c, {
66
- isSelected: s,
67
- isHovered: E
68
- }), g(b, {
69
- label: O
70
- })))), d && h && o);
71
- }, Q = ({ className: e, ...t }) => {
72
- const { label: n } = t;
73
- return /* @__PURE__ */ a.createElement("span", {
74
- className: e
75
- }, n);
76
- }, W = (e) => null, X = ({ className: e }) => {
77
- const { value: t, onChange: n, addOtherLabel: l, addOtherPlaceholder: O, otherInputCharacterLimit: d, disabled: _, readOnly: m, options: f } = v(), { t: b } = F(), r = S(null), c = y(f, t), o = l || b("add-other.default-other-option-label") || L, [h, C] = V(c && t ? J(t, l) : "");
78
- T(() => {
79
- var s;
80
- c && r.current && ((s = r.current) == null || s.focus());
81
- }, [
82
- c
83
- ]);
84
- const I = B((s) => {
85
- let E;
86
- s ? E = `${l}: ${s}` : E = o, n(E), C(s);
87
- }, [
88
- n,
89
- l,
90
- o
91
- ]);
92
- return /* @__PURE__ */ a.createElement(G, {
93
- "aria-label": o,
94
- value: h,
95
- onChange: I,
96
- isDisabled: _,
97
- isReadOnly: m
98
- }, /* @__PURE__ */ a.createElement(P, {
99
- ref: r,
100
- className: e,
101
- placeholder: O,
102
- maxLength: d
103
- }));
104
- };
105
- p.Label = Q;
106
- p.Input = W;
107
- p.Control = w;
108
- p.OtherInput = X;
109
- i.Label = M;
110
- i.Options = K;
111
- i.Option = p;
112
- i.Description = U;
113
- i.Error = j;
114
- const Y = "_labelImage_t7q71_1", Z = "_group_t7q71_26", ee = "_options_t7q71_30", te = "_option_t7q71_30", oe = "_optionInput_t7q71_57", ne = "_optionControl_t7q71_75", le = "_optionControlHover_t7q71_97", ae = "_optionControlSelected_t7q71_115", re = "_optionLabel_t7q71_150", R = {
115
- labelImage: Y,
116
- group: Z,
117
- options: ee,
118
- option: te,
119
- optionInput: oe,
120
- optionControl: ne,
121
- optionControlHover: le,
122
- optionControlSelected: ae,
123
- optionLabel: re
124
- }, be = {
125
- base: R.optionControl,
126
- selected: R.optionControlSelected,
127
- hover: R.optionControlHover
128
- };
129
- export {
130
- be as R,
131
- i as a,
132
- R as s
133
- };