@shell-shock/plugin-theme 0.3.2 → 0.3.4
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/ansi-utils.cjs +54 -0
- package/dist/helpers/ansi-utils.d.cts.map +1 -1
- package/dist/helpers/ansi-utils.d.mts.map +1 -1
- package/dist/helpers/ansi-utils.mjs +54 -0
- package/dist/helpers/ansi-utils.mjs.map +1 -1
- package/dist/{style-dictionary/helpers.mjs → helpers/border-styles.cjs} +2 -15
- package/dist/helpers/border-styles.d.cts +14 -0
- package/dist/helpers/border-styles.d.cts.map +1 -0
- package/dist/helpers/border-styles.d.mts +14 -0
- package/dist/helpers/border-styles.d.mts.map +1 -0
- package/dist/{style-dictionary/helpers.cjs → helpers/border-styles.mjs} +3 -17
- package/dist/helpers/border-styles.mjs.map +1 -0
- package/dist/helpers/index.cjs +98 -1
- package/dist/helpers/index.d.cts +4 -1
- package/dist/helpers/index.d.mts +4 -1
- package/dist/helpers/index.mjs +4 -1
- package/dist/helpers/merge.cjs +18 -0
- package/dist/helpers/merge.d.cts +16 -0
- package/dist/helpers/merge.d.cts.map +1 -0
- package/dist/helpers/merge.d.mts +16 -0
- package/dist/helpers/merge.d.mts.map +1 -0
- package/dist/helpers/merge.mjs +18 -0
- package/dist/helpers/merge.mjs.map +1 -0
- package/dist/helpers/spinners.cjs +1853 -0
- package/dist/helpers/spinners.d.cts +735 -0
- package/dist/helpers/spinners.d.cts.map +1 -0
- package/dist/helpers/spinners.d.mts +735 -0
- package/dist/helpers/spinners.d.mts.map +1 -0
- package/dist/helpers/spinners.mjs +1760 -0
- package/dist/helpers/spinners.mjs.map +1 -0
- package/dist/index.cjs +3 -0
- package/dist/index.d.cts +2 -2
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +3 -0
- package/dist/index.mjs.map +1 -1
- package/dist/style-dictionary/border-styles.cjs +39 -38
- package/dist/style-dictionary/border-styles.mjs +2 -1
- package/dist/style-dictionary/border-styles.mjs.map +1 -1
- package/dist/style-dictionary/colors.cjs +117 -2
- package/dist/style-dictionary/colors.mjs +116 -1
- package/dist/style-dictionary/colors.mjs.map +1 -1
- package/dist/style-dictionary/icons.cjs +30 -2
- package/dist/style-dictionary/icons.mjs +29 -1
- package/dist/style-dictionary/icons.mjs.map +1 -1
- package/dist/style-dictionary/labels.cjs +2 -2
- package/dist/style-dictionary/labels.mjs +1 -1
- package/dist/style-dictionary/labels.mjs.map +1 -1
- package/dist/style-dictionary/padding.cjs +39 -38
- package/dist/style-dictionary/padding.mjs +2 -1
- package/dist/style-dictionary/padding.mjs.map +1 -1
- package/dist/style-dictionary/settings.cjs +2 -2
- package/dist/style-dictionary/settings.mjs +1 -1
- package/dist/style-dictionary/settings.mjs.map +1 -1
- package/dist/style-dictionary/spinners.cjs +31 -0
- package/dist/style-dictionary/spinners.mjs +31 -0
- package/dist/style-dictionary/spinners.mjs.map +1 -0
- package/dist/themes/storm.cjs +20 -1
- package/dist/themes/storm.mjs +20 -1
- package/dist/themes/storm.mjs.map +1 -1
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.mts +2 -2
- package/dist/types/theme.d.cts +48 -4
- package/dist/types/theme.d.cts.map +1 -1
- package/dist/types/theme.d.mts +48 -4
- package/dist/types/theme.d.mts.map +1 -1
- package/package.json +49 -7
- package/dist/style-dictionary/helpers.mjs.map +0 -1
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
let powerlines_plugin_utils_merge = require("powerlines/plugin-utils/merge");
|
|
3
|
+
|
|
4
|
+
//#region src/helpers/merge.ts
|
|
5
|
+
/**
|
|
6
|
+
* Merges the provided resolved theme configuration into the existing theme configuration in the context.
|
|
7
|
+
*
|
|
8
|
+
* @param context - The theme plugin context containing the current theme configuration.
|
|
9
|
+
* @param resolvedConfig - The resolved theme configuration to merge into the context's theme configuration.
|
|
10
|
+
* @return The merged theme configuration.
|
|
11
|
+
*/
|
|
12
|
+
function mergeThemes(context, resolvedConfig) {
|
|
13
|
+
context.theme = (0, powerlines_plugin_utils_merge.mergeConfig)(context.theme, resolvedConfig);
|
|
14
|
+
return context.theme;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
//#endregion
|
|
18
|
+
exports.mergeThemes = mergeThemes;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ThemeResolvedConfig } from "../types/theme.cjs";
|
|
2
|
+
import { ThemePluginContext } from "../types/plugin.cjs";
|
|
3
|
+
|
|
4
|
+
//#region src/helpers/merge.d.ts
|
|
5
|
+
|
|
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
|
+
declare function mergeThemes<TContext extends ThemePluginContext>(context: TContext, resolvedConfig: Partial<ThemeResolvedConfig>): ThemeResolvedConfig;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { mergeThemes };
|
|
16
|
+
//# sourceMappingURL=merge.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"merge.d.cts","names":[],"sources":["../../src/helpers/merge.ts"],"sourcesContent":[],"mappings":";;;;;;;AA6BA;;;;;AAE8C,iBAF9B,WAE8B,CAAA,iBAFD,kBAEC,CAAA,CAAA,OAAA,EADnC,QACmC,EAAA,cAAA,EAA5B,OAA4B,CAApB,mBAAoB,CAAA,CAAA,EAAA,mBAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ThemeResolvedConfig } from "../types/theme.mjs";
|
|
2
|
+
import { ThemePluginContext } from "../types/plugin.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/helpers/merge.d.ts
|
|
5
|
+
|
|
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
|
+
declare function mergeThemes<TContext extends ThemePluginContext>(context: TContext, resolvedConfig: Partial<ThemeResolvedConfig>): ThemeResolvedConfig;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { mergeThemes };
|
|
16
|
+
//# sourceMappingURL=merge.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"merge.d.mts","names":[],"sources":["../../src/helpers/merge.ts"],"sourcesContent":[],"mappings":";;;;;;;AA6BA;;;;;AAE8C,iBAF9B,WAE8B,CAAA,iBAFD,kBAEC,CAAA,CAAA,OAAA,EADnC,QACmC,EAAA,cAAA,EAA5B,OAA4B,CAApB,mBAAoB,CAAA,CAAA,EAAA,mBAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { mergeConfig } from "powerlines/plugin-utils/merge";
|
|
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 };
|
|
18
|
+
//# sourceMappingURL=merge.mjs.map
|
|
@@ -0,0 +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/merge\";\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(context.theme, resolvedConfig);\n\n return context.theme;\n}\n"],"mappings":";;;;;;;;;;AA6BA,SAAgBC,YACdC,SACAC,gBACA;AACAD,SAAQE,QAAQJ,YAAYE,QAAQE,OAAOD,eAAe;AAE1D,QAAOD,QAAQE"}
|