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
@@ -0,0 +1,191 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { t } from "./useRender-CxZ8PI-g.js";
3
+ import { n, t as r } from "./resolveStyle-XcgAuaKR.js";
4
+ import { composeEventHandlers as i, liveEventHandler as a } from "./internals/composeEventHandlers.js";
5
+ import { t as o } from "./runOnceAnimationsFinish-CFADb4CN.js";
6
+ import { t as s } from "./createTransitionStatus-BL_cPSEA.js";
7
+ import { createComponent as c, getNextElement as l, isServer as u, mergeProps as d, runHydrationEvents as f, spread as p, template as m } from "@solidjs/web";
8
+ import { Show as h, createContext as g, createEffect as _, createMemo as v, createSignal as y, omit as b, onCleanup as x, untrack as S, useContext as C } from "solid-js";
9
+ //#region src/avatar/root/AvatarRootContext.ts
10
+ var w = Symbol("AvatarRootContext"), T = g(w);
11
+ function E() {
12
+ let e = C(T);
13
+ if (e === w) throw Error("Base UI: AvatarRootContext is missing. Avatar parts must be placed within <Avatar.Root>.");
14
+ return e;
15
+ }
16
+ //#endregion
17
+ //#region src/avatar/root/AvatarRoot.tsx
18
+ var D = /* @__PURE__ */ m("<span>");
19
+ function O(e) {
20
+ let [i, a] = y("idle"), o = b(e, "render", "class", "style"), s = v(() => ({ imageLoadingStatus: i() })), u = v(() => n(e.class, s())), m = v(() => r(e.style, s())), h = {
21
+ imageLoadingStatus: i,
22
+ setImageLoadingStatus: a
23
+ }, g = t(e, () => s(), (e) => (() => {
24
+ var t = l(D);
25
+ return p(t, e, !1), f(), t;
26
+ })());
27
+ return c(T, {
28
+ value: h,
29
+ get children() {
30
+ return c(g, d({
31
+ get class() {
32
+ return u();
33
+ },
34
+ get style() {
35
+ return m();
36
+ }
37
+ }, o));
38
+ }
39
+ });
40
+ }
41
+ //#endregion
42
+ //#region src/avatar/image/createImageLoadingStatus.ts
43
+ function k(e, t, n) {
44
+ let [r, i] = y("idle"), a = !0;
45
+ return _(e, (e) => {
46
+ if (u) return;
47
+ if (e.keepMounted) {
48
+ let e = t(), r = a;
49
+ if (a = !1, !e) return;
50
+ let o = e.complete ? e.naturalWidth > 0 ? "loaded" : "error" : "loading";
51
+ i(o), r && o === "loaded" && n();
52
+ return;
53
+ }
54
+ if (!e.src && !e.srcset) {
55
+ i("error");
56
+ return;
57
+ }
58
+ let r = !0, o = new window.Image(), s = (e) => {
59
+ r && i(e);
60
+ };
61
+ return i("loading"), o.onload = () => s("loaded"), o.onerror = () => s("error"), e.referrerpolicy && (o.referrerPolicy = e.referrerpolicy), o.crossOrigin = e.crossorigin ?? null, e.sizes && (o.sizes = e.sizes), e.srcset && (o.srcset = e.srcset), e.src && (o.src = e.src), o.complete && i(o.naturalWidth > 0 ? "loaded" : "error"), () => {
62
+ r = !1, o.onload = null, o.onerror = null;
63
+ };
64
+ }), [r, i];
65
+ }
66
+ //#endregion
67
+ //#region src/avatar/image/AvatarImage.tsx
68
+ var A = /* @__PURE__ */ m("<img>");
69
+ function j(e) {
70
+ let u = E(), m, g = !1, y = "idle", C = b(e, "render", "class", "style", "onLoadingStatusChange", "ref", "keepMounted", "onLoad", "onError", "sizes", "srcset", "src"), [w, T] = k(() => ({
71
+ src: typeof e.src == "string" ? e.src : void 0,
72
+ srcset: typeof e.srcset == "string" ? e.srcset : void 0,
73
+ sizes: typeof e.sizes == "string" ? e.sizes : void 0,
74
+ crossorigin: typeof e.crossorigin == "string" ? e.crossorigin : void 0,
75
+ referrerpolicy: typeof e.referrerpolicy == "string" ? e.referrerpolicy : void 0,
76
+ keepMounted: e.keepMounted ?? !1
77
+ }), () => m, () => O.setMounted(!0)), D = v(() => w() === "loaded"), O = s(() => D()), j = v(() => ({
78
+ imageLoadingStatus: w(),
79
+ transitionStatus: e.keepMounted && O.transitionStatus() === "ending" ? void 0 : O.transitionStatus()
80
+ })), M = v(() => e.keepMounted || O.mounted() ? n(e.class, j()) : void 0), N = v(() => e.keepMounted || O.mounted() ? r(e.style, j()) : void 0), P = i(a(() => e.onLoad), () => {
81
+ e.keepMounted && T("loaded");
82
+ }), F = i(a(() => e.onError), () => {
83
+ e.keepMounted && T("error");
84
+ });
85
+ _(() => ({
86
+ status: w(),
87
+ onLoadingStatusChange: e.onLoadingStatusChange
88
+ }), (e) => {
89
+ e.status !== y && (y = e.status, e.status !== "idle" && (e.onLoadingStatusChange?.(e.status), u.setImageLoadingStatus(e.status)));
90
+ }), _(() => ({
91
+ visible: D(),
92
+ transitionStatus: O.transitionStatus(),
93
+ element: m
94
+ }), (t) => {
95
+ if (g = t.visible, t.visible || t.transitionStatus !== "ending" || !t.element) return;
96
+ let n = new AbortController();
97
+ return o(t.element, () => {
98
+ g || (S(() => e.keepMounted) || (m = void 0), O.setMounted(!1));
99
+ }, n.signal), () => n.abort();
100
+ }), x(() => u.setImageLoadingStatus("idle"));
101
+ let I = t(e, () => j(), (e) => (() => {
102
+ var t = l(A);
103
+ return p(t, e, !1), f(), t;
104
+ })());
105
+ return c(h, {
106
+ get when() {
107
+ return e.keepMounted || O.mounted();
108
+ },
109
+ get children() {
110
+ return c(I, d({
111
+ ref: [e.ref, (e) => m = e],
112
+ alt: "",
113
+ get class() {
114
+ return M();
115
+ },
116
+ get style() {
117
+ return N();
118
+ },
119
+ get "data-starting-style"() {
120
+ return j().transitionStatus === "starting" ? "" : void 0;
121
+ },
122
+ get "data-ending-style"() {
123
+ return j().transitionStatus === "ending" ? "" : void 0;
124
+ },
125
+ get "data-loading"() {
126
+ return e.keepMounted && w() === "loading" ? "" : void 0;
127
+ },
128
+ get "data-error"() {
129
+ return e.keepMounted && w() === "error" ? "" : void 0;
130
+ },
131
+ get "aria-hidden"() {
132
+ return e.keepMounted && w() !== "loaded" ? "true" : void 0;
133
+ },
134
+ onLoad: P,
135
+ onError: F
136
+ }, C, {
137
+ get sizes() {
138
+ return e.sizes;
139
+ },
140
+ get srcset() {
141
+ return e.srcset;
142
+ },
143
+ get src() {
144
+ return e.src;
145
+ }
146
+ }));
147
+ }
148
+ });
149
+ }
150
+ //#endregion
151
+ //#region src/avatar/fallback/AvatarFallback.tsx
152
+ var M = /* @__PURE__ */ m("<span>");
153
+ function N(e) {
154
+ let i = E(), a = v(() => e.delay ?? 0), [o, s] = y(S(a) === 0), u = b(e, "render", "class", "style", "delay"), m = v(() => ({ imageLoadingStatus: i.imageLoadingStatus() })), g = v(() => i.imageLoadingStatus() !== "loaded" && (a() === 0 || o())), x = v(() => g() ? n(e.class, m()) : void 0), C = v(() => g() ? r(e.style, m()) : void 0);
155
+ _(a, (e) => {
156
+ if (e <= 0) {
157
+ s(!0);
158
+ return;
159
+ }
160
+ let t = setTimeout(() => s(!0), e);
161
+ return () => clearTimeout(t);
162
+ });
163
+ let w = t(e, () => m(), (e) => (() => {
164
+ var t = l(M);
165
+ return p(t, e, !1), f(), t;
166
+ })());
167
+ return c(h, {
168
+ get when() {
169
+ return g();
170
+ },
171
+ get children() {
172
+ return c(w, d({
173
+ get class() {
174
+ return x();
175
+ },
176
+ get style() {
177
+ return C();
178
+ }
179
+ }, u));
180
+ }
181
+ });
182
+ }
183
+ //#endregion
184
+ //#region src/avatar/index.parts.ts
185
+ var P = /* @__PURE__ */ e({
186
+ Fallback: () => N,
187
+ Image: () => j,
188
+ Root: () => O
189
+ });
190
+ //#endregion
191
+ export { P as t };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../button-akYS6FyY.js";
1
+ import { t as e } from "../button-BJZYmCVv.js";
2
2
  export { e as Button };
@@ -0,0 +1,88 @@
1
+ import { t as e } from "./useRender-CxZ8PI-g.js";
2
+ import { n as t, t as n } from "./resolveStyle-XcgAuaKR.js";
3
+ import { composeEventHandlers as r, liveEventHandler as i } from "./internals/composeEventHandlers.js";
4
+ import { createComponent as a, getNextElement as o, mergeProps as s, runHydrationEvents as c, spread as l, template as u } from "@solidjs/web";
5
+ import { createMemo as d, omit as f, onSettled as p, untrack as m } from "solid-js";
6
+ //#region src/button/Button.tsx
7
+ var h = /* @__PURE__ */ u("<button>");
8
+ function g(u) {
9
+ let g = u, _ = f(u, "render", "class", "disabled", "focusableWhenDisabled", "nativeButton", "onClick", "onKeyDown", "onKeyUp", "onMouseDown", "onPointerDown", "ref", "style"), C = d(() => u.disabled ?? !1), w = d(() => u.focusableWhenDisabled ?? !1), T = d(() => u.nativeButton ?? !0), E = d(() => ({ disabled: C() })), D = d(() => t(u.class, E())), O = d(() => n(u.style, E())), k = d(() => T() && C() && !w()), A = d(() => T() ? w() ? C() ? "true" : "false" : void 0 : C() ? "true" : void 0), j = d(() => !T() && C() && !w() ? -1 : 0), M = r(i(() => m(() => u.disabled ?? !1 ? v : void 0)), i(() => g.onClick)), N = r(i(() => m(() => u.disabled ?? !1 ? y : void 0)), i(() => g.onMouseDown)), P = r(i(() => m(() => u.disabled ?? !1 ? v : void 0)), i(() => g.onPointerDown)), F = r(i(() => m(() => u.disabled ?? !1 ? u.focusableWhenDisabled ?? !1 ? b : y : void 0)), i(() => g.onKeyDown), i(() => m(() => u.nativeButton ?? !0 ? void 0 : x))), I = r(i(() => m(() => u.disabled ?? !1 ? y : void 0)), i(() => g.onKeyUp), i(() => m(() => u.nativeButton ?? !0 ? void 0 : S)));
10
+ p(() => {});
11
+ let L = e(u, () => E(), (e) => (() => {
12
+ var t = o(h);
13
+ return l(t, e, !1), c(), t;
14
+ })());
15
+ return a(L, s({
16
+ ref: [((e) => e), g.ref],
17
+ get class() {
18
+ return D();
19
+ },
20
+ get style() {
21
+ return O();
22
+ },
23
+ get type() {
24
+ return T() ? "button" : void 0;
25
+ },
26
+ get role() {
27
+ return T() ? void 0 : "button";
28
+ },
29
+ get tabIndex() {
30
+ return j();
31
+ },
32
+ get disabled() {
33
+ return k();
34
+ },
35
+ get "aria-disabled"() {
36
+ return A();
37
+ },
38
+ get "data-disabled"() {
39
+ return C() ? "" : void 0;
40
+ },
41
+ onClick: M,
42
+ onMouseDown: N,
43
+ onPointerDown: P,
44
+ onKeyDown: F,
45
+ onKeyUp: I
46
+ }, _));
47
+ }
48
+ function _(e) {
49
+ return e.tagName === "A" && !!e.href;
50
+ }
51
+ function v(e) {
52
+ e.preventDefault(), e.preventBaseUIHandler();
53
+ }
54
+ function y(e) {
55
+ e.preventBaseUIHandler();
56
+ }
57
+ function b(e) {
58
+ e.key !== "Tab" && e.preventDefault(), e.preventBaseUIHandler();
59
+ }
60
+ function x(e) {
61
+ if (e.target !== e.currentTarget) return;
62
+ let t = e.currentTarget, n = _(t), r = e.key === "Enter", i = e.key === " ";
63
+ if (n || !i && !r) {
64
+ n && i && e.preventDefault();
65
+ return;
66
+ }
67
+ e.defaultPrevented || (e.preventDefault(), r && (e.preventBaseUIHandler(), C(t, e)));
68
+ }
69
+ function S(e) {
70
+ e.target === e.currentTarget && !e.defaultPrevented && e.key === " " && (e.preventBaseUIHandler(), C(e.currentTarget, e));
71
+ }
72
+ function C(e, t) {
73
+ let n = e.ownerDocument.defaultView;
74
+ if (!n) return;
75
+ let r = n.PointerEvent ?? n.MouseEvent;
76
+ e.dispatchEvent(new r("click", {
77
+ bubbles: !0,
78
+ cancelable: !0,
79
+ composed: !0,
80
+ detail: 0,
81
+ shiftKey: t.shiftKey,
82
+ ctrlKey: t.ctrlKey,
83
+ altKey: t.altKey,
84
+ metaKey: t.metaKey
85
+ }));
86
+ }
87
+ //#endregion
88
+ export { g as t };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../checkbox-DOXtzBhA.js";
1
+ import { t as e } from "../checkbox-sQHYTbpB.js";
2
2
  export { e as Checkbox };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../checkbox-group-CwMDoSTK.js";
1
+ import { t as e } from "../checkbox-group-DGyrciZJ.js";
2
2
  export { e as CheckboxGroup };
@@ -2,7 +2,7 @@ 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
4
  import { fieldStateAttributesMapping as i } from "./internals/field-constants.js";
5
- import { n as a } from "./FieldRootContext-izCEh80D.js";
5
+ import { r as a } from "./FieldRootContext-D3fuVjs3.js";
6
6
  import { n as o } from "./FormContext-CwLBtm_d.js";
7
7
  import { r as s } from "./LabelableContext-CmQF-TX2.js";
8
8
  import { t as ee } from "./createLabelableId-DxJRwMUJ.js";