@shell-shock/plugin-theme 0.3.11 → 0.3.13
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/index.mjs.map +1 -1
- package/dist/themes/default.cjs +1 -1
- package/dist/themes/default.mjs +1 -1
- package/dist/themes/default.mjs.map +1 -1
- package/dist/types/plugin.d.cts +3 -3
- package/dist/types/plugin.d.cts.map +1 -1
- package/dist/types/plugin.d.mts +3 -3
- package/dist/types/plugin.d.mts.map +1 -1
- package/package.json +8 -8
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/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
|
+
{"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 type * 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"}
|
package/dist/themes/default.cjs
CHANGED
package/dist/themes/default.mjs
CHANGED
|
@@ -1 +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","
|
|
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","args","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 args: \"#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,MAAM;IACNZ,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 "
|
|
4
|
+
import { Context, ResolvedConfig, UserConfig } from "@shell-shock/core";
|
|
5
5
|
|
|
6
6
|
//#region src/types/plugin.d.ts
|
|
7
7
|
type ThemePluginOptions = StyleDictionaryPluginOptions & AlloyPluginOptions & {
|
|
@@ -10,8 +10,8 @@ type ThemePluginOptions = StyleDictionaryPluginOptions & AlloyPluginOptions & {
|
|
|
10
10
|
*/
|
|
11
11
|
theme?: ThemeUserConfig;
|
|
12
12
|
};
|
|
13
|
-
type ThemePluginUserConfig = StyleDictionaryPluginUserConfig & AlloyPluginOptions & ThemePluginOptions;
|
|
14
|
-
type ThemePluginResolvedConfig = StyleDictionaryPluginResolvedConfig & AlloyPluginResolvedConfig & {
|
|
13
|
+
type ThemePluginUserConfig = StyleDictionaryPluginUserConfig & AlloyPluginOptions & UserConfig & ThemePluginOptions;
|
|
14
|
+
type ThemePluginResolvedConfig = StyleDictionaryPluginResolvedConfig & AlloyPluginResolvedConfig & ResolvedConfig & {
|
|
15
15
|
/**
|
|
16
16
|
* Resolved theme configuration for the plugin.
|
|
17
17
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;;;KAgCY,kBAAA,GAAqB,+BAC/B;;AADF;;EACE,KAAA,CAAA,EAIU,eAJV;CAIU;AAAe,KAGf,qBAAA,GAAwB,+BAHT,GAIzB,kBAJyB,GAKzB,
|
|
1
|
+
{"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;;;KAgCY,kBAAA,GAAqB,+BAC/B;;AADF;;EACE,KAAA,CAAA,EAIU,eAJV;CAIU;AAAe,KAGf,qBAAA,GAAwB,+BAHT,GAIzB,kBAJyB,GAKzB,UALyB,GAMzB,kBANyB;AAGf,KAKA,yBAAA,GAA4B,mCALP,GAM/B,yBAN+B,GAO/B,cAP+B,GAAA;EAAG;;;EAGlC,KAAA,EAQS,mBART;CAAkB;AAER,KASA,kBATA,CAAA,wBAUc,yBAVW,GAUiB,yBAVjB,CAAA,GAWjC,kBAXiC,CAWd,eAXc,CAAA,GAYnC,4BAZmC,CAYN,eAZM,CAAA,GAanC,OAbmC,CAa3B,eAb2B,CAAA,GAAA;EAAG;;;EAM7B,KAAA,EAWA,mBAXA;CAAmB"}
|
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 "
|
|
4
|
+
import { Context, ResolvedConfig, UserConfig } from "@shell-shock/core";
|
|
5
5
|
|
|
6
6
|
//#region src/types/plugin.d.ts
|
|
7
7
|
type ThemePluginOptions = StyleDictionaryPluginOptions & AlloyPluginOptions & {
|
|
@@ -10,8 +10,8 @@ type ThemePluginOptions = StyleDictionaryPluginOptions & AlloyPluginOptions & {
|
|
|
10
10
|
*/
|
|
11
11
|
theme?: ThemeUserConfig;
|
|
12
12
|
};
|
|
13
|
-
type ThemePluginUserConfig = StyleDictionaryPluginUserConfig & AlloyPluginOptions & ThemePluginOptions;
|
|
14
|
-
type ThemePluginResolvedConfig = StyleDictionaryPluginResolvedConfig & AlloyPluginResolvedConfig & {
|
|
13
|
+
type ThemePluginUserConfig = StyleDictionaryPluginUserConfig & AlloyPluginOptions & UserConfig & ThemePluginOptions;
|
|
14
|
+
type ThemePluginResolvedConfig = StyleDictionaryPluginResolvedConfig & AlloyPluginResolvedConfig & ResolvedConfig & {
|
|
15
15
|
/**
|
|
16
16
|
* Resolved theme configuration for the plugin.
|
|
17
17
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;;;KAgCY,kBAAA,GAAqB,+BAC/B;;AADF;;EACE,KAAA,CAAA,EAIU,eAJV;CAIU;AAAe,KAGf,qBAAA,GAAwB,+BAHT,GAIzB,kBAJyB,GAKzB,
|
|
1
|
+
{"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;;;KAgCY,kBAAA,GAAqB,+BAC/B;;AADF;;EACE,KAAA,CAAA,EAIU,eAJV;CAIU;AAAe,KAGf,qBAAA,GAAwB,+BAHT,GAIzB,kBAJyB,GAKzB,UALyB,GAMzB,kBANyB;AAGf,KAKA,yBAAA,GAA4B,mCALP,GAM/B,yBAN+B,GAO/B,cAP+B,GAAA;EAAG;;;EAGlC,KAAA,EAQS,mBART;CAAkB;AAER,KASA,kBATA,CAAA,wBAUc,yBAVW,GAUiB,yBAVjB,CAAA,GAWjC,kBAXiC,CAWd,eAXc,CAAA,GAYnC,4BAZmC,CAYN,eAZM,CAAA,GAanC,OAbmC,CAa3B,eAb2B,CAAA,GAAA;EAAG;;;EAM7B,KAAA,EAWA,mBAXA;CAAmB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shell-shock/plugin-theme",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.13",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A package containing a Shell Shock plugin to generate source code given a list design tokens.",
|
|
6
6
|
"keywords": [
|
|
@@ -209,19 +209,19 @@
|
|
|
209
209
|
"files": ["dist/**/*"],
|
|
210
210
|
"dependencies": {
|
|
211
211
|
"@alloy-js/core": "0.23.0-dev.8",
|
|
212
|
-
"@powerlines/plugin-alloy": "^0.24.
|
|
213
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
214
|
-
"@powerlines/plugin-style-dictionary": "^0.3.
|
|
212
|
+
"@powerlines/plugin-alloy": "^0.24.5",
|
|
213
|
+
"@powerlines/plugin-plugin": "^0.12.265",
|
|
214
|
+
"@powerlines/plugin-style-dictionary": "^0.3.215",
|
|
215
215
|
"@stryke/helpers": "^0.9.48",
|
|
216
216
|
"@stryke/type-checks": "^0.5.31",
|
|
217
217
|
"defu": "^6.1.4",
|
|
218
|
-
"powerlines": "^0.
|
|
218
|
+
"powerlines": "^0.40.1",
|
|
219
219
|
"style-dictionary": "^5.3.3"
|
|
220
220
|
},
|
|
221
221
|
"devDependencies": {
|
|
222
|
-
"@powerlines/plugin-deepkit": "^0.11.
|
|
223
|
-
"@types/node": "^25.3.
|
|
222
|
+
"@powerlines/plugin-deepkit": "^0.11.193",
|
|
223
|
+
"@types/node": "^25.3.5"
|
|
224
224
|
},
|
|
225
225
|
"publishConfig": { "access": "public" },
|
|
226
|
-
"gitHead": "
|
|
226
|
+
"gitHead": "72aca0879750bcb186d5101569dcbdbd3276be10"
|
|
227
227
|
}
|