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

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 +42 -0
  2. package/README.md +51 -20
  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 +1 -1
  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
@@ -1,2 +1,2 @@
1
- import { t as e } from "../toggle-CsC37e3e.js";
1
+ import { t as e } from "../toggle-CAe-Z8Xn.js";
2
2
  export { e as Toggle };
@@ -3,25 +3,25 @@ import { getStateAttributesProps as t } from "./internals/getStateAttributesProp
3
3
  import { w as n } from "./reasons-Co5CzjKq.js";
4
4
  import { n as r, t as i } from "./resolveStyle-XcgAuaKR.js";
5
5
  import { createChangeEventDetails as a } from "./internals/createBaseUIEventDetails.js";
6
- import { composeEventHandlers as o } from "./internals/composeEventHandlers.js";
7
- import { n as s } from "./ToolbarItemOwnerContext-DtVqVnSE.js";
8
- import { n as c } from "./ToggleGroupContext-_THxLgJU.js";
9
- import { createComponent as l, getNextElement as ee, mergeProps as u, runHydrationEvents as d, spread as f, template as p } from "@solidjs/web";
10
- import { createEffect as m, createMemo as h, createSignal as g, createUniqueId as _, omit as v, onCleanup as y, onSettled as b, untrack as x } from "solid-js";
6
+ import { composeEventHandlers as o, liveEventHandler as s } from "./internals/composeEventHandlers.js";
7
+ import { n as c } from "./ToolbarItemOwnerContext-DtVqVnSE.js";
8
+ import { n as l } from "./ToggleGroupContext-_THxLgJU.js";
9
+ import { createComponent as u, getNextElement as d, mergeProps as f, runHydrationEvents as ee, spread as p, template as m } from "@solidjs/web";
10
+ import { createEffect as h, createMemo as g, createSignal as _, createUniqueId as v, omit as y, onCleanup as b, onSettled as x, untrack as S } from "solid-js";
11
11
  //#region src/toggle/Toggle.tsx
12
- var S = /* @__PURE__ */ p("<button>");
13
- function C(p) {
14
- let C = c(), j = s(), M = p, N = p, P = `base-ui-${_()}`, F = Symbol("Toggle"), I = x(() => M.pressed !== void 0), [L, R] = g(() => !!x(() => M.defaultPressed)), z = x(L), [B, V] = g(), H = v(N, "render", "class", "defaultPressed", "disabled", "form", "nativeButton", "onClick", "onFocus", "onKeyDown", "onKeyUp", "onMouseDown", "onPointerDown", "onPressedChange", "pressed", "ref", "style", "type", "value"), U = h(() => M.value || P), W = h(() => (C?.disabled() ?? !1) || (M.disabled ?? !1)), G = h(() => C ? C.value().indexOf(U()) > -1 : I ? !!M.pressed : L()), K = h(() => M.nativeButton ?? !0), q = h(() => ({
12
+ var te = /* @__PURE__ */ m("<button>");
13
+ function C(m) {
14
+ let C = l(), j = c(), M = m, N = m, P = `base-ui-${v()}`, F = Symbol("Toggle"), I = S(() => M.pressed !== void 0), [L, R] = _(() => !!S(() => M.defaultPressed)), z = S(L), [B, V] = _(), H = y(N, "render", "class", "defaultPressed", "disabled", "form", "nativeButton", "onClick", "onFocus", "onKeyDown", "onKeyUp", "onMouseDown", "onPointerDown", "onPressedChange", "pressed", "ref", "style", "type", "value"), U = g(() => M.value || P), W = g(() => (C?.disabled() ?? !1) || (M.disabled ?? !1)), G = g(() => C ? C.value().indexOf(U()) > -1 : I ? !!M.pressed : L()), K = g(() => M.nativeButton ?? !0), q = g(() => ({
15
15
  disabled: W(),
16
16
  pressed: G()
17
- })), J = h(() => r(p.class, q())), Y = h(() => i(p.style, q())), X = h(() => t(q())), Z = {
17
+ })), J = g(() => r(m.class, q())), Y = g(() => i(m.style, q())), X = g(() => t(q())), Z = {
18
18
  token: F,
19
19
  order: 0,
20
20
  disabled: W,
21
21
  element: B,
22
22
  focusableWhenDisabled: () => !1
23
- }, Q = j ? void 0 : C?.registerItem(Z), $ = h(() => K() && W() && !(j?.disabled() && j.focusableWhenDisabled()) && (C === void 0 || C.toolbar !== void 0)), te = h(() => K() ? C && !C.toolbar ? W() ? "true" : "false" : void 0 : W() ? "true" : void 0), ne = h(() => C ? C.isTabStop(Z) ? 0 : -1 : !K() && W() ? -1 : 0);
24
- m(() => ({
23
+ }, Q = j ? void 0 : C?.registerItem(Z), ne = g(() => K() && W() && !(j?.disabled() && j.focusableWhenDisabled()) && (C === void 0 || C.toolbar !== void 0)), re = g(() => K() ? C && !C.toolbar ? W() ? "true" : "false" : void 0 : W() ? "true" : void 0), ie = g(() => C ? C.isTabStop(Z) ? 0 : -1 : !K() && W() ? -1 : 0);
24
+ h(() => ({
25
25
  disabled: W(),
26
26
  element: B(),
27
27
  nativeButton: K(),
@@ -29,36 +29,36 @@ function C(p) {
29
29
  toolbarGroup: C?.toolbar !== void 0
30
30
  }), (e) => {
31
31
  e.element && e.nativeButton && e.toolbarGroup && e.disabled && !e.ownerDisabled && e.element.setAttribute("disabled", "");
32
- }), m(() => C?.disabled() ?? !1, (e) => {
32
+ }), h(() => C?.disabled() ?? !1, (e) => {
33
33
  j?.setChildDisabled(e);
34
34
  });
35
- function re(e) {
35
+ function ae(e) {
36
36
  let t = !(C ? C.isPressed(U()) : I ? M.pressed : z), r = a(n, e);
37
37
  M.onPressedChange?.(t, r), !r.isCanceled && (C?.setGroupValue(U(), t, r), !r.isCanceled && !C && !I && (z = t, R(t)));
38
38
  }
39
- function ie() {
39
+ function oe() {
40
40
  C?.setActiveItem(Z);
41
41
  }
42
- function ae(e) {
42
+ function $(e) {
43
43
  D(e, K());
44
44
  }
45
- function oe(e) {
45
+ function se(e) {
46
46
  O(e, K());
47
47
  }
48
- let se = o(() => x(() => W() ? w : void 0), () => M.onClick, () => re), ce = o(() => M.onFocus, () => ie), le = o(() => x(() => W() ? T : void 0), () => M.onMouseDown), ue = o(() => x(() => W() ? w : void 0), () => M.onPointerDown), de = o(() => x(() => W() ? C ? E : T : void 0), () => M.onKeyDown, () => x(() => C ? ae : K() ? void 0 : k)), fe = o(() => x(() => W() ? T : void 0), () => M.onKeyUp, () => x(() => C ? oe : K() ? void 0 : A));
49
- m(() => ({
48
+ let ce = o(s(() => S(() => W() ? w : void 0)), s(() => M.onClick), ae), le = o(s(() => M.onFocus), oe), ue = o(s(() => S(() => W() ? T : void 0)), s(() => M.onMouseDown)), de = o(s(() => S(() => W() ? w : void 0)), s(() => M.onPointerDown)), fe = o(s(() => S(() => W() ? C ? E : T : void 0)), s(() => M.onKeyDown), s(() => S(() => C ? $ : K() ? void 0 : k))), pe = o(s(() => S(() => W() ? T : void 0)), s(() => M.onKeyUp), s(() => S(() => C ? se : K() ? void 0 : A)));
49
+ h(() => ({
50
50
  initialized: C?.isValueInitialized() ?? !1,
51
51
  missingValue: C !== void 0 && M.value === void 0
52
- }), (e) => {}), b(() => {
52
+ }), (e) => {}), x(() => {
53
53
  B();
54
- }), y(() => {
54
+ }), b(() => {
55
55
  j?.setChildDisabled(!1), Q?.();
56
56
  });
57
- let pe = e(p, () => q(), (e) => (() => {
58
- var t = ee(S);
59
- return f(t, e, !1), d(), t;
57
+ let me = e(m, () => q(), (e) => (() => {
58
+ var t = d(te);
59
+ return p(t, e, !1), ee(), t;
60
60
  })());
61
- return l(pe, u({
61
+ return u(me, f({
62
62
  ref: [((e) => V(e)), M.ref],
63
63
  get class() {
64
64
  return J();
@@ -73,23 +73,23 @@ function C(p) {
73
73
  return K() ? void 0 : "button";
74
74
  },
75
75
  get disabled() {
76
- return $();
76
+ return ne();
77
77
  },
78
78
  get "aria-disabled"() {
79
- return te();
79
+ return re();
80
80
  },
81
81
  get "aria-pressed"() {
82
82
  return G() ? "true" : "false";
83
83
  },
84
84
  get tabIndex() {
85
- return ne();
85
+ return ie();
86
86
  },
87
- onClick: se,
88
- onFocus: ce,
89
- onKeyDown: de,
90
- onKeyUp: fe,
91
- onMouseDown: le,
92
- onPointerDown: ue
87
+ onClick: ce,
88
+ onFocus: le,
89
+ onKeyDown: fe,
90
+ onKeyUp: pe,
91
+ onMouseDown: ue,
92
+ onPointerDown: de
93
93
  }, X, H));
94
94
  }
95
95
  function w(e) {
@@ -1,2 +1,2 @@
1
- import { t as e } from "../toggle-group-DSWb9HxN.js";
1
+ import { t as e } from "../toggle-group-BbQg5s-m.js";
2
2
  export { e as ToggleGroup };
@@ -1,21 +1,21 @@
1
1
  import { t as e } from "./useRender-CxZ8PI-g.js";
2
2
  import { getStateAttributesProps as t } from "./internals/getStateAttributesProps.js";
3
3
  import { n, t as r } from "./resolveStyle-XcgAuaKR.js";
4
- import { composeEventHandlers as i } from "./internals/composeEventHandlers.js";
5
- import { n as a } from "./DirectionContext-BwMabICS.js";
6
- import { n as o } from "./ToolbarRootContext-88yZoAOy.js";
7
- import { n as s } from "./ToolbarGroupContext-Dpc3_mFx.js";
8
- import { t as c } from "./ToggleGroupContext-_THxLgJU.js";
9
- import { createComponent as l, getNextElement as u, mergeProps as d, runHydrationEvents as f, spread as p, template as m } from "@solidjs/web";
10
- import { createEffect as h, createMemo as g, createSignal as _, omit as v, onSettled as y, untrack as b } from "solid-js";
4
+ import { composeEventHandlers as i, liveEventHandler as a } from "./internals/composeEventHandlers.js";
5
+ import { n as o } from "./DirectionContext-BwMabICS.js";
6
+ import { n as s } from "./ToolbarRootContext-88yZoAOy.js";
7
+ import { n as c } from "./ToolbarGroupContext-Dpc3_mFx.js";
8
+ import { t as l } from "./ToggleGroupContext-_THxLgJU.js";
9
+ import { createComponent as u, getNextElement as d, mergeProps as f, runHydrationEvents as p, spread as m, template as h } from "@solidjs/web";
10
+ import { createEffect as g, createMemo as _, createSignal as v, omit as y, onSettled as b, untrack as x } from "solid-js";
11
11
  //#region src/toggle-group/ToggleGroup.tsx
12
- var x = /* @__PURE__ */ m("<div>"), S = [];
13
- function C(m) {
14
- let C = a(), w = o(!0), T = s(), E = m, D = m, O = b(() => E.value !== void 0), [k, A] = _(() => b(() => E.defaultValue ?? S)), j = b(k), [M, N] = _(), [P, F] = _(), [I, L] = _(0), R = /* @__PURE__ */ new Map(), z, B = v(D, "render", "class", "defaultValue", "disabled", "loopFocus", "multiple", "onKeyDown", "onValueChange", "orientation", "ref", "style", "value"), V = g(() => O ? E.value ?? S : k()), H = g(() => (w?.disabled() ?? !1) || (T?.disabled() ?? !1) || (E.disabled ?? !1)), U = g(() => E.multiple ?? !1), W = g(() => E.orientation ?? "horizontal"), G = g(() => E.value !== void 0 || E.defaultValue !== void 0), K = g(() => ({
12
+ var S = /* @__PURE__ */ h("<div>"), C = [];
13
+ function w(h) {
14
+ let w = o(), T = s(!0), E = c(), D = h, O = h, k = x(() => D.value !== void 0), [A, j] = v(() => x(() => D.defaultValue ?? C)), M = x(A), [N, P] = v(), [F, ee] = v(), [I, L] = v(0), R = /* @__PURE__ */ new Map(), z, B = y(O, "render", "class", "defaultValue", "disabled", "loopFocus", "multiple", "onKeyDown", "onValueChange", "orientation", "ref", "style", "value"), V = _(() => k ? D.value ?? C : A()), H = _(() => (T?.disabled() ?? !1) || (E?.disabled() ?? !1) || (D.disabled ?? !1)), U = _(() => D.multiple ?? !1), W = _(() => D.orientation ?? "horizontal"), G = _(() => D.value !== void 0 || D.defaultValue !== void 0), K = _(() => ({
15
15
  disabled: H(),
16
16
  multiple: U(),
17
17
  orientation: W()
18
- })), q = g(() => n(m.class, K())), J = g(() => r(m.style, K())), Y = g(() => t(K()));
18
+ })), q = _(() => n(h.class, K())), J = _(() => r(h.style, K())), Y = _(() => t(K()));
19
19
  function X() {
20
20
  return Array.from(R.values()).sort((e, t) => {
21
21
  let n = e.element(), r = t.element();
@@ -32,33 +32,33 @@ function C(m) {
32
32
  return !n || n.display === "none" || n.display === "contents" ? !1 : n.visibility !== "hidden" && n.visibility !== "collapse";
33
33
  }
34
34
  function Q(e) {
35
- return w ? w.registerItem(e) : (R.set(e.token, e), !z && !b(e.disabled) && (z = e.token), () => {
36
- R.delete(e.token), z === e.token && (z = X().find((e) => b(e.disabled))?.token), queueMicrotask(() => L((e) => e + 1));
35
+ return T ? T.registerItem(e) : (R.set(e.token, e), !z && !x(e.disabled) && (z = e.token), () => {
36
+ R.delete(e.token), z === e.token && (z = X().find((e) => x(e.disabled))?.token), queueMicrotask(() => L((e) => e + 1));
37
37
  });
38
38
  }
39
39
  function $(e) {
40
- if (w) {
41
- w.setActiveItem(e);
40
+ if (T) {
41
+ T.setActiveItem(e);
42
42
  return;
43
43
  }
44
- e.disabled() || (z = e.token, F(e.token));
44
+ e.disabled() || (z = e.token, ee(e.token));
45
45
  }
46
- function ee(e) {
47
- if (w) return w.isTabStop(e);
46
+ function te(e) {
47
+ if (T) return T.isTabStop(e);
48
48
  I();
49
- let t = X().filter(Z), n = t.find((e) => e.token === (P() ?? z));
49
+ let t = X().filter(Z), n = t.find((e) => e.token === (F() ?? z));
50
50
  return Z(e) && (n ?? t[0])?.token === e.token;
51
51
  }
52
- function te(e) {
53
- return (O ? E.value ?? S : j).indexOf(e) > -1;
52
+ function ne(e) {
53
+ return (k ? D.value ?? C : M).indexOf(e) > -1;
54
54
  }
55
- function ne(e, t, n) {
56
- let r = O ? E.value ?? S : j, i;
57
- U() ? (i = r.slice(), t ? i.push(e) : i.splice(r.indexOf(e), 1)) : i = t ? [e] : [], E.onValueChange?.(i, n), !n.isCanceled && !O && (j = i, A(i));
55
+ function re(e, t, n) {
56
+ let r = k ? D.value ?? C : M, i;
57
+ U() ? (i = r.slice(), t ? i.push(e) : i.splice(r.indexOf(e), 1)) : i = t ? [e] : [], D.onValueChange?.(i, n), !n.isCanceled && !k && (M = i, j(i));
58
58
  }
59
- function re(e) {
59
+ function ie(e) {
60
60
  if (e.shiftKey || e.ctrlKey || e.altKey || e.metaKey) return;
61
- let t = C() === "rtl" ? "ArrowLeft" : "ArrowRight", n = C() === "rtl" ? "ArrowRight" : "ArrowLeft", r = W() === "vertical" ? "ArrowDown" : t, i = W() === "vertical" ? "ArrowUp" : n, a = e.key === r || e.key === i, o = e.key === "Home" || e.key === "End";
61
+ let t = w() === "rtl" ? "ArrowLeft" : "ArrowRight", n = w() === "rtl" ? "ArrowRight" : "ArrowLeft", r = W() === "vertical" ? "ArrowDown" : t, i = W() === "vertical" ? "ArrowUp" : n, a = e.key === r || e.key === i, o = e.key === "Home" || e.key === "End";
62
62
  if (!a && !o) return;
63
63
  I();
64
64
  let s = X(), c = s.filter(Z);
@@ -67,7 +67,7 @@ function C(m) {
67
67
  let t = e.element();
68
68
  return t && (l.includes(t) || u instanceof Node && t.contains(u));
69
69
  });
70
- d === -1 && (d = s.findIndex((e) => e.token === (P() ?? z)));
70
+ d === -1 && (d = s.findIndex((e) => e.token === (F() ?? z)));
71
71
  let f;
72
72
  if (e.key === "Home") f = c[0];
73
73
  else if (e.key === "End") f = c[c.length - 1];
@@ -75,7 +75,7 @@ function C(m) {
75
75
  let t = e.key === r ? 1 : -1, n = d === -1 ? t > 0 ? -1 : s.length : d;
76
76
  for (let e = 0; e < s.length; e += 1) {
77
77
  if (n += t, n < 0 || n >= s.length) {
78
- if (!(E.loopFocus ?? !0)) break;
78
+ if (!(D.loopFocus ?? !0)) break;
79
79
  n = (n + s.length) % s.length;
80
80
  }
81
81
  let e = s[n];
@@ -87,18 +87,18 @@ function C(m) {
87
87
  }
88
88
  !f || f === s[d] || (e.preventDefault(), e.stopPropagation(), $(f), queueMicrotask(() => f.element()?.focus()));
89
89
  }
90
- let ie = i(() => E.onKeyDown, () => w ? void 0 : re), ae = {
90
+ let ae = i(a(() => D.onKeyDown), a(() => T ? void 0 : ie)), oe = {
91
91
  disabled: H,
92
- isPressed: te,
93
- isTabStop: ee,
92
+ isPressed: ne,
93
+ isTabStop: te,
94
94
  isValueInitialized: G,
95
95
  registerItem: Q,
96
96
  setActiveItem: $,
97
- setGroupValue: ne,
98
- toolbar: w,
97
+ setGroupValue: re,
98
+ toolbar: T,
99
99
  value: V
100
100
  };
101
- h(M, (e) => {
101
+ g(N, (e) => {
102
102
  let t = e?.ownerDocument.defaultView?.MutationObserver;
103
103
  if (!e || !t) return;
104
104
  let n = new t(() => L((e) => e + 1));
@@ -106,18 +106,18 @@ function C(m) {
106
106
  childList: !0,
107
107
  subtree: !0
108
108
  }), () => n.disconnect();
109
- }), y(() => {
109
+ }), b(() => {
110
110
  L((e) => e + 1);
111
111
  });
112
- let oe = e(m, () => K(), (e) => (() => {
113
- var t = u(x);
114
- return p(t, e, !1), f(), t;
112
+ let se = e(h, () => K(), (e) => (() => {
113
+ var t = d(S);
114
+ return m(t, e, !1), p(), t;
115
115
  })());
116
- return l(c, {
117
- value: ae,
116
+ return u(l, {
117
+ value: oe,
118
118
  get children() {
119
- return l(oe, d({
120
- ref: [((e) => N(e)), E.ref],
119
+ return u(se, f({
120
+ ref: [((e) => P(e)), D.ref],
121
121
  get class() {
122
122
  return q();
123
123
  },
@@ -125,10 +125,10 @@ function C(m) {
125
125
  return J();
126
126
  },
127
127
  role: "group",
128
- onKeyDown: ie
128
+ onKeyDown: ae
129
129
  }, Y, B));
130
130
  }
131
131
  });
132
132
  }
133
133
  //#endregion
134
- export { C as t };
134
+ export { w as t };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../toolbar-DcCi3HNp.js";
1
+ import { t as e } from "../toolbar-BXT_g-oX.js";
2
2
  export { e as Toolbar };