@shell-shock/plugin-theme 0.3.8 → 0.3.10
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/helpers/merge.cjs +2 -2
- package/dist/helpers/merge.mjs +1 -1
- package/dist/helpers/merge.mjs.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/themes/{storm.cjs → default.cjs} +4 -4
- package/dist/themes/{storm.mjs → default.mjs} +5 -5
- package/dist/themes/default.mjs.map +1 -0
- package/dist/types/plugin.d.cts +1 -1
- package/dist/types/plugin.d.mts +1 -1
- package/package.json +32 -32
- package/dist/themes/storm.mjs.map +0 -1
package/dist/helpers/merge.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
let
|
|
2
|
+
let powerlines_plugin_utils = require("powerlines/plugin-utils");
|
|
3
3
|
|
|
4
4
|
//#region src/helpers/merge.ts
|
|
5
5
|
/**
|
|
@@ -10,7 +10,7 @@ let powerlines_plugin_utils_merge = require("powerlines/plugin-utils/merge");
|
|
|
10
10
|
* @return The merged theme configuration.
|
|
11
11
|
*/
|
|
12
12
|
function mergeThemes(context, resolvedConfig) {
|
|
13
|
-
context.theme = (0,
|
|
13
|
+
context.theme = (0, powerlines_plugin_utils.mergeConfig)(context.theme, resolvedConfig);
|
|
14
14
|
return context.theme;
|
|
15
15
|
}
|
|
16
16
|
|
package/dist/helpers/merge.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"merge.mjs","names":["mergeConfig","mergeThemes","context","resolvedConfig","theme"],"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
|
|
1
|
+
{"version":3,"file":"merge.mjs","names":["mergeConfig","mergeThemes","context","resolvedConfig","theme"],"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":";;;;;;;;;;AA6BA,SAAgBC,YACdC,SACAC,gBACA;AACAD,SAAQE,QAAQJ,YACdE,QAAQE,OACRD,eACiC;AAEnC,QAAOD,QAAQE"}
|
package/dist/index.cjs
CHANGED
|
@@ -7,7 +7,7 @@ const require_labels = require('./style-dictionary/labels.cjs');
|
|
|
7
7
|
const require_padding = require('./style-dictionary/padding.cjs');
|
|
8
8
|
const require_settings = require('./style-dictionary/settings.cjs');
|
|
9
9
|
const require_spinners = require('./style-dictionary/spinners.cjs');
|
|
10
|
-
const
|
|
10
|
+
const require_default = require('./themes/default.cjs');
|
|
11
11
|
let __powerlines_plugin_alloy = require("@powerlines/plugin-alloy");
|
|
12
12
|
__powerlines_plugin_alloy = require_rolldown_runtime.__toESM(__powerlines_plugin_alloy);
|
|
13
13
|
let __powerlines_plugin_style_dictionary = require("@powerlines/plugin-style-dictionary");
|
|
@@ -47,7 +47,7 @@ const plugin = (options = {}) => {
|
|
|
47
47
|
async handler() {
|
|
48
48
|
this.debug("Shell Shock `theme` plugin configuration resolved.");
|
|
49
49
|
this.config.styleDictionary = (0, defu.default)(this.config.styleDictionary, {
|
|
50
|
-
tokens: (0, __stryke_type_checks_is_set_object.isSetObject)(this.config.theme) ? (0, defu.default)(this.config.theme,
|
|
50
|
+
tokens: (0, __stryke_type_checks_is_set_object.isSetObject)(this.config.theme) ? (0, defu.default)(this.config.theme, require_default.theme) : require_default.theme,
|
|
51
51
|
platforms: { js: {
|
|
52
52
|
preprocessors: [
|
|
53
53
|
"shell-shock/colors",
|
package/dist/index.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import { labels } from "./style-dictionary/labels.mjs";
|
|
|
5
5
|
import { padding } from "./style-dictionary/padding.mjs";
|
|
6
6
|
import { settings } from "./style-dictionary/settings.mjs";
|
|
7
7
|
import { spinners } from "./style-dictionary/spinners.mjs";
|
|
8
|
-
import { theme } from "./themes/
|
|
8
|
+
import { theme } from "./themes/default.mjs";
|
|
9
9
|
import alloy from "@powerlines/plugin-alloy";
|
|
10
10
|
import styleDictionary from "@powerlines/plugin-style-dictionary";
|
|
11
11
|
import { omit } from "@stryke/helpers/omit";
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":["alloy","styleDictionary","omit","isSetObject","defu","borderStyles","colors","icons","labels","padding","settings","spinners","theme","defaultTheme","plugin","options","skipBuild","name","config","debug","customPreprocessors","context","configResolved","order","handler","tokens","platforms","js","preprocessors","transformGroup","transforms","fileHeader","buildPath","output","outputPath","files","format","destination","minify","mode"],"sources":["../src/index.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 alloy from \"@powerlines/plugin-alloy\";\nimport styleDictionary from \"@powerlines/plugin-style-dictionary\";\nimport { omit } from \"@stryke/helpers/omit\";\nimport { isSetObject } from \"@stryke/type-checks/is-set-object\";\nimport defu from \"defu\";\nimport type { Plugin } from \"powerlines\";\nimport type { Config } from \"style-dictionary/types\";\nimport { borderStyles } from \"./style-dictionary/border-styles\";\nimport { colors } from \"./style-dictionary/colors\";\nimport { icons } from \"./style-dictionary/icons\";\nimport { labels } from \"./style-dictionary/labels\";\nimport { padding } from \"./style-dictionary/padding\";\nimport { settings } from \"./style-dictionary/settings\";\nimport { spinners } from \"./style-dictionary/spinners\";\nimport { theme as defaultTheme } from \"./themes/
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["alloy","styleDictionary","omit","isSetObject","defu","borderStyles","colors","icons","labels","padding","settings","spinners","theme","defaultTheme","plugin","options","skipBuild","name","config","debug","customPreprocessors","context","configResolved","order","handler","tokens","platforms","js","preprocessors","transformGroup","transforms","fileHeader","buildPath","output","outputPath","files","format","destination","minify","mode"],"sources":["../src/index.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 alloy from \"@powerlines/plugin-alloy\";\nimport styleDictionary from \"@powerlines/plugin-style-dictionary\";\nimport { omit } from \"@stryke/helpers/omit\";\nimport { isSetObject } from \"@stryke/type-checks/is-set-object\";\nimport defu from \"defu\";\nimport type { Plugin } from \"powerlines\";\nimport type { Config } from \"style-dictionary/types\";\nimport { borderStyles } from \"./style-dictionary/border-styles\";\nimport { colors } from \"./style-dictionary/colors\";\nimport { icons } from \"./style-dictionary/icons\";\nimport { labels } from \"./style-dictionary/labels\";\nimport { padding } from \"./style-dictionary/padding\";\nimport { settings } from \"./style-dictionary/settings\";\nimport { spinners } from \"./style-dictionary/spinners\";\nimport { theme as defaultTheme } from \"./themes/default\";\nimport type { ThemePluginContext, ThemePluginOptions } from \"./types/plugin\";\n\nexport * from \"./types\";\n\n/**\n * The Style Dictionary - Shell Shock plugin to use Style Dictionary tokens to select theme colors to Shell Shock projects.\n */\nexport const plugin = <\n TContext extends ThemePluginContext = ThemePluginContext\n>(\n options: ThemePluginOptions = {}\n): Plugin<TContext>[] => {\n return [\n styleDictionary(defu({ skipBuild: false }, omit(options, [\"theme\"]))),\n // eslint-disable-next-line ts/no-unnecessary-type-assertion\n ...(alloy(options) as Plugin<TContext>[]),\n {\n name: \"shell-shock:theme\",\n config() {\n this.debug(\n \"Providing default configuration for the Shell Shock `theme` plugin.\"\n );\n\n return {\n theme: options.theme,\n styleDictionary: {\n customPreprocessors: (context: TContext) => ({\n \"shell-shock/colors\": colors(context),\n \"shell-shock/border-styles\": borderStyles(context),\n \"shell-shock/padding\": padding(context),\n \"shell-shock/icons\": icons(context),\n \"shell-shock/labels\": labels(context),\n \"shell-shock/spinners\": spinners(context),\n \"shell-shock/settings\": settings(context)\n })\n }\n };\n },\n configResolved: {\n order: \"pre\",\n async handler() {\n this.debug(\"Shell Shock `theme` plugin configuration resolved.\");\n\n this.config.styleDictionary = defu(this.config.styleDictionary, {\n tokens: isSetObject(this.config.theme)\n ? defu(this.config.theme, defaultTheme)\n : defaultTheme,\n platforms: {\n js: {\n preprocessors: [\n \"shell-shock/colors\",\n \"shell-shock/border-styles\",\n \"shell-shock/padding\",\n \"shell-shock/icons\",\n \"shell-shock/labels\",\n \"shell-shock/spinners\",\n \"shell-shock/settings\"\n ],\n transformGroup: \"js\",\n transforms: [\"name/camel\"],\n fileHeader: \"powerlines/file-header\",\n buildPath: this.config.output.outputPath,\n files: [\n {\n format: \"javascript/module\",\n destination: \"theme.js\",\n options: {\n minify: this.config.mode === \"production\"\n }\n },\n {\n format: \"typescript/module-declarations\",\n destination: \"theme.d.ts\",\n options: {\n minify: this.config.mode === \"production\"\n }\n }\n ]\n }\n }\n } as Config);\n }\n }\n }\n ] as Plugin<TContext>[];\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;;;;;;;;AAwCA,MAAac,UAGXC,UAA8B,EAAE,KACT;AACvB,QAAO;EACLd,gBAAgBG,KAAK,EAAEY,WAAW,OAAO,EAAEd,KAAKa,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC;EAErE,GAAIf,MAAMe,QAA+B;EACzC;GACEE,MAAM;GACNC,SAAS;AACP,SAAKC,MACH,sEACD;AAED,WAAO;KACLP,OAAOG,QAAQH;KACfX,iBAAiB,EACfmB,sBAAsBC,aAAuB;MAC3C,sBAAsBf,OAAOe,QAAQ;MACrC,6BAA6BhB,aAAagB,QAAQ;MAClD,uBAAuBZ,QAAQY,QAAQ;MACvC,qBAAqBd,MAAMc,QAAQ;MACnC,sBAAsBb,OAAOa,QAAQ;MACrC,wBAAwBV,SAASU,QAAQ;MACzC,wBAAwBX,SAASW,QAAO;MACzC,GACH;KACD;;GAEHC,gBAAgB;IACdC,OAAO;IACP,MAAMC,UAAU;AACd,UAAKL,MAAM,qDAAqD;AAEhE,UAAKD,OAAOjB,kBAAkBG,KAAK,KAAKc,OAAOjB,iBAAiB;MAC9DwB,QAAQtB,YAAY,KAAKe,OAAON,MAAM,GAClCR,KAAK,KAAKc,OAAON,OAAOC,MAAa,GACrCA;MACJa,WAAW,EACTC,IAAI;OACFC,eAAe;QACb;QACA;QACA;QACA;QACA;QACA;QACA;QACD;OACDC,gBAAgB;OAChBC,YAAY,CAAC,aAAa;OAC1BC,YAAY;OACZC,WAAW,KAAKd,OAAOe,OAAOC;OAC9BC,OAAO,CACL;QACEC,QAAQ;QACRC,aAAa;QACbtB,SAAS,EACPuB,QAAQ,KAAKpB,OAAOqB,SAAS,cAC/B;QACD,EACD;QACEH,QAAQ;QACRC,aAAa;QACbtB,SAAS,EACPuB,QAAQ,KAAKpB,OAAOqB,SAAS,cAC/B;QACD,CAAA;OAEL,EACF;MACS,CAAC;;IAEhB;GACD;EACF;;AAGH,kBAAezB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
|
-
//#region src/themes/
|
|
2
|
+
//#region src/themes/default.ts
|
|
3
3
|
const theme = {
|
|
4
|
-
$theme: "
|
|
4
|
+
$theme: "default",
|
|
5
5
|
colors: {
|
|
6
6
|
text: {
|
|
7
7
|
banner: {
|
|
@@ -123,7 +123,7 @@ const theme = {
|
|
|
123
123
|
danger: "🛇",
|
|
124
124
|
error: "✘"
|
|
125
125
|
} },
|
|
126
|
-
banner: { header: "
|
|
126
|
+
banner: { header: "⏺" },
|
|
127
127
|
prompt: {
|
|
128
128
|
active: "✱",
|
|
129
129
|
error: "✘",
|
|
@@ -142,7 +142,7 @@ const theme = {
|
|
|
142
142
|
danger: "Danger",
|
|
143
143
|
error: "Error"
|
|
144
144
|
} } },
|
|
145
|
-
spinner: "
|
|
145
|
+
spinner: "dots"
|
|
146
146
|
};
|
|
147
147
|
|
|
148
148
|
//#endregion
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
//#region src/themes/
|
|
1
|
+
//#region src/themes/default.ts
|
|
2
2
|
const theme = {
|
|
3
|
-
$theme: "
|
|
3
|
+
$theme: "default",
|
|
4
4
|
colors: {
|
|
5
5
|
text: {
|
|
6
6
|
banner: {
|
|
@@ -122,7 +122,7 @@ const theme = {
|
|
|
122
122
|
danger: "🛇",
|
|
123
123
|
error: "✘"
|
|
124
124
|
} },
|
|
125
|
-
banner: { header: "
|
|
125
|
+
banner: { header: "⏺" },
|
|
126
126
|
prompt: {
|
|
127
127
|
active: "✱",
|
|
128
128
|
error: "✘",
|
|
@@ -141,9 +141,9 @@ const theme = {
|
|
|
141
141
|
danger: "Danger",
|
|
142
142
|
error: "Error"
|
|
143
143
|
} } },
|
|
144
|
-
spinner: "
|
|
144
|
+
spinner: "dots"
|
|
145
145
|
};
|
|
146
146
|
|
|
147
147
|
//#endregion
|
|
148
148
|
export { theme };
|
|
149
|
-
//# sourceMappingURL=
|
|
149
|
+
//# sourceMappingURL=default.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default.mjs","names":["theme","$theme","colors","text","banner","title","command","description","heading","primary","secondary","tertiary","body","link","message","usage","bin","dynamic","options","arguments","prompt","icon","active","warning","error","submitted","cancelled","disabled","input","inactive","placeholder","spinner","success","help","info","border","app","debug","danger","borderStyles","padding","table","icons","header","labels"],"sources":["../../src/themes/default.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 { ThemeUserConfig } from \"../types/theme\";\n\nexport const theme: ThemeUserConfig = {\n $theme: \"default\",\n colors: {\n text: {\n banner: {\n title: \"#3be4be\",\n command: \"#ffffff\",\n description: \"#9ca3af\"\n },\n heading: {\n primary: \"#3be4be\",\n secondary: \"#ffffff\",\n tertiary: \"#cbd5e1\"\n },\n body: {\n primary: \"#cbd5e1\",\n secondary: \"#9ca3af\",\n tertiary: \"#65676d\",\n link: \"#3fa6ff\"\n },\n message: {\n description: \"#ffffff\"\n },\n usage: {\n bin: \"#9ca3af\",\n command: \"#4ee0a1\",\n dynamic: \"#8c82e3\",\n options: \"#ec5050\",\n arguments: \"#3bcde4\",\n description: \"#9ca3af\"\n },\n prompt: {\n icon: {\n active: \"#3be4be\",\n warning: \"#f3d371\",\n error: \"#d8314a\",\n submitted: \"#45b27e\",\n cancelled: \"#d8314a\",\n disabled: \"#4f4f50\"\n },\n message: {\n active: \"#ffffff\",\n warning: \"#ffffff\",\n error: \"#ffffff\",\n submitted: \"#9ca3af\",\n cancelled: \"#9ca3af\",\n disabled: \"#4f4f50\"\n },\n input: {\n active: \"#3be4be\",\n inactive: \"#65676d\",\n warning: \"#f3d371\",\n error: \"#d8314a\",\n submitted: \"#ffffff\",\n cancelled: \"#d8314a\",\n placeholder: \"#65676d\",\n disabled: \"#4f4f50\"\n },\n description: {\n active: \"#9ca3af\",\n inactive: \"#4f4f50\",\n warning: \"#f3d371\",\n error: \"#d8314a\",\n submitted: \"#4f4f50\",\n cancelled: \"#d8314a\",\n disabled: \"#4f4f50\"\n }\n },\n spinner: {\n icon: {\n active: \"#3be4be\",\n error: \"#d8314a\",\n success: \"#45b27e\",\n help: \"#818cf8\",\n info: \"#38bdf8\",\n warning: \"#f3d371\"\n },\n message: {\n active: \"#ffffff\",\n error: \"#d8314a\",\n success: \"#9ca3af\",\n help: \"#9ca3af\",\n info: \"#9ca3af\",\n warning: \"#9ca3af\"\n }\n }\n },\n border: {\n app: {\n primary: \"#ffffff\",\n secondary: \"#9ca3af\",\n tertiary: \"#4f4f50\"\n },\n banner: \"#3be4be\",\n message: {\n help: \"#818cf8\",\n success: \"#45b27e\",\n info: \"#38bdf8\",\n debug: \"#8afafc\",\n warning: \"#f3d371\",\n danger: \"#d8314a\"\n }\n }\n },\n borderStyles: {\n app: \"single\",\n banner: \"bold\",\n message: \"round\"\n },\n padding: {\n app: 0,\n banner: 14,\n message: 8,\n table: 1\n },\n icons: {\n message: {\n header: {\n help: \"✱\",\n success: \"✔\",\n info: \"🛈\",\n debug: \"🛠\",\n warning: \"🛆\",\n danger: \"🛇\",\n error: \"✘\"\n }\n },\n banner: {\n header: \"⏺\"\n },\n prompt: {\n active: \"✱\",\n error: \"✘\",\n warning: \"🛆\",\n submitted: \"✔\",\n cancelled: \"🛇\",\n disabled: \"🛇\"\n }\n },\n labels: {\n message: {\n header: {\n help: \"Useful Tip\",\n success: \"Success\",\n info: \"Info\",\n debug: \"Debug\",\n warning: \"Warning\",\n danger: \"Danger\",\n error: \"Error\"\n }\n }\n },\n spinner: \"dots\"\n} as const;\n"],"mappings":";AAoBA,MAAaA,QAAyB;CACpCC,QAAQ;CACRC,QAAQ;EACNC,MAAM;GACJC,QAAQ;IACNC,OAAO;IACPC,SAAS;IACTC,aAAa;IACd;GACDC,SAAS;IACPC,SAAS;IACTC,WAAW;IACXC,UAAU;IACX;GACDC,MAAM;IACJH,SAAS;IACTC,WAAW;IACXC,UAAU;IACVE,MAAM;IACP;GACDC,SAAS,EACPP,aAAa,WACd;GACDQ,OAAO;IACLC,KAAK;IACLV,SAAS;IACTW,SAAS;IACTC,SAAS;IACTC,WAAW;IACXZ,aAAa;IACd;GACDa,QAAQ;IACNC,MAAM;KACJC,QAAQ;KACRC,SAAS;KACTC,OAAO;KACPC,WAAW;KACXC,WAAW;KACXC,UAAU;KACX;IACDb,SAAS;KACPQ,QAAQ;KACRC,SAAS;KACTC,OAAO;KACPC,WAAW;KACXC,WAAW;KACXC,UAAU;KACX;IACDC,OAAO;KACLN,QAAQ;KACRO,UAAU;KACVN,SAAS;KACTC,OAAO;KACPC,WAAW;KACXC,WAAW;KACXI,aAAa;KACbH,UAAU;KACX;IACDpB,aAAa;KACXe,QAAQ;KACRO,UAAU;KACVN,SAAS;KACTC,OAAO;KACPC,WAAW;KACXC,WAAW;KACXC,UAAU;KACZ;IACD;GACDI,SAAS;IACPV,MAAM;KACJC,QAAQ;KACRE,OAAO;KACPQ,SAAS;KACTC,MAAM;KACNC,MAAM;KACNX,SAAS;KACV;IACDT,SAAS;KACPQ,QAAQ;KACRE,OAAO;KACPQ,SAAS;KACTC,MAAM;KACNC,MAAM;KACNX,SAAS;KACX;IACF;GACD;EACDY,QAAQ;GACNC,KAAK;IACH3B,SAAS;IACTC,WAAW;IACXC,UAAU;IACX;GACDP,QAAQ;GACRU,SAAS;IACPmB,MAAM;IACND,SAAS;IACTE,MAAM;IACNG,OAAO;IACPd,SAAS;IACTe,QAAQ;IACV;GACF;EACD;CACDC,cAAc;EACZH,KAAK;EACLhC,QAAQ;EACRU,SAAS;EACV;CACD0B,SAAS;EACPJ,KAAK;EACLhC,QAAQ;EACRU,SAAS;EACT2B,OAAO;EACR;CACDC,OAAO;EACL5B,SAAS,EACP6B,QAAQ;GACNV,MAAM;GACND,SAAS;GACTE,MAAM;GACNG,OAAO;GACPd,SAAS;GACTe,QAAQ;GACRd,OAAO;GACT,EACD;EACDpB,QAAQ,EACNuC,QAAQ,KACT;EACDvB,QAAQ;GACNE,QAAQ;GACRE,OAAO;GACPD,SAAS;GACTE,WAAW;GACXC,WAAW;GACXC,UAAU;GACZ;EACD;CACDiB,QAAQ,EACN9B,SAAS,EACP6B,QAAQ;EACNV,MAAM;EACND,SAAS;EACTE,MAAM;EACNG,OAAO;EACPd,SAAS;EACTe,QAAQ;EACRd,OAAO;EACT,EACF,EACD;CACDO,SAAS;CACD"}
|
package/dist/types/plugin.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ThemeResolvedConfig, ThemeUserConfig } from "./theme.cjs";
|
|
2
2
|
import { AlloyPluginContext, AlloyPluginOptions, AlloyPluginResolvedConfig } from "@powerlines/plugin-alloy/types";
|
|
3
3
|
import { StyleDictionaryPluginContext, StyleDictionaryPluginOptions, StyleDictionaryPluginResolvedConfig, StyleDictionaryPluginUserConfig } from "@powerlines/plugin-style-dictionary/types";
|
|
4
|
-
import { Context } from "powerlines
|
|
4
|
+
import { Context } from "powerlines";
|
|
5
5
|
|
|
6
6
|
//#region src/types/plugin.d.ts
|
|
7
7
|
type ThemePluginOptions = StyleDictionaryPluginOptions & AlloyPluginOptions & {
|
package/dist/types/plugin.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ThemeResolvedConfig, ThemeUserConfig } from "./theme.mjs";
|
|
2
2
|
import { AlloyPluginContext, AlloyPluginOptions, AlloyPluginResolvedConfig } from "@powerlines/plugin-alloy/types";
|
|
3
3
|
import { StyleDictionaryPluginContext, StyleDictionaryPluginOptions, StyleDictionaryPluginResolvedConfig, StyleDictionaryPluginUserConfig } from "@powerlines/plugin-style-dictionary/types";
|
|
4
|
-
import { Context } from "powerlines
|
|
4
|
+
import { Context } from "powerlines";
|
|
5
5
|
|
|
6
6
|
//#region src/types/plugin.d.ts
|
|
7
7
|
type ThemePluginOptions = StyleDictionaryPluginOptions & AlloyPluginOptions & {
|
package/package.json
CHANGED
|
@@ -1,18 +1,30 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shell-shock/plugin-theme",
|
|
3
|
-
"version": "0.3.
|
|
4
|
-
"
|
|
3
|
+
"version": "0.3.10",
|
|
4
|
+
"private": false,
|
|
5
5
|
"description": "A package containing a Shell Shock plugin to generate source code given a list design tokens.",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"style-dictionary",
|
|
8
|
+
"shell-shock",
|
|
9
|
+
"shell-shock-plugin",
|
|
10
|
+
"powerlines",
|
|
11
|
+
"storm-software"
|
|
12
|
+
],
|
|
13
|
+
"homepage": "https://stormsoftware.com",
|
|
14
|
+
"bugs": {
|
|
15
|
+
"url": "https://stormsoftware.com/support",
|
|
16
|
+
"email": "support@stormsoftware.com"
|
|
17
|
+
},
|
|
6
18
|
"repository": {
|
|
7
19
|
"type": "github",
|
|
8
20
|
"url": "https://github.com/storm-software/shell-shock.git",
|
|
9
21
|
"directory": "packages/plugin-theme"
|
|
10
22
|
},
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
"url": "https://
|
|
14
|
-
"email": "support@stormsoftware.com"
|
|
23
|
+
"funding": {
|
|
24
|
+
"type": "github",
|
|
25
|
+
"url": "https://github.com/sponsors/storm-software"
|
|
15
26
|
},
|
|
27
|
+
"license": "Apache-2.0",
|
|
16
28
|
"author": {
|
|
17
29
|
"name": "Storm Software",
|
|
18
30
|
"email": "contact@stormsoftware.com",
|
|
@@ -32,14 +44,7 @@
|
|
|
32
44
|
"url": "https://stormsoftware.com"
|
|
33
45
|
}
|
|
34
46
|
],
|
|
35
|
-
"
|
|
36
|
-
"type": "github",
|
|
37
|
-
"url": "https://github.com/sponsors/storm-software"
|
|
38
|
-
},
|
|
39
|
-
"license": "Apache-2.0",
|
|
40
|
-
"private": false,
|
|
41
|
-
"main": "./dist/index.cjs",
|
|
42
|
-
"module": "./dist/index.mjs",
|
|
47
|
+
"type": "module",
|
|
43
48
|
"exports": {
|
|
44
49
|
".": {
|
|
45
50
|
"require": {
|
|
@@ -55,6 +60,7 @@
|
|
|
55
60
|
"default": "./dist/index.mjs"
|
|
56
61
|
}
|
|
57
62
|
},
|
|
63
|
+
"./*": "./*",
|
|
58
64
|
"./contexts": {
|
|
59
65
|
"require": {
|
|
60
66
|
"types": "./dist/contexts/index.d.cts",
|
|
@@ -153,7 +159,6 @@
|
|
|
153
159
|
"default": "./dist/helpers/spinners.mjs"
|
|
154
160
|
}
|
|
155
161
|
},
|
|
156
|
-
"./package.json": "./package.json",
|
|
157
162
|
"./types": {
|
|
158
163
|
"require": {
|
|
159
164
|
"types": "./dist/types/index.d.cts",
|
|
@@ -197,31 +202,26 @@
|
|
|
197
202
|
}
|
|
198
203
|
}
|
|
199
204
|
},
|
|
205
|
+
"main": "./dist/index.cjs",
|
|
206
|
+
"module": "./dist/index.mjs",
|
|
200
207
|
"types": "./dist/index.d.cts",
|
|
201
208
|
"typings": "dist/index.d.mts",
|
|
202
209
|
"files": ["dist/**/*"],
|
|
203
|
-
"keywords": [
|
|
204
|
-
"style-dictionary",
|
|
205
|
-
"shell-shock",
|
|
206
|
-
"shell-shock-plugin",
|
|
207
|
-
"powerlines",
|
|
208
|
-
"storm-software"
|
|
209
|
-
],
|
|
210
210
|
"dependencies": {
|
|
211
|
-
"@
|
|
212
|
-
"@powerlines/plugin-
|
|
211
|
+
"@alloy-js/core": "0.23.0-dev.8",
|
|
212
|
+
"@powerlines/plugin-alloy": "^0.23.40",
|
|
213
|
+
"@powerlines/plugin-plugin": "^0.12.260",
|
|
214
|
+
"@powerlines/plugin-style-dictionary": "^0.3.210",
|
|
213
215
|
"@stryke/helpers": "^0.9.42",
|
|
214
216
|
"@stryke/type-checks": "^0.5.25",
|
|
215
|
-
"defu": "6.1.4",
|
|
216
|
-
"powerlines": "^0.
|
|
217
|
-
"style-dictionary": "^5.3.2"
|
|
218
|
-
"@powerlines/plugin-alloy": "^0.23.19",
|
|
219
|
-
"@alloy-js/core": "0.23.0-dev.8"
|
|
217
|
+
"defu": "^6.1.4",
|
|
218
|
+
"powerlines": "^0.39.17",
|
|
219
|
+
"style-dictionary": "^5.3.2"
|
|
220
220
|
},
|
|
221
221
|
"devDependencies": {
|
|
222
|
-
"@powerlines/plugin-deepkit": "^0.11.
|
|
223
|
-
"@types/node": "^25.3.
|
|
222
|
+
"@powerlines/plugin-deepkit": "^0.11.188",
|
|
223
|
+
"@types/node": "^25.3.3"
|
|
224
224
|
},
|
|
225
225
|
"publishConfig": { "access": "public" },
|
|
226
|
-
"gitHead": "
|
|
226
|
+
"gitHead": "d0abdaa95b5e40df2157d393f0ba8499589140ca"
|
|
227
227
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"storm.mjs","names":["theme","$theme","colors","text","banner","title","command","description","heading","primary","secondary","tertiary","body","link","message","usage","bin","dynamic","options","arguments","prompt","icon","active","warning","error","submitted","cancelled","disabled","input","inactive","placeholder","spinner","success","help","info","border","app","debug","danger","borderStyles","padding","table","icons","header","labels"],"sources":["../../src/themes/storm.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 { ThemeUserConfig } from \"../types/theme\";\n\nexport const theme: ThemeUserConfig = {\n $theme: \"storm\",\n colors: {\n text: {\n banner: {\n title: \"#3be4be\",\n command: \"#ffffff\",\n description: \"#9ca3af\"\n },\n heading: {\n primary: \"#3be4be\",\n secondary: \"#ffffff\",\n tertiary: \"#cbd5e1\"\n },\n body: {\n primary: \"#cbd5e1\",\n secondary: \"#9ca3af\",\n tertiary: \"#65676d\",\n link: \"#3fa6ff\"\n },\n message: {\n description: \"#ffffff\"\n },\n usage: {\n bin: \"#9ca3af\",\n command: \"#4ee0a1\",\n dynamic: \"#8c82e3\",\n options: \"#ec5050\",\n arguments: \"#3bcde4\",\n description: \"#9ca3af\"\n },\n prompt: {\n icon: {\n active: \"#3be4be\",\n warning: \"#f3d371\",\n error: \"#d8314a\",\n submitted: \"#45b27e\",\n cancelled: \"#d8314a\",\n disabled: \"#4f4f50\"\n },\n message: {\n active: \"#ffffff\",\n warning: \"#ffffff\",\n error: \"#ffffff\",\n submitted: \"#9ca3af\",\n cancelled: \"#9ca3af\",\n disabled: \"#4f4f50\"\n },\n input: {\n active: \"#3be4be\",\n inactive: \"#65676d\",\n warning: \"#f3d371\",\n error: \"#d8314a\",\n submitted: \"#ffffff\",\n cancelled: \"#d8314a\",\n placeholder: \"#65676d\",\n disabled: \"#4f4f50\"\n },\n description: {\n active: \"#9ca3af\",\n inactive: \"#4f4f50\",\n warning: \"#f3d371\",\n error: \"#d8314a\",\n submitted: \"#4f4f50\",\n cancelled: \"#d8314a\",\n disabled: \"#4f4f50\"\n }\n },\n spinner: {\n icon: {\n active: \"#3be4be\",\n error: \"#d8314a\",\n success: \"#45b27e\",\n help: \"#818cf8\",\n info: \"#38bdf8\",\n warning: \"#f3d371\"\n },\n message: {\n active: \"#ffffff\",\n error: \"#d8314a\",\n success: \"#9ca3af\",\n help: \"#9ca3af\",\n info: \"#9ca3af\",\n warning: \"#9ca3af\"\n }\n }\n },\n border: {\n app: {\n primary: \"#ffffff\",\n secondary: \"#9ca3af\",\n tertiary: \"#4f4f50\"\n },\n banner: \"#3be4be\",\n message: {\n help: \"#818cf8\",\n success: \"#45b27e\",\n info: \"#38bdf8\",\n debug: \"#8afafc\",\n warning: \"#f3d371\",\n danger: \"#d8314a\"\n }\n }\n },\n borderStyles: {\n app: \"single\",\n banner: \"bold\",\n message: \"round\"\n },\n padding: {\n app: 0,\n banner: 14,\n message: 8,\n table: 1\n },\n icons: {\n message: {\n header: {\n help: \"✱\",\n success: \"✔\",\n info: \"🛈\",\n debug: \"🛠\",\n warning: \"🛆\",\n danger: \"🛇\",\n error: \"✘\"\n }\n },\n banner: {\n header: \"⬤\" // 🗲 🗱 ⏺ ⬤\n },\n prompt: {\n active: \"✱\",\n error: \"✘\",\n warning: \"🛆\",\n submitted: \"✔\",\n cancelled: \"🛇\",\n disabled: \"🛇\"\n }\n },\n labels: {\n message: {\n header: {\n help: \"Useful Tip\",\n success: \"Success\",\n info: \"Info\",\n debug: \"Debug\",\n warning: \"Warning\",\n danger: \"Danger\",\n error: \"Error\"\n }\n }\n },\n spinner: \"dotsCircle\"\n} as const;\n"],"mappings":";AAoBA,MAAaA,QAAyB;CACpCC,QAAQ;CACRC,QAAQ;EACNC,MAAM;GACJC,QAAQ;IACNC,OAAO;IACPC,SAAS;IACTC,aAAa;IACd;GACDC,SAAS;IACPC,SAAS;IACTC,WAAW;IACXC,UAAU;IACX;GACDC,MAAM;IACJH,SAAS;IACTC,WAAW;IACXC,UAAU;IACVE,MAAM;IACP;GACDC,SAAS,EACPP,aAAa,WACd;GACDQ,OAAO;IACLC,KAAK;IACLV,SAAS;IACTW,SAAS;IACTC,SAAS;IACTC,WAAW;IACXZ,aAAa;IACd;GACDa,QAAQ;IACNC,MAAM;KACJC,QAAQ;KACRC,SAAS;KACTC,OAAO;KACPC,WAAW;KACXC,WAAW;KACXC,UAAU;KACX;IACDb,SAAS;KACPQ,QAAQ;KACRC,SAAS;KACTC,OAAO;KACPC,WAAW;KACXC,WAAW;KACXC,UAAU;KACX;IACDC,OAAO;KACLN,QAAQ;KACRO,UAAU;KACVN,SAAS;KACTC,OAAO;KACPC,WAAW;KACXC,WAAW;KACXI,aAAa;KACbH,UAAU;KACX;IACDpB,aAAa;KACXe,QAAQ;KACRO,UAAU;KACVN,SAAS;KACTC,OAAO;KACPC,WAAW;KACXC,WAAW;KACXC,UAAU;KACZ;IACD;GACDI,SAAS;IACPV,MAAM;KACJC,QAAQ;KACRE,OAAO;KACPQ,SAAS;KACTC,MAAM;KACNC,MAAM;KACNX,SAAS;KACV;IACDT,SAAS;KACPQ,QAAQ;KACRE,OAAO;KACPQ,SAAS;KACTC,MAAM;KACNC,MAAM;KACNX,SAAS;KACX;IACF;GACD;EACDY,QAAQ;GACNC,KAAK;IACH3B,SAAS;IACTC,WAAW;IACXC,UAAU;IACX;GACDP,QAAQ;GACRU,SAAS;IACPmB,MAAM;IACND,SAAS;IACTE,MAAM;IACNG,OAAO;IACPd,SAAS;IACTe,QAAQ;IACV;GACF;EACD;CACDC,cAAc;EACZH,KAAK;EACLhC,QAAQ;EACRU,SAAS;EACV;CACD0B,SAAS;EACPJ,KAAK;EACLhC,QAAQ;EACRU,SAAS;EACT2B,OAAO;EACR;CACDC,OAAO;EACL5B,SAAS,EACP6B,QAAQ;GACNV,MAAM;GACND,SAAS;GACTE,MAAM;GACNG,OAAO;GACPd,SAAS;GACTe,QAAQ;GACRd,OAAO;GACT,EACD;EACDpB,QAAQ,EACNuC,QAAQ,KACT;EACDvB,QAAQ;GACNE,QAAQ;GACRE,OAAO;GACPD,SAAS;GACTE,WAAW;GACXC,WAAW;GACXC,UAAU;GACZ;EACD;CACDiB,QAAQ,EACN9B,SAAS,EACP6B,QAAQ;EACNV,MAAM;EACND,SAAS;EACTE,MAAM;EACNG,OAAO;EACPd,SAAS;EACTe,QAAQ;EACRd,OAAO;EACT,EACF,EACD;CACDO,SAAS;CACD"}
|