solid-baseui 0.1.0-alpha.1 → 0.1.0-alpha.3

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 (189) hide show
  1. package/CHANGELOG.md +56 -0
  2. package/README.md +30 -35
  3. package/dist/lib/client/DialogHandle-DluOK_7u.js +521 -0
  4. package/dist/lib/client/DialogPopup-CfEb3F54.js +138 -0
  5. package/dist/lib/client/FieldControl-eDe-Jnp9.js +142 -0
  6. package/dist/lib/client/{FieldRootContext-izCEh80D.js → FieldRootContext-D3fuVjs3.js} +1 -1
  7. package/dist/lib/client/{FocusManager-NP1uPXTi.js → FocusManager-q7z7PMV1.js} +92 -89
  8. package/dist/lib/client/{InternalBackdrop-cSK13gaM.js → InternalBackdrop-B8_lfUvf.js} +1 -1
  9. package/dist/lib/client/{MenuSubmenuTrigger-yfncqM-D.js → MenuSubmenuTrigger-DMb5CwTF.js} +386 -386
  10. package/dist/lib/client/{PopupHandle-CQI6Om1Z.js → PopupHandle-DyX5gY1e.js} +17 -11
  11. package/dist/lib/client/{PopupStore-Du0O57fL.js → PopupStore-BjRwcvbG.js} +91 -88
  12. package/dist/lib/client/PopupViewport-BanYHrD-.js +154 -0
  13. package/dist/lib/client/{TriggerFocusGuards-Cs8LVBj5.js → TriggerFocusGuards-Fzspp3Y1.js} +2 -2
  14. package/dist/lib/client/accordion/index.js +1 -1
  15. package/dist/lib/client/{accordion-BFeZFpJZ.js → accordion-CA2DfX67.js} +144 -144
  16. package/dist/lib/client/alert-dialog/index.js +1 -1
  17. package/dist/lib/client/{alert-dialog-BxGUF8_Q.js → alert-dialog-Bup88Dpx.js} +2 -2
  18. package/dist/lib/client/autocomplete/index.js +1 -1
  19. package/dist/lib/client/{autocomplete-C9QA98XD.js → autocomplete-oyy_uRpU.js} +2 -2
  20. package/dist/lib/client/avatar/index.js +1 -1
  21. package/dist/lib/client/avatar-DNZ4fnBd.js +191 -0
  22. package/dist/lib/client/button/index.js +1 -1
  23. package/dist/lib/client/button-BJZYmCVv.js +88 -0
  24. package/dist/lib/client/checkbox/index.js +1 -1
  25. package/dist/lib/client/checkbox-group/index.js +1 -1
  26. package/dist/lib/client/{checkbox-group-CwMDoSTK.js → checkbox-group-DGyrciZJ.js} +1 -1
  27. package/dist/lib/client/checkbox-sQHYTbpB.js +425 -0
  28. package/dist/lib/client/collapsible/index.js +1 -1
  29. package/dist/lib/client/collapsible-BENbFFCc.js +230 -0
  30. package/dist/lib/client/combobox/index.js +1 -1
  31. package/dist/lib/client/{combobox-6DhOdzit.js → combobox-BGH8QLXH.js} +143 -141
  32. package/dist/lib/client/compositeNavigation-DCt1sQon.js +82 -0
  33. package/dist/lib/client/{constants-cOVxAoxB.js → constants-ByOMFJAe.js} +100 -100
  34. package/dist/lib/client/context-menu/index.js +1 -1
  35. package/dist/lib/client/context-menu-xQ1sBCET.js +220 -0
  36. package/dist/lib/client/{createAnchorPositioning-D96gu-Dz.js → createAnchorPositioning-DCXIApS1.js} +1 -1
  37. package/dist/lib/client/{createAnchoredPopupScrollLock-Cx0cbh1_.js → createAnchoredPopupScrollLock-BxKpJbCE.js} +2 -2
  38. package/dist/lib/client/{createClickInteraction-CTaIFBiV.js → createClickInteraction-BeBsTqtY.js} +1 -1
  39. package/dist/lib/client/{createFocusInteraction--s9_qBf3.js → createFocusInteraction-DQPWkZe2.js} +7 -7
  40. package/dist/lib/client/{createPopupAutoResize-Dn-stj-8.js → createPopupAutoResize-CSNpMz5v.js} +3 -3
  41. package/dist/lib/client/dialog/index.js +1 -1
  42. package/dist/lib/client/{dialog-B9tR9X48.js → dialog-C0EF0a5u.js} +2 -2
  43. package/dist/lib/client/{dom-BEAeQ9Eb.js → dom-lDdayFF_.js} +25 -15
  44. package/dist/lib/client/drawer/index.js +1 -1
  45. package/dist/lib/client/{drawer-dyr3_sKQ.js → drawer-uKoNBwDU.js} +519 -518
  46. package/dist/lib/client/field/index.js +1 -1
  47. package/dist/lib/client/{field-CjUAjp1m.js → field-DIMrgpBW.js} +144 -144
  48. package/dist/lib/client/form/index.js +1 -1
  49. package/dist/lib/client/form-Bqq8wSLY.js +109 -0
  50. package/dist/lib/client/index.js +34 -34
  51. package/dist/lib/client/input/index.js +1 -1
  52. package/dist/lib/client/{input-_QHvSSqM.js → input-YthuKwIE.js} +1 -1
  53. package/dist/lib/client/internals/composeEventHandlers.js +14 -8
  54. package/dist/lib/client/internals/field-root-context/index.js +2 -2
  55. package/dist/lib/client/{mergeStyleValue-DhTA9Nwe.js → isSolidAccessor-BH_FevwH.js} +1 -12
  56. package/dist/lib/client/menu/index.js +1 -1
  57. package/dist/lib/client/{menu-DLqUBmMK.js → menu-4rNLN6aX.js} +79 -79
  58. package/dist/lib/client/menubar/index.js +1 -1
  59. package/dist/lib/client/menubar-nFQGtNmY.js +163 -0
  60. package/dist/lib/client/mergeStyleValue-Dcd36yxZ.js +12 -0
  61. package/dist/lib/client/navigation-menu/index.js +1 -1
  62. package/dist/lib/client/{navigation-menu-mVHV41Ky.js → navigation-menu-BbRyun3a.js} +284 -284
  63. package/dist/lib/client/number-field/index.js +1 -1
  64. package/dist/lib/client/{number-field-DusLw_0X.js → number-field-hT_H0hVu.js} +356 -356
  65. package/dist/lib/client/otp-field/index.js +1 -1
  66. package/dist/lib/client/otp-field-lsy2iGID.js +584 -0
  67. package/dist/lib/client/popover/index.js +1 -1
  68. package/dist/lib/client/{popover-Cv7xn0nW.js → popover-Cmvmuf1L.js} +250 -248
  69. package/dist/lib/client/{popupStateMapping-C6jQ_LKo.js → popupStateMapping-nhukB8NK.js} +51 -51
  70. package/dist/lib/client/preview-card/index.js +1 -1
  71. package/dist/lib/client/{preview-card-FTN_aafM.js → preview-card-Dtu8AnBN.js} +168 -168
  72. package/dist/lib/client/radio/index.js +1 -1
  73. package/dist/lib/client/{radio-DA_oZhQT.js → radio-CeCU-Qqi.js} +77 -77
  74. package/dist/lib/client/radio-group/index.js +1 -1
  75. package/dist/lib/client/radio-group-NbuJvjQe.js +195 -0
  76. package/dist/lib/client/{safePolygon-DJG0VIVo.js → safePolygon-DVAR5dQD.js} +70 -70
  77. package/dist/lib/client/scroll-area/index.js +1 -1
  78. package/dist/lib/client/scroll-area-DqbvoAd7.js +717 -0
  79. package/dist/lib/client/{scrollable-SRNYlhF7.js → scrollable-BVaDUXng.js} +12 -12
  80. package/dist/lib/client/select/index.js +1 -1
  81. package/dist/lib/client/{select-DSPJt7Rk.js → select-Dad51Xbn.js} +635 -634
  82. package/dist/lib/client/slider/index.js +1 -1
  83. package/dist/lib/client/slider-CLSKFq_M.js +927 -0
  84. package/dist/lib/client/switch/index.js +1 -1
  85. package/dist/lib/client/{switch-CPl7QHKI.js → switch-Bzuu5EIg.js} +61 -61
  86. package/dist/lib/client/tabs/index.js +1 -1
  87. package/dist/lib/client/{tabs-Bn4rZDyZ.js → tabs-DWiBDv8D.js} +252 -249
  88. package/dist/lib/client/toast/index.js +1 -1
  89. package/dist/lib/client/{toast-7LdqZWOs.js → toast-DmtPJW2k.js} +353 -353
  90. package/dist/lib/client/toggle/index.js +1 -1
  91. package/dist/lib/client/{toggle-CsC37e3e.js → toggle-CAe-Z8Xn.js} +33 -33
  92. package/dist/lib/client/toggle-group/index.js +1 -1
  93. package/dist/lib/client/{toggle-group-DSWb9HxN.js → toggle-group-BbQg5s-m.js} +44 -44
  94. package/dist/lib/client/toolbar/index.js +1 -1
  95. package/dist/lib/client/{toolbar-DcCi3HNp.js → toolbar-BXT_g-oX.js} +218 -218
  96. package/dist/lib/client/tooltip/index.js +1 -1
  97. package/dist/lib/client/{tooltip-D-PkGco9.js → tooltip-h2r2_Xuo.js} +250 -249
  98. package/dist/lib/client/{useFilteredItems-B7z2CGMV.js → useFilteredItems-BX0BEuSI.js} +850 -819
  99. package/dist/lib/server/{DialogHandle-nJSSy_jM.js → DialogHandle-BGIISmG7.js} +16 -16
  100. package/dist/lib/server/{DialogPopup-Da1aIxVA.js → DialogPopup-C2ZDGf42.js} +4 -4
  101. package/dist/lib/server/{FieldControl-BDeNR3ug.js → FieldControl-CDMMyvuj.js} +6 -6
  102. package/dist/lib/server/{FieldRootContext-IC-LWzVp.js → FieldRootContext-Bfpna6gA.js} +3 -3
  103. package/dist/lib/server/{FocusManager-1LfoCsya.js → FocusManager-D-xgblGs.js} +9 -3
  104. package/dist/lib/server/{InternalBackdrop-C_iDPVR-.js → InternalBackdrop-D_2zAWnl.js} +1 -1
  105. package/dist/lib/server/{MenuSubmenuTrigger-rR8ZN7YR.js → MenuSubmenuTrigger-BMQKlOvU.js} +50 -50
  106. package/dist/lib/server/{PopupHandle-Ct6wywmP.js → PopupHandle-QNj4mED2.js} +14 -5
  107. package/dist/lib/server/{PopupStore-kHjFPiQ5.js → PopupStore-evylvVnN.js} +5 -2
  108. package/dist/lib/server/{PopupViewport-DftN5VUp.js → PopupViewport-BDttjORN.js} +37 -27
  109. package/dist/lib/server/{TriggerFocusGuards-CvoGfft9.js → TriggerFocusGuards-B9GNbLrL.js} +2 -2
  110. package/dist/lib/server/accordion/index.js +7 -7
  111. package/dist/lib/server/alert-dialog/index.js +2 -2
  112. package/dist/lib/server/autocomplete/index.js +2 -2
  113. package/dist/lib/server/avatar/index.js +3 -3
  114. package/dist/lib/server/button/index.js +6 -6
  115. package/dist/lib/server/checkbox/index.js +7 -7
  116. package/dist/lib/server/checkbox-group/index.js +1 -1
  117. package/dist/lib/server/collapsible/index.js +6 -6
  118. package/dist/lib/server/combobox/index.js +18 -18
  119. package/dist/lib/server/{compositeNavigation-BRVT1C38.js → compositeNavigation-D5jKM4yk.js} +32 -1
  120. package/dist/lib/server/{constants-D7ciIzsV.js → constants-ByqXubhO.js} +2 -2
  121. package/dist/lib/server/context-menu/index.js +9 -9
  122. package/dist/lib/server/{createAnchorPositioning-B5Y0WEev.js → createAnchorPositioning-DrQYe7RS.js} +1 -1
  123. package/dist/lib/server/{createAnchoredPopupScrollLock-DFuUrykR.js → createAnchoredPopupScrollLock-q6gnOSmv.js} +2 -2
  124. package/dist/lib/server/{createClickInteraction-BYsMgvup.js → createClickInteraction-D7oc1Vco.js} +1 -1
  125. package/dist/lib/server/{createFocusInteraction-DMyKsniI.js → createFocusInteraction-DFKr4G7a.js} +1 -1
  126. package/dist/lib/server/{createPopupAutoResize-ImBjwdj_.js → createPopupAutoResize-Cg0-lLf4.js} +1 -1
  127. package/dist/lib/server/dialog/index.js +2 -2
  128. package/dist/lib/server/{dom-Crg_2R-j.js → dom-D8_aB1yy.js} +14 -1
  129. package/dist/lib/server/drawer/index.js +38 -34
  130. package/dist/lib/server/field/index.js +6 -6
  131. package/dist/lib/server/form/index.js +2 -2
  132. package/dist/lib/server/input/index.js +1 -1
  133. package/dist/lib/server/internals/composeEventHandlers.js +15 -9
  134. package/dist/lib/server/internals/field-root-context/index.js +1 -1
  135. package/dist/lib/server/{mergeStyleValue-BwJ10_X2.js → isSolidAccessor-CZpzAH5l.js} +1 -20
  136. package/dist/lib/server/menu/index.js +17 -17
  137. package/dist/lib/server/menubar/index.js +4 -4
  138. package/dist/lib/server/mergeStyleValue-DecVaoac.js +20 -0
  139. package/dist/lib/server/navigation-menu/index.js +21 -21
  140. package/dist/lib/server/number-field/index.js +21 -21
  141. package/dist/lib/server/otp-field/index.js +8 -8
  142. package/dist/lib/server/popover/index.js +27 -26
  143. package/dist/lib/server/{popupStateMapping-B2KsiiLb.js → popupStateMapping-VHqr6M4H.js} +1 -1
  144. package/dist/lib/server/preview-card/index.js +16 -16
  145. package/dist/lib/server/radio/index.js +6 -6
  146. package/dist/lib/server/radio-group/index.js +5 -5
  147. package/dist/lib/server/{safePolygon-C1GNJbKR.js → safePolygon-B8QtiIZ3.js} +1 -1
  148. package/dist/lib/server/scroll-area/index.js +18 -18
  149. package/dist/lib/server/{scrollable-CjsSxbGr.js → scrollable-C9Pgq8T5.js} +1 -1
  150. package/dist/lib/server/select/index.js +39 -38
  151. package/dist/lib/server/slider/index.js +14 -14
  152. package/dist/lib/server/switch/index.js +9 -9
  153. package/dist/lib/server/tabs/index.js +12 -8
  154. package/dist/lib/server/toast/index.js +32 -32
  155. package/dist/lib/server/toggle/index.js +7 -7
  156. package/dist/lib/server/toggle-group/index.js +2 -2
  157. package/dist/lib/server/toolbar/index.js +14 -14
  158. package/dist/lib/server/tooltip/index.js +32 -27
  159. package/dist/lib/server/{useFilteredItems-DCxq20Is.js → useFilteredItems-BmhL0nf1.js} +181 -137
  160. package/dist/lib/types/accordion/trigger/AccordionTrigger.d.ts +7 -7
  161. package/dist/lib/types/combobox/chip/ComboboxChip.d.ts +2 -0
  162. package/dist/lib/types/combobox/root/ComboboxRoot.d.ts +6 -1
  163. package/dist/lib/types/combobox/store/ComboboxStore.d.ts +1 -0
  164. package/dist/lib/types/combobox/utils/handleInputPress.d.ts +1 -1
  165. package/dist/lib/types/field/control/FieldControl.d.ts +5 -5
  166. package/dist/lib/types/internals/composeEventHandlers.d.ts +9 -2
  167. package/dist/lib/types/internals/field-root-context/FieldRootContext.d.ts +1 -0
  168. package/dist/lib/types/internals/overlay/dom.d.ts +2 -0
  169. package/dist/lib/types/number-field/input/NumberFieldInput.d.ts +5 -5
  170. package/dist/lib/types/slider/track/SliderTrack.d.ts +2 -2
  171. package/dist/lib/types/toolbar/link/ToolbarLink.d.ts +10 -3
  172. package/dist/lib/types/toolbar/root/ToolbarRoot.d.ts +10 -4
  173. package/package.json +2 -2
  174. package/dist/lib/client/DialogHandle-BGyIbcvg.js +0 -521
  175. package/dist/lib/client/DialogPopup-Df7MC358.js +0 -138
  176. package/dist/lib/client/FieldControl-C0PATyKV.js +0 -142
  177. package/dist/lib/client/PopupViewport-IS4XU03s.js +0 -152
  178. package/dist/lib/client/avatar-BQoEzzav.js +0 -191
  179. package/dist/lib/client/button-akYS6FyY.js +0 -88
  180. package/dist/lib/client/checkbox-DOXtzBhA.js +0 -425
  181. package/dist/lib/client/collapsible-t8YReaIp.js +0 -230
  182. package/dist/lib/client/compositeNavigation-sxniYTc7.js +0 -58
  183. package/dist/lib/client/context-menu-CplDpqmi.js +0 -220
  184. package/dist/lib/client/form-6Ne_bWQX.js +0 -109
  185. package/dist/lib/client/menubar-DhPRUQZ6.js +0 -163
  186. package/dist/lib/client/otp-field-D-B9tZzF.js +0 -584
  187. package/dist/lib/client/radio-group-CWtQxWDl.js +0 -195
  188. package/dist/lib/client/scroll-area-NCr49LkD.js +0 -717
  189. package/dist/lib/client/slider-CWq9hxFf.js +0 -927
@@ -0,0 +1,109 @@
1
+ import { t as e } from "./useRender-CxZ8PI-g.js";
2
+ import { w as t } from "./reasons-Co5CzjKq.js";
3
+ import { n, t as r } from "./resolveStyle-XcgAuaKR.js";
4
+ import { createGenericEventDetails as i } from "./internals/createBaseUIEventDetails.js";
5
+ import { composeEventHandlers as a, liveEventHandler as o } from "./internals/composeEventHandlers.js";
6
+ import { t as s } from "./FormContext-CwLBtm_d.js";
7
+ import { t as c } from "./form-types-DFBxc1LF.js";
8
+ import { claimElement as l, createComponent as u, getNextElement as d, mergeProps as f, runHydrationEvents as p, spread as m, template as h } from "@solidjs/web";
9
+ import { createEffect as g, createMemo as _, createSignal as v, omit as y, untrack as b } from "solid-js";
10
+ //#region src/form/Form.tsx
11
+ var x = /* @__PURE__ */ h("<form>"), S = Object.freeze({}), C = {};
12
+ function w(h) {
13
+ let w = null, E = !1, D = !1, O = 0, k = /* @__PURE__ */ new Map(), A = h, j = b(() => A.errors), M = h, N = y(h, "actionsRef", "render", "class", "errors", "onFormSubmit", "onSubmit", "ref", "style", "validationMode"), [P, F] = v(b(() => A.errors) ?? S), I = _(() => A.validationMode ?? "onSubmit"), L = _(() => n(h.class, C)), R = e(h, () => C, (e) => (() => {
14
+ var t = d(x);
15
+ return l(t), m(t, e, !1), p(), t;
16
+ })()), z = _(() => r(h.style, C));
17
+ function B(e) {
18
+ return k.set(e.token, e), () => {
19
+ k.get(e.token) === e && k.delete(e.token);
20
+ };
21
+ }
22
+ function V() {
23
+ let e = {};
24
+ for (let t of k.values()) {
25
+ let n = t.name();
26
+ n && (e[n] = t.getValue());
27
+ }
28
+ return e;
29
+ }
30
+ function H(e = b(P)) {
31
+ let t = !1, n = null;
32
+ for (let r of k.values()) {
33
+ if (!r.isInvalid() && !c(e, r.name())) continue;
34
+ t = !0;
35
+ let i = r.getControl();
36
+ i && (!n || T(i, n)) && (n = i);
37
+ }
38
+ return n ? (n.focus(), n.tagName === "INPUT" && n.select(), !0) : t;
39
+ }
40
+ function U(e) {
41
+ e && F((t) => {
42
+ if (!Object.hasOwn(t, e)) return t;
43
+ let n = { ...t };
44
+ return delete n[e], n;
45
+ });
46
+ }
47
+ let W = { validate(e) {
48
+ if (e) {
49
+ for (let t of k.values()) if (t.name() === e) {
50
+ t.validate();
51
+ break;
52
+ }
53
+ return;
54
+ }
55
+ for (let e of k.values()) e.validate();
56
+ } }, G = a(o(() => M.onSubmit));
57
+ function K(e) {
58
+ D = !0, O += 1;
59
+ for (let e of k.values()) e.validate();
60
+ if (H()) {
61
+ e.preventDefault();
62
+ return;
63
+ }
64
+ E = !0, G.call(e.currentTarget, e);
65
+ let n = A.onFormSubmit;
66
+ n && (e.preventDefault(), n(V(), i(t, e)));
67
+ }
68
+ let q = {
69
+ errors: P,
70
+ validationMode: I,
71
+ submitAttempted: () => D,
72
+ submitCount: () => O,
73
+ formElement: () => w,
74
+ clearError: U,
75
+ registerField: B,
76
+ getFormValues: V
77
+ };
78
+ return g(() => A.errors, (e) => {
79
+ if (e === j) return;
80
+ j = e;
81
+ let t = e ?? S;
82
+ F(t), E && (E = !1, b(() => H(t)));
83
+ }), g(() => A.actionsRef, (e) => {
84
+ e?.(W);
85
+ }), u(s, {
86
+ value: q,
87
+ get children() {
88
+ return u(R, f({
89
+ ref: [((e) => {
90
+ w = e.tagName === "FORM" ? e : null;
91
+ }), M.ref],
92
+ get class() {
93
+ return L();
94
+ },
95
+ get style() {
96
+ return z();
97
+ },
98
+ novalidate: !0,
99
+ onSubmit: K
100
+ }, N));
101
+ }
102
+ });
103
+ }
104
+ function T(e, t) {
105
+ let n = e.compareDocumentPosition(t);
106
+ return (n & Node.DOCUMENT_POSITION_DISCONNECTED) === 0 && (n & Node.DOCUMENT_POSITION_FOLLOWING) !== 0;
107
+ }
108
+ //#endregion
109
+ export { w as t };
@@ -1,45 +1,45 @@
1
1
  import { t as e } from "./useRender-CxZ8PI-g.js";
2
- import { t } from "./accordion-BFeZFpJZ.js";
3
- import { t as n } from "./tooltip-D-PkGco9.js";
4
- import { t as r } from "./preview-card-FTN_aafM.js";
5
- import { t as i } from "./alert-dialog-BxGUF8_Q.js";
2
+ import { t } from "./accordion-CA2DfX67.js";
3
+ import { t as n } from "./tooltip-h2r2_Xuo.js";
4
+ import { t as r } from "./preview-card-Dtu8AnBN.js";
5
+ import { t as i } from "./alert-dialog-Bup88Dpx.js";
6
6
  import { n as a } from "./DirectionContext-BwMabICS.js";
7
- import { t as o } from "./autocomplete-C9QA98XD.js";
8
- import { t as s } from "./avatar-BQoEzzav.js";
9
- import { t as c } from "./button-akYS6FyY.js";
10
- import { t as l } from "./checkbox-DOXtzBhA.js";
11
- import { t as u } from "./checkbox-group-CwMDoSTK.js";
12
- import { t as d } from "./collapsible-t8YReaIp.js";
13
- import { n as f, t as p } from "./combobox-6DhOdzit.js";
14
- import { t as m } from "./context-menu-CplDpqmi.js";
7
+ import { t as o } from "./autocomplete-oyy_uRpU.js";
8
+ import { t as s } from "./avatar-DNZ4fnBd.js";
9
+ import { t as c } from "./button-BJZYmCVv.js";
10
+ import { t as l } from "./checkbox-sQHYTbpB.js";
11
+ import { t as u } from "./checkbox-group-DGyrciZJ.js";
12
+ import { t as d } from "./collapsible-BENbFFCc.js";
13
+ import { n as f, t as p } from "./combobox-BGH8QLXH.js";
14
+ import { t as m } from "./context-menu-xQ1sBCET.js";
15
15
  import { t as h } from "./Separator-D5oJzlA3.js";
16
16
  import { t as g } from "./csp-provider-C7nRHDKK.js";
17
17
  import { t as _ } from "./direction-provider-DYhRN-8f.js";
18
- import { t as v } from "./dialog-B9tR9X48.js";
19
- import { t as y } from "./drawer-dyr3_sKQ.js";
20
- import { t as b } from "./field-CjUAjp1m.js";
18
+ import { t as v } from "./dialog-C0EF0a5u.js";
19
+ import { t as y } from "./drawer-uKoNBwDU.js";
20
+ import { t as b } from "./field-DIMrgpBW.js";
21
21
  import { t as x } from "./fieldset-Byqk3noT.js";
22
- import { t as S } from "./form-6Ne_bWQX.js";
23
- import { t as C } from "./input-_QHvSSqM.js";
22
+ import { t as S } from "./form-Bqq8wSLY.js";
23
+ import { t as C } from "./input-YthuKwIE.js";
24
24
  import { t as w } from "./meter-BvWdppcx.js";
25
- import { t as T } from "./menu-DLqUBmMK.js";
26
- import { t as E } from "./menubar-DhPRUQZ6.js";
27
- import { t as D } from "./navigation-menu-mVHV41Ky.js";
28
- import { t as O } from "./number-field-DusLw_0X.js";
29
- import { t as k } from "./otp-field-D-B9tZzF.js";
30
- import { t as A } from "./popover-Cv7xn0nW.js";
25
+ import { t as T } from "./menu-4rNLN6aX.js";
26
+ import { t as E } from "./menubar-nFQGtNmY.js";
27
+ import { t as D } from "./navigation-menu-BbRyun3a.js";
28
+ import { t as O } from "./number-field-hT_H0hVu.js";
29
+ import { t as k } from "./otp-field-lsy2iGID.js";
30
+ import { t as A } from "./popover-Cmvmuf1L.js";
31
31
  import { t as j } from "./progress-AVKxvgpc.js";
32
- import { t as M } from "./radio-DA_oZhQT.js";
33
- import { t as N } from "./radio-group-CWtQxWDl.js";
34
- import { t as P } from "./scroll-area-NCr49LkD.js";
35
- import { t as F } from "./select-DSPJt7Rk.js";
32
+ import { t as M } from "./radio-CeCU-Qqi.js";
33
+ import { t as N } from "./radio-group-NbuJvjQe.js";
34
+ import { t as P } from "./scroll-area-DqbvoAd7.js";
35
+ import { t as F } from "./select-Dad51Xbn.js";
36
36
  import "./separator/index.js";
37
- import { t as I } from "./slider-CWq9hxFf.js";
38
- import { t as L } from "./switch-CPl7QHKI.js";
39
- import { t as R } from "./tabs-Bn4rZDyZ.js";
40
- import { n as z, r as B, t as V } from "./toast-7LdqZWOs.js";
41
- import { t as H } from "./toolbar-DcCi3HNp.js";
42
- import { t as U } from "./toggle-CsC37e3e.js";
43
- import { t as W } from "./toggle-group-DSWb9HxN.js";
37
+ import { t as I } from "./slider-CLSKFq_M.js";
38
+ import { t as L } from "./switch-Bzuu5EIg.js";
39
+ import { t as R } from "./tabs-DWiBDv8D.js";
40
+ import { n as z, r as B, t as V } from "./toast-DmtPJW2k.js";
41
+ import { t as H } from "./toolbar-BXT_g-oX.js";
42
+ import { t as U } from "./toggle-CAe-Z8Xn.js";
43
+ import { t as W } from "./toggle-group-BbQg5s-m.js";
44
44
  import "./use-render/index.js";
45
45
  export { t as Accordion, i as AlertDialog, o as Autocomplete, s as Avatar, c as Button, g as CSPProvider, l as Checkbox, u as CheckboxGroup, d as Collapsible, p as Combobox, m as ContextMenu, v as Dialog, _ as DirectionProvider, y as Drawer, b as Field, x as Fieldset, S as Form, C as Input, T as Menu, E as Menubar, w as Meter, D as NavigationMenu, O as NumberField, k as OTPField, A as Popover, r as PreviewCard, j as Progress, M as Radio, N as RadioGroup, P as ScrollArea, F as Select, h as Separator, I as Slider, L as Switch, R as Tabs, B as Toast, U as Toggle, W as ToggleGroup, H as Toolbar, n as Tooltip, f as createComboboxItems, V as createToastManager, a as useDirection, e as useRender, z as useToastManager };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../input-_QHvSSqM.js";
1
+ import { t as e } from "../input-YthuKwIE.js";
2
2
  export { e as Input };
@@ -1,4 +1,4 @@
1
- import { t as e } from "./FieldControl-C0PATyKV.js";
1
+ import { t as e } from "./FieldControl-eDe-Jnp9.js";
2
2
  //#region src/input/Input.tsx
3
3
  function t(t) {
4
4
  return e(t);
@@ -1,15 +1,21 @@
1
1
  //#region src/internals/composeEventHandlers.ts
2
2
  function e(...e) {
3
- return function(n) {
4
- let i = r(n);
5
- for (let n of e) if (t(n(), this, i), i.baseUIHandlerPrevented) break;
3
+ return function(t) {
4
+ let i = r(t);
5
+ for (let t of e) {
6
+ if (t && typeof t == "object" && "getHandler" in t) {
7
+ let e = t.getHandler;
8
+ t = e();
9
+ }
10
+ if (n(t, this, i), i.baseUIHandlerPrevented) break;
11
+ }
6
12
  };
7
13
  }
8
- function t(e, t, r) {
9
- typeof e == "function" ? Reflect.apply(e, t, [r]) : n(e) && Reflect.apply(e[0], t, [e[1], r]);
14
+ function t(e) {
15
+ return { getHandler: e };
10
16
  }
11
- function n(e) {
12
- return Array.isArray(e) && e.length === 2 && typeof e[0] == "function";
17
+ function n(e, t, n) {
18
+ typeof e == "function" ? Reflect.apply(e, t, [n]) : Array.isArray(e) && e.length === 2 && typeof e[0] == "function" && Reflect.apply(e[0], t, [e[1], n]);
13
19
  }
14
20
  function r(e) {
15
21
  let t = e;
@@ -47,4 +53,4 @@ function a(e) {
47
53
  });
48
54
  }
49
55
  //#endregion
50
- export { e as composeEventHandlers, r as makeEventPreventable };
56
+ export { e as composeEventHandlers, t as liveEventHandler, r as makeEventPreventable };
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "../../FieldRootContext-izCEh80D.js";
2
- export { t as FieldRootContext, e as useFieldRootContext };
1
+ import { n as e, r as t } from "../../FieldRootContext-D3fuVjs3.js";
2
+ export { e as FieldRootContext, t as useFieldRootContext };
@@ -32,15 +32,4 @@ function c(t) {
32
32
  return typeof t == "function" && t.name === "bound read" && Object.prototype.hasOwnProperty.call(t, e);
33
33
  }
34
34
  //#endregion
35
- //#region src/internals/mergeStyleValue.ts
36
- function l(e, t) {
37
- return typeof t == "string" ? `${u(e)}${t}` : t ? {
38
- ...e,
39
- ...t
40
- } : e;
41
- }
42
- function u(e) {
43
- return Object.entries(e).filter((e) => e[1] != null).map(([e, t]) => `${e}:${t};`).join("");
44
- }
45
- //#endregion
46
- export { t as a, o as c, n as i, r as l, c as n, i as o, s as r, a as s, l as t };
35
+ export { i as a, r as c, t as i, s as n, a as o, n as r, o as s, c as t };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../menu-DLqUBmMK.js";
1
+ import { t as e } from "../menu-4rNLN6aX.js";
2
2
  export { e as Menu };
@@ -4,58 +4,58 @@ import { getStateAttributesProps as n } from "./internals/getStateAttributesProp
4
4
  import { M as r, P as i, t as ee, u as a } from "./reasons-Co5CzjKq.js";
5
5
  import { n as te, t as ne } from "./resolveStyle-XcgAuaKR.js";
6
6
  import { createChangeEventDetails as o } from "./internals/createBaseUIEventDetails.js";
7
- import { composeEventHandlers as s } from "./internals/composeEventHandlers.js";
8
- import { n as re } from "./dom-BEAeQ9Eb.js";
9
- import { t as c } from "./PopupViewport-IS4XU03s.js";
10
- import { n as l } from "./PopupStore-Du0O57fL.js";
11
- import { r as ie, t as ae } from "./safePolygon-DJG0VIVo.js";
12
- import { i as oe } from "./popupStateMapping-C6jQ_LKo.js";
13
- import { i as se, n as u, t as d } from "./PopupHandle-CQI6Om1Z.js";
14
- import { t as ce } from "./TriggerFocusGuards-Cs8LVBj5.js";
15
- import { a as le, i as ue, n as de, r as f, t as fe } from "./buttonSemantics-paljfpOX.js";
16
- import { n as p } from "./DirectionContext-BwMabICS.js";
17
- import { C as m, _ as h, a as g, c as _, d as v, f as pe, g as y, h as b, i as me, l as he, m as x, n as S, o as C, p as w, r as T, s as E, t as D, u as ge, v as O, w as k, x as A, y as j } from "./MenuSubmenuTrigger-yfncqM-D.js";
18
- import { n as _e } from "./MenubarContext-BYt3fkt-.js";
7
+ import { composeEventHandlers as s, liveEventHandler as c } from "./internals/composeEventHandlers.js";
8
+ import { n as l } from "./dom-lDdayFF_.js";
9
+ import { t as u } from "./PopupViewport-BanYHrD-.js";
10
+ import { n as re } from "./PopupStore-BjRwcvbG.js";
11
+ import { r as ie, t as ae } from "./safePolygon-DVAR5dQD.js";
12
+ import { i as oe } from "./popupStateMapping-nhukB8NK.js";
13
+ import { i as se, n as d, t as f } from "./PopupHandle-DyX5gY1e.js";
14
+ import { t as ce } from "./TriggerFocusGuards-Fzspp3Y1.js";
15
+ import { a as le, i as ue, n as de, r as p, t as fe } from "./buttonSemantics-paljfpOX.js";
16
+ import { n as m } from "./DirectionContext-BwMabICS.js";
17
+ import { C as h, _ as pe, a as g, c as _, d as v, f as me, g as y, h as b, i as he, l as ge, m as x, n as S, o as C, p as w, r as T, s as E, t as D, u as _e, v as O, w as k, x as A, y as j } from "./MenuSubmenuTrigger-DMb5CwTF.js";
18
+ import { n as ve } from "./MenubarContext-BYt3fkt-.js";
19
19
  import { t as M } from "./Separator-D5oJzlA3.js";
20
- import { createComponent as N, getNextElement as P, memo as ve, mergeProps as F, runHydrationEvents as I, spread as L, template as R } from "@solidjs/web";
21
- import { Show as z, createEffect as B, createMemo as V, createSignal as ye, createUniqueId as be, omit as xe, onCleanup as Se, untrack as H } from "solid-js";
20
+ import { createComponent as N, getNextElement as P, memo as ye, mergeProps as F, runHydrationEvents as I, spread as L, template as R } from "@solidjs/web";
21
+ import { Show as z, createEffect as B, createMemo as V, createSignal as be, createUniqueId as xe, omit as Se, onCleanup as Ce, untrack as H } from "solid-js";
22
22
  //#region src/menu/trigger/MenuTrigger.tsx
23
- var Ce = /* @__PURE__ */ R("<button>");
23
+ var we = /* @__PURE__ */ R("<button>");
24
24
  function U(e) {
25
- let c = m(!0), u = _e(!0), d = e;
26
- if (!c && !H(() => d.handle)) throw Error("Base UI: <Menu.Trigger> must be either used within a <Menu.Root> component or provided with a handle.");
27
- let p = e, h = u ? H(() => u.createTriggerId()) : `base-ui-${be()}`, g = V(() => d.id || h), _ = V(() => d.nativeButton ?? !0), v = V(() => d.openOnHover ?? !!u?.hasSubmenuOpen()), pe = V(() => d.delay ?? 100), y = V(() => d.closeDelay ?? 0), [b, me] = ye(null, { ownedWrite: !0 }), he = se(() => d.handle), x = V(() => he() ?? c?.store), S = V(() => {
25
+ let u = h(!0), d = ve(!0), f = e;
26
+ if (!u && !H(() => f.handle)) throw Error("Base UI: <Menu.Trigger> must be either used within a <Menu.Root> component or provided with a handle.");
27
+ let m = e, pe = d ? H(() => d.createTriggerId()) : `base-ui-${xe()}`, g = V(() => f.id || pe), _ = V(() => f.nativeButton ?? !0), v = V(() => f.openOnHover ?? !!d?.hasSubmenuOpen()), me = V(() => f.delay ?? 100), y = V(() => f.closeDelay ?? 0), [b, he] = be(null, { ownedWrite: !0 }), ge = se(() => f.handle), x = V(() => ge() ?? u?.store), S = V(() => {
28
28
  let e = x();
29
29
  return e instanceof k ? e : void 0;
30
30
  }), C = () => {
31
- let e = d.handle?.store;
31
+ let e = f.handle?.store;
32
32
  return e instanceof k ? e : S();
33
- }, w = V(() => !!(d.disabled || S()?.disabled() || u?.disabled())), T = V(() => {
33
+ }, w = V(() => !!(f.disabled || S()?.disabled() || d?.disabled())), T = V(() => {
34
34
  let e = x();
35
35
  return !!(e?.open() && e.activeTriggerId() === g());
36
36
  }), E = V(() => ({
37
37
  disabled: w(),
38
38
  open: T()
39
- })), D = V(() => te(e.class, E())), O = V(() => ne(e.style, E())), A = V(() => n(E(), oe)), j = xe(p, "render", "class", "closeDelay", "delay", "disabled", "handle", "id", "nativeButton", "onClick", "onBlur", "onFocus", "onKeyDown", "onKeyUp", "onMouseDown", "onMouseMove", "onPointerDown", "openOnHover", "payload", "ref", "style"), M = "", R, U, W = !1, G = !1, K, q = !1, J = !1, Y, X = u ? {
39
+ })), D = V(() => te(e.class, E())), O = V(() => ne(e.style, E())), A = V(() => n(E(), oe)), j = Se(m, "render", "class", "closeDelay", "delay", "disabled", "handle", "id", "nativeButton", "onClick", "onBlur", "onFocus", "onKeyDown", "onKeyUp", "onMouseDown", "onMouseMove", "onPointerDown", "openOnHover", "payload", "ref", "style"), M = "", R, U, W = !1, G = !1, K, q = !1, J = !1, Y, X = d ? {
40
40
  token: Symbol("MenubarTrigger"),
41
41
  order: 0,
42
42
  element: b,
43
43
  disabled: w
44
44
  } : void 0;
45
45
  if (X) {
46
- let e = u.registerTrigger(X);
46
+ let e = d.registerTrigger(X);
47
47
  B(() => ({
48
48
  disabled: w(),
49
49
  element: b()
50
- }), () => u.notifyItemChange()), Se(e);
50
+ }), () => d.notifyItemChange()), Ce(e);
51
51
  }
52
- l(x, g, b, () => ({
53
- payload: d.payload,
52
+ re(x, g, b, () => ({
53
+ payload: f.payload,
54
54
  closeDelay: y()
55
55
  })), B(() => ({
56
56
  store: S(),
57
57
  id: g(),
58
- menubar: u
58
+ menubar: d
59
59
  }), (e) => {
60
60
  if (!e.store) return;
61
61
  let t = H(() => e.store.registerMenubarTrigger(e.id, e.menubar));
@@ -68,7 +68,7 @@ function U(e) {
68
68
  W = !1;
69
69
  }, 500));
70
70
  });
71
- function we(e, t) {
71
+ function Te(e, t) {
72
72
  clearTimeout(R), e.allowMouseUpTrigger = !1, R = setTimeout(() => {
73
73
  e.allowMouseUpTrigger = !0;
74
74
  }, 200), Y?.();
@@ -83,26 +83,26 @@ function U(e) {
83
83
  }
84
84
  function Z(e, t) {
85
85
  e.context.triggerElements.add(g(), t), e.forwardTriggerData(g(), t, {
86
- payload: d.payload,
86
+ payload: f.payload,
87
87
  closeDelay: y()
88
- }), e.forwardMenubarTrigger(g(), u), e.activateMenubarTrigger(g());
88
+ }), e.forwardMenubarTrigger(g(), d), e.activateMenubarTrigger(g());
89
89
  }
90
- function Te(e) {
90
+ function Ee(e) {
91
91
  let t = C(), n = b();
92
92
  if (!t || !n || e.button !== 0) return;
93
93
  G = !0;
94
94
  let r = T();
95
- if (Z(t, n), u && r) {
95
+ if (Z(t, n), d && r) {
96
96
  G = !1;
97
97
  return;
98
98
  }
99
- if (r || we(t, n), t.setOpenMethod(M || "mouse"), r && W) {
99
+ if (r || Te(t, n), t.setOpenMethod(M || "mouse"), r && W) {
100
100
  t.setOpen(!0, o(i, e, n));
101
101
  return;
102
102
  }
103
103
  t.setOpen(!r, o(i, e, n));
104
104
  }
105
- function Ee(e) {
105
+ function De(e) {
106
106
  if (q && e !== K && e.detail === 0) {
107
107
  q = !1;
108
108
  return;
@@ -116,34 +116,34 @@ function U(e) {
116
116
  let t = C(), n = b();
117
117
  !t || !n || (Z(t, n), t.setOpenMethod("keyboard"), t.setPendingFocus("first"), t.setOpen(!T(), o(i, e, n)));
118
118
  }
119
- function De(e) {
120
- !_() || e.key !== "Enter" || e.target !== e.currentTarget || (e.preventDefault(), e.preventBaseUIHandler(), q = !0, J = !0, ge(e.currentTarget, e, 0, (e) => {
119
+ function Oe(e) {
120
+ !_() || e.key !== "Enter" || e.target !== e.currentTarget || (e.preventDefault(), e.preventBaseUIHandler(), q = !0, J = !0, _e(e.currentTarget, e, 0, (e) => {
121
121
  K = e;
122
- }), J = !1, K.baseUIHandlerPrevented || Ee(K), setTimeout(() => {
122
+ }), J = !1, K.baseUIHandlerPrevented || De(K), setTimeout(() => {
123
123
  q = !1, K = void 0;
124
124
  }));
125
125
  }
126
- function Oe(e) {
126
+ function ke(e) {
127
127
  let t = C();
128
128
  if (!t) return;
129
129
  let n = t.state[t.activeTriggerId() === g() ? "activeTriggerProps" : "inactiveTriggerProps"].onKeyDown;
130
130
  typeof n == "function" && n(e);
131
131
  }
132
- function ke(e) {
132
+ function Ae(e) {
133
133
  C()?.handleTriggerKeyDown(e, e.currentTarget), e.defaultPrevented && e.key.startsWith("Arrow") && e.preventBaseUIHandler();
134
134
  }
135
- function Ae(e) {
136
- X && u.setActiveTrigger(X);
135
+ function je(e) {
136
+ X && d.setActiveTrigger(X);
137
137
  let t = C(), n = b(), i = e.relatedTarget;
138
- if (t?.open() && i?.hasAttribute("data-base-ui-focus-guard") && re(t.state.positionerElement, i)) {
138
+ if (t?.open() && i?.hasAttribute("data-base-ui-focus-guard") && l(t.state.positionerElement, i)) {
139
139
  t.setOpen(!1, o(a, e));
140
140
  return;
141
141
  }
142
- !u || !t || !n || w() || T() || !u.hasSubmenuOpen() || (Z(t, n), t.setOpenMethod("keyboard"), t.setPendingFocus("first"), t.setOpen(!0, o(r, e, n)));
142
+ !d || !t || !n || w() || T() || !d.hasSubmenuOpen() || (Z(t, n), t.setOpenMethod("keyboard"), t.setPendingFocus("first"), t.setOpen(!0, o(r, e, n)));
143
143
  }
144
- let je = s(() => H(() => w() ? f : void 0), () => d.onClick, () => Ee), Me = s(() => d.onFocus, () => Ae), Ne = s(() => d.onBlur), Pe = s(() => H(() => w() ? le : void 0), () => d.onMouseDown, () => Te), Fe = s(() => d.onMouseMove, () => () => S()?.setAllowMouseEnter(!0)), Ie = s(() => H(() => w() ? f : void 0), () => d.onPointerDown, () => (e) => {
144
+ let Me = s(c(() => H(() => w() ? p : void 0)), c(() => f.onClick), De), Ne = s(c(() => f.onFocus), je), Pe = s(c(() => f.onBlur)), Fe = s(c(() => H(() => w() ? le : void 0)), c(() => f.onMouseDown), Ee), Ie = s(c(() => f.onMouseMove), () => S()?.setAllowMouseEnter(!0)), Le = s(c(() => H(() => w() ? p : void 0)), c(() => f.onPointerDown), (e) => {
145
145
  M = e.pointerType || "";
146
- }), Le = s(() => H(() => w() ? ue : void 0), () => d.onKeyDown, () => Oe, () => ke, () => De, () => H(() => _() ? void 0 : fe)), Re = s(() => H(() => w() ? le : void 0), () => d.onKeyUp, () => H(() => _() ? void 0 : de));
146
+ }), Re = s(c(() => H(() => w() ? ue : void 0)), c(() => f.onKeyDown), ke, Ae, Oe, c(() => H(() => _() ? void 0 : fe))), ze = s(c(() => H(() => w() ? le : void 0)), c(() => f.onKeyUp), c(() => H(() => _() ? void 0 : de)));
147
147
  function Q(e) {
148
148
  let t = H(() => e.store);
149
149
  return ie({
@@ -152,20 +152,20 @@ function U(e) {
152
152
  floating: () => t.track().positionerElement,
153
153
  tree: () => t.tree(),
154
154
  enabled: () => !w() && v() && t.hoverEnabled(),
155
- floatingEnabled: () => !u && !w() && v() && t.hoverEnabled(),
155
+ floatingEnabled: () => !d && !w() && v() && t.hoverEnabled(),
156
156
  delay: () => ({ close: y() }),
157
- restMs: () => u ? 0 : pe(),
158
- restOnly: () => !u,
159
- handleClose: () => ae({ blockPointerEvents: !u }),
157
+ restMs: () => d ? 0 : me(),
158
+ restOnly: () => !d,
159
+ handleClose: () => ae({ blockPointerEvents: !d }),
160
160
  mouseOnly: () => !0,
161
- shouldOpen: () => !u || u.hasSubmenuOpen() && !T()
161
+ shouldOpen: () => !d || d.hasSubmenuOpen() && !T()
162
162
  }), null;
163
163
  }
164
- let ze = t(e, () => E(), (e) => (() => {
165
- var t = P(Ce);
164
+ let Be = t(e, () => E(), (e) => (() => {
165
+ var t = P(we);
166
166
  return L(t, e, !1), I(), t;
167
- })()), $ = N(ze, F({
168
- ref: [((e) => me(e)), d.ref],
167
+ })()), $ = N(Be, F({
168
+ ref: [((e) => he(e)), f.ref],
169
169
  get id() {
170
170
  return g();
171
171
  },
@@ -173,13 +173,13 @@ function U(e) {
173
173
  return _() ? "button" : void 0;
174
174
  },
175
175
  get role() {
176
- return u ? "menuitem" : _() ? void 0 : "button";
176
+ return d ? "menuitem" : _() ? void 0 : "button";
177
177
  },
178
178
  get tabIndex() {
179
- return X ? u.isTabStop(X) ? 0 : -1 : !_() && w() ? -1 : 0;
179
+ return X ? d.isTabStop(X) ? 0 : -1 : !_() && w() ? -1 : 0;
180
180
  },
181
181
  get disabled() {
182
- return (ve(() => !!_())() ? w() : _()) || void 0;
182
+ return (ye(() => !!_())() ? w() : _()) || void 0;
183
183
  },
184
184
  get "aria-disabled"() {
185
185
  return !_() && w() ? "true" : void 0;
@@ -201,18 +201,18 @@ function U(e) {
201
201
  get style() {
202
202
  return O();
203
203
  },
204
- onClick: je,
205
- onBlur: Ne,
206
- onFocus: Me,
207
- onKeyDown: Le,
208
- onKeyUp: Re,
209
- onMouseDown: Pe,
210
- onMouseMove: Fe,
211
- onPointerDown: Ie
204
+ onClick: Me,
205
+ onBlur: Pe,
206
+ onFocus: Ne,
207
+ onKeyDown: Re,
208
+ onKeyUp: ze,
209
+ onMouseDown: Fe,
210
+ onMouseMove: Ie,
211
+ onPointerDown: Le
212
212
  }, A, j));
213
- return Se(() => {
213
+ return Ce(() => {
214
214
  clearTimeout(R), clearTimeout(U), Y?.();
215
- }), u ? [N(z, {
215
+ }), d ? [N(z, {
216
216
  keyed: !0,
217
217
  get when() {
218
218
  return S();
@@ -249,26 +249,26 @@ function U(e) {
249
249
  //#region src/menu/viewport/MenuViewport.tsx
250
250
  var W = /* @__PURE__ */ R("<div>");
251
251
  function G(e) {
252
- let r = m(), i = y(), ee = p(), a = e, o = e, [s, re] = ye({
252
+ let r = h(), i = y(), ee = m(), a = e, o = e, [s, c] = be({
253
253
  activationDirection: void 0,
254
254
  transitioning: !1
255
255
  }, { ownedWrite: !0 }), l = V(() => ({
256
256
  ...s(),
257
257
  instant: r.store.instantType()
258
- })), ie = V(() => te(e.class, l())), ae = V(() => ne(e.style, l())), oe = V(() => n(l(), h)), se = xe(o, "render", "children", "class", "ref", "style"), u = t(e, () => l(), (e) => (() => {
258
+ })), re = V(() => te(e.class, l())), ie = V(() => ne(e.style, l())), ae = V(() => n(l(), pe)), oe = Se(o, "render", "children", "class", "ref", "style"), se = t(e, () => l(), (e) => (() => {
259
259
  var t = P(W);
260
260
  return L(t, e, !1), I(), t;
261
261
  })());
262
- return N(u, F({
262
+ return N(se, F({
263
263
  ref: [a.ref],
264
264
  get class() {
265
- return ie();
265
+ return re();
266
266
  },
267
267
  get style() {
268
- return ae();
268
+ return ie();
269
269
  }
270
- }, oe, se, { get children() {
271
- return N(c, {
270
+ }, ae, oe, { get children() {
271
+ return N(u, {
272
272
  get store() {
273
273
  return r.store;
274
274
  },
@@ -278,7 +278,7 @@ function G(e) {
278
278
  get direction() {
279
279
  return ee();
280
280
  },
281
- onStateChange: re,
281
+ onStateChange: c,
282
282
  get children() {
283
283
  return e.children;
284
284
  }
@@ -287,9 +287,9 @@ function G(e) {
287
287
  }
288
288
  //#endregion
289
289
  //#region src/menu/store/MenuHandle.ts
290
- var K = class extends d {
290
+ var K = class extends f {
291
291
  constructor() {
292
- super("Menu", !0, new u());
292
+ super("Menu", !0, new d());
293
293
  }
294
294
  open(e) {
295
295
  this.openByTrigger(e);
@@ -311,16 +311,16 @@ var J = /* @__PURE__ */ e({
311
311
  Backdrop: () => j,
312
312
  CheckboxItem: () => _,
313
313
  CheckboxItemIndicator: () => E,
314
- Group: () => pe,
314
+ Group: () => me,
315
315
  GroupLabel: () => v,
316
316
  Handle: () => K,
317
- Item: () => he,
317
+ Item: () => ge,
318
318
  LinkItem: () => C,
319
319
  Popup: () => x,
320
320
  Portal: () => O,
321
321
  Positioner: () => b,
322
322
  RadioGroup: () => g,
323
- RadioItem: () => me,
323
+ RadioItem: () => he,
324
324
  RadioItemIndicator: () => T,
325
325
  Root: () => A,
326
326
  Separator: () => M,
@@ -1,2 +1,2 @@
1
- import { t as e } from "../menubar-DhPRUQZ6.js";
1
+ import { t as e } from "../menubar-nFQGtNmY.js";
2
2
  export { e as Menubar };