@wix/form-elements 1.224.0 → 1.225.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 (125) hide show
  1. package/dist/component/{appointment-rac-UcRjJTHp.js → appointment-rac-DfglpMHC.js} +5 -5
  2. package/dist/component/{bookings-address-rac-DDjZGEhk.js → bookings-address-rac-BsAUAgUH.js} +1 -1
  3. package/dist/component/{bookings-email-rac-Dy2vh3dy.js → bookings-email-rac-DL0Q3omz.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-fDHMNznn.js → bookings-first-name-rac-C3eHsd6U.js} +1 -1
  5. package/dist/component/{bookings-header-rac-DLOeNNQf.js → bookings-header-rac-YVCqWtfu.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-Bx19ROVT.js → bookings-last-name-rac-BzBQBIMy.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-8FbvPiv1.js → bookings-login-bar-rac-MJvhVfsH.js} +1 -1
  8. package/dist/component/{bookings-phone-rac-CvPQgtvq.js → bookings-phone-rac-BTEB2Mzf.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-CO8bHRpD.js → bookings-rich-text-rac-BopQG6gV.js} +1 -1
  10. package/dist/component/calendar-icon-DOeHn3jt.js +19 -0
  11. package/dist/component/{checkbox-field-rac-tzsGw10P.js → checkbox-field-rac-NvQt_qcN.js} +6 -6
  12. package/dist/component/{checkbox-group-field-headless-CL18dpkq.js → checkbox-group-field-headless-CwLaBukh.js} +3 -3
  13. package/dist/component/{checkbox-group-field-rac-BmbxaprJ.js → checkbox-group-field-rac-BKQhos1K.js} +6 -6
  14. package/dist/component/{checkbox-group-rac-shsbUvRc.js → checkbox-group-rac-DMeC2rsZ.js} +1 -1
  15. package/dist/component/{checkbox-indicator-module-classes-DOxE4UQg.js → checkbox-indicator-module-classes-Cozvs_kk.js} +1 -1
  16. package/dist/component/{checkbox-rac-CobYYayd.js → checkbox-rac-Dea1HbEL.js} +1 -1
  17. package/dist/component/{contacts-address-rac-BoDqJCi1.js → contacts-address-rac-B64jiofc.js} +1 -1
  18. package/dist/component/{contacts-birthdate-rac-GAujbm-z.js → contacts-birthdate-rac-CM4GjTBV.js} +1 -1
  19. package/dist/component/{contacts-company-rac-CLcEz04V.js → contacts-company-rac-DTf9dwuR.js} +1 -1
  20. package/dist/component/{contacts-email-rac-D9q7TJwy.js → contacts-email-rac-B2vhNF_y.js} +1 -1
  21. package/dist/component/{contacts-first-name-rac-BAecbeNQ.js → contacts-first-name-rac-C5ywHnnX.js} +1 -1
  22. package/dist/component/{contacts-last-name-rac-Ccrw8BDa.js → contacts-last-name-rac-C2JbeG_J.js} +1 -1
  23. package/dist/component/{contacts-phone-rac-DA2N033V.js → contacts-phone-rac-Dm0PS175.js} +1 -1
  24. package/dist/component/{contacts-position-rac-0lAd-nCW.js → contacts-position-rac-t6bWP1Yh.js} +1 -1
  25. package/dist/component/{contacts-subscribe-rac-DB2ssF-E.js → contacts-subscribe-rac-D5EWQfGj.js} +1 -1
  26. package/dist/component/{contacts-tax-id-rac-B-Sn92Ho.js → contacts-tax-id-rac-CXqezyXg.js} +1 -1
  27. package/dist/component/{date-availability-CtfWLvii.js → date-availability-CtrbZvl3.js} +1 -1
  28. package/dist/component/date-input-field-rac-CPLAqaMS.js +365 -0
  29. package/dist/component/{date-input-rac-BnWwBe2i.js → date-input-rac-DjQc-F8G.js} +1 -1
  30. package/dist/component/date-picker-field-rac-pA2HwauY.js +386 -0
  31. package/dist/component/{date-picker-rac-BhI6jOQE.js → date-picker-rac-B6M3C8dN.js} +1 -1
  32. package/dist/component/date-time-input-field-rac-Qz6g31Eu.js +507 -0
  33. package/dist/component/{date-time-input-rac-DAbopLQt.js → date-time-input-rac-D7bS3bUX.js} +1 -1
  34. package/dist/component/{dext-checkbox-group-rac-D_HLv0tP.js → dext-checkbox-group-rac-caVwDBtB.js} +2 -2
  35. package/dist/component/{dext-checkbox-rac-BnBTlqEI.js → dext-checkbox-rac-CMxPnPT3.js} +1 -1
  36. package/dist/component/{dext-date-picker-rac-Co_yfhuz.js → dext-date-picker-rac-5WBCluMk.js} +1 -1
  37. package/dist/component/{dext-date-time-input-rac-BSpUehb2.js → dext-date-time-input-rac-C5d1PKMu.js} +1 -1
  38. package/dist/component/{dext-dropdown-rac-DPApx74L.js → dext-dropdown-rac-BPeVs1gI.js} +1 -1
  39. package/dist/component/{dext-email-rac-Dns6jFl4.js → dext-email-rac-BTXfUaaY.js} +1 -1
  40. package/dist/component/{dext-number-input-rac-DfN-xRID.js → dext-number-input-rac-DJt_dDVj.js} +1 -1
  41. package/dist/component/{dext-phone-rac-b5Ix3aTQ.js → dext-phone-rac-DDtneNPi.js} +1 -1
  42. package/dist/component/{dext-radio-group-rac-BAwIkDsJ.js → dext-radio-group-rac-DzLW_As4.js} +2 -2
  43. package/dist/component/{dext-rating-input-rac-mwQpCQUI.js → dext-rating-input-rac-0wwq1TR3.js} +1 -1
  44. package/dist/component/{dext-tags-rac-BGmElgw8.js → dext-tags-rac-Cj7nIZWu.js} +2 -2
  45. package/dist/component/{dext-text-area-rac-DN5HPqdg.js → dext-text-area-rac-D4Ej9MYY.js} +1 -1
  46. package/dist/component/{dext-text-input-rac-DEyDRhQ2.js → dext-text-input-rac-DgqBl2cb.js} +1 -1
  47. package/dist/component/{dext-url-input-rac-B1o3BAZE.js → dext-url-input-rac-CH-5gGxA.js} +1 -1
  48. package/dist/component/dismiss-icon-ejA47noY.js +69 -0
  49. package/dist/component/{donation-rac-Dp6PmATz.js → donation-rac-BwpE1YTR.js} +6 -6
  50. package/dist/component/dropdown-field-rac-CeywMN1E.js +40 -0
  51. package/dist/component/{dropdown-rac-eqQW-Z9k.js → dropdown-rac-DiXJLvXK.js} +1 -1
  52. package/dist/component/{ecom-address-rac-Q02N1v6i.js → ecom-address-rac-MD0hbW1w.js} +1 -1
  53. package/dist/component/{ecom-subscription-checkbox-rac-CmqVje9n.js → ecom-subscription-checkbox-rac-BssVeeXB.js} +2 -2
  54. package/dist/component/{email-input-field-rac-HmrdF3g7.js → email-input-field-rac-BXoueQNf.js} +4 -4
  55. package/dist/component/{events-repeater-rac-BSML2My0.js → events-repeater-rac-fm6lHaJ2.js} +6 -6
  56. package/dist/component/{events-rsvp-rac-0pI3cb2e.js → events-rsvp-rac-QV9f5chX.js} +4 -4
  57. package/dist/component/{field-error-headless-B3U_Gymg.js → field-error-headless-BIzDViIC.js} +1 -1
  58. package/dist/component/{field-label-headless-Cyy9_5qJ.js → field-label-headless-D_ubs4wp.js} +1 -1
  59. package/dist/component/field-rac.module-D0QzJXUv.js +32 -0
  60. package/dist/component/{file-upload-rac-hR9TZqk2.js → file-upload-rac-Csmt20hK.js} +5 -5
  61. package/dist/component/{fixed-payment-rac-CghZp6bR.js → fixed-payment-rac-BXr53Q8H.js} +4 -4
  62. package/dist/component/{form-BmSV4tOz.js → form-Dnq7LxSl.js} +1701 -1688
  63. package/dist/component/form.css +1 -1
  64. package/dist/component/form.js +1 -1
  65. package/dist/component/{header-field-rac-C7LDm89o.js → header-field-rac-9750XSxD.js} +2 -2
  66. package/dist/component/{header-rac-BNNzF5wQ.js → header-rac-DGSENeOk.js} +1 -1
  67. package/dist/component/{image-choice-rac-DLgxkKIZ.js → image-choice-rac-HX8H18Z3.js} +5 -5
  68. package/dist/component/{index-Dg8Fefid.js → index-pgW3uSoZ.js} +2 -2
  69. package/dist/component/{index-B8ObIJtL.js → index-vs-qkVQt.js} +4 -4
  70. package/dist/component/{isObjectLike-oBQcCfqW.js → isObjectLike-DoUrU0Hj.js} +1 -1
  71. package/dist/component/multiline-address-field-rac-B3gKz3u_.js +1818 -0
  72. package/dist/component/{multiline-address-rac-8MZkKfqY.js → multiline-address-rac-BBign7ot.js} +1 -1
  73. package/dist/component/native-select-BbxBpe3S.js +32 -0
  74. package/dist/component/{number-input-field-rac-Dmp8pNIq.js → number-input-field-rac-CO6DG443.js} +5 -5
  75. package/dist/component/{number-input-rac-2cN_bN_s.js → number-input-rac-C_Ndaqs4.js} +1 -1
  76. package/dist/component/{password-rac-CFdC1hoi.js → password-rac-pq-CaSkt.js} +5 -5
  77. package/dist/component/{payment-input-rac-BWElGzuv.js → payment-input-rac-Dco8O86k.js} +5 -5
  78. package/dist/component/phone-input-field-rac-BmcADPkC.js +558 -0
  79. package/dist/component/{phone-rac-CE9-90C3.js → phone-rac-B3aFMUMq.js} +1 -1
  80. package/dist/component/{product-list-rac-QU7Ocwvy.js → product-list-rac-Cw21coVk.js} +6 -6
  81. package/dist/component/{quiz-radio-group-rac-Hm7B7RlU.js → quiz-radio-group-rac-ChkNtxix.js} +1 -1
  82. package/dist/component/{radio-button-module-classes-CcGF7N_Y.js → radio-button-module-classes-BtiG6yqb.js} +3 -3
  83. package/dist/component/{radio-group-field-rac-Bk1JBBts.js → radio-group-field-rac-6SefZCE6.js} +5 -5
  84. package/dist/component/{radio-group-rac-D_YZnpID.js → radio-group-rac-BRhOFR2j.js} +1 -1
  85. package/dist/component/{rating-input-field-rac-zvA6QBGo.js → rating-input-field-rac-DaVnkb6k.js} +5 -5
  86. package/dist/component/{rating-input-rac-CXVQUoi-.js → rating-input-rac-B-2pZ61H.js} +1 -1
  87. package/dist/component/{rich-content-rac.module-CnZ4lMBG.js → rich-content-rac.module-C6LD--Ql.js} +1 -1
  88. package/dist/component/{rich-text-field-rac-DYQgVXdV.js → rich-text-field-rac-C-rfA6pQ.js} +2 -2
  89. package/dist/component/{rich-text-rac-Dk8396e-.js → rich-text-rac-1s5CGO8u.js} +1 -1
  90. package/dist/component/service-dropdown-rac-Bcr83doj.js +150 -0
  91. package/dist/component/{services-multi-choice-rac-D1RiVaLW.js → services-multi-choice-rac-C9nSuz9x.js} +7 -7
  92. package/dist/component/{signature-rac-DcGKMX84.js → signature-rac-pgob6vV_.js} +5 -5
  93. package/dist/component/{submit-button-rac-DbMxQlNH.js → submit-button-rac-CzcFB8hM.js} +2 -2
  94. package/dist/component/{tags-field-rac-Bi4lKutL.js → tags-field-rac-BBFxSNch.js} +6 -6
  95. package/dist/component/{tags-rac-DDCPnT8M.js → tags-rac-DkwugVvK.js} +1 -1
  96. package/dist/component/{text-area-field-rac-cre_K0MD.js → text-area-field-rac-DHT-fc0i.js} +5 -5
  97. package/dist/component/{text-area-rac-61wsMj-j.js → text-area-rac-cTq-i-bf.js} +1 -1
  98. package/dist/component/{text-input-field-rac-CV5_ba0x.js → text-input-field-rac-D3v-e_5R.js} +4 -4
  99. package/dist/component/{text-input-headless-kRv3KpSL.js → text-input-headless-B-DwvpWg.js} +3 -3
  100. package/dist/component/{text-input-rac-CwqZ6NXO.js → text-input-rac-CpG9qt33.js} +1 -1
  101. package/dist/component/time-input-rac-iL1G8Uwo.js +212 -0
  102. package/dist/component/to-native-time-Co_gOLkc.js +9 -0
  103. package/dist/component/{url-input-field-rac-C1JL_m6D.js → url-input-field-rac-1P81rK_4.js} +5 -5
  104. package/dist/component/{url-input-rac-C1CiGrCn.js → url-input-rac-D9c0BJKG.js} +1 -1
  105. package/dist/component/{use-dropdown-option-class-name-COGEk5d6.js → use-dropdown-option-class-name-CyC7rDCE.js} +3 -3
  106. package/dist/component/use-dropdown-trigger-class-name-BvRCjLXG.js +137 -0
  107. package/dist/component/{use-element-state-class-name-pSOX0Y0p.js → use-element-state-class-name-Cpdx_lRm.js} +1 -1
  108. package/dist/component/{use-hoverable-input-class-name-DGEpOAdi.js → use-hoverable-input-class-name-zEk2Vnct.js} +3 -3
  109. package/dist/component/{use-is-forced-open-dropdown-DPG1e5E9.js → use-is-forced-open-dropdown-_YI6RNG3.js} +1 -1
  110. package/dist/component/use-native-mobile-input-Czyhb-0V.js +31 -0
  111. package/dist/component/use-native-state-class-name-B0m2ghbS.js +18 -0
  112. package/dist/component/{use-service-options-base-BgIZ94V9.js → use-service-options-base-CbFG_r1u.js} +1 -1
  113. package/dist/component/use-text-input-class-name-CL-b4_Ph.js +6 -0
  114. package/package.json +3 -2
  115. package/dist/component/date-input-field-rac-CiAaOiYY.js +0 -309
  116. package/dist/component/date-picker-field-rac-Dg-chlTL.js +0 -320
  117. package/dist/component/date-time-input-field-rac-CbDvEPIp.js +0 -441
  118. package/dist/component/dropdown-field-rac-DY3GGJgP.js +0 -36
  119. package/dist/component/field-rac.module-DcyJyi2B.js +0 -25
  120. package/dist/component/multiline-address-field-rac-CgH7lDce.js +0 -1738
  121. package/dist/component/phone-input-field-rac-CsJGw_OE.js +0 -520
  122. package/dist/component/service-dropdown-rac-BSXYuBPJ.js +0 -145
  123. package/dist/component/time-input-rac-DuQar6zW.js +0 -161
  124. package/dist/component/use-dropdown-trigger-class-name-D6c-3Lyw.js +0 -98
  125. package/dist/component/use-text-input-class-name-BcbHdFV-.js +0 -6
@@ -1,161 +0,0 @@
1
- import e, { useCallback as V, useRef as v, useContext as x } from "react";
2
- import { RicosViewer as q } from "@wix/ricos/viewer";
3
- import m from "classnames";
4
- import { parseTime as B } from "@internationalized/date";
5
- import { TimeField as k, DateInput as U, DateSegment as _, TimeFieldStateContext as w } from "react-aria-components";
6
- import { bN as p, bK as j, bY as T, bP as K, X as Q, am as X, M as Y, I as z } from "./form-BmSV4tOz.js";
7
- import { f as u, a as F } from "./find-child-C60k4CxG.js";
8
- import { D as G, E as J } from "./field-error-headless-B3U_Gymg.js";
9
- import { L as W } from "./field-label-headless-Cyy9_5qJ.js";
10
- import { E as Z } from "./error-icon-hZxQ6DEy.js";
11
- import { H as S } from "./custom-focus-class-_483Pkwp.js";
12
- import { s as f } from "./field-rac.module-DcyJyi2B.js";
13
- import { u as $ } from "./use-text-input-class-name-BcbHdFV-.js";
14
- const r = ({ children: t }) => {
15
- const { id: n, value: s, onChange: a, disabled: i, readOnly: o, required: c, onBlur: l, onFocus: E, use24HourFormat: b, FieldLayout: C, hasError: I } = p(), { inputId: g, ariaDescribedBy: D, labelId: L } = j(), R = V((M) => {
16
- const H = ae(M);
17
- a(H);
18
- }, [
19
- a
20
- ]), N = u(t, r.Label), y = u(t, r.Time), P = u(t, r.Description), A = u(t, r.Error), O = ne(s);
21
- return /* @__PURE__ */ e.createElement(C, {
22
- fieldId: n,
23
- renderLabel: () => N,
24
- renderInput: () => /* @__PURE__ */ e.createElement(k, {
25
- "aria-labelledby": L,
26
- id: g,
27
- "aria-describedby": D,
28
- value: O,
29
- onChange: R,
30
- isDisabled: i,
31
- isReadOnly: o,
32
- isInvalid: I,
33
- isRequired: c,
34
- onBlur: l,
35
- onFocus: E,
36
- hourCycle: b ? 24 : 12
37
- }, y),
38
- renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, A, P)
39
- });
40
- }, d = ({ children: t, className: n }) => {
41
- const { hasError: s, hidePlaceholder: a } = p(), i = u(t, d.Hour), o = u(t, d.Minute), c = u(t, d.Period);
42
- return /* @__PURE__ */ e.createElement(U, {
43
- className: n,
44
- "data-invalid": s || void 0,
45
- "data-placeholder-hidden": a || void 0
46
- }, (l) => {
47
- switch (l.type) {
48
- case "hour":
49
- return F(i, {
50
- segment: l
51
- }) || /* @__PURE__ */ e.createElement(e.Fragment, null);
52
- case "minute":
53
- return F(o, {
54
- segment: l
55
- }) || /* @__PURE__ */ e.createElement(e.Fragment, null);
56
- case "dayPeriod":
57
- return F(c, {
58
- segment: l
59
- }) || /* @__PURE__ */ e.createElement(e.Fragment, null);
60
- case "literal":
61
- return /* @__PURE__ */ e.createElement(_, {
62
- segment: l
63
- });
64
- default:
65
- return /* @__PURE__ */ e.createElement(e.Fragment, null);
66
- }
67
- });
68
- }, ee = ({ className: t, ...n }) => {
69
- const { id: s, hidePlaceholder: a } = p(), { segment: i } = n, { t: o } = T(), c = v(null);
70
- K(() => {
71
- var E;
72
- (E = c.current) == null || E.focus({
73
- preventScroll: !0
74
- });
75
- }, s);
76
- const l = a ? void 0 : o("field.date.placeholder.hour");
77
- return /* @__PURE__ */ e.createElement(_, {
78
- ref: c,
79
- segment: i,
80
- className: t,
81
- ...l && {
82
- placeholder: l
83
- }
84
- });
85
- }, te = ({ className: t, ...n }) => {
86
- const { hidePlaceholder: s } = p(), { segment: a } = n, { t: i } = T(), o = s ? void 0 : i("field.date.placeholder.minute");
87
- return /* @__PURE__ */ e.createElement(_, {
88
- segment: a,
89
- className: t,
90
- ...o && {
91
- placeholder: o
92
- }
93
- });
94
- }, re = ({ className: t, ...n }) => {
95
- const { hidePlaceholder: s } = p(), { segment: a } = n, { t: i } = T(), o = x(w), c = s ? void 0 : i("field.date.placeholder.period"), l = () => o == null ? void 0 : o.increment("dayPeriod");
96
- return /* @__PURE__ */ e.createElement(_, {
97
- segment: a,
98
- className: t,
99
- onClick: l,
100
- ...c && {
101
- placeholder: c
102
- }
103
- });
104
- };
105
- d.Hour = ee;
106
- d.Minute = te;
107
- d.Period = re;
108
- r.Label = W;
109
- r.Time = d;
110
- r.Description = G;
111
- r.Error = J;
112
- function ne(t) {
113
- if (!t)
114
- return null;
115
- try {
116
- return B(t);
117
- } catch {
118
- return null;
119
- }
120
- }
121
- function ae(t) {
122
- if (!t)
123
- return null;
124
- const n = String(t.hour).padStart(2, "0"), s = String(t.minute).padStart(2, "0"), a = String(t.second).padStart(2, "0");
125
- return [
126
- n,
127
- s,
128
- a
129
- ].join(":");
130
- }
131
- const oe = "_time_5p151_1", le = "_hour_5p151_17", se = "_minute_5p151_18", ie = "_period_5p151_19", h = {
132
- time: oe,
133
- hour: le,
134
- minute: se,
135
- period: ie
136
- }, ce = ({ content: t, locale: n }) => /* @__PURE__ */ e.createElement(q, {
137
- content: t,
138
- locale: n
139
- }), me = () => {
140
- const t = $(h.time);
141
- return /* @__PURE__ */ e.createElement(r, null, /* @__PURE__ */ e.createElement(r.Label, {
142
- className: m(Q, f.label)
143
- }, /* @__PURE__ */ e.createElement(r.Label.Required, {
144
- className: m(X, f.requiredMark)
145
- })), /* @__PURE__ */ e.createElement(r.Time, {
146
- className: t
147
- }, /* @__PURE__ */ e.createElement(r.Time.Hour, {
148
- className: m(h.hour, S)
149
- }), /* @__PURE__ */ e.createElement(r.Time.Minute, {
150
- className: m(h.minute, S)
151
- }), /* @__PURE__ */ e.createElement(r.Time.Period, {
152
- className: m(h.period, S)
153
- })), /* @__PURE__ */ e.createElement(r.Error, {
154
- className: m(Y, f.error)
155
- }, /* @__PURE__ */ e.createElement(Z, null), /* @__PURE__ */ e.createElement(r.Error.Text, null)), /* @__PURE__ */ e.createElement(r.Description, {
156
- className: m(z, f.description)
157
- }, ce));
158
- }, ge = () => /* @__PURE__ */ e.createElement(me, null);
159
- export {
160
- ge as TimeInputRAC
161
- };
@@ -1,98 +0,0 @@
1
- import e, { useState as F, useCallback as v, useRef as M } from "react";
2
- import { UNSAFE_PortalProvider as $ } from "react-aria";
3
- import { VisuallyHidden as k, Select as G, SelectValue as Y, ListBoxItem as K } from "react-aria-components";
4
- import { bN as b, bK as D, bY as U, bP as W, L as j } from "./form-BmSV4tOz.js";
5
- import { f as d, a as L } from "./find-child-C60k4CxG.js";
6
- import { D as z, E as J } from "./field-error-headless-B3U_Gymg.js";
7
- import { L as Q } from "./field-label-headless-Cyy9_5qJ.js";
8
- import { E as X, S as Z, N as ee } from "./non-modal-popover-D-u13tmp.js";
9
- import { b as te } from "./use-is-forced-open-dropdown-DPG1e5E9.js";
10
- import { V as ne } from "./use-dropdown-option-class-name-COGEk5d6.js";
11
- import { u as re } from "./use-hoverable-input-class-name-DGEpOAdi.js";
12
- const r = ({ children: t }) => {
13
- const { id: l, value: a, defaultValue: s, options: u = [], readOnly: o, onChange: n, placeholder: m, disabled: i, required: p, onBlur: C, onFocus: I, FieldLayout: y, hasError: N } = b(), [P, T] = F(!1), E = te(l), [R, h] = F(null), S = a && u.some((c) => (c.value ?? c.label) === a) ? a : s || null, { labelId: f } = D(), { t: V } = U(), O = `${f}-required`, B = v((c) => {
14
- o || n(typeof c == "string" ? c : null);
15
- }, [
16
- n,
17
- o
18
- ]), _ = v((c) => T(c && !i && !o), [
19
- i,
20
- o
21
- ]), q = d(t, r.Label), x = d(t, r.Trigger), w = d(t, r.Options), A = d(t, r.Description), H = d(t, r.Error);
22
- return /* @__PURE__ */ e.createElement(y, {
23
- fieldId: l,
24
- renderLabel: () => q,
25
- renderInput: () => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", {
26
- ref: h,
27
- style: {
28
- display: "contents"
29
- }
30
- }), p ? /* @__PURE__ */ e.createElement(k, {
31
- id: O
32
- }, V("settings.required-indicator-text")) : null, /* @__PURE__ */ e.createElement($, {
33
- getContainer: () => R
34
- }, /* @__PURE__ */ e.createElement(G, {
35
- "aria-labelledby": p ? `${f} ${O}` : f,
36
- value: S,
37
- isOpen: E || P && !i && !o,
38
- onOpenChange: E ? void 0 : _,
39
- onChange: B,
40
- isDisabled: i,
41
- isInvalid: N,
42
- isRequired: p,
43
- placeholder: m || X,
44
- onBlur: C,
45
- onFocus: I
46
- }, x, L(w, {
47
- isForcedOpen: E
48
- })))),
49
- renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, H, A)
50
- });
51
- }, ae = ({ children: t, className: l }) => {
52
- const { inputId: a, ariaDescribedBy: s } = D(), { id: u, hasError: o, isLoading: n } = b(), m = M(null);
53
- return W(() => {
54
- var i;
55
- (i = m.current) == null || i.focus({
56
- preventScroll: !0
57
- });
58
- }, u), /* @__PURE__ */ e.createElement(Z, {
59
- ref: m,
60
- id: a,
61
- "aria-describedby": s,
62
- className: l,
63
- "data-invalid": o || void 0,
64
- "data-loading": n || void 0
65
- }, /* @__PURE__ */ e.createElement(Y, null), t);
66
- }, g = ({ children: t, className: l, ...a }) => {
67
- const { isForcedOpen: s } = a, { options: u = [] } = b(), o = d(t, g.Option);
68
- return /* @__PURE__ */ e.createElement(ee, {
69
- className: l,
70
- containerPadding: 0,
71
- offset: 0
72
- }, /* @__PURE__ */ e.createElement(ne, {
73
- isForcedOpen: s,
74
- autoFocus: s ? !1 : void 0
75
- }, u.map((n) => L(o, {
76
- key: n.value ?? n.label,
77
- value: n.value ?? n.label,
78
- label: n.label
79
- }))));
80
- }, se = ({ className: t, ...l }) => {
81
- const { value: a, label: s } = l;
82
- return /* @__PURE__ */ e.createElement(K, {
83
- className: t,
84
- id: a,
85
- textValue: s
86
- }, s);
87
- };
88
- g.Option = se;
89
- r.Label = Q;
90
- r.Trigger = ae;
91
- r.Options = g;
92
- r.Description = z;
93
- r.Error = J;
94
- const ge = (...t) => re(j, t);
95
- export {
96
- r as D,
97
- ge as u
98
- };
@@ -1,6 +0,0 @@
1
- import { az as a } from "./form-BmSV4tOz.js";
2
- import { u as e } from "./use-hoverable-input-class-name-DGEpOAdi.js";
3
- const m = (...s) => e(a, s);
4
- export {
5
- m as u
6
- };