@vizel/core 0.0.1-alpha.1 → 0.0.1-alpha.3
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/LICENSE +21 -0
- package/dist/index.d.ts +13 -13
- package/dist/index.js +141 -141
- package/dist/index10.js +70 -110
- package/dist/index11.js +135 -168
- package/dist/index12.js +83 -74
- package/dist/index13.js +13 -134
- package/dist/index14.js +13 -146
- package/dist/index15.js +303 -15
- package/dist/index16.js +69 -14
- package/dist/index17.js +26 -295
- package/dist/index18.js +2 -2
- package/dist/index19.js +355 -24
- package/dist/index20.js +25 -264
- package/dist/index21.js +85 -68
- package/dist/index22.js +97 -353
- package/dist/index23.js +66 -84
- package/dist/index24.js +12 -36
- package/dist/index25.js +53 -92
- package/dist/index26.js +132 -96
- package/dist/index27.js +59 -126
- package/dist/index28.js +37 -53
- package/dist/index29.js +19 -62
- package/dist/index3.js +165 -60
- package/dist/index30.js +9 -37
- package/dist/index31.js +143 -19
- package/dist/index32.js +264 -11
- package/dist/index33.js +92 -9
- package/dist/index34.js +63 -16
- package/dist/index35.js +4 -58
- package/dist/index36.js +123 -15
- package/dist/index37.js +305 -42
- package/dist/index38.js +487 -4
- package/dist/index39.js +37 -112
- package/dist/index4.js +10 -86
- package/dist/index40.js +653 -301
- package/dist/index41.js +4 -487
- package/dist/index42.js +4 -48
- package/dist/index43.js +206 -642
- package/dist/index44.js +82 -4
- package/dist/index45.js +17 -4
- package/dist/index46.js +57 -237
- package/dist/index47.js +15 -82
- package/dist/index48.js +190 -274
- package/dist/index49.js +281 -1497
- package/dist/index5.js +132 -10
- package/dist/index50.js +1502 -5
- package/dist/index51.js +5 -1561
- package/dist/index52.js +1551 -192
- package/dist/index53.js +1 -1
- package/dist/index54.js +84 -21
- package/dist/index55.js +246 -10
- package/dist/index56.js +3 -7
- package/dist/index57.js +1231 -7
- package/dist/index58.js +731 -11
- package/dist/index59.js +21 -19
- package/dist/index6.js +48 -131
- package/dist/index60.js +10 -25
- package/dist/index61.js +6 -83
- package/dist/index62.js +7 -245
- package/dist/index63.js +11 -1229
- package/dist/index64.js +17 -732
- package/dist/index65.js +25 -3
- package/dist/index66.js +53 -1059
- package/dist/index67.js +1059 -53
- package/dist/index69.js +90 -3
- package/dist/index7.js +228 -409
- package/dist/index70.js +3 -90
- package/dist/index8.js +111 -45
- package/dist/index9.js +409 -228
- package/package.json +54 -80
package/dist/index4.js
CHANGED
|
@@ -1,89 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
// Row 2: Warm colors
|
|
10
|
-
{ name: "Dark Red", color: "#b91c1c" },
|
|
11
|
-
{ name: "Red", color: "#ef4444" },
|
|
12
|
-
{ name: "Orange", color: "#f97316" },
|
|
13
|
-
{ name: "Amber", color: "#f59e0b" },
|
|
14
|
-
// Row 3: Cool colors
|
|
15
|
-
{ name: "Yellow", color: "#eab308" },
|
|
16
|
-
{ name: "Lime", color: "#84cc16" },
|
|
17
|
-
{ name: "Green", color: "#22c55e" },
|
|
18
|
-
{ name: "Emerald", color: "#10b981" },
|
|
19
|
-
// Row 4: Blue spectrum
|
|
20
|
-
{ name: "Teal", color: "#14b8a6" },
|
|
21
|
-
{ name: "Cyan", color: "#06b6d4" },
|
|
22
|
-
{ name: "Blue", color: "#3b82f6" },
|
|
23
|
-
{ name: "Indigo", color: "#6366f1" },
|
|
24
|
-
// Row 5: Purple/Pink spectrum
|
|
25
|
-
{ name: "Violet", color: "#8b5cf6" },
|
|
26
|
-
{ name: "Purple", color: "#a855f7" },
|
|
27
|
-
{ name: "Fuchsia", color: "#d946ef" },
|
|
28
|
-
{ name: "Pink", color: "#ec4899" }
|
|
29
|
-
], s = [
|
|
30
|
-
// Row 1: Basics
|
|
31
|
-
{ name: "None", color: "transparent" },
|
|
32
|
-
{ name: "Light Gray", color: "#e5e7eb" },
|
|
33
|
-
{ name: "Warm Gray", color: "#e7e5e4" },
|
|
34
|
-
{ name: "Cool Gray", color: "#e2e8f0" },
|
|
35
|
-
// Row 2: Warm highlights
|
|
36
|
-
{ name: "Light Red", color: "#fecaca" },
|
|
37
|
-
{ name: "Light Orange", color: "#fed7aa" },
|
|
38
|
-
{ name: "Light Amber", color: "#fde68a" },
|
|
39
|
-
{ name: "Yellow", color: "#fef08a" },
|
|
40
|
-
// Row 3: Green highlights
|
|
41
|
-
{ name: "Light Lime", color: "#d9f99d" },
|
|
42
|
-
{ name: "Light Green", color: "#bbf7d0" },
|
|
43
|
-
{ name: "Light Emerald", color: "#a7f3d0" },
|
|
44
|
-
{ name: "Light Teal", color: "#99f6e4" },
|
|
45
|
-
// Row 4: Blue highlights
|
|
46
|
-
{ name: "Light Cyan", color: "#a5f3fc" },
|
|
47
|
-
{ name: "Light Blue", color: "#bfdbfe" },
|
|
48
|
-
{ name: "Light Indigo", color: "#c7d2fe" },
|
|
49
|
-
{ name: "Light Violet", color: "#ddd6fe" },
|
|
50
|
-
// Row 5: Purple/Pink highlights
|
|
51
|
-
{ name: "Light Purple", color: "#e9d5ff" },
|
|
52
|
-
{ name: "Light Fuchsia", color: "#f5d0fe" },
|
|
53
|
-
{ name: "Light Pink", color: "#fbcfe8" },
|
|
54
|
-
{ name: "Light Rose", color: "#fecdd3" }
|
|
55
|
-
], r = "vizel-recent-colors", m = 8;
|
|
56
|
-
function f(o) {
|
|
57
|
-
if (typeof window > "u") return [];
|
|
58
|
-
try {
|
|
59
|
-
const e = localStorage.getItem(`${r}-${o}`);
|
|
60
|
-
return e ? JSON.parse(e) : [];
|
|
61
|
-
} catch {
|
|
62
|
-
return [];
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
function u(o, e) {
|
|
66
|
-
if (!(typeof window > "u") && !(e === "inherit" || e === "transparent"))
|
|
67
|
-
try {
|
|
68
|
-
const n = f(o).filter((c) => c !== e), a = [e, ...n].slice(0, m);
|
|
69
|
-
localStorage.setItem(`${r}-${o}`, JSON.stringify(a));
|
|
70
|
-
} catch {
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
function b(o = {}) {
|
|
74
|
-
const { multicolor: e = !0 } = o;
|
|
75
|
-
return [
|
|
76
|
-
t,
|
|
77
|
-
l,
|
|
78
|
-
i.configure({
|
|
79
|
-
multicolor: e
|
|
80
|
-
})
|
|
81
|
-
];
|
|
1
|
+
import n from "./index35.js";
|
|
2
|
+
function u(e = {}) {
|
|
3
|
+
const { limit: o = null, mode: r = "textSize", wordCounter: t } = e;
|
|
4
|
+
return n.configure({
|
|
5
|
+
limit: o,
|
|
6
|
+
mode: r,
|
|
7
|
+
...t !== void 0 && { wordCounter: t }
|
|
8
|
+
});
|
|
82
9
|
}
|
|
83
10
|
export {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
u as addVizelRecentColor,
|
|
87
|
-
b as createVizelTextColorExtensions,
|
|
88
|
-
f as getVizelRecentColors
|
|
11
|
+
n as CharacterCount,
|
|
12
|
+
u as createVizelCharacterCountExtension
|
|
89
13
|
};
|