@aplus-frontend/ui 0.1.11 → 0.1.12

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.
@@ -6,13 +6,13 @@ function K(t, r) {
6
6
  if (Array.isArray(r))
7
7
  return r.map((p) => ({
8
8
  path: p == null ? void 0 : p[y.pathKey],
9
- fileName: p == null ? void 0 : p[y.pathKey]
9
+ fileName: p == null ? void 0 : p[y.nameKey]
10
10
  }));
11
11
  if (typeof r == "object")
12
12
  return [
13
13
  {
14
14
  path: r == null ? void 0 : r[y.pathKey],
15
- fileName: r == null ? void 0 : r[y.pathKey]
15
+ fileName: r == null ? void 0 : r[y.nameKey]
16
16
  }
17
17
  ];
18
18
  } else if (typeof t == "object") {
@@ -21,13 +21,13 @@ function K(t, r) {
21
21
  if (Array.isArray(r))
22
22
  return r.map((p) => ({
23
23
  path: p == null ? void 0 : p[(t == null ? void 0 : t.pathKey) || y.pathKey],
24
- fileName: p == null ? void 0 : p[(t == null ? void 0 : t.nameKey) || y.pathKey]
24
+ fileName: p == null ? void 0 : p[(t == null ? void 0 : t.nameKey) || y.nameKey]
25
25
  }));
26
26
  if (typeof r == "object")
27
27
  return [
28
28
  {
29
29
  path: r == null ? void 0 : r[(t == null ? void 0 : t.pathKey) || y.pathKey],
30
- fileName: r == null ? void 0 : r[(t == null ? void 0 : t.nameKey) || y.pathKey]
30
+ fileName: r == null ? void 0 : r[(t == null ? void 0 : t.nameKey) || y.nameKey]
31
31
  }
32
32
  ];
33
33
  } else
@@ -35,8 +35,8 @@ function K(t, r) {
35
35
  }
36
36
  function g(t, r) {
37
37
  t.length === 4 && (t = `#${t[1]}${t[1]}${t[2]}${t[2]}${t[3]}${t[3]}`);
38
- const p = parseInt(t.slice(1, 3), 16), s = parseInt(t.slice(3, 5), 16), u = parseInt(t.slice(5, 7), 16), c = Math.round(r * 255).toString(16).padStart(2, "0");
39
- return `#${p.toString(16).padStart(2, "0")}${s.toString(16).padStart(2, "0")}${u.toString(16).padStart(2, "0")}${c}`;
38
+ const p = parseInt(t.slice(1, 3), 16), s = parseInt(t.slice(3, 5), 16), n = parseInt(t.slice(5, 7), 16), u = Math.round(r * 255).toString(16).padStart(2, "0");
39
+ return `#${p.toString(16).padStart(2, "0")}${s.toString(16).padStart(2, "0")}${n.toString(16).padStart(2, "0")}${u}`;
40
40
  }
41
41
  export {
42
42
  K as getFileInfo,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("../interface.js");function s(t,r){if(t===!0){if(typeof r=="string")return r;if(Array.isArray(r))return r.map(p=>({path:p==null?void 0:p[y.ApDownLoadNeedNameKeyDefault.pathKey],fileName:p==null?void 0:p[y.ApDownLoadNeedNameKeyDefault.pathKey]}));if(typeof r=="object")return[{path:r==null?void 0:r[y.ApDownLoadNeedNameKeyDefault.pathKey],fileName:r==null?void 0:r[y.ApDownLoadNeedNameKeyDefault.pathKey]}]}else if(typeof t=="object"){if(typeof r=="string")return r;if(Array.isArray(r))return r.map(p=>({path:p==null?void 0:p[(t==null?void 0:t.pathKey)||y.ApDownLoadNeedNameKeyDefault.pathKey],fileName:p==null?void 0:p[(t==null?void 0:t.nameKey)||y.ApDownLoadNeedNameKeyDefault.pathKey]}));if(typeof r=="object")return[{path:r==null?void 0:r[(t==null?void 0:t.pathKey)||y.ApDownLoadNeedNameKeyDefault.pathKey],fileName:r==null?void 0:r[(t==null?void 0:t.nameKey)||y.ApDownLoadNeedNameKeyDefault.pathKey]}]}else return r}function K(t,r){t.length===4&&(t=`#${t[1]}${t[1]}${t[2]}${t[2]}${t[3]}${t[3]}`);const p=parseInt(t.slice(1,3),16),u=parseInt(t.slice(3,5),16),n=parseInt(t.slice(5,7),16),o=Math.round(r*255).toString(16).padStart(2,"0");return`#${p.toString(16).padStart(2,"0")}${u.toString(16).padStart(2,"0")}${n.toString(16).padStart(2,"0")}${o}`}exports.getFileInfo=s;exports.getHexWithOpacity=K;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("../interface.js");function s(t,r){if(t===!0){if(typeof r=="string")return r;if(Array.isArray(r))return r.map(p=>({path:p==null?void 0:p[y.ApDownLoadNeedNameKeyDefault.pathKey],fileName:p==null?void 0:p[y.ApDownLoadNeedNameKeyDefault.nameKey]}));if(typeof r=="object")return[{path:r==null?void 0:r[y.ApDownLoadNeedNameKeyDefault.pathKey],fileName:r==null?void 0:r[y.ApDownLoadNeedNameKeyDefault.nameKey]}]}else if(typeof t=="object"){if(typeof r=="string")return r;if(Array.isArray(r))return r.map(p=>({path:p==null?void 0:p[(t==null?void 0:t.pathKey)||y.ApDownLoadNeedNameKeyDefault.pathKey],fileName:p==null?void 0:p[(t==null?void 0:t.nameKey)||y.ApDownLoadNeedNameKeyDefault.nameKey]}));if(typeof r=="object")return[{path:r==null?void 0:r[(t==null?void 0:t.pathKey)||y.ApDownLoadNeedNameKeyDefault.pathKey],fileName:r==null?void 0:r[(t==null?void 0:t.nameKey)||y.ApDownLoadNeedNameKeyDefault.nameKey]}]}else return r}function K(t,r){t.length===4&&(t=`#${t[1]}${t[1]}${t[2]}${t[2]}${t[3]}${t[3]}`);const p=parseInt(t.slice(1,3),16),n=parseInt(t.slice(3,5),16),u=parseInt(t.slice(5,7),16),o=Math.round(r*255).toString(16).padStart(2,"0");return`#${p.toString(16).padStart(2,"0")}${n.toString(16).padStart(2,"0")}${u.toString(16).padStart(2,"0")}${o}`}exports.getFileInfo=s;exports.getHexWithOpacity=K;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aplus-frontend/ui",
3
- "version": "0.1.11",
3
+ "version": "0.1.12",
4
4
  "main": "lib/index.js",
5
5
  "module": "es/index.mjs",
6
6
  "files": [