@glasshome/ui 0.3.0 → 0.3.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.
package/dist/index.js CHANGED
@@ -1,14 +1,13 @@
1
- import { createSignal as r, onMount as a, onCleanup as c } from "solid-js";
2
- import { c as w } from "./utils-TrrhThB-.js";
3
- const n = 768;
4
- function d() {
5
- const [i, e] = r(void 0);
6
- return a(() => {
7
- const o = window.matchMedia(`(max-width: ${n - 1}px)`), t = () => e(window.innerWidth < n);
8
- o.addEventListener("change", t), e(window.innerWidth < n), c(() => o.removeEventListener("change", t));
9
- }), i;
1
+ import { t as e } from "./utils-DFpagEar.js";
2
+ import { createSignal as t, onCleanup as n, onMount as r } from "solid-js";
3
+ //#region src/lib/use-is-mobile.ts
4
+ var i = 768;
5
+ function a() {
6
+ let [e, a] = t(void 0);
7
+ return r(() => {
8
+ let e = window.matchMedia(`(max-width: ${i - 1}px)`), t = () => a(window.innerWidth < i);
9
+ e.addEventListener("change", t), a(window.innerWidth < i), n(() => e.removeEventListener("change", t));
10
+ }), e;
10
11
  }
11
- export {
12
- w as cn,
13
- d as createIsMobile
14
- };
12
+ //#endregion
13
+ export { e as cn, a as createIsMobile };