aptechka 0.68.5 → 0.68.6

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 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../css-unit-parser/index.cjs"),e=class e{parse(s,i){var f;const t=parseFloat(s),n=!isNaN(t),r=n?(f=s.match(/[a-z]+$/i))==null?void 0:f[0]:void 0;return n&&!r?t:r?r==="px"?t:r==="hp"?((i==null?void 0:i.offsetHeight)||0)*(t/100):r==="wp"?((i==null?void 0:i.offsetWidth)||0)*(t/100):r&&e.CSS_UNITS.has(r)?a.cssUnitParser.parse(s):s:s.includes("calc")?s.includes("raw!")?s.replace("raw!",""):a.cssUnitParser.parse(s):s==="true"?!0:s==="false"?!1:s}};e.CSS_UNITS=new Set(["px","rem","vw","vh","vmin","vmax","em","cm","mm","Q","in","pc","pt","ex","ch","lh","rlh","vb","vi","svw","svh","lvw","lvh","dvw","dvh"]);let c=e;const h=new c;exports.cssValueParser=h;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("../css-unit-parser/index.cjs"),w=require("../Viewport-DB0qAZPJ.cjs"),c=class c{parse(s,r){var h;const t=parseFloat(s),o=!isNaN(t),i=o?(h=s.match(/[a-z]+$/i))==null?void 0:h[0]:void 0;return o&&!i?t:i?i==="px"?t:i==="oh"?((r==null?void 0:r.offsetHeight)||0)*(t/100):i==="ow"?((r==null?void 0:r.offsetWidth)||0)*(t/100):i==="ohmh"?(((r==null?void 0:r.offsetHeight)||0)-w.viewport.height)*(t/100):i==="owmw"?(((r==null?void 0:r.offsetWidth)||0)-w.viewport.width)*(t/100):i&&c.CSS_UNITS.has(i)?u.cssUnitParser.parse(s):s:s.includes("calc")?s.includes("raw!")?s.replace("raw!",""):u.cssUnitParser.parse(s):s==="true"?!0:s==="false"?!1:s}};c.CSS_UNITS=new Set(["px","rem","vw","vh","vmin","vmax","em","cm","mm","Q","in","pc","pt","ex","ch","lh","rlh","vb","vi","svw","svh","lvw","lvh","dvw","dvh"]);let f=c;const e=new f;exports.cssValueParser=e;
@@ -1,12 +1,13 @@
1
- import { cssUnitParser as h } from "../css-unit-parser/index.js";
2
- const c = class c {
3
- parse(r, i) {
4
- var n;
5
- const t = parseFloat(r), e = !isNaN(t), s = e ? (n = r.match(/[a-z]+$/i)) == null ? void 0 : n[0] : void 0;
6
- return e && !s ? t : s ? s === "px" ? t : s === "hp" ? ((i == null ? void 0 : i.offsetHeight) || 0) * (t / 100) : s === "wp" ? ((i == null ? void 0 : i.offsetWidth) || 0) * (t / 100) : s && c.CSS_UNITS.has(s) ? h.parse(r) : r : r.includes("calc") ? r.includes("raw!") ? r.replace("raw!", "") : h.parse(r) : r === "true" ? !0 : r === "false" ? !1 : r;
1
+ import { cssUnitParser as p } from "../css-unit-parser/index.js";
2
+ import { v as w } from "../Viewport-DA10iWAO.js";
3
+ const t = class t {
4
+ parse(s, r) {
5
+ var c;
6
+ const f = parseFloat(s), o = !isNaN(f), i = o ? (c = s.match(/[a-z]+$/i)) == null ? void 0 : c[0] : void 0;
7
+ return o && !i ? f : i ? i === "px" ? f : i === "oh" ? ((r == null ? void 0 : r.offsetHeight) || 0) * (f / 100) : i === "ow" ? ((r == null ? void 0 : r.offsetWidth) || 0) * (f / 100) : i === "ohmh" ? (((r == null ? void 0 : r.offsetHeight) || 0) - w.height) * (f / 100) : i === "owmw" ? (((r == null ? void 0 : r.offsetWidth) || 0) - w.width) * (f / 100) : i && t.CSS_UNITS.has(i) ? p.parse(s) : s : s.includes("calc") ? s.includes("raw!") ? s.replace("raw!", "") : p.parse(s) : s === "true" ? !0 : s === "false" ? !1 : s;
7
8
  }
8
9
  };
9
- c.CSS_UNITS = /* @__PURE__ */ new Set([
10
+ t.CSS_UNITS = /* @__PURE__ */ new Set([
10
11
  "px",
11
12
  "rem",
12
13
  "vw",
@@ -33,8 +34,8 @@ c.CSS_UNITS = /* @__PURE__ */ new Set([
33
34
  "dvw",
34
35
  "dvh"
35
36
  ]);
36
- let f = c;
37
- const o = new f();
37
+ let h = t;
38
+ const d = new h();
38
39
  export {
39
- o as cssValueParser
40
+ d as cssValueParser
40
41
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aptechka",
3
- "version": "0.68.5",
3
+ "version": "0.68.6",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/denisavitski/aptechka.git"