pangea-lib 1.19.17 → 1.19.18
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/main.es.js
CHANGED
|
@@ -29386,8 +29386,18 @@ function Ts1(e, c, a = "animate__") {
|
|
|
29386
29386
|
});
|
|
29387
29387
|
}
|
|
29388
29388
|
function Fs1(e, c) {
|
|
29389
|
-
|
|
29390
|
-
|
|
29389
|
+
let a = 0, t = 0, n = 0, i = 0;
|
|
29390
|
+
if (e.startsWith("rgb") || e.startsWith("rgba")) {
|
|
29391
|
+
const r = e.replace(/rgba?\((.*?)\)/, "$1").replace(/\s/g, ""), [, s, l, o, f = "1"] = r.match(/(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*([\d.]+))?/);
|
|
29392
|
+
a = parseInt(s), t = parseInt(l), n = parseInt(o), i = parseFloat(f);
|
|
29393
|
+
}
|
|
29394
|
+
if (e.startsWith("#")) {
|
|
29395
|
+
let r = e;
|
|
29396
|
+
r.length === 4 && (r = "#" + r[1] + r[1] + r[2] + r[2] + r[3] + r[3]);
|
|
29397
|
+
let [, s, l, o, f] = r.match(/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i).map((u, h) => h === 4 ? parseInt(u, 16) / 255 : parseInt(u, 16));
|
|
29398
|
+
f = f ? parseFloat(f.toFixed(3)) : 1, a = s, t = l, n = o, i = f;
|
|
29399
|
+
}
|
|
29400
|
+
return `rgba(${a}, ${t}, ${n}, ${i * c})`;
|
|
29391
29401
|
}
|
|
29392
29402
|
function Os1(e, c) {
|
|
29393
29403
|
const t = {
|
|
@@ -32059,5 +32069,6 @@ export {
|
|
|
32059
32069
|
Os1 as getDatetimeInString,
|
|
32060
32070
|
xt1 as getNumberInString,
|
|
32061
32071
|
Bs1 as isCurrentUrl,
|
|
32062
|
-
Fs1 as rgba
|
|
32072
|
+
Fs1 as rgba,
|
|
32073
|
+
As1 as useI18nStore
|
|
32063
32074
|
};
|
|
@@ -15,6 +15,7 @@ $tertiaryDarkBackgroundColor = #5e5e5e
|
|
|
15
15
|
// unique
|
|
16
16
|
$firstColor = #218c5a
|
|
17
17
|
$secondColor = #218c5a
|
|
18
|
+
|
|
18
19
|
$successColor = #95CD41
|
|
19
20
|
$warningColor = #FFBD35
|
|
20
21
|
$dangerColor = #FF5959
|
|
@@ -24,6 +25,7 @@ $redColor = #DE4795
|
|
|
24
25
|
$purpleColor = #7746DB
|
|
25
26
|
$skyColor = #1AB8C3
|
|
26
27
|
$beigeColor = #FDF5E6
|
|
27
|
-
|
|
28
|
+
|
|
28
29
|
$infoColor = #54B4D3
|
|
30
|
+
$linkColor = #0064FF
|
|
29
31
|
$errorColor = rgba(225, 21, 21, 0.912)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Color, ColorAlpha } from '../types';
|
|
2
2
|
|
|
3
3
|
export declare function animation(element: string, animation: string, prefix?: string): Promise<unknown>;
|
|
4
|
-
export declare function rgba(
|
|
4
|
+
export declare function rgba(color: Color, colorAlpha: ColorAlpha): string;
|