adverich-kun-ui 0.1.605 → 0.1.607

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.
@@ -1,5 +1,5 @@
1
1
  import { toRefs as Re, useModel as Ee, ref as w, watch as se, computed as te, onMounted as Me, openBlock as l, createElementBlock as a, mergeProps as O, unref as s, renderSlot as i, createCommentVNode as r, createElementVNode as b, toDisplayString as z, Fragment as oe, createBlock as F, withCtx as D, createVNode as T, normalizeClass as U, withDirectives as le, vModelText as Be, vShow as ae, normalizeProps as d, guardReactiveProps as h, createSlots as re, renderList as ne, isRef as Ve, mergeModels as ie, nextTick as He } from "vue";
2
- import { isMobile as u, smAndUp as Ke } from "../../../../utils/_platform.js";
2
+ import { isMobile as u, mdAndUp as Ke } from "../../../../utils/_platform.js";
3
3
  import ce from "../../../KunIcon/src/components/KunIcon.vue.js";
4
4
  import Le from "../../../../icons/IconFilter.vue.js";
5
5
  import Oe from "../../../../icons/IconSearch.vue.js";
@@ -1,14 +1,14 @@
1
1
  import { computed as i, ref as x } from "vue";
2
- const d = typeof window < "u";
2
+ const s = typeof window < "u";
3
3
  function f() {
4
4
  var t, a, u, r, v;
5
- if (!d)
5
+ if (!s)
6
6
  return { os: "Server", osVersion: "Unknown" };
7
7
  const l = window.navigator.userAgent;
8
- let o = "Unknown OS", s = "Unknown Version";
9
- return /Mac/.test(l) ? (o = "Mac OS", s = (a = (t = l.match(/Mac OS X (\d+[\._]\d+[\._]\d+)/)) == null ? void 0 : t[1]) == null ? void 0 : a.replace(/_/g, ".")) : /iPhone|iPad|iPod/.test(l) ? (o = "iOS", s = ((u = l.match(/OS (\d+)[._](\d+)[._]?(\d+)?/)) == null ? void 0 : u.slice(1, 4).join(".")) || "Unknown") : /Windows/.test(l) ? (o = "Windows", s = (r = l.match(/Windows NT (\d+\.\d+)/)) == null ? void 0 : r[1]) : /Android/.test(l) ? (o = "Android", s = (v = l.match(/Android (\d+\.\d+)/)) == null ? void 0 : v[1]) : /Linux/.test(l) && (o = "Linux"), { os: o, osVersion: s };
8
+ let o = "Unknown OS", d = "Unknown Version";
9
+ return /Mac/.test(l) ? (o = "Mac OS", d = (a = (t = l.match(/Mac OS X (\d+[\._]\d+[\._]\d+)/)) == null ? void 0 : t[1]) == null ? void 0 : a.replace(/_/g, ".")) : /iPhone|iPad|iPod/.test(l) ? (o = "iOS", d = ((u = l.match(/OS (\d+)[._](\d+)[._]?(\d+)?/)) == null ? void 0 : u.slice(1, 4).join(".")) || "Unknown") : /Windows/.test(l) ? (o = "Windows", d = (r = l.match(/Windows NT (\d+\.\d+)/)) == null ? void 0 : r[1]) : /Android/.test(l) ? (o = "Android", d = (v = l.match(/Android (\d+\.\d+)/)) == null ? void 0 : v[1]) : /Linux/.test(l) && (o = "Linux"), { os: o, osVersion: d };
10
10
  }
11
- const e = x(d ? window.innerWidth : 1024), m = x(d ? window.innerHeight : 768), w = f(), h = i(
11
+ const e = x(s ? window.innerWidth : 1024), m = x(s ? window.innerHeight : 768), w = f(), h = i(
12
12
  () => w.os === "iOS" || w.os === "Android" || m.value > e.value
13
13
  ), n = {
14
14
  xs: 475,
@@ -25,8 +25,8 @@ i(() => e.value >= n.lg && e.value < n.xl);
25
25
  i(() => e.value >= n.xl && e.value < n.xxl);
26
26
  i(() => e.value >= n.xxl);
27
27
  i(() => e.value >= n.xs);
28
- const S = i(() => e.value >= n.sm);
29
- i(() => e.value >= n.md);
28
+ i(() => e.value >= n.sm);
29
+ const S = i(() => e.value >= n.md);
30
30
  i(() => e.value >= n.lg);
31
31
  i(() => e.value >= n.xl);
32
32
  i(() => e.value >= n.xxl);
@@ -37,15 +37,15 @@ i(() => e.value < n.xl);
37
37
  i(() => e.value < n.xxl);
38
38
  i(() => e.value < n.xxl);
39
39
  function c() {
40
- d && (e.value = window.innerWidth, m.value = window.innerHeight);
40
+ s && (e.value = window.innerWidth, m.value = window.innerHeight);
41
41
  }
42
- d && (window.addEventListener("resize", c), window.addEventListener("beforeunload", () => {
42
+ s && (window.addEventListener("resize", c), window.addEventListener("beforeunload", () => {
43
43
  window.removeEventListener("resize", c);
44
44
  }));
45
45
  export {
46
46
  h as isMobile,
47
47
  w as kunOS,
48
+ S as mdAndUp,
48
49
  m as screenHeight,
49
- e as screenWidth,
50
- S as smAndUp
50
+ e as screenWidth
51
51
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adverich-kun-ui",
3
- "version": "0.1.605",
3
+ "version": "0.1.607",
4
4
  "type": "module",
5
5
  "description": "Una librería de componentes Vue.js con Tailwind CSS",
6
6
  "main": "dist/index.js",