@shell-shock/plugin-theme 0.4.21 → 0.4.23
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/_virtual/_rolldown/runtime.cjs +29 -1
- package/dist/_virtual/_rolldown/runtime.mjs +41 -1
- package/dist/contexts/index.cjs +5 -1
- package/dist/contexts/index.mjs +3 -1
- package/dist/contexts/theme.cjs +29 -1
- package/dist/contexts/theme.mjs +26 -1
- package/dist/contexts/theme.mjs.map +1 -1
- package/dist/core/dist/types/command.d.cts.map +1 -1
- package/dist/core/dist/types/config.d.cts +10 -9
- package/dist/core/dist/types/config.d.cts.map +1 -1
- package/dist/helpers/ansi-utils.cjs +1295 -1
- package/dist/helpers/ansi-utils.mjs +1287 -1
- package/dist/helpers/ansi-utils.mjs.map +1 -1
- package/dist/helpers/border-styles.cjs +201 -1
- package/dist/helpers/border-styles.mjs +199 -1
- package/dist/helpers/border-styles.mjs.map +1 -1
- package/dist/helpers/constants.cjs +39 -1
- package/dist/helpers/constants.mjs +33 -1
- package/dist/helpers/constants.mjs.map +1 -1
- package/dist/helpers/index.cjs +107 -1
- package/dist/helpers/index.mjs +6 -1
- package/dist/helpers/merge.cjs +19 -1
- package/dist/helpers/merge.mjs +17 -1
- package/dist/helpers/merge.mjs.map +1 -1
- package/dist/helpers/spinners.cjs +1852 -1
- package/dist/helpers/spinners.mjs +1758 -1
- package/dist/helpers/spinners.mjs.map +1 -1
- package/dist/index.cjs +70 -1
- package/dist/index.mjs +65 -1
- package/dist/index.mjs.map +1 -1
- package/dist/node_modules/.pnpm/{zod@4.3.6 → zod@4.4.3}/node_modules/zod/v3/ZodError.d.mts +1 -1
- package/dist/node_modules/.pnpm/{zod@4.3.6 → zod@4.4.3}/node_modules/zod/v3/ZodError.d.mts.map +1 -1
- package/dist/node_modules/.pnpm/{zod@4.3.6 → zod@4.4.3}/node_modules/zod/v3/errors.d.mts +1 -1
- package/dist/node_modules/.pnpm/{zod@4.3.6 → zod@4.4.3}/node_modules/zod/v3/errors.d.mts.map +1 -1
- package/dist/node_modules/.pnpm/{zod@4.3.6 → zod@4.4.3}/node_modules/zod/v3/external.d.mts +1 -1
- package/dist/node_modules/.pnpm/{zod@4.3.6 → zod@4.4.3}/node_modules/zod/v3/external.d.mts.map +1 -1
- package/dist/node_modules/.pnpm/{zod@4.3.6 → zod@4.4.3}/node_modules/zod/v3/helpers/enumUtil.d.mts +1 -1
- package/dist/node_modules/.pnpm/{zod@4.3.6 → zod@4.4.3}/node_modules/zod/v3/helpers/enumUtil.d.mts.map +1 -1
- package/dist/node_modules/.pnpm/{zod@4.3.6 → zod@4.4.3}/node_modules/zod/v3/helpers/errorUtil.d.mts +1 -1
- package/dist/node_modules/.pnpm/{zod@4.3.6 → zod@4.4.3}/node_modules/zod/v3/helpers/errorUtil.d.mts.map +1 -1
- package/dist/node_modules/.pnpm/{zod@4.3.6 → zod@4.4.3}/node_modules/zod/v3/helpers/parseUtil.d.mts +1 -1
- package/dist/node_modules/.pnpm/{zod@4.3.6 → zod@4.4.3}/node_modules/zod/v3/helpers/parseUtil.d.mts.map +1 -1
- package/dist/node_modules/.pnpm/{zod@4.3.6 → zod@4.4.3}/node_modules/zod/v3/helpers/partialUtil.d.mts +1 -1
- package/dist/node_modules/.pnpm/{zod@4.3.6 → zod@4.4.3}/node_modules/zod/v3/helpers/partialUtil.d.mts.map +1 -1
- package/dist/node_modules/.pnpm/{zod@4.3.6 → zod@4.4.3}/node_modules/zod/v3/helpers/typeAliases.d.mts +1 -1
- package/dist/node_modules/.pnpm/{zod@4.3.6 → zod@4.4.3}/node_modules/zod/v3/helpers/typeAliases.d.mts.map +1 -1
- package/dist/node_modules/.pnpm/{zod@4.3.6 → zod@4.4.3}/node_modules/zod/v3/helpers/util.d.mts +1 -1
- package/dist/node_modules/.pnpm/{zod@4.3.6 → zod@4.4.3}/node_modules/zod/v3/helpers/util.d.mts.map +1 -1
- package/dist/node_modules/.pnpm/{zod@4.3.6 → zod@4.4.3}/node_modules/zod/v3/index.d.mts +1 -1
- package/dist/node_modules/.pnpm/{zod@4.3.6 → zod@4.4.3}/node_modules/zod/v3/index.d.mts.map +1 -1
- package/dist/node_modules/.pnpm/{zod@4.3.6 → zod@4.4.3}/node_modules/zod/v3/locales/en.d.mts +1 -1
- package/dist/node_modules/.pnpm/{zod@4.3.6 → zod@4.4.3}/node_modules/zod/v3/locales/en.d.mts.map +1 -1
- package/dist/node_modules/.pnpm/{zod@4.3.6 → zod@4.4.3}/node_modules/zod/v3/standard-schema.d.mts +1 -1
- package/dist/node_modules/.pnpm/{zod@4.3.6 → zod@4.4.3}/node_modules/zod/v3/standard-schema.d.mts.map +1 -1
- package/dist/node_modules/.pnpm/{zod@4.3.6 → zod@4.4.3}/node_modules/zod/v3/types.d.mts +1 -1
- package/dist/node_modules/.pnpm/{zod@4.3.6 → zod@4.4.3}/node_modules/zod/v3/types.d.mts.map +1 -1
- package/dist/packages/core/dist/api.d.mts +1 -0
- package/dist/packages/core/dist/api.d.mts.map +1 -1
- package/dist/packages/core/dist/index.d.mts +1 -1
- package/dist/packages/core/dist/index.d.mts.map +1 -1
- package/dist/packages/core/dist/types/command.d.mts +1 -1
- package/dist/packages/core/dist/types/command.d.mts.map +1 -1
- package/dist/packages/core/dist/types/config.d.mts.map +1 -1
- package/dist/style-dictionary/border-styles.cjs +285 -1
- package/dist/style-dictionary/border-styles.mjs +284 -1
- package/dist/style-dictionary/border-styles.mjs.map +1 -1
- package/dist/style-dictionary/colors.cjs +1391 -1
- package/dist/style-dictionary/colors.mjs +1390 -1
- package/dist/style-dictionary/colors.mjs.map +1 -1
- package/dist/style-dictionary/icons.cjs +169 -1
- package/dist/style-dictionary/icons.mjs +168 -1
- package/dist/style-dictionary/icons.mjs.map +1 -1
- package/dist/style-dictionary/labels.cjs +151 -1
- package/dist/style-dictionary/labels.mjs +150 -1
- package/dist/style-dictionary/labels.mjs.map +1 -1
- package/dist/style-dictionary/padding.cjs +38 -1
- package/dist/style-dictionary/padding.mjs +37 -1
- package/dist/style-dictionary/padding.mjs.map +1 -1
- package/dist/style-dictionary/settings.cjs +26 -1
- package/dist/style-dictionary/settings.mjs +25 -1
- package/dist/style-dictionary/settings.mjs.map +1 -1
- package/dist/style-dictionary/spinners.cjs +31 -1
- package/dist/style-dictionary/spinners.mjs +30 -1
- package/dist/style-dictionary/spinners.mjs.map +1 -1
- package/dist/themes/default.cjs +156 -1
- package/dist/themes/default.mjs +155 -1
- package/dist/themes/default.mjs.map +1 -1
- package/dist/types/index.mjs +1 -1
- package/dist/types/plugin.mjs +1 -1
- package/dist/types/theme.mjs +1 -1
- package/package.json +13 -13
|
@@ -1,2 +1,200 @@
|
|
|
1
|
-
|
|
1
|
+
//#region src/helpers/border-styles.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
|
+
let result;
|
|
10
|
+
switch (identifier.replace(/-corners$/, "").toLowerCase()) {
|
|
11
|
+
case "double":
|
|
12
|
+
result = {
|
|
13
|
+
topLeft: "╔",
|
|
14
|
+
topRight: "╗",
|
|
15
|
+
bottomLeft: "╚",
|
|
16
|
+
bottomRight: "╝",
|
|
17
|
+
top: "═",
|
|
18
|
+
bottom: "═",
|
|
19
|
+
left: "║",
|
|
20
|
+
right: "║"
|
|
21
|
+
};
|
|
22
|
+
break;
|
|
23
|
+
case "bold":
|
|
24
|
+
result = {
|
|
25
|
+
topLeft: "┏",
|
|
26
|
+
topRight: "┓",
|
|
27
|
+
bottomLeft: "┗",
|
|
28
|
+
bottomRight: "┛",
|
|
29
|
+
top: "━",
|
|
30
|
+
bottom: "━",
|
|
31
|
+
left: "┃",
|
|
32
|
+
right: "┃"
|
|
33
|
+
};
|
|
34
|
+
break;
|
|
35
|
+
case "round":
|
|
36
|
+
result = {
|
|
37
|
+
topLeft: "╭",
|
|
38
|
+
topRight: "╮",
|
|
39
|
+
bottomLeft: "╰",
|
|
40
|
+
bottomRight: "╯",
|
|
41
|
+
top: "─",
|
|
42
|
+
bottom: "─",
|
|
43
|
+
left: "│",
|
|
44
|
+
right: "│"
|
|
45
|
+
};
|
|
46
|
+
break;
|
|
47
|
+
case "single-double":
|
|
48
|
+
result = {
|
|
49
|
+
topLeft: "╓",
|
|
50
|
+
topRight: "╖",
|
|
51
|
+
bottomLeft: "╙",
|
|
52
|
+
bottomRight: "╜",
|
|
53
|
+
top: "─",
|
|
54
|
+
bottom: "─",
|
|
55
|
+
left: "║",
|
|
56
|
+
right: "║"
|
|
57
|
+
};
|
|
58
|
+
break;
|
|
59
|
+
case "double-single":
|
|
60
|
+
result = {
|
|
61
|
+
topLeft: "╒",
|
|
62
|
+
topRight: "╕",
|
|
63
|
+
bottomLeft: "╘",
|
|
64
|
+
bottomRight: "╛",
|
|
65
|
+
top: "═",
|
|
66
|
+
bottom: "═",
|
|
67
|
+
left: "│",
|
|
68
|
+
right: "│"
|
|
69
|
+
};
|
|
70
|
+
break;
|
|
71
|
+
case "classic":
|
|
72
|
+
result = {
|
|
73
|
+
topLeft: "+",
|
|
74
|
+
topRight: "+",
|
|
75
|
+
bottomLeft: "+",
|
|
76
|
+
bottomRight: "+",
|
|
77
|
+
top: "-",
|
|
78
|
+
bottom: "-",
|
|
79
|
+
left: "|",
|
|
80
|
+
right: "|"
|
|
81
|
+
};
|
|
82
|
+
break;
|
|
83
|
+
case "diagonal":
|
|
84
|
+
result = {
|
|
85
|
+
topLeft: "╱╱",
|
|
86
|
+
topRight: "╱╱",
|
|
87
|
+
bottomLeft: "╱╱",
|
|
88
|
+
bottomRight: "╱╱",
|
|
89
|
+
top: "╱",
|
|
90
|
+
bottom: "╱",
|
|
91
|
+
left: "╱╱",
|
|
92
|
+
right: "╱╱"
|
|
93
|
+
};
|
|
94
|
+
break;
|
|
95
|
+
case "diagonal-thick":
|
|
96
|
+
result = {
|
|
97
|
+
topLeft: "🙼🙼",
|
|
98
|
+
topRight: "🙼🙼",
|
|
99
|
+
bottomLeft: "🙼🙼",
|
|
100
|
+
bottomRight: "🙼🙼",
|
|
101
|
+
top: "🙼",
|
|
102
|
+
bottom: "🙼",
|
|
103
|
+
left: "🙼🙼",
|
|
104
|
+
right: "🙼🙼"
|
|
105
|
+
};
|
|
106
|
+
break;
|
|
107
|
+
case "pointer":
|
|
108
|
+
result = {
|
|
109
|
+
topLeft: "▶",
|
|
110
|
+
topRight: "◀",
|
|
111
|
+
bottomLeft: "◀",
|
|
112
|
+
bottomRight: "▶",
|
|
113
|
+
top: "─",
|
|
114
|
+
bottom: "─",
|
|
115
|
+
left: "►",
|
|
116
|
+
right: "◄"
|
|
117
|
+
};
|
|
118
|
+
break;
|
|
119
|
+
case "outward-arrow":
|
|
120
|
+
result = {
|
|
121
|
+
topLeft: "↗",
|
|
122
|
+
topRight: "↖",
|
|
123
|
+
bottomLeft: "↙",
|
|
124
|
+
bottomRight: "↘",
|
|
125
|
+
top: "↑",
|
|
126
|
+
bottom: "↓",
|
|
127
|
+
left: "←",
|
|
128
|
+
right: "→"
|
|
129
|
+
};
|
|
130
|
+
break;
|
|
131
|
+
case "arrow":
|
|
132
|
+
case "inward-arrow":
|
|
133
|
+
result = {
|
|
134
|
+
topLeft: "↘",
|
|
135
|
+
topRight: "↙",
|
|
136
|
+
bottomLeft: "↖",
|
|
137
|
+
bottomRight: "↗",
|
|
138
|
+
top: "↓",
|
|
139
|
+
bottom: "↑",
|
|
140
|
+
left: "→",
|
|
141
|
+
right: "←"
|
|
142
|
+
};
|
|
143
|
+
break;
|
|
144
|
+
case "outward-double-arrow":
|
|
145
|
+
result = {
|
|
146
|
+
topLeft: "⇗",
|
|
147
|
+
topRight: "⇖",
|
|
148
|
+
bottomLeft: "⇙",
|
|
149
|
+
bottomRight: "⇘",
|
|
150
|
+
top: "⇑",
|
|
151
|
+
bottom: "⇓",
|
|
152
|
+
left: "⇐",
|
|
153
|
+
right: "⇒"
|
|
154
|
+
};
|
|
155
|
+
break;
|
|
156
|
+
case "double-arrow":
|
|
157
|
+
case "inward-double-arrow":
|
|
158
|
+
result = {
|
|
159
|
+
topLeft: "⇘",
|
|
160
|
+
topRight: "⇙",
|
|
161
|
+
bottomLeft: "⇖",
|
|
162
|
+
bottomRight: "⇗",
|
|
163
|
+
top: "⇓",
|
|
164
|
+
bottom: "⇑",
|
|
165
|
+
left: "⇒",
|
|
166
|
+
right: "⇐"
|
|
167
|
+
};
|
|
168
|
+
break;
|
|
169
|
+
case "none":
|
|
170
|
+
result = {
|
|
171
|
+
topLeft: " ",
|
|
172
|
+
topRight: " ",
|
|
173
|
+
bottomLeft: " ",
|
|
174
|
+
bottomRight: " ",
|
|
175
|
+
top: " ",
|
|
176
|
+
bottom: " ",
|
|
177
|
+
left: " ",
|
|
178
|
+
right: " "
|
|
179
|
+
};
|
|
180
|
+
break;
|
|
181
|
+
default:
|
|
182
|
+
result = {
|
|
183
|
+
topLeft: "┌",
|
|
184
|
+
topRight: "┐",
|
|
185
|
+
bottomLeft: "└",
|
|
186
|
+
bottomRight: "┘",
|
|
187
|
+
top: "─",
|
|
188
|
+
bottom: "─",
|
|
189
|
+
left: "│",
|
|
190
|
+
right: "│"
|
|
191
|
+
};
|
|
192
|
+
break;
|
|
193
|
+
}
|
|
194
|
+
result.meta = identifier.endsWith("-corners") ? { corners: true } : {};
|
|
195
|
+
return result;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
//#endregion
|
|
199
|
+
export { resolveBorderStyle };
|
|
2
200
|
//# sourceMappingURL=border-styles.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"border-styles.mjs","names":[],"sources":["../../src/helpers/border-styles.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Shell Shock\n\n This code was released as part of the Shell Shock project. Shell Shock\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/shell-shock.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/shell-shock\n Documentation: https://docs.stormsoftware.com/projects/shell-shock\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type {\n ThemeStyleBorderIdentifiers,\n ThemeStyleBorderTypeConfig\n} from \"../types/theme\";\n\n/**\n * Applies the specified border style type and returns the corresponding border characters.\n *\n * @param identifier - The border style identifier.\n * @returns The border type configuration with the corresponding characters.\n */\nexport function resolveBorderStyle(\n identifier: ThemeStyleBorderIdentifiers\n): ThemeStyleBorderTypeConfig {\n let result!: ThemeStyleBorderTypeConfig;\n switch (identifier.replace(/-corners$/, \"\").toLowerCase()) {\n case \"double\":\n result = {\n topLeft: \"╔\",\n topRight: \"╗\",\n bottomLeft: \"╚\",\n bottomRight: \"╝\",\n top: \"═\",\n bottom: \"═\",\n left: \"║\",\n right: \"║\"\n };\n break;\n case \"bold\":\n result = {\n topLeft: \"┏\",\n topRight: \"┓\",\n bottomLeft: \"┗\",\n bottomRight: \"┛\",\n top: \"━\",\n bottom: \"━\",\n left: \"┃\",\n right: \"┃\"\n };\n break;\n case \"round\":\n result = {\n topLeft: \"╭\",\n topRight: \"╮\",\n bottomLeft: \"╰\",\n bottomRight: \"╯\",\n top: \"─\",\n bottom: \"─\",\n left: \"│\",\n right: \"│\"\n };\n break;\n case \"single-double\":\n result = {\n topLeft: \"╓\",\n topRight: \"╖\",\n bottomLeft: \"╙\",\n bottomRight: \"╜\",\n top: \"─\",\n bottom: \"─\",\n left: \"║\",\n right: \"║\"\n };\n break;\n case \"double-single\":\n result = {\n topLeft: \"╒\",\n topRight: \"╕\",\n bottomLeft: \"╘\",\n bottomRight: \"╛\",\n top: \"═\",\n bottom: \"═\",\n left: \"│\",\n right: \"│\"\n };\n break;\n case \"classic\":\n result = {\n topLeft: \"+\",\n topRight: \"+\",\n bottomLeft: \"+\",\n bottomRight: \"+\",\n top: \"-\",\n bottom: \"-\",\n left: \"|\",\n right: \"|\"\n };\n break;\n case \"diagonal\":\n result = {\n topLeft: \"╱╱\",\n topRight: \"╱╱\",\n bottomLeft: \"╱╱\",\n bottomRight: \"╱╱\",\n top: \"╱\",\n bottom: \"╱\",\n left: \"╱╱\",\n right: \"╱╱\"\n };\n break;\n case \"diagonal-thick\":\n result = {\n topLeft: \"🙼🙼\",\n topRight: \"🙼🙼\",\n bottomLeft: \"🙼🙼\",\n bottomRight: \"🙼🙼\",\n top: \"🙼\",\n bottom: \"🙼\",\n left: \"🙼🙼\",\n right: \"🙼🙼\"\n };\n break;\n case \"pointer\":\n result = {\n topLeft: \"▶\",\n topRight: \"◀\",\n bottomLeft: \"◀\",\n bottomRight: \"▶\",\n top: \"─\",\n bottom: \"─\",\n left: \"►\",\n right: \"◄\"\n };\n break;\n case \"outward-arrow\":\n result = {\n topLeft: \"↗\",\n topRight: \"↖\",\n bottomLeft: \"↙\",\n bottomRight: \"↘\",\n top: \"↑\",\n bottom: \"↓\",\n left: \"←\",\n right: \"→\"\n };\n break;\n case \"arrow\":\n case \"inward-arrow\":\n result = {\n topLeft: \"↘\",\n topRight: \"↙\",\n bottomLeft: \"↖\",\n bottomRight: \"↗\",\n top: \"↓\",\n bottom: \"↑\",\n left: \"→\",\n right: \"←\"\n };\n break;\n case \"outward-double-arrow\":\n result = {\n topLeft: \"⇗\",\n topRight: \"⇖\",\n bottomLeft: \"⇙\",\n bottomRight: \"⇘\",\n top: \"⇑\",\n bottom: \"⇓\",\n left: \"⇐\",\n right: \"⇒\"\n };\n break;\n case \"double-arrow\":\n case \"inward-double-arrow\":\n result = {\n topLeft: \"⇘\",\n topRight: \"⇙\",\n bottomLeft: \"⇖\",\n bottomRight: \"⇗\",\n top: \"⇓\",\n bottom: \"⇑\",\n left: \"⇒\",\n right: \"⇐\"\n };\n break;\n case \"none\":\n result = {\n topLeft: \" \",\n topRight: \" \",\n bottomLeft: \" \",\n bottomRight: \" \",\n top: \" \",\n bottom: \" \",\n left: \" \",\n right: \" \"\n };\n break;\n case \"single\":\n default:\n result = {\n topLeft: \"┌\",\n topRight: \"┐\",\n bottomLeft: \"└\",\n bottomRight: \"┘\",\n top: \"─\",\n bottom: \"─\",\n left: \"│\",\n right: \"│\"\n };\n break;\n }\n\n result.meta = identifier.endsWith(\"-corners\")\n ? {\n corners: true\n }\n : {};\n\n return result;\n}\n"],"mappings":"AAwBA,SAAe,
|
|
1
|
+
{"version":3,"file":"border-styles.mjs","names":[],"sources":["../../src/helpers/border-styles.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Shell Shock\n\n This code was released as part of the Shell Shock project. Shell Shock\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/shell-shock.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/shell-shock\n Documentation: https://docs.stormsoftware.com/projects/shell-shock\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type {\n ThemeStyleBorderIdentifiers,\n ThemeStyleBorderTypeConfig\n} from \"../types/theme\";\n\n/**\n * Applies the specified border style type and returns the corresponding border characters.\n *\n * @param identifier - The border style identifier.\n * @returns The border type configuration with the corresponding characters.\n */\nexport function resolveBorderStyle(\n identifier: ThemeStyleBorderIdentifiers\n): ThemeStyleBorderTypeConfig {\n let result!: ThemeStyleBorderTypeConfig;\n switch (identifier.replace(/-corners$/, \"\").toLowerCase()) {\n case \"double\":\n result = {\n topLeft: \"╔\",\n topRight: \"╗\",\n bottomLeft: \"╚\",\n bottomRight: \"╝\",\n top: \"═\",\n bottom: \"═\",\n left: \"║\",\n right: \"║\"\n };\n break;\n case \"bold\":\n result = {\n topLeft: \"┏\",\n topRight: \"┓\",\n bottomLeft: \"┗\",\n bottomRight: \"┛\",\n top: \"━\",\n bottom: \"━\",\n left: \"┃\",\n right: \"┃\"\n };\n break;\n case \"round\":\n result = {\n topLeft: \"╭\",\n topRight: \"╮\",\n bottomLeft: \"╰\",\n bottomRight: \"╯\",\n top: \"─\",\n bottom: \"─\",\n left: \"│\",\n right: \"│\"\n };\n break;\n case \"single-double\":\n result = {\n topLeft: \"╓\",\n topRight: \"╖\",\n bottomLeft: \"╙\",\n bottomRight: \"╜\",\n top: \"─\",\n bottom: \"─\",\n left: \"║\",\n right: \"║\"\n };\n break;\n case \"double-single\":\n result = {\n topLeft: \"╒\",\n topRight: \"╕\",\n bottomLeft: \"╘\",\n bottomRight: \"╛\",\n top: \"═\",\n bottom: \"═\",\n left: \"│\",\n right: \"│\"\n };\n break;\n case \"classic\":\n result = {\n topLeft: \"+\",\n topRight: \"+\",\n bottomLeft: \"+\",\n bottomRight: \"+\",\n top: \"-\",\n bottom: \"-\",\n left: \"|\",\n right: \"|\"\n };\n break;\n case \"diagonal\":\n result = {\n topLeft: \"╱╱\",\n topRight: \"╱╱\",\n bottomLeft: \"╱╱\",\n bottomRight: \"╱╱\",\n top: \"╱\",\n bottom: \"╱\",\n left: \"╱╱\",\n right: \"╱╱\"\n };\n break;\n case \"diagonal-thick\":\n result = {\n topLeft: \"🙼🙼\",\n topRight: \"🙼🙼\",\n bottomLeft: \"🙼🙼\",\n bottomRight: \"🙼🙼\",\n top: \"🙼\",\n bottom: \"🙼\",\n left: \"🙼🙼\",\n right: \"🙼🙼\"\n };\n break;\n case \"pointer\":\n result = {\n topLeft: \"▶\",\n topRight: \"◀\",\n bottomLeft: \"◀\",\n bottomRight: \"▶\",\n top: \"─\",\n bottom: \"─\",\n left: \"►\",\n right: \"◄\"\n };\n break;\n case \"outward-arrow\":\n result = {\n topLeft: \"↗\",\n topRight: \"↖\",\n bottomLeft: \"↙\",\n bottomRight: \"↘\",\n top: \"↑\",\n bottom: \"↓\",\n left: \"←\",\n right: \"→\"\n };\n break;\n case \"arrow\":\n case \"inward-arrow\":\n result = {\n topLeft: \"↘\",\n topRight: \"↙\",\n bottomLeft: \"↖\",\n bottomRight: \"↗\",\n top: \"↓\",\n bottom: \"↑\",\n left: \"→\",\n right: \"←\"\n };\n break;\n case \"outward-double-arrow\":\n result = {\n topLeft: \"⇗\",\n topRight: \"⇖\",\n bottomLeft: \"⇙\",\n bottomRight: \"⇘\",\n top: \"⇑\",\n bottom: \"⇓\",\n left: \"⇐\",\n right: \"⇒\"\n };\n break;\n case \"double-arrow\":\n case \"inward-double-arrow\":\n result = {\n topLeft: \"⇘\",\n topRight: \"⇙\",\n bottomLeft: \"⇖\",\n bottomRight: \"⇗\",\n top: \"⇓\",\n bottom: \"⇑\",\n left: \"⇒\",\n right: \"⇐\"\n };\n break;\n case \"none\":\n result = {\n topLeft: \" \",\n topRight: \" \",\n bottomLeft: \" \",\n bottomRight: \" \",\n top: \" \",\n bottom: \" \",\n left: \" \",\n right: \" \"\n };\n break;\n case \"single\":\n default:\n result = {\n topLeft: \"┌\",\n topRight: \"┐\",\n bottomLeft: \"└\",\n bottomRight: \"┘\",\n top: \"─\",\n bottom: \"─\",\n left: \"│\",\n right: \"│\"\n };\n break;\n }\n\n result.meta = identifier.endsWith(\"-corners\")\n ? {\n corners: true\n }\n : {};\n\n return result;\n}\n"],"mappings":";;;;;;;AAwBA,SAAe,mBAAiB,YAAe;CAC9C,IAAA;AACC,SAAQ,WAAW,QAAM,aAAa,GAAA,CAAA,aAAU,EAAhD;EACE,KAAA;AACF,YAAA;IACK,SAAS;IACd,UAAY;IACX,YAAA;IACG,aAAS;IACP,KAAE;IACF,QAAQ;IACV,MAAQ;IACN,OAAO;IACR;AACD;EACF,KAAI;AACF,YAAS;IACP,SAAS;IACT,UAAS;IACT,YAAS;IACV,aAAA;IACD,KAAK;IACH,QAAO;IACT,MAAQ;IACN,OAAO;IACR;AACD;EACF,KAAI;AACF,YAAS;IACP,SAAS;IACT,UAAS;IACT,YAAS;IACV,aAAA;IACD,KAAK;IACH,QAAQ;IACV,MAAQ;IACN,OAAO;IACR;AACD;EACF,KAAI;AACF,YAAS;IACP,SAAS;IACT,UAAS;IACT,YAAS;IACV,aAAA;IACD,KAAK;IACH,QAAQ;IACV,MAAQ;IACN,OAAO;IACR;AACD;EACF,KAAI;AACF,YAAS;IACP,SAAS;IACT,UAAS;IACT,YAAS;IACV,aAAA;IACD,KAAK;IACH,QAAQ;IACV,MAAQ;IACN,OAAO;IACR;AACD;EACF,KAAI;AACF,YAAS;IACP,SAAS;IACT,UAAS;IACT,YAAS;IACV,aAAA;IACD,KAAK;IACH,QAAE;IACJ,MAAQ;IACN,OAAO;IACR;AACD;EACF,KAAI;AACF,YAAS;IACP,SAAS;IACT,UAAS;IACT,YAAS;IACV,aAAA;IACD,KAAK;IACH,QAAE;IACJ,MAAQ;IACN,OAAO;IACR;AACD;EACF,KAAI;AACF,YAAS;IACP,SAAS;IACT,UAAU;IACV,YAAU;IACX,aAAA;IACD,KAAK;IACH,QAAE;IACJ,MAAQ;IACN,OAAO;IACR;AACD;EACF,KAAI;AACF,YAAQ;IACN,SAAS;IACT,UAAS;IACT,YAAY;IACb,aAAA;IACD,KAAK;IACH,QAAE;IACJ,MAAQ;IACN,OAAO;IACR;AACD;EACF,KAAI;AACF,YAAS;IACP,SAAS;IACT,UAAS;IACT,YAAS;IACV,aAAA;IACD,KAAK;IACH,QAAE;IACJ,MAAQ;IACN,OAAO;IACR;AACD;EACF,KAAI;EACJ,KAAI;AACF,YAAS;IACP,SAAS;IACT,UAAS;IACV,YAAA;IACD,aAAK;IACH,KAAE;IACF,QAAQ;IACV,MAAQ;IACN,OAAO;IACR;AACD;EACF,KAAI;AACF,YAAS;IACP,SAAS;IACT,UAAS;IACT,YAAS;IACV,aAAA;IACD,KAAK;IACH,QAAE;IACJ,MAAQ;IACN,OAAO;IACR;AACD;EACF,KAAI;EACJ,KAAI;AACF,YAAS;IACP,SAAS;IACT,UAAS;IACV,YAAA;IACD,aAAK;IACH,KAAE;IACF,QAAQ;IACV,MAAQ;IACN,OAAO;IACR;AACD;EACF,KAAI;AACF,YAAS;IACP,SAAS;IACT,UAAS;IACT,YAAS;IACV,aAAA;IACD,KAAK;IACH,QAAO;IACT,MAAQ;IACN,OAAO;IACR;AACD;EAEF;AACE,YAAS;IACP,SAAS;IACT,UAAS;IACV,YAAA;IACD,aAAK;IACH,KAAE;IACN,QAAO;IACL,MAAQ;IACN,OAAO;IACR;AACD;;AAEJ,QAAM,OAAQ,WAAA,SAAA,WAAA,GAAA,EACZ,SAAI,MACL,GAAG,EAAE;AACN,QAAM"}
|
|
@@ -1 +1,39 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
|
|
3
|
+
//#region src/helpers/constants.ts
|
|
4
|
+
const DEFAULT_TAG_COLORS = {
|
|
5
|
+
foreground: "#394447",
|
|
6
|
+
background: "#f9fbfb"
|
|
7
|
+
};
|
|
8
|
+
const THEME_MESSAGE_VARIANTS = [
|
|
9
|
+
"help",
|
|
10
|
+
"success",
|
|
11
|
+
"info",
|
|
12
|
+
"debug",
|
|
13
|
+
"warning",
|
|
14
|
+
"danger",
|
|
15
|
+
"error"
|
|
16
|
+
];
|
|
17
|
+
const THEME_COLOR_VARIANTS = [
|
|
18
|
+
"primary",
|
|
19
|
+
"secondary",
|
|
20
|
+
"tertiary"
|
|
21
|
+
];
|
|
22
|
+
const THEME_COLOR_SUBITEMS = [
|
|
23
|
+
"primary",
|
|
24
|
+
"secondary",
|
|
25
|
+
"tertiary"
|
|
26
|
+
];
|
|
27
|
+
const THEME_COLOR_BODY_SUBITEMS = [
|
|
28
|
+
"link",
|
|
29
|
+
"primary",
|
|
30
|
+
"secondary",
|
|
31
|
+
"tertiary"
|
|
32
|
+
];
|
|
33
|
+
|
|
34
|
+
//#endregion
|
|
35
|
+
exports.DEFAULT_TAG_COLORS = DEFAULT_TAG_COLORS;
|
|
36
|
+
exports.THEME_COLOR_BODY_SUBITEMS = THEME_COLOR_BODY_SUBITEMS;
|
|
37
|
+
exports.THEME_COLOR_SUBITEMS = THEME_COLOR_SUBITEMS;
|
|
38
|
+
exports.THEME_COLOR_VARIANTS = THEME_COLOR_VARIANTS;
|
|
39
|
+
exports.THEME_MESSAGE_VARIANTS = THEME_MESSAGE_VARIANTS;
|
|
@@ -1,2 +1,34 @@
|
|
|
1
|
-
|
|
1
|
+
//#region src/helpers/constants.ts
|
|
2
|
+
const DEFAULT_TAG_COLORS = {
|
|
3
|
+
foreground: "#394447",
|
|
4
|
+
background: "#f9fbfb"
|
|
5
|
+
};
|
|
6
|
+
const THEME_MESSAGE_VARIANTS = [
|
|
7
|
+
"help",
|
|
8
|
+
"success",
|
|
9
|
+
"info",
|
|
10
|
+
"debug",
|
|
11
|
+
"warning",
|
|
12
|
+
"danger",
|
|
13
|
+
"error"
|
|
14
|
+
];
|
|
15
|
+
const THEME_COLOR_VARIANTS = [
|
|
16
|
+
"primary",
|
|
17
|
+
"secondary",
|
|
18
|
+
"tertiary"
|
|
19
|
+
];
|
|
20
|
+
const THEME_COLOR_SUBITEMS = [
|
|
21
|
+
"primary",
|
|
22
|
+
"secondary",
|
|
23
|
+
"tertiary"
|
|
24
|
+
];
|
|
25
|
+
const THEME_COLOR_BODY_SUBITEMS = [
|
|
26
|
+
"link",
|
|
27
|
+
"primary",
|
|
28
|
+
"secondary",
|
|
29
|
+
"tertiary"
|
|
30
|
+
];
|
|
31
|
+
|
|
32
|
+
//#endregion
|
|
33
|
+
export { DEFAULT_TAG_COLORS, THEME_COLOR_BODY_SUBITEMS, THEME_COLOR_SUBITEMS, THEME_COLOR_VARIANTS, THEME_MESSAGE_VARIANTS };
|
|
2
34
|
//# sourceMappingURL=constants.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.mjs","names":[],"sources":["../../src/helpers/constants.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Shell Shock\n\n This code was released as part of the Shell Shock project. Shell Shock\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/shell-shock.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/shell-shock\n Documentation: https://docs.stormsoftware.com/projects/shell-shock\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nexport const DEFAULT_TAG_COLORS = {\n foreground: \"#394447\",\n background: \"#f9fbfb\"\n} as const;\n\nexport const THEME_MESSAGE_VARIANTS = [\n \"help\",\n \"success\",\n \"info\",\n \"debug\",\n \"warning\",\n \"danger\",\n \"error\"\n] as const;\n\nexport const THEME_COLOR_VARIANTS = [\n \"primary\",\n \"secondary\",\n \"tertiary\"\n] as const;\n\nexport const THEME_COLOR_SUBITEMS = [\n \"primary\",\n \"secondary\",\n \"tertiary\"\n] as const;\n\nexport const THEME_COLOR_BODY_SUBITEMS = [\n \"link\",\n \"primary\",\n \"secondary\",\n \"tertiary\"\n] as const;\n"],"mappings":"AAkBA,MAAa,
|
|
1
|
+
{"version":3,"file":"constants.mjs","names":[],"sources":["../../src/helpers/constants.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Shell Shock\n\n This code was released as part of the Shell Shock project. Shell Shock\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/shell-shock.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/shell-shock\n Documentation: https://docs.stormsoftware.com/projects/shell-shock\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nexport const DEFAULT_TAG_COLORS = {\n foreground: \"#394447\",\n background: \"#f9fbfb\"\n} as const;\n\nexport const THEME_MESSAGE_VARIANTS = [\n \"help\",\n \"success\",\n \"info\",\n \"debug\",\n \"warning\",\n \"danger\",\n \"error\"\n] as const;\n\nexport const THEME_COLOR_VARIANTS = [\n \"primary\",\n \"secondary\",\n \"tertiary\"\n] as const;\n\nexport const THEME_COLOR_SUBITEMS = [\n \"primary\",\n \"secondary\",\n \"tertiary\"\n] as const;\n\nexport const THEME_COLOR_BODY_SUBITEMS = [\n \"link\",\n \"primary\",\n \"secondary\",\n \"tertiary\"\n] as const;\n"],"mappings":";AAkBA,MAAa,qBAAqB;CAChC,YAAY;CACZ,YAAY;CACb;;;;;;;;;;AAED,MAAa,uBAAuB;CAAC;CAAC;CAAA;CAAA;AACtC,MAAQ,uBAAA;CAAA;CAAA;CAAA;CAAA;AACR,MAAW,4BAAA;CAAA;CAAA;CAAA;CAAA;CAAA"}
|
package/dist/helpers/index.cjs
CHANGED
|
@@ -1 +1,107 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
const require_helpers_border_styles = require('./border-styles.cjs');
|
|
3
|
+
const require_helpers_merge = require('./merge.cjs');
|
|
4
|
+
const require_helpers_spinners = require('./spinners.cjs');
|
|
5
|
+
const require_helpers_ansi_utils = require('./ansi-utils.cjs');
|
|
6
|
+
|
|
7
|
+
exports.aesthetic = require_helpers_spinners.aesthetic;
|
|
8
|
+
exports.arc = require_helpers_spinners.arc;
|
|
9
|
+
exports.arrow = require_helpers_spinners.arrow;
|
|
10
|
+
exports.arrow2 = require_helpers_spinners.arrow2;
|
|
11
|
+
exports.arrow3 = require_helpers_spinners.arrow3;
|
|
12
|
+
exports.balloon = require_helpers_spinners.balloon;
|
|
13
|
+
exports.balloon2 = require_helpers_spinners.balloon2;
|
|
14
|
+
exports.betaWave = require_helpers_spinners.betaWave;
|
|
15
|
+
exports.bgColorKeys = require_helpers_ansi_utils.bgColorKeys;
|
|
16
|
+
exports.bgColors = require_helpers_ansi_utils.bgColors;
|
|
17
|
+
exports.binary = require_helpers_spinners.binary;
|
|
18
|
+
exports.bluePulse = require_helpers_spinners.bluePulse;
|
|
19
|
+
exports.bounce = require_helpers_spinners.bounce;
|
|
20
|
+
exports.bouncingBall = require_helpers_spinners.bouncingBall;
|
|
21
|
+
exports.bouncingBar = require_helpers_spinners.bouncingBar;
|
|
22
|
+
exports.boxBounce = require_helpers_spinners.boxBounce;
|
|
23
|
+
exports.boxBounce2 = require_helpers_spinners.boxBounce2;
|
|
24
|
+
exports.christmas = require_helpers_spinners.christmas;
|
|
25
|
+
exports.circle = require_helpers_spinners.circle;
|
|
26
|
+
exports.circleHalves = require_helpers_spinners.circleHalves;
|
|
27
|
+
exports.circleQuarters = require_helpers_spinners.circleQuarters;
|
|
28
|
+
exports.clock = require_helpers_spinners.clock;
|
|
29
|
+
exports.colorKeys = require_helpers_ansi_utils.colorKeys;
|
|
30
|
+
exports.colors = require_helpers_ansi_utils.colors;
|
|
31
|
+
exports.dots = require_helpers_spinners.dots;
|
|
32
|
+
exports.dots10 = require_helpers_spinners.dots10;
|
|
33
|
+
exports.dots11 = require_helpers_spinners.dots11;
|
|
34
|
+
exports.dots12 = require_helpers_spinners.dots12;
|
|
35
|
+
exports.dots13 = require_helpers_spinners.dots13;
|
|
36
|
+
exports.dots14 = require_helpers_spinners.dots14;
|
|
37
|
+
exports.dots2 = require_helpers_spinners.dots2;
|
|
38
|
+
exports.dots3 = require_helpers_spinners.dots3;
|
|
39
|
+
exports.dots4 = require_helpers_spinners.dots4;
|
|
40
|
+
exports.dots5 = require_helpers_spinners.dots5;
|
|
41
|
+
exports.dots6 = require_helpers_spinners.dots6;
|
|
42
|
+
exports.dots7 = require_helpers_spinners.dots7;
|
|
43
|
+
exports.dots8 = require_helpers_spinners.dots8;
|
|
44
|
+
exports.dots8Bit = require_helpers_spinners.dots8Bit;
|
|
45
|
+
exports.dots9 = require_helpers_spinners.dots9;
|
|
46
|
+
exports.dotsCircle = require_helpers_spinners.dotsCircle;
|
|
47
|
+
exports.dqpb = require_helpers_spinners.dqpb;
|
|
48
|
+
exports.dwarfFortress = require_helpers_spinners.dwarfFortress;
|
|
49
|
+
exports.earth = require_helpers_spinners.earth;
|
|
50
|
+
exports.fingerDance = require_helpers_spinners.fingerDance;
|
|
51
|
+
exports.fish = require_helpers_spinners.fish;
|
|
52
|
+
exports.fistBump = require_helpers_spinners.fistBump;
|
|
53
|
+
exports.flip = require_helpers_spinners.flip;
|
|
54
|
+
exports.getAnsiStyles = require_helpers_ansi_utils.getAnsiStyles;
|
|
55
|
+
exports.grenade = require_helpers_spinners.grenade;
|
|
56
|
+
exports.growHorizontal = require_helpers_spinners.growHorizontal;
|
|
57
|
+
exports.growVertical = require_helpers_spinners.growVertical;
|
|
58
|
+
exports.hamburger = require_helpers_spinners.hamburger;
|
|
59
|
+
exports.hearts = require_helpers_spinners.hearts;
|
|
60
|
+
exports.layer = require_helpers_spinners.layer;
|
|
61
|
+
exports.line = require_helpers_spinners.line;
|
|
62
|
+
exports.line2 = require_helpers_spinners.line2;
|
|
63
|
+
exports.material = require_helpers_spinners.material;
|
|
64
|
+
exports.mergeThemes = require_helpers_merge.mergeThemes;
|
|
65
|
+
exports.mindblown = require_helpers_spinners.mindblown;
|
|
66
|
+
exports.modifierKeys = require_helpers_ansi_utils.modifierKeys;
|
|
67
|
+
exports.modifiers = require_helpers_ansi_utils.modifiers;
|
|
68
|
+
exports.monkey = require_helpers_spinners.monkey;
|
|
69
|
+
exports.moon = require_helpers_spinners.moon;
|
|
70
|
+
exports.noise = require_helpers_spinners.noise;
|
|
71
|
+
exports.orangeBluePulse = require_helpers_spinners.orangeBluePulse;
|
|
72
|
+
exports.orangePulse = require_helpers_spinners.orangePulse;
|
|
73
|
+
exports.pipe = require_helpers_spinners.pipe;
|
|
74
|
+
exports.point = require_helpers_spinners.point;
|
|
75
|
+
exports.pong = require_helpers_spinners.pong;
|
|
76
|
+
exports.resolveBorderStyle = require_helpers_border_styles.resolveBorderStyle;
|
|
77
|
+
exports.resolveSpinner = require_helpers_spinners.resolveSpinner;
|
|
78
|
+
exports.rollingLine = require_helpers_spinners.rollingLine;
|
|
79
|
+
exports.runner = require_helpers_spinners.runner;
|
|
80
|
+
exports.sand = require_helpers_spinners.sand;
|
|
81
|
+
exports.shark = require_helpers_spinners.shark;
|
|
82
|
+
exports.simpleDots = require_helpers_spinners.simpleDots;
|
|
83
|
+
exports.simpleDotsScrolling = require_helpers_spinners.simpleDotsScrolling;
|
|
84
|
+
exports.smiley = require_helpers_spinners.smiley;
|
|
85
|
+
exports.soccerHeader = require_helpers_spinners.soccerHeader;
|
|
86
|
+
exports.speaker = require_helpers_spinners.speaker;
|
|
87
|
+
exports.spinners = require_helpers_spinners;
|
|
88
|
+
exports.squareCorners = require_helpers_spinners.squareCorners;
|
|
89
|
+
exports.squish = require_helpers_spinners.squish;
|
|
90
|
+
exports.star = require_helpers_spinners.star;
|
|
91
|
+
exports.star2 = require_helpers_spinners.star2;
|
|
92
|
+
exports.timeTravel = require_helpers_spinners.timeTravel;
|
|
93
|
+
exports.toggle = require_helpers_spinners.toggle;
|
|
94
|
+
exports.toggle10 = require_helpers_spinners.toggle10;
|
|
95
|
+
exports.toggle11 = require_helpers_spinners.toggle11;
|
|
96
|
+
exports.toggle12 = require_helpers_spinners.toggle12;
|
|
97
|
+
exports.toggle13 = require_helpers_spinners.toggle13;
|
|
98
|
+
exports.toggle2 = require_helpers_spinners.toggle2;
|
|
99
|
+
exports.toggle3 = require_helpers_spinners.toggle3;
|
|
100
|
+
exports.toggle4 = require_helpers_spinners.toggle4;
|
|
101
|
+
exports.toggle5 = require_helpers_spinners.toggle5;
|
|
102
|
+
exports.toggle6 = require_helpers_spinners.toggle6;
|
|
103
|
+
exports.toggle7 = require_helpers_spinners.toggle7;
|
|
104
|
+
exports.toggle8 = require_helpers_spinners.toggle8;
|
|
105
|
+
exports.toggle9 = require_helpers_spinners.toggle9;
|
|
106
|
+
exports.triangle = require_helpers_spinners.triangle;
|
|
107
|
+
exports.weather = require_helpers_spinners.weather;
|
package/dist/helpers/index.mjs
CHANGED
|
@@ -1 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { resolveBorderStyle } from "./border-styles.mjs";
|
|
2
|
+
import { mergeThemes } from "./merge.mjs";
|
|
3
|
+
import spinners, { aesthetic, arc, arrow, arrow2, arrow3, balloon, balloon2, betaWave, binary, bluePulse, bounce, bouncingBall, bouncingBar, boxBounce, boxBounce2, christmas, circle, circleHalves, circleQuarters, clock, dots, dots10, dots11, dots12, dots13, dots14, dots2, dots3, dots4, dots5, dots6, dots7, dots8, dots8Bit, dots9, dotsCircle, dqpb, dwarfFortress, earth, fingerDance, fish, fistBump, flip, grenade, growHorizontal, growVertical, hamburger, hearts, layer, line, line2, material, mindblown, monkey, moon, noise, orangeBluePulse, orangePulse, pipe, point, pong, resolveSpinner, rollingLine, runner, sand, shark, simpleDots, simpleDotsScrolling, smiley, soccerHeader, speaker, squareCorners, squish, star, star2, timeTravel, toggle, toggle10, toggle11, toggle12, toggle13, toggle2, toggle3, toggle4, toggle5, toggle6, toggle7, toggle8, toggle9, triangle, weather } from "./spinners.mjs";
|
|
4
|
+
import { bgColorKeys, bgColors, colorKeys, colors, getAnsiStyles, modifierKeys, modifiers } from "./ansi-utils.mjs";
|
|
5
|
+
|
|
6
|
+
export { aesthetic, arc, arrow, arrow2, arrow3, balloon, balloon2, betaWave, bgColorKeys, bgColors, binary, bluePulse, bounce, bouncingBall, bouncingBar, boxBounce, boxBounce2, christmas, circle, circleHalves, circleQuarters, clock, colorKeys, colors, dots, dots10, dots11, dots12, dots13, dots14, dots2, dots3, dots4, dots5, dots6, dots7, dots8, dots8Bit, dots9, dotsCircle, dqpb, dwarfFortress, earth, fingerDance, fish, fistBump, flip, getAnsiStyles, grenade, growHorizontal, growVertical, hamburger, hearts, layer, line, line2, material, mergeThemes, mindblown, modifierKeys, modifiers, monkey, moon, noise, orangeBluePulse, orangePulse, pipe, point, pong, resolveBorderStyle, resolveSpinner, rollingLine, runner, sand, shark, simpleDots, simpleDotsScrolling, smiley, soccerHeader, speaker, spinners, squareCorners, squish, star, star2, timeTravel, toggle, toggle10, toggle11, toggle12, toggle13, toggle2, toggle3, toggle4, toggle5, toggle6, toggle7, toggle8, toggle9, triangle, weather };
|
package/dist/helpers/merge.cjs
CHANGED
|
@@ -1 +1,19 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
const require_runtime = require('../_virtual/_rolldown/runtime.cjs');
|
|
3
|
+
let powerlines_plugin_utils = require("powerlines/plugin-utils");
|
|
4
|
+
|
|
5
|
+
//#region src/helpers/merge.ts
|
|
6
|
+
/**
|
|
7
|
+
* Merges the provided resolved theme configuration into the existing theme configuration in the context.
|
|
8
|
+
*
|
|
9
|
+
* @param context - The theme plugin context containing the current theme configuration.
|
|
10
|
+
* @param resolvedConfig - The resolved theme configuration to merge into the context's theme configuration.
|
|
11
|
+
* @return The merged theme configuration.
|
|
12
|
+
*/
|
|
13
|
+
function mergeThemes(context, resolvedConfig) {
|
|
14
|
+
context.theme = (0, powerlines_plugin_utils.mergeConfig)(context.theme, resolvedConfig);
|
|
15
|
+
return context.theme;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
exports.mergeThemes = mergeThemes;
|
package/dist/helpers/merge.mjs
CHANGED
|
@@ -1,2 +1,18 @@
|
|
|
1
|
-
import{mergeConfig
|
|
1
|
+
import { mergeConfig } from "powerlines/plugin-utils";
|
|
2
|
+
|
|
3
|
+
//#region src/helpers/merge.ts
|
|
4
|
+
/**
|
|
5
|
+
* Merges the provided resolved theme configuration into the existing theme configuration in the context.
|
|
6
|
+
*
|
|
7
|
+
* @param context - The theme plugin context containing the current theme configuration.
|
|
8
|
+
* @param resolvedConfig - The resolved theme configuration to merge into the context's theme configuration.
|
|
9
|
+
* @return The merged theme configuration.
|
|
10
|
+
*/
|
|
11
|
+
function mergeThemes(context, resolvedConfig) {
|
|
12
|
+
context.theme = mergeConfig(context.theme, resolvedConfig);
|
|
13
|
+
return context.theme;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
//#endregion
|
|
17
|
+
export { mergeThemes };
|
|
2
18
|
//# sourceMappingURL=merge.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"merge.mjs","names":[],"sources":["../../src/helpers/merge.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Shell Shock\n\n This code was released as part of the Shell Shock project. Shell Shock\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/shell-shock.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/shell-shock\n Documentation: https://docs.stormsoftware.com/projects/shell-shock\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { mergeConfig } from \"powerlines/plugin-utils\";\nimport type { ThemePluginContext } from \"../types/plugin\";\nimport type { ThemeResolvedConfig } from \"../types/theme\";\n\n/**\n * Merges the provided resolved theme configuration into the existing theme configuration in the context.\n *\n * @param context - The theme plugin context containing the current theme configuration.\n * @param resolvedConfig - The resolved theme configuration to merge into the context's theme configuration.\n * @return The merged theme configuration.\n */\nexport function mergeThemes<TContext extends ThemePluginContext>(\n context: TContext,\n resolvedConfig: Partial<ThemeResolvedConfig>\n) {\n context.theme = mergeConfig(\n context.theme,\n resolvedConfig\n ) as unknown as ThemeResolvedConfig;\n\n return context.theme;\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"merge.mjs","names":[],"sources":["../../src/helpers/merge.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Shell Shock\n\n This code was released as part of the Shell Shock project. Shell Shock\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/shell-shock.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/shell-shock\n Documentation: https://docs.stormsoftware.com/projects/shell-shock\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { mergeConfig } from \"powerlines/plugin-utils\";\nimport type { ThemePluginContext } from \"../types/plugin\";\nimport type { ThemeResolvedConfig } from \"../types/theme\";\n\n/**\n * Merges the provided resolved theme configuration into the existing theme configuration in the context.\n *\n * @param context - The theme plugin context containing the current theme configuration.\n * @param resolvedConfig - The resolved theme configuration to merge into the context's theme configuration.\n * @return The merged theme configuration.\n */\nexport function mergeThemes<TContext extends ThemePluginContext>(\n context: TContext,\n resolvedConfig: Partial<ThemeResolvedConfig>\n) {\n context.theme = mergeConfig(\n context.theme,\n resolvedConfig\n ) as unknown as ThemeResolvedConfig;\n\n return context.theme;\n}\n"],"mappings":";;;;;;;;;;AA0BA,SAAU,YAAiB,SAAI,gBAAe;AAC5C,SAAQ,QAAK,YAAa,QAAA,OAAa,eAAA;AACvC,QAAA,QAAA"}
|