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
@@ -1,2 +1,2 @@
1
- import { t as e } from "../switch-CPl7QHKI.js";
1
+ import { t as e } from "../switch-Bzuu5EIg.js";
2
2
  export { e as Switch };
@@ -4,17 +4,17 @@ import { getStateAttributesProps as n } from "./internals/getStateAttributesProp
4
4
  import { w as r } from "./reasons-Co5CzjKq.js";
5
5
  import { n as i, t as a } 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 { fieldStateAttributesMapping as c } from "./internals/field-constants.js";
9
- import { n as l } from "./FieldRootContext-izCEh80D.js";
10
- import { n as u } from "./FormContext-CwLBtm_d.js";
11
- import { r as d } from "./LabelableContext-CmQF-TX2.js";
12
- import { t as ee } from "./createLabelableId-DxJRwMUJ.js";
13
- import { createComponent as f, effect as te, getNextElement as p, memo as m, mergeProps as h, ref as ne, runHydrationEvents as g, setAttribute as _, setProperty as re, spread as v, template as y } from "@solidjs/web";
14
- import { createContext as b, createEffect as x, createMemo as S, createSignal as C, createUniqueId as w, flush as ie, omit as T, onCleanup as ae, onSettled as oe, untrack as E, useContext as D } from "solid-js";
7
+ import { composeEventHandlers as s, liveEventHandler as c } from "./internals/composeEventHandlers.js";
8
+ import { fieldStateAttributesMapping as l } from "./internals/field-constants.js";
9
+ import { r as u } from "./FieldRootContext-D3fuVjs3.js";
10
+ import { n as d } from "./FormContext-CwLBtm_d.js";
11
+ import { r as ee } from "./LabelableContext-CmQF-TX2.js";
12
+ import { t as te } from "./createLabelableId-DxJRwMUJ.js";
13
+ import { createComponent as f, effect as ne, getNextElement as p, memo as m, mergeProps as h, ref as re, runHydrationEvents as g, setAttribute as _, setProperty as ie, spread as v, template as y } from "@solidjs/web";
14
+ import { createContext as b, createEffect as x, createMemo as S, createSignal as C, createUniqueId as w, flush as ae, omit as T, onCleanup as oe, onSettled as se, untrack as E, useContext as D } from "solid-js";
15
15
  //#region src/switch/stateAttributesMapping.ts
16
16
  var O = {
17
- ...c,
17
+ ...l,
18
18
  checked(e) {
19
19
  return e ? { "data-checked": "" } : { "data-unchecked": "" };
20
20
  }
@@ -26,7 +26,7 @@ function j() {
26
26
  }
27
27
  //#endregion
28
28
  //#region src/switch/root/SwitchRoot.tsx
29
- var se = /* @__PURE__ */ y("<span>"), ce = /* @__PURE__ */ y("<input>"), le = /* @__PURE__ */ y("<input type=hidden>"), M = {
29
+ var ce = /* @__PURE__ */ y("<span>"), le = /* @__PURE__ */ y("<input>"), ue = /* @__PURE__ */ y("<input type=hidden>"), M = {
30
30
  "clip-path": "inset(50%)",
31
31
  overflow: "hidden",
32
32
  "white-space": "nowrap",
@@ -38,48 +38,48 @@ var se = /* @__PURE__ */ y("<span>"), ce = /* @__PURE__ */ y("<input>"), le = /*
38
38
  position: "fixed",
39
39
  top: "0",
40
40
  left: "0"
41
- }, ue = {
41
+ }, de = {
42
42
  ...M,
43
43
  position: "absolute"
44
44
  };
45
45
  function N(e) {
46
- let c = l(!0), y = u(), b = d(), D = e, k = e, j = Symbol("Switch"), N = `base-ui-${w()}`, I = `base-ui-${w()}`, R = `base-ui-${w()}`, z = b.defaultControlId, B = typeof z == "string" ? z : N, V = E(() => D.checked !== void 0), [me, he] = C(() => !!E(() => D.defaultChecked)), [H, ge] = C(), [U, _e] = C(), [ve, W] = C(), ye = T(k, "aria-describedby", "aria-labelledby", "render", "checked", "class", "defaultChecked", "disabled", "form", "id", "inputRef", "name", "nativeButton", "onBlur", "onChange", "onCheckedChange", "onClick", "onFocus", "onKeyDown", "onKeyUp", "onMouseDown", "onPointerDown", "readOnly", "ref", "required", "style", "uncheckedValue", "value"), G = S(() => V ? !!D.checked : me()), K = S(() => D.nativeButton ?? !1), q = S(() => c.disabled() || (D.disabled ?? !1)), J = S(() => D.readOnly ?? !1), Y = S(() => D.required ?? !1), X = S(() => c.name() ?? D.name), Z = ee(() => D.id, B), be = S(() => K() ? Z() : I), Q = S(() => ({
47
- ...c.state(),
46
+ let l = u(!0), y = d(), b = ee(), D = e, k = e, j = Symbol("Switch"), N = `base-ui-${w()}`, I = `base-ui-${w()}`, R = `base-ui-${w()}`, z = b.defaultControlId, B = typeof z == "string" ? z : N, V = E(() => D.checked !== void 0), [he, ge] = C(() => !!E(() => D.defaultChecked)), [H, _e] = C(), [U, ve] = C(), [ye, W] = C(), be = T(k, "aria-describedby", "aria-labelledby", "render", "checked", "class", "defaultChecked", "disabled", "form", "id", "inputRef", "name", "nativeButton", "onBlur", "onChange", "onCheckedChange", "onClick", "onFocus", "onKeyDown", "onKeyUp", "onMouseDown", "onPointerDown", "readOnly", "ref", "required", "style", "uncheckedValue", "value"), G = S(() => V ? !!D.checked : he()), K = S(() => D.nativeButton ?? !1), q = S(() => l.disabled() || (D.disabled ?? !1)), J = S(() => D.readOnly ?? !1), Y = S(() => D.required ?? !1), X = S(() => l.name() ?? D.name), Z = te(() => D.id, B), xe = S(() => K() ? Z() : I), Q = S(() => ({
47
+ ...l.state(),
48
48
  checked: G(),
49
49
  disabled: q(),
50
50
  readOnly: J(),
51
51
  required: Y()
52
- })), xe = S(() => i(e.class, Q())), Se = t(e, () => Q(), (e) => (() => {
53
- var t = p(se);
52
+ })), Se = S(() => i(e.class, Q())), Ce = t(e, () => Q(), (e) => (() => {
53
+ var t = p(ce);
54
54
  return v(t, e, !1), g(), t;
55
- })()), Ce = S(() => a(e.style, Q())), we = S(() => n(Q(), O)), Te = S(() => D["aria-labelledby"] ?? b.labelId() ?? ve()), Ee = S(() => b.getAriaDescribedBy(D["aria-describedby"])), De = S(() => b.getAriaDescribedBy(void 0)), Oe = E(G), ke = {
55
+ })()), we = S(() => a(e.style, Q())), Te = S(() => n(Q(), O)), Ee = S(() => D["aria-labelledby"] ?? b.labelId() ?? ye()), De = S(() => b.getAriaDescribedBy(D["aria-describedby"])), Oe = S(() => b.getAriaDescribedBy(void 0)), ke = E(G), Ae = {
56
56
  id: I,
57
57
  name: D.name,
58
58
  value: G,
59
59
  getControl: () => H() ?? null
60
- }, Ae = s(() => E(() => q() ? P : void 0), () => D.onClick, () => Le), je = s(() => D.onFocus, () => Re), Me = s(() => D.onBlur, () => ze), Ne = s(() => E(() => q() ? F : void 0), () => D.onKeyDown, () => E(() => K() ? void 0 : de)), Pe = s(() => E(() => q() ? F : void 0), () => D.onKeyUp, () => E(() => K() ? void 0 : fe)), Fe = s(() => E(() => q() ? F : void 0), () => D.onMouseDown), Ie = s(() => E(() => q() ? P : void 0), () => D.onPointerDown);
61
- function Le(e) {
60
+ }, je = s(c(() => E(() => q() ? P : void 0)), c(() => D.onClick), Re), Me = s(c(() => D.onFocus), ze), Ne = s(c(() => D.onBlur), Be), Pe = s(c(() => E(() => q() ? F : void 0)), c(() => D.onKeyDown), c(() => E(() => K() ? void 0 : fe))), Fe = s(c(() => E(() => q() ? F : void 0)), c(() => D.onKeyUp), c(() => E(() => K() ? void 0 : pe))), Ie = s(c(() => E(() => q() ? F : void 0)), c(() => D.onMouseDown)), Le = s(c(() => E(() => q() ? P : void 0)), c(() => D.onPointerDown));
61
+ function Re(e) {
62
62
  if (J() || q()) return;
63
63
  e.preventDefault();
64
64
  let t = U();
65
65
  t && L(t, e);
66
66
  }
67
- function Re() {
68
- q() || c.setFocused(!0);
69
- }
70
67
  function ze() {
71
- !U() || q() || (c.setTouched(!0), c.setFocused(!1), c.validationMode() === "onBlur" && c.validation.commit(G()));
68
+ q() || l.setFocused(!0);
69
+ }
70
+ function Be() {
71
+ !U() || q() || (l.setTouched(!0), l.setFocused(!1), l.validationMode() === "onBlur" && l.validation.commit(G()));
72
72
  }
73
- function Be(e) {
73
+ function Ve(e) {
74
74
  let t = e.currentTarget;
75
75
  if (e.stopPropagation(), e.defaultPrevented || q() || J()) {
76
76
  (q() || J()) && e.preventDefault(), t.checked = E(G), queueMicrotask($);
77
77
  return;
78
78
  }
79
79
  let n = t.checked, i = o(r, e);
80
- D.onCheckedChange?.(n, i), V && ie(), i.isCanceled ? (e.preventDefault(), t.checked = E(G)) : V ? t.checked = E(G) : he(n), queueMicrotask($);
80
+ D.onCheckedChange?.(n, i), V && ae(), i.isCanceled ? (e.preventDefault(), t.checked = E(G)) : V ? t.checked = E(G) : ge(n), queueMicrotask($);
81
81
  }
82
- function Ve() {
82
+ function He() {
83
83
  H()?.focus();
84
84
  }
85
85
  function $() {
@@ -91,12 +91,12 @@ function N(e) {
91
91
  element: H(),
92
92
  name: D.name
93
93
  }), (e) => {
94
- ke.name = e.name, c.registerFieldControl(j, e.disabled || !e.element ? void 0 : ke);
94
+ Ae.name = e.name, l.registerFieldControl(j, e.disabled || !e.element ? void 0 : Ae);
95
95
  }), x(() => ({
96
96
  input: U(),
97
97
  disabled: q()
98
98
  }), (e) => {
99
- if (!(!e.input || e.disabled)) return c.validation.registerInput(j, e.input, () => E(() => H() ?? null));
99
+ if (!(!e.input || e.disabled)) return l.validation.registerInput(j, e.input, () => E(() => H() ?? null));
100
100
  }), x(() => ({
101
101
  explicit: D["aria-labelledby"],
102
102
  fieldLabel: b.labelId(),
@@ -116,32 +116,32 @@ function N(e) {
116
116
  t.id ||= R, W(t.id || void 0);
117
117
  }), x(() => ({
118
118
  checked: G(),
119
- initialValue: c.validityData().initialValue,
119
+ initialValue: l.validityData().initialValue,
120
120
  name: X()
121
121
  }), (e) => {
122
- e.checked !== Oe && (Oe = e.checked, E(() => {
123
- y.clearError(e.name), c.setDirty(e.checked !== e.initialValue), c.setFilled(e.checked), c.validation.change(e.checked);
122
+ e.checked !== ke && (ke = e.checked, E(() => {
123
+ y.clearError(e.name), l.setDirty(e.checked !== e.initialValue), l.setFilled(e.checked), l.validation.change(e.checked);
124
124
  }));
125
125
  }), x(() => U(), (e) => {
126
- if (e) return pe(e, $);
126
+ if (e) return me(e, $);
127
+ }), se(() => {
128
+ l.setFilled(G()), H();
127
129
  }), oe(() => {
128
- c.setFilled(G()), H();
129
- }), ae(() => {
130
- c.registerFieldControl(j, void 0);
130
+ l.registerFieldControl(j, void 0);
131
131
  }), f(A, {
132
132
  value: Q,
133
133
  get children() {
134
134
  return [
135
- f(Se, h({
136
- ref: [((e) => ge(e)), D.ref],
135
+ f(Ce, h({
136
+ ref: [((e) => _e(e)), D.ref],
137
137
  get id() {
138
- return be();
138
+ return xe();
139
139
  },
140
140
  get class() {
141
- return xe();
141
+ return Se();
142
142
  },
143
143
  get style() {
144
- return Ce();
144
+ return we();
145
145
  },
146
146
  get type() {
147
147
  return K() ? "button" : void 0;
@@ -166,36 +166,36 @@ function N(e) {
166
166
  return Y() ? "true" : void 0;
167
167
  },
168
168
  get "aria-labelledby"() {
169
- return Te();
169
+ return Ee();
170
170
  },
171
171
  get "aria-describedby"() {
172
- return Ee();
172
+ return De();
173
173
  },
174
174
  get "aria-invalid"() {
175
175
  return Q().valid === !1 && !q() ? "true" : void 0;
176
176
  },
177
- onClick: Ae,
178
- onFocus: je,
179
- onBlur: Me,
180
- onKeyDown: Ne,
181
- onKeyUp: Pe,
182
- onMouseDown: Fe,
183
- onPointerDown: Ie
184
- }, we, ye)),
177
+ onClick: je,
178
+ onFocus: Me,
179
+ onBlur: Ne,
180
+ onKeyDown: Pe,
181
+ onKeyUp: Fe,
182
+ onMouseDown: Ie,
183
+ onPointerDown: Le
184
+ }, Te, be)),
185
185
  m(() => m(() => !!(!G() && X() && D.uncheckedValue !== void 0))() ? (() => {
186
- var e = p(le);
187
- return te(() => ({
186
+ var e = p(ue);
187
+ return ne(() => ({
188
188
  e: D.form,
189
189
  t: X(),
190
190
  a: D.uncheckedValue,
191
191
  o: q()
192
192
  }), ({ e: t, t: n, a: r, o: i }, a) => {
193
- t !== a?.e && _(e, "form", t), n !== a?.t && _(e, "name", n), re(e, "value", r), i !== a?.o && _(e, "disabled", i);
193
+ t !== a?.e && _(e, "form", t), n !== a?.t && _(e, "name", n), ie(e, "value", r), i !== a?.o && _(e, "disabled", i);
194
194
  }), e;
195
195
  })() : !G() && X() && D.uncheckedValue !== void 0),
196
196
  (() => {
197
- var e = p(ce);
198
- return ne(() => [((e) => _e(e)), D.inputRef], e), v(e, h({
197
+ var e = p(le);
198
+ return re(() => [((e) => ve(e)), D.inputRef], e), v(e, h({
199
199
  type: "checkbox",
200
200
  get form() {
201
201
  return D.form;
@@ -208,11 +208,11 @@ function N(e) {
208
208
  },
209
209
  tabindex: -1,
210
210
  get style() {
211
- return X() ? ue : M;
211
+ return X() ? de : M;
212
212
  },
213
213
  "aria-hidden": "true",
214
214
  get "aria-describedby"() {
215
- return De();
215
+ return Oe();
216
216
  },
217
217
  get "aria-invalid"() {
218
218
  return Q().valid === !1 && !q() ? "true" : void 0;
@@ -226,8 +226,8 @@ function N(e) {
226
226
  get required() {
227
227
  return Y();
228
228
  },
229
- onClick: Be,
230
- onFocus: Ve
229
+ onClick: Ve,
230
+ onFocus: He
231
231
  }, () => D.value === void 0 ? {} : { value: D.value }), !1), g(), e;
232
232
  })()
233
233
  ];
@@ -240,7 +240,7 @@ function P(e) {
240
240
  function F(e) {
241
241
  e.preventBaseUIHandler();
242
242
  }
243
- function de(e) {
243
+ function fe(e) {
244
244
  if (e.target !== e.currentTarget) return;
245
245
  let t = I(e.currentTarget), n = e.key === "Enter", r = e.key === " ";
246
246
  if (t || !n && !r) {
@@ -249,7 +249,7 @@ function de(e) {
249
249
  }
250
250
  e.defaultPrevented || (e.preventDefault(), n && (e.preventBaseUIHandler(), L(e.currentTarget, e)));
251
251
  }
252
- function fe(e) {
252
+ function pe(e) {
253
253
  e.target === e.currentTarget && !e.defaultPrevented && e.key === " " && (e.preventBaseUIHandler(), L(e.currentTarget, e));
254
254
  }
255
255
  function I(e) {
@@ -270,7 +270,7 @@ function L(e, t) {
270
270
  metaKey: t.metaKey
271
271
  }));
272
272
  }
273
- function pe(e, t) {
273
+ function me(e, t) {
274
274
  let n = (n) => {
275
275
  n.target === e.form && queueMicrotask(t);
276
276
  }, r = /* @__PURE__ */ new Set([e.ownerDocument, e.getRootNode()]);
@@ -1,2 +1,2 @@
1
- import { t as e } from "../tabs-Bn4rZDyZ.js";
1
+ import { t as e } from "../tabs-DWiBDv8D.js";
2
2
  export { e as Tabs };