@mrts/soltw 0.3.10 → 0.3.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.
@@ -0,0 +1,76 @@
1
+ import {
2
+ mainTagNormalize,
3
+ twMergeNormalize,
4
+ exclusiveTagsNormalize,
5
+ } from "./normalizers.js";
6
+ import { SVTStyler } from "./SVTStyler.js";
7
+
8
+
9
+ export const baseStyler = new SVTStyler(
10
+ [
11
+ {
12
+ vtags: "A",
13
+ classes: "bg-slate-100 text-slate-800",
14
+ },
15
+ {
16
+ vtags: "B",
17
+ classes: "bg-slate-800 text-slate-100",
18
+ },
19
+ {
20
+ vtags: "C",
21
+ classes: "bg-stone-300 text-orange-950",
22
+ },
23
+ {
24
+ vtags: "D",
25
+ classes: "bg-orange-900 text-stone-100",
26
+ },
27
+ {
28
+ vtags: "LG",
29
+ classes: "text-xl p-2",
30
+ },
31
+ {
32
+ vtags: "BASE",
33
+ classes: "text-base p-1",
34
+ },
35
+ {
36
+ vtags: "SM",
37
+ classes: "text-sm p-0.5",
38
+ },
39
+ {
40
+ vtags: "LG",
41
+ stags: "item",
42
+ classes: "text-xl px-2 py-1",
43
+ },
44
+ {
45
+ vtags: "BASE",
46
+ stags: "item",
47
+ classes: "text-base px-1 py-0.5",
48
+ },
49
+ {
50
+ vtags: "SM",
51
+ stags: "item",
52
+ classes: "text-sm p-0.5",
53
+ },
54
+ {
55
+ stags: "item:selected",
56
+ classes: "underline font-bold",
57
+ },
58
+ {
59
+ stags: "item:disabled",
60
+ classes: "blur-[1px]",
61
+ },
62
+ {
63
+ stags: "item/disabler",
64
+ classes: "bg-slate-300/85 cursor-not-allowed",
65
+ },
66
+ ],
67
+ {
68
+ normalizer: twMergeNormalize,
69
+ vtagsNormaliser: (tags) =>
70
+ exclusiveTagsNormalize(
71
+ mainTagNormalize(tags, "A"),
72
+ new Set(["SM", "BASE", "LG"]),
73
+ "BASE"
74
+ ),
75
+ }
76
+ );