@shell-shock/plugin-theme 0.0.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.
@@ -0,0 +1,148 @@
1
+
2
+ //#region src/style-dictionary/helpers.ts
3
+ /**
4
+ * Applies the specified border style type and returns the corresponding border characters.
5
+ *
6
+ * @param identifier - The border style identifier.
7
+ * @returns The border type configuration with the corresponding characters.
8
+ */
9
+ function resolveBorderStyle(identifier) {
10
+ switch (identifier) {
11
+ case "double": return {
12
+ topLeft: "╔",
13
+ topRight: "╗",
14
+ bottomLeft: "╚",
15
+ bottomRight: "╝",
16
+ top: "═",
17
+ bottom: "═",
18
+ left: "║",
19
+ right: "║"
20
+ };
21
+ case "bold": return {
22
+ topLeft: "┏",
23
+ topRight: "┓",
24
+ bottomLeft: "┗",
25
+ bottomRight: "┛",
26
+ top: "━",
27
+ bottom: "━",
28
+ left: "┃",
29
+ right: "┃"
30
+ };
31
+ case "round": return {
32
+ topLeft: "╭",
33
+ topRight: "╮",
34
+ bottomLeft: "╰",
35
+ bottomRight: "╯",
36
+ top: "─",
37
+ bottom: "─",
38
+ left: "│",
39
+ right: "│"
40
+ };
41
+ case "single-double": return {
42
+ topLeft: "╓",
43
+ topRight: "╖",
44
+ bottomLeft: "╙",
45
+ bottomRight: "╜",
46
+ top: "─",
47
+ bottom: "─",
48
+ left: "║",
49
+ right: "║"
50
+ };
51
+ case "double-single": return {
52
+ topLeft: "╒",
53
+ topRight: "╕",
54
+ bottomLeft: "╘",
55
+ bottomRight: "╛",
56
+ top: "═",
57
+ bottom: "═",
58
+ left: "│",
59
+ right: "│"
60
+ };
61
+ case "classic": return {
62
+ topLeft: "+",
63
+ topRight: "+",
64
+ bottomLeft: "+",
65
+ bottomRight: "+",
66
+ top: "-",
67
+ bottom: "-",
68
+ left: "|",
69
+ right: "|"
70
+ };
71
+ case "pointer": return {
72
+ topLeft: "▶",
73
+ topRight: "◀",
74
+ bottomLeft: "◀",
75
+ bottomRight: "▶",
76
+ top: "─",
77
+ bottom: "─",
78
+ left: "►",
79
+ right: "◄"
80
+ };
81
+ case "outward-arrow": return {
82
+ topLeft: "↗",
83
+ topRight: "↖",
84
+ bottomLeft: "↙",
85
+ bottomRight: "↘",
86
+ top: "↑",
87
+ bottom: "↓",
88
+ left: "←",
89
+ right: "→"
90
+ };
91
+ case "arrow":
92
+ case "inward-arrow": return {
93
+ topLeft: "↘",
94
+ topRight: "↙",
95
+ bottomLeft: "↖",
96
+ bottomRight: "↗",
97
+ top: "↓",
98
+ bottom: "↑",
99
+ left: "→",
100
+ right: "←"
101
+ };
102
+ case "outward-double-arrow": return {
103
+ topLeft: "⇗",
104
+ topRight: "⇖",
105
+ bottomLeft: "⇙",
106
+ bottomRight: "⇘",
107
+ top: "⇑",
108
+ bottom: "⇓",
109
+ left: "⇐",
110
+ right: "⇒"
111
+ };
112
+ case "double-arrow":
113
+ case "inward-double-arrow": return {
114
+ topLeft: "⇘",
115
+ topRight: "⇙",
116
+ bottomLeft: "⇖",
117
+ bottomRight: "⇗",
118
+ top: "⇓",
119
+ bottom: "⇑",
120
+ left: "⇒",
121
+ right: "⇐"
122
+ };
123
+ case "none": return {
124
+ topLeft: " ",
125
+ topRight: " ",
126
+ bottomLeft: " ",
127
+ bottomRight: " ",
128
+ top: " ",
129
+ bottom: " ",
130
+ left: " ",
131
+ right: " "
132
+ };
133
+ case "single":
134
+ default: return {
135
+ topLeft: "┌",
136
+ topRight: "┐",
137
+ bottomLeft: "└",
138
+ bottomRight: "┘",
139
+ top: "─",
140
+ bottom: "─",
141
+ left: "│",
142
+ right: "│"
143
+ };
144
+ }
145
+ }
146
+
147
+ //#endregion
148
+ exports.resolveBorderStyle = resolveBorderStyle;
@@ -0,0 +1,147 @@
1
+ //#region src/style-dictionary/helpers.ts
2
+ /**
3
+ * Applies the specified border style type and returns the corresponding border characters.
4
+ *
5
+ * @param identifier - The border style identifier.
6
+ * @returns The border type configuration with the corresponding characters.
7
+ */
8
+ function resolveBorderStyle(identifier) {
9
+ switch (identifier) {
10
+ case "double": return {
11
+ topLeft: "╔",
12
+ topRight: "╗",
13
+ bottomLeft: "╚",
14
+ bottomRight: "╝",
15
+ top: "═",
16
+ bottom: "═",
17
+ left: "║",
18
+ right: "║"
19
+ };
20
+ case "bold": return {
21
+ topLeft: "┏",
22
+ topRight: "┓",
23
+ bottomLeft: "┗",
24
+ bottomRight: "┛",
25
+ top: "━",
26
+ bottom: "━",
27
+ left: "┃",
28
+ right: "┃"
29
+ };
30
+ case "round": return {
31
+ topLeft: "╭",
32
+ topRight: "╮",
33
+ bottomLeft: "╰",
34
+ bottomRight: "╯",
35
+ top: "─",
36
+ bottom: "─",
37
+ left: "│",
38
+ right: "│"
39
+ };
40
+ case "single-double": return {
41
+ topLeft: "╓",
42
+ topRight: "╖",
43
+ bottomLeft: "╙",
44
+ bottomRight: "╜",
45
+ top: "─",
46
+ bottom: "─",
47
+ left: "║",
48
+ right: "║"
49
+ };
50
+ case "double-single": return {
51
+ topLeft: "╒",
52
+ topRight: "╕",
53
+ bottomLeft: "╘",
54
+ bottomRight: "╛",
55
+ top: "═",
56
+ bottom: "═",
57
+ left: "│",
58
+ right: "│"
59
+ };
60
+ case "classic": return {
61
+ topLeft: "+",
62
+ topRight: "+",
63
+ bottomLeft: "+",
64
+ bottomRight: "+",
65
+ top: "-",
66
+ bottom: "-",
67
+ left: "|",
68
+ right: "|"
69
+ };
70
+ case "pointer": return {
71
+ topLeft: "▶",
72
+ topRight: "◀",
73
+ bottomLeft: "◀",
74
+ bottomRight: "▶",
75
+ top: "─",
76
+ bottom: "─",
77
+ left: "►",
78
+ right: "◄"
79
+ };
80
+ case "outward-arrow": return {
81
+ topLeft: "↗",
82
+ topRight: "↖",
83
+ bottomLeft: "↙",
84
+ bottomRight: "↘",
85
+ top: "↑",
86
+ bottom: "↓",
87
+ left: "←",
88
+ right: "→"
89
+ };
90
+ case "arrow":
91
+ case "inward-arrow": return {
92
+ topLeft: "↘",
93
+ topRight: "↙",
94
+ bottomLeft: "↖",
95
+ bottomRight: "↗",
96
+ top: "↓",
97
+ bottom: "↑",
98
+ left: "→",
99
+ right: "←"
100
+ };
101
+ case "outward-double-arrow": return {
102
+ topLeft: "⇗",
103
+ topRight: "⇖",
104
+ bottomLeft: "⇙",
105
+ bottomRight: "⇘",
106
+ top: "⇑",
107
+ bottom: "⇓",
108
+ left: "⇐",
109
+ right: "⇒"
110
+ };
111
+ case "double-arrow":
112
+ case "inward-double-arrow": return {
113
+ topLeft: "⇘",
114
+ topRight: "⇙",
115
+ bottomLeft: "⇖",
116
+ bottomRight: "⇗",
117
+ top: "⇓",
118
+ bottom: "⇑",
119
+ left: "⇒",
120
+ right: "⇐"
121
+ };
122
+ case "none": return {
123
+ topLeft: " ",
124
+ topRight: " ",
125
+ bottomLeft: " ",
126
+ bottomRight: " ",
127
+ top: " ",
128
+ bottom: " ",
129
+ left: " ",
130
+ right: " "
131
+ };
132
+ case "single":
133
+ default: return {
134
+ topLeft: "┌",
135
+ topRight: "┐",
136
+ bottomLeft: "└",
137
+ bottomRight: "┘",
138
+ top: "─",
139
+ bottom: "─",
140
+ left: "│",
141
+ right: "│"
142
+ };
143
+ }
144
+ }
145
+
146
+ //#endregion
147
+ export { resolveBorderStyle };