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
@@ -2,7 +2,7 @@ import { t as e } from "./useRender-CxZ8PI-g.js";
2
2
  import { u as t } from "./reasons-Co5CzjKq.js";
3
3
  import { createChangeEventDetails as n } from "./internals/createBaseUIEventDetails.js";
4
4
  import { transitionStatusMapping as r } from "./internals/stateAttributesMapping.js";
5
- import { c as i, m as a, n as o, o as s, p as c, t as l, u } from "./dom-BEAeQ9Eb.js";
5
+ import { d as i, h as a, l as o, m as s, n as c, s as l, t as u } from "./dom-lDdayFF_.js";
6
6
  import { Portal as ee, createComponent as d, effect as te, getNextElement as f, mergeProps as p, runHydrationEvents as m, setAttribute as h, spread as g, style as ne, template as _ } from "@solidjs/web";
7
7
  import { Show as v, createContext as y, createEffect as b, createMemo as x, createSignal as S, createUniqueId as re, omit as ie, useContext as C } from "solid-js";
8
8
  //#region src/internals/overlay/ReactiveStore.ts
@@ -96,7 +96,7 @@ function j(e) {
96
96
  if (e.assignedSlot) return e.assignedSlot;
97
97
  if (e.parentElement) return e.parentElement;
98
98
  let t = e.getRootNode();
99
- return u(t) ? t.host : null;
99
+ return i(t) ? t.host : null;
100
100
  }
101
101
  function M(e) {
102
102
  return Array.from(e.children).find((e) => A(e) === "summary") ?? null;
@@ -108,7 +108,7 @@ function N(e) {
108
108
  }
109
109
  function P(e, t) {
110
110
  let n = M(t);
111
- return !!(n && (e === n || o(n, e)));
111
+ return !!(n && (e === n || c(n, e)));
112
112
  }
113
113
  function F(e) {
114
114
  if (!N(e) || !e.isConnected || e.matches(":disabled")) return !1;
@@ -116,14 +116,14 @@ function F(e) {
116
116
  let n = t !== e, r = A(t) === "slot";
117
117
  if (t.hasAttribute("inert") || t.hasAttribute("hidden") || n && A(t) === "details" && !t.open && !P(e, t)) return !1;
118
118
  let i = a(t).getComputedStyle(t);
119
- if (!n && !s(t, i) || n && !r && i.display === "none") return !1;
119
+ if (!n && !l(t, i) || n && !r && i.display === "none") return !1;
120
120
  }
121
121
  return !0;
122
122
  }
123
123
  function I(e) {
124
124
  if (e.tabIndex >= 0) return e.tabIndex;
125
125
  let t = A(e);
126
- return t === "details" || t === "audio" || t === "video" || i(e) && e.isContentEditable ? 0 : e.tabIndex;
126
+ return t === "details" || t === "audio" || t === "video" || o(e) && e.isContentEditable ? 0 : e.tabIndex;
127
127
  }
128
128
  function L(e) {
129
129
  if (A(e) !== "input") return null;
@@ -147,7 +147,7 @@ function R(e) {
147
147
  let t = e.assignedElements({ flatten: !0 });
148
148
  if (t.length) return t;
149
149
  }
150
- return i(e) && e.shadowRoot ? Array.from(e.shadowRoot.children) : Array.from(e.children);
150
+ return o(e) && e.shadowRoot ? Array.from(e.shadowRoot.children) : Array.from(e.children);
151
151
  }
152
152
  function z(e, t) {
153
153
  R(e).forEach((e) => {
@@ -156,53 +156,53 @@ function z(e, t) {
156
156
  }
157
157
  function B(e, t, n) {
158
158
  R(e).forEach((e) => {
159
- i(e) && e.matches(t) && n.push(e), B(e, t, n);
159
+ o(e) && e.matches(t) && n.push(e), B(e, t, n);
160
160
  });
161
161
  }
162
- function V(e) {
162
+ function oe(e) {
163
163
  return F(e) && I(e) >= 0;
164
164
  }
165
- function H(e) {
165
+ function V(e) {
166
166
  let t = [];
167
167
  return z(e, t), t.filter(F);
168
168
  }
169
- function U(e) {
170
- let t = H(e);
169
+ function H(e) {
170
+ let t = V(e);
171
171
  return t.filter((e) => I(e) >= 0 && ae(e, t));
172
172
  }
173
- function W(e, t) {
174
- let n = U(e);
173
+ function U(e, t) {
174
+ let n = H(e);
175
175
  if (!n.length) return;
176
- let r = n.indexOf(l(c(e)));
176
+ let r = n.indexOf(u(s(e)));
177
177
  return n[r === -1 ? t === 1 ? 0 : n.length - 1 : r + t];
178
178
  }
179
- function G(e) {
180
- return W(c(e).body, 1) ?? e;
179
+ function W(e) {
180
+ return U(s(e).body, 1) ?? e;
181
181
  }
182
- function K(e) {
183
- return W(c(e).body, -1) ?? e;
182
+ function G(e) {
183
+ return U(s(e).body, -1) ?? e;
184
184
  }
185
- function q(e, t) {
185
+ function K(e, t) {
186
186
  if (!e) return null;
187
- let n = U(c(e).body), r = n.indexOf(e);
187
+ let n = H(s(e).body), r = n.indexOf(e);
188
188
  return r === -1 || n.length === 0 ? null : n[(r + t + n.length) % n.length];
189
189
  }
190
- function oe(e) {
191
- return q(e, 1);
192
- }
193
190
  function se(e) {
194
- return q(e, -1);
191
+ return K(e, 1);
195
192
  }
196
- function J(e, t) {
193
+ function ce(e) {
194
+ return K(e, -1);
195
+ }
196
+ function q(e, t) {
197
197
  let n = e.relatedTarget;
198
- return !n || !o(t, n);
198
+ return !n || !c(t, n);
199
199
  }
200
- function ce(e) {
201
- U(e).forEach((e) => {
200
+ function le(e) {
201
+ H(e).forEach((e) => {
202
202
  e.setAttribute("data-tabindex", e.getAttribute("tabindex") || ""), e.setAttribute("tabindex", "-1");
203
203
  });
204
204
  }
205
- function Y(e) {
205
+ function J(e) {
206
206
  let t = [];
207
207
  B(e, "[data-tabindex]", t), t.forEach((e) => {
208
208
  let t = e.getAttribute("data-tabindex");
@@ -211,16 +211,16 @@ function Y(e) {
211
211
  }
212
212
  //#endregion
213
213
  //#region src/internals/overlay/PopupPortal.tsx
214
- var le = /* @__PURE__ */ _("<div>"), ue = /* @__PURE__ */ _("<span>"), X = Symbol("PopupPortalContext"), Z = y(X);
215
- function Q() {
216
- let e = C(Z);
217
- return e === X ? void 0 : e;
214
+ var ue = /* @__PURE__ */ _("<div>"), de = /* @__PURE__ */ _("<span>"), Y = Symbol("PopupPortalContext"), X = y(Y);
215
+ function Z() {
216
+ let e = C(X);
217
+ return e === Y ? void 0 : e;
218
218
  }
219
- function de(e) {
219
+ function fe(e) {
220
220
  return e === null ? null : typeof e == "function" ? e() : e && "current" in e ? e.current ?? void 0 : e;
221
221
  }
222
- function fe(r) {
223
- let i = Q(), a = re(), [o, s] = S(null, { ownedWrite: !0 }), [c, l] = S(null, { ownedWrite: !0 }), [u, _] = S(null, { ownedWrite: !0 }), [y, C] = S(null, { ownedWrite: !0 }), [w, T] = S(null, { ownedWrite: !0 }), [E, D] = S(null, { ownedWrite: !0 }), k = !1, A = {
222
+ function pe(r) {
223
+ let i = Z(), a = re(), [o, s] = S(null, { ownedWrite: !0 }), [c, l] = S(null, { ownedWrite: !0 }), [u, _] = S(null, { ownedWrite: !0 }), [y, C] = S(null, { ownedWrite: !0 }), [w, T] = S(null, { ownedWrite: !0 }), [E, D] = S(null, { ownedWrite: !0 }), k = !1, A = {
224
224
  portalNode: o,
225
225
  focusManagerState: c,
226
226
  setFocusManagerState: l,
@@ -233,10 +233,10 @@ function fe(r) {
233
233
  setBeforeOutside: T,
234
234
  setAfterOutside: D
235
235
  }, j = x(() => r.id ?? a), M = x(() => {
236
- let e = de(r.container);
236
+ let e = fe(r.container);
237
237
  return e === null ? null : e ?? i?.portalNode() ?? (typeof document > "u" ? void 0 : document.body);
238
238
  }), N = x(() => !r.lite && !!(o() && c()?.open && c()?.modal === !1)), P = ie(r, "render", "container", "lite", "children", "id", "ref", "portalOwnerRole"), F = e(r, () => ({}), (e) => (() => {
239
- var t = f(le);
239
+ var t = f(ue);
240
240
  return g(t, e, !1), m(), t;
241
241
  })());
242
242
  b(() => ({
@@ -246,7 +246,7 @@ function fe(r) {
246
246
  }), ({ node: e, modal: t, lite: n }) => {
247
247
  if (n || !e || t) return;
248
248
  let r = (t) => {
249
- !t.relatedTarget || !J(t, e) || (t.type === "focus" ? k &&= (Y(e), !1) : (ce(e), k = !0));
249
+ !t.relatedTarget || !q(t, e) || (t.type === "focus" ? k &&= (J(e), !1) : (le(e), k = !0));
250
250
  };
251
251
  return e.addEventListener("focus", r, !0), e.addEventListener("blur", r, !0), () => {
252
252
  e.removeEventListener("focus", r, !0), e.removeEventListener("blur", r, !0);
@@ -256,7 +256,7 @@ function fe(r) {
256
256
  open: c()?.open,
257
257
  lite: r.lite
258
258
  }), ({ node: e, open: t, lite: n }) => {
259
- !n && e && t && k && (Y(e), k = !1);
259
+ !n && e && t && k && (J(e), k = !1);
260
260
  });
261
261
  function I() {
262
262
  return d(v, {
@@ -296,14 +296,14 @@ function fe(r) {
296
296
  ref: T,
297
297
  onFocus: (e) => {
298
298
  let t = o(), n = c();
299
- !t || !n || (J(e, t) ? u()?.focus() : K(n.domReference)?.focus());
299
+ !t || !n || (q(e, t) ? u()?.focus() : G(n.domReference)?.focus());
300
300
  }
301
301
  }), (() => {
302
- var e = f(ue);
302
+ var e = f(de);
303
303
  return te(() => ({
304
304
  e: r.portalOwnerRole,
305
305
  t: j() || void 0,
306
- a: pe
306
+ a: me
307
307
  }), ({ e: t, t: n, a: r }, i) => {
308
308
  t !== i?.e && h(e, "role", t), n !== i?.t && h(e, "aria-owns", n), ne(e, r, i?.a);
309
309
  }), e;
@@ -318,7 +318,7 @@ function fe(r) {
318
318
  return d(I, {});
319
319
  },
320
320
  get children() {
321
- return d(Z, {
321
+ return d(X, {
322
322
  value: A,
323
323
  get children() {
324
324
  return d(I, {});
@@ -336,14 +336,14 @@ function fe(r) {
336
336
  ref: D,
337
337
  onFocus: (e) => {
338
338
  let r = o(), i = c();
339
- !r || !i || (J(e, r) ? y()?.focus() : (G(i.domReference)?.focus(), i.closeOnFocusOut && i.onOpenChange(!1, n(t, e))));
339
+ !r || !i || (q(e, r) ? y()?.focus() : (W(i.domReference)?.focus(), i.closeOnFocusOut && i.onOpenChange(!1, n(t, e))));
340
340
  }
341
341
  });
342
342
  }
343
343
  })
344
344
  ];
345
345
  }
346
- var pe = {
346
+ var me = {
347
347
  "clip-path": "inset(50%)",
348
348
  overflow: "hidden",
349
349
  "white-space": "nowrap",
@@ -355,17 +355,17 @@ var pe = {
355
355
  position: "fixed",
356
356
  top: 0,
357
357
  left: 0
358
- }, me = /* @__PURE__ */ function(e) {
358
+ }, he = /* @__PURE__ */ function(e) {
359
359
  return e.open = "data-open", e.closed = "data-closed", e.startingStyle = "data-starting-style", e.endingStyle = "data-ending-style", e.anchorHidden = "data-anchor-hidden", e.side = "data-side", e.align = "data-align", e;
360
- }({}), he = { "data-popup-open": "" }, ge = {
360
+ }({}), ge = { "data-popup-open": "" }, _e = {
361
361
  "data-popup-open": "",
362
362
  "data-pressed": ""
363
- }, _e = { "data-open": "" }, ve = { "data-closed": "" }, ye = { "data-anchor-hidden": "" }, be = { open: (e) => e ? he : null }, xe = { open: (e) => e ? ge : null }, $ = {
364
- open: (e) => e ? _e : ve,
363
+ }, Q = { "data-open": "" }, ve = { "data-closed": "" }, ye = { "data-anchor-hidden": "" }, be = { open: (e) => e ? ge : null }, xe = { open: (e) => e ? _e : null }, $ = {
364
+ open: (e) => e ? Q : ve,
365
365
  anchorHidden: (e) => e ? ye : null
366
366
  }, Se = {
367
367
  ...$,
368
368
  ...r
369
369
  };
370
370
  //#endregion
371
- export { w as _, be as a, H as c, oe as d, se as f, O as g, U as h, xe as i, G as l, V as m, $ as n, fe as o, J as p, Se as r, Q as s, me as t, K as u };
371
+ export { w as _, be as a, V as c, se as d, ce as f, O as g, H as h, xe as i, W as l, oe as m, $ as n, pe as o, q as p, Se as r, Z as s, he as t, G as u };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../preview-card-FTN_aafM.js";
1
+ import { t as e } from "../preview-card-Dtu8AnBN.js";
2
2
  export { e as PreviewCard };