histoire 0.0.0 → 0.0.3
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/LICENSE +21 -0
- package/client.d.ts +2 -0
- package/dist/client/app/App.vue +84 -21
- package/dist/client/app/assets/histoire-text-dark.svg +89 -0
- package/dist/client/app/assets/histoire-text.svg +89 -0
- package/dist/client/app/assets/histoire.svg +51 -0
- package/dist/client/app/codegen/serialize-js.d.ts +1 -0
- package/dist/client/app/codegen/serialize-js.js +113 -0
- package/dist/client/app/codegen/serialize-js.ts +119 -0
- package/dist/client/app/codegen/util.d.ts +10 -0
- package/dist/client/app/codegen/util.js +70 -0
- package/dist/client/app/codegen/util.ts +79 -0
- package/dist/client/app/codegen/vue3.d.ts +2 -0
- package/dist/client/app/codegen/vue3.js +238 -0
- package/dist/client/app/codegen/vue3.ts +240 -0
- package/dist/client/app/components/HomeView.vue +15 -1
- package/dist/client/app/components/StoryControls.vue +7 -2
- package/dist/client/app/components/StoryList.vue +20 -13
- package/dist/client/app/components/StoryListFolder.vue +87 -0
- package/dist/client/app/components/StoryListItem.vue +38 -12
- package/dist/client/app/components/StorySourceCode.vue +121 -0
- package/dist/client/app/components/StoryVariantGridItem.vue +32 -17
- package/dist/client/app/components/StoryVariantListItem.vue +46 -0
- package/dist/client/app/components/StoryVariantSingleView.vue +145 -15
- package/dist/client/app/components/StoryView.vue +88 -54
- package/dist/client/app/components/app/AppHeader.vue +56 -0
- package/dist/client/app/components/app/AppLogo.vue +24 -0
- package/dist/client/app/components/base/BaseEmpty.vue +1 -1
- package/dist/client/app/components/base/BaseListItemLink.vue +55 -0
- package/dist/client/app/components/base/BaseSplitPane.vue +57 -21
- package/dist/client/app/components/exposed/Story.vue +23 -58
- package/dist/client/app/components/exposed/Variant.vue +24 -47
- package/dist/client/app/components/misc/HatchedPattern.vue +25 -0
- package/dist/client/app/components/{SandboxVue.vue → sandbox/SandboxVue3.vue} +31 -12
- package/dist/client/app/components/search/SearchItem.vue +110 -0
- package/dist/client/app/components/search/SearchModal.vue +179 -0
- package/dist/client/app/composable/variant.js +0 -1
- package/dist/client/app/composable/variant.ts +20 -0
- package/dist/client/app/global-components.js +0 -1
- package/dist/client/app/global-components.ts +10 -0
- package/dist/client/app/index.d.ts +1 -0
- package/dist/client/app/index.js +10 -2
- package/dist/client/app/index.ts +24 -0
- package/dist/client/app/router.js +0 -1
- package/dist/client/app/router.ts +17 -0
- package/dist/client/app/sandbox.d.ts +1 -0
- package/dist/client/app/sandbox.js +53 -0
- package/dist/client/app/sandbox.ts +60 -0
- package/dist/client/app/stores/story.d.ts +167 -50
- package/dist/client/app/stores/story.js +33 -16
- package/dist/client/app/stores/story.ts +58 -0
- package/dist/client/app/style/floating-vue.css +31 -0
- package/dist/client/app/style/main.css +17 -2
- package/dist/client/app/style/sandbox.css +14 -0
- package/dist/client/app/types.d.ts +36 -4
- package/dist/client/app/types.js +0 -1
- package/dist/client/app/types.ts +59 -0
- package/dist/client/app/util/config.d.ts +3 -0
- package/dist/client/app/util/config.js +4 -0
- package/dist/client/app/util/config.ts +6 -0
- package/dist/client/app/util/const.d.ts +1 -0
- package/dist/client/app/util/const.js +1 -0
- package/dist/client/app/util/const.ts +1 -0
- package/dist/client/app/util/dark.d.ts +2 -0
- package/dist/client/app/util/dark.js +3 -0
- package/dist/client/app/util/dark.ts +4 -0
- package/dist/client/app/util/env.d.ts +1 -0
- package/dist/client/app/util/env.js +1 -0
- package/dist/client/app/util/env.ts +1 -0
- package/dist/client/app/util/keyboard.d.ts +8 -0
- package/dist/client/app/util/keyboard.js +82 -0
- package/dist/client/app/util/keyboard.ts +99 -0
- package/dist/client/app/util/mapping.d.ts +3 -0
- package/dist/client/app/util/mapping.js +39 -0
- package/dist/client/app/util/mapping.ts +41 -0
- package/dist/client/app/util/tooltip.d.ts +6 -0
- package/dist/client/app/util/tooltip.js +11 -0
- package/dist/client/app/util/tooltip.ts +13 -0
- package/dist/client/index.d.ts +8 -0
- package/dist/client/index.js +3 -0
- package/dist/client/index.ts +12 -0
- package/dist/client/server/Story.server.vue +65 -0
- package/dist/client/server/Variant.server.vue +50 -0
- package/dist/client/server/index.d.ts +2 -0
- package/dist/client/server/index.js +25 -0
- package/dist/client/server/index.ts +29 -0
- package/dist/client/shim.d.ts +5 -0
- package/dist/node/alias.js +0 -1
- package/dist/node/bin.js +8 -3
- package/dist/node/build.d.ts +2 -0
- package/dist/node/build.js +71 -0
- package/dist/node/collect.d.ts +12 -0
- package/dist/node/collect.js +65 -0
- package/dist/node/colors.d.ts +286 -0
- package/dist/node/colors.js +324 -0
- package/dist/node/commands/build.d.ts +1 -0
- package/dist/node/commands/build.js +10 -0
- package/dist/node/commands/dev.d.ts +1 -1
- package/dist/node/commands/dev.js +45 -13
- package/dist/node/config.d.ts +112 -1
- package/dist/node/config.js +124 -2
- package/dist/node/context.d.ts +13 -0
- package/dist/node/context.js +12 -2
- package/dist/node/dom/dom-keys.d.ts +4 -0
- package/dist/node/dom/dom-keys.js +223 -0
- package/dist/node/dom/env.d.ts +5 -0
- package/dist/node/dom/env.js +22 -0
- package/dist/node/index.d.ts +2 -0
- package/dist/node/index.js +2 -2
- package/dist/node/plugin.d.ts +8 -2
- package/dist/node/plugin.js +150 -22
- package/dist/node/server.d.ts +4 -1
- package/dist/node/server.js +80 -21
- package/dist/node/stories.d.ts +8 -9
- package/dist/node/stories.js +42 -23
- package/dist/node/tree.d.ts +19 -0
- package/dist/node/tree.js +54 -0
- package/dist/node/types.d.ts +38 -0
- package/dist/node/types.js +1 -0
- package/dist/style.css +610 -53
- package/package.json +45 -25
- package/scripts/copy.mjs +11 -0
- package/src/client/app/App.vue +84 -21
- package/src/client/app/assets/histoire-text-dark.svg +89 -0
- package/src/client/app/assets/histoire-text.svg +89 -0
- package/src/client/app/assets/histoire.svg +51 -0
- package/src/client/app/codegen/serialize-js.ts +119 -0
- package/src/client/app/codegen/util.ts +79 -0
- package/src/client/app/codegen/vue3.ts +240 -0
- package/src/client/app/components/HomeView.vue +15 -1
- package/src/client/app/components/StoryControls.vue +7 -2
- package/src/client/app/components/StoryList.vue +20 -13
- package/src/client/app/components/StoryListFolder.vue +87 -0
- package/src/client/app/components/StoryListItem.vue +38 -12
- package/src/client/app/components/StorySourceCode.vue +121 -0
- package/src/client/app/components/StoryVariantGridItem.vue +32 -17
- package/src/client/app/components/StoryVariantListItem.vue +46 -0
- package/src/client/app/components/StoryVariantSingleView.vue +145 -15
- package/src/client/app/components/StoryView.vue +88 -54
- package/src/client/app/components/app/AppHeader.vue +56 -0
- package/src/client/app/components/app/AppLogo.vue +24 -0
- package/src/client/app/components/base/BaseEmpty.vue +1 -1
- package/src/client/app/components/base/BaseListItemLink.vue +55 -0
- package/src/client/app/components/base/BaseSplitPane.vue +57 -21
- package/src/client/app/components/exposed/Story.vue +23 -58
- package/src/client/app/components/exposed/Variant.vue +24 -47
- package/src/client/app/components/misc/HatchedPattern.vue +25 -0
- package/src/client/app/components/{SandboxVue.vue → sandbox/SandboxVue3.vue} +31 -12
- package/src/client/app/components/search/SearchItem.vue +110 -0
- package/src/client/app/components/search/SearchModal.vue +179 -0
- package/src/client/app/index.ts +10 -1
- package/src/client/app/sandbox.ts +60 -0
- package/src/client/app/stores/story.ts +39 -15
- package/src/client/app/style/floating-vue.css +31 -0
- package/src/client/app/style/main.css +17 -2
- package/src/client/app/style/sandbox.css +14 -0
- package/src/client/app/types.ts +42 -4
- package/src/client/app/util/config.ts +6 -0
- package/src/client/app/util/const.ts +1 -0
- package/src/client/app/util/dark.ts +4 -0
- package/src/client/app/util/env.ts +1 -0
- package/src/client/app/util/keyboard.ts +99 -0
- package/src/client/app/util/mapping.ts +41 -0
- package/src/client/app/util/tooltip.ts +13 -0
- package/src/client/index.ts +12 -0
- package/src/client/server/Story.server.vue +65 -0
- package/src/client/server/Variant.server.vue +50 -0
- package/src/client/server/index.ts +29 -0
- package/src/node/bin.ts +9 -2
- package/src/node/build.ts +80 -0
- package/src/node/collect.ts +78 -0
- package/src/node/colors.ts +340 -0
- package/src/node/commands/build.ts +12 -0
- package/src/node/commands/dev.ts +49 -12
- package/src/node/config.ts +240 -1
- package/src/node/context.ts +21 -1
- package/src/node/dom/dom-keys.ts +227 -0
- package/src/node/dom/env.ts +26 -0
- package/src/node/index.ts +2 -0
- package/src/node/plugin.ts +155 -22
- package/src/node/server.ts +95 -20
- package/src/node/stories.ts +53 -31
- package/src/node/tree.spec.ts +28 -0
- package/src/node/tree.ts +88 -0
- package/src/node/types.ts +40 -0
- package/tailwind.config.cjs +41 -1
- package/tsconfig.json +2 -1
- package/dist/client/app/components/StoryVariantItem.vue +0 -29
- package/dist/client/app/composable/variant.js.map +0 -1
- package/dist/client/app/global-components.js.map +0 -1
- package/dist/client/app/index.js.map +0 -1
- package/dist/client/app/router.js.map +0 -1
- package/dist/client/app/stores/story.js.map +0 -1
- package/dist/client/app/types.js.map +0 -1
- package/dist/node/alias.js.map +0 -1
- package/dist/node/bin.js.map +0 -1
- package/dist/node/commands/dev.js.map +0 -1
- package/dist/node/config.js.map +0 -1
- package/dist/node/context.js.map +0 -1
- package/dist/node/index.js.map +0 -1
- package/dist/node/plugin.js.map +0 -1
- package/dist/node/server.js.map +0 -1
- package/dist/node/stories.js.map +0 -1
- package/src/client/app/components/StoryVariantItem.vue +0 -29
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { join } from 'pathe';
|
|
2
|
+
import { build as viteBuild, createServer as createViteServer, resolveConfig as resolveViteConfig } from 'vite';
|
|
3
|
+
import fs from 'fs-extra';
|
|
4
|
+
import { lookup as lookupMime } from 'mrmime';
|
|
5
|
+
import { APP_PATH } from './alias.js';
|
|
6
|
+
import { createVitePlugins } from './plugin.js';
|
|
7
|
+
import { findAllStories } from './stories.js';
|
|
8
|
+
import { useCollectStories } from './collect.js';
|
|
9
|
+
export async function build(ctx) {
|
|
10
|
+
await findAllStories(ctx);
|
|
11
|
+
// Collect story data
|
|
12
|
+
const viteConfig = await resolveViteConfig({}, ctx.mode === 'dev' ? 'serve' : 'build');
|
|
13
|
+
const plugins = [];
|
|
14
|
+
const hasVuePlugin = viteConfig.plugins.find(p => p.name === 'vite:vue');
|
|
15
|
+
if (!hasVuePlugin) {
|
|
16
|
+
plugins.push((await import('@vitejs/plugin-vue')).default());
|
|
17
|
+
}
|
|
18
|
+
const server = await createViteServer({
|
|
19
|
+
plugins,
|
|
20
|
+
});
|
|
21
|
+
await server.pluginContainer.buildStart({});
|
|
22
|
+
const { executeStoryFile, destroy: destroyCollectStories } = useCollectStories({
|
|
23
|
+
server,
|
|
24
|
+
throws: true,
|
|
25
|
+
}, ctx);
|
|
26
|
+
for (const storyFile of ctx.storyFiles) {
|
|
27
|
+
await executeStoryFile(storyFile);
|
|
28
|
+
}
|
|
29
|
+
await server.close();
|
|
30
|
+
await destroyCollectStories();
|
|
31
|
+
const results = await viteBuild({
|
|
32
|
+
plugins: await createVitePlugins(ctx),
|
|
33
|
+
build: {
|
|
34
|
+
rollupOptions: {
|
|
35
|
+
input: [
|
|
36
|
+
join(APP_PATH, 'index.ts'),
|
|
37
|
+
join(APP_PATH, 'sandbox.ts'),
|
|
38
|
+
],
|
|
39
|
+
},
|
|
40
|
+
outDir: ctx.config.outDir,
|
|
41
|
+
emptyOutDir: true,
|
|
42
|
+
cssCodeSplit: false,
|
|
43
|
+
},
|
|
44
|
+
});
|
|
45
|
+
const result = Array.isArray(results) ? results[0] : results;
|
|
46
|
+
const styleOutput = result.output.find(o => o.name === 'style.css' && o.type === 'asset');
|
|
47
|
+
// Index
|
|
48
|
+
const indexOutput = result.output.find(o => o.name === 'index' && o.type === 'chunk');
|
|
49
|
+
await writeHtml(indexOutput.fileName, styleOutput.fileName, 'index.html', ctx);
|
|
50
|
+
// Sandbox
|
|
51
|
+
const sandboxOutput = result.output.find(o => o.name === 'sandbox' && o.type === 'chunk');
|
|
52
|
+
await writeHtml(sandboxOutput.fileName, styleOutput.fileName, '__sandbox.html', ctx);
|
|
53
|
+
}
|
|
54
|
+
async function writeHtml(jsEntryFile, cssEntryFile, htmlFileName, ctx) {
|
|
55
|
+
const code = `<!DOCTYPE html>
|
|
56
|
+
<html>
|
|
57
|
+
<head>
|
|
58
|
+
<title>${ctx.config.theme.title}</title>
|
|
59
|
+
<meta charset="utf-8">
|
|
60
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
|
61
|
+
<meta name="description" content="">
|
|
62
|
+
<link rel="stylesheet" href="/${cssEntryFile}">
|
|
63
|
+
${ctx.config.theme?.favicon ? `<link rel="icon" type="${lookupMime(ctx.config.theme.favicon)}" href="${ctx.config.theme.favicon}"/>` : ''}
|
|
64
|
+
</head>
|
|
65
|
+
<body>
|
|
66
|
+
<div id="app"></div>
|
|
67
|
+
<script type="module" src="/${jsEntryFile}"></script>
|
|
68
|
+
</body>
|
|
69
|
+
</html>`;
|
|
70
|
+
await fs.writeFile(join(ctx.config.outDir, htmlFileName), code, 'utf8');
|
|
71
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ViteDevServer } from 'vite';
|
|
2
|
+
import type { StoryFile } from './types.js';
|
|
3
|
+
import type { Context } from './context.js';
|
|
4
|
+
export interface UseCollectStoriesOptions {
|
|
5
|
+
server: ViteDevServer;
|
|
6
|
+
throws?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare function useCollectStories(options: UseCollectStoriesOptions, ctx: Context): {
|
|
9
|
+
clearCache: () => void;
|
|
10
|
+
executeStoryFile: (storyFile: StoryFile) => Promise<void>;
|
|
11
|
+
destroy: () => Promise<void>;
|
|
12
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { fileURLToPath } from 'url';
|
|
2
|
+
import { ViteNodeServer } from 'vite-node/server';
|
|
3
|
+
import { ViteNodeRunner } from 'vite-node/client';
|
|
4
|
+
import { dirname, resolve, relative } from 'pathe';
|
|
5
|
+
import pc from 'picocolors';
|
|
6
|
+
import { createDomEnv } from './dom/env.js';
|
|
7
|
+
import { createPath } from './tree.js';
|
|
8
|
+
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
9
|
+
export function useCollectStories(options, ctx) {
|
|
10
|
+
const { server } = options;
|
|
11
|
+
const { destroy: destroyDomEnv } = createDomEnv();
|
|
12
|
+
const node = new ViteNodeServer(server);
|
|
13
|
+
const runner = new ViteNodeRunner({
|
|
14
|
+
root: server.config.root,
|
|
15
|
+
base: server.config.base,
|
|
16
|
+
fetchModule(id) {
|
|
17
|
+
// Alias
|
|
18
|
+
if (id.endsWith('vue.runtime.esm-bundler.js')) {
|
|
19
|
+
id = 'vue';
|
|
20
|
+
}
|
|
21
|
+
return node.fetchModule(id);
|
|
22
|
+
},
|
|
23
|
+
});
|
|
24
|
+
function clearCache() {
|
|
25
|
+
node.fetchCache.clear();
|
|
26
|
+
runner.moduleCache.clear();
|
|
27
|
+
}
|
|
28
|
+
async function executeStoryFile(storyFile) {
|
|
29
|
+
try {
|
|
30
|
+
// Mount app to collect stories/variants
|
|
31
|
+
const el = window.document.createElement('div');
|
|
32
|
+
const { run } = await runner.executeFile(resolve(__dirname, '../client/server/index.js'));
|
|
33
|
+
const storyData = [];
|
|
34
|
+
await run(storyFile, storyData, el);
|
|
35
|
+
if (storyData.length === 0) {
|
|
36
|
+
console.warn(pc.yellow(`No story found for ${storyFile.path}`));
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
else if (storyData.length > 1) {
|
|
40
|
+
console.warn(pc.yellow(`Multiple stories not supported: ${storyFile.path}`));
|
|
41
|
+
}
|
|
42
|
+
storyFile.story = storyData[0];
|
|
43
|
+
const file = {
|
|
44
|
+
title: storyData[0].title,
|
|
45
|
+
path: relative(server.config.root, storyFile.path),
|
|
46
|
+
};
|
|
47
|
+
storyFile.treePath = createPath(ctx.config, file);
|
|
48
|
+
storyFile.story.title = storyFile.treePath[storyFile.treePath.length - 1];
|
|
49
|
+
}
|
|
50
|
+
catch (e) {
|
|
51
|
+
console.error(pc.red(`Error while collecting story ${storyFile.path}:\n${e.frame ? `${pc.bold(e.message)}\n${e.frame}` : e.stack}`));
|
|
52
|
+
if (options.throws) {
|
|
53
|
+
throw e;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
async function destroy() {
|
|
58
|
+
destroyDomEnv();
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
clearCache,
|
|
62
|
+
executeStoryFile,
|
|
63
|
+
destroy,
|
|
64
|
+
};
|
|
65
|
+
}
|
|
@@ -0,0 +1,286 @@
|
|
|
1
|
+
export declare const defaultColors: {
|
|
2
|
+
slate: {
|
|
3
|
+
50: string;
|
|
4
|
+
100: string;
|
|
5
|
+
200: string;
|
|
6
|
+
300: string;
|
|
7
|
+
400: string;
|
|
8
|
+
500: string;
|
|
9
|
+
600: string;
|
|
10
|
+
700: string;
|
|
11
|
+
750: string;
|
|
12
|
+
800: string;
|
|
13
|
+
850: string;
|
|
14
|
+
900: string;
|
|
15
|
+
950: string;
|
|
16
|
+
};
|
|
17
|
+
gray: {
|
|
18
|
+
50: string;
|
|
19
|
+
100: string;
|
|
20
|
+
200: string;
|
|
21
|
+
300: string;
|
|
22
|
+
400: string;
|
|
23
|
+
500: string;
|
|
24
|
+
600: string;
|
|
25
|
+
700: string;
|
|
26
|
+
750: string;
|
|
27
|
+
800: string;
|
|
28
|
+
850: string;
|
|
29
|
+
900: string;
|
|
30
|
+
950: string;
|
|
31
|
+
};
|
|
32
|
+
zinc: {
|
|
33
|
+
50: string;
|
|
34
|
+
100: string;
|
|
35
|
+
200: string;
|
|
36
|
+
300: string;
|
|
37
|
+
400: string;
|
|
38
|
+
500: string;
|
|
39
|
+
600: string;
|
|
40
|
+
700: string;
|
|
41
|
+
750: string;
|
|
42
|
+
800: string;
|
|
43
|
+
850: string;
|
|
44
|
+
900: string;
|
|
45
|
+
950: string;
|
|
46
|
+
};
|
|
47
|
+
neutral: {
|
|
48
|
+
50: string;
|
|
49
|
+
100: string;
|
|
50
|
+
200: string;
|
|
51
|
+
300: string;
|
|
52
|
+
400: string;
|
|
53
|
+
500: string;
|
|
54
|
+
600: string;
|
|
55
|
+
700: string;
|
|
56
|
+
750: string;
|
|
57
|
+
800: string;
|
|
58
|
+
850: string;
|
|
59
|
+
900: string;
|
|
60
|
+
950: string;
|
|
61
|
+
};
|
|
62
|
+
stone: {
|
|
63
|
+
50: string;
|
|
64
|
+
100: string;
|
|
65
|
+
200: string;
|
|
66
|
+
300: string;
|
|
67
|
+
400: string;
|
|
68
|
+
500: string;
|
|
69
|
+
600: string;
|
|
70
|
+
700: string;
|
|
71
|
+
750: string;
|
|
72
|
+
800: string;
|
|
73
|
+
850: string;
|
|
74
|
+
900: string;
|
|
75
|
+
950: string;
|
|
76
|
+
};
|
|
77
|
+
red: {
|
|
78
|
+
50: string;
|
|
79
|
+
100: string;
|
|
80
|
+
200: string;
|
|
81
|
+
300: string;
|
|
82
|
+
400: string;
|
|
83
|
+
500: string;
|
|
84
|
+
600: string;
|
|
85
|
+
700: string;
|
|
86
|
+
800: string;
|
|
87
|
+
900: string;
|
|
88
|
+
};
|
|
89
|
+
orange: {
|
|
90
|
+
50: string;
|
|
91
|
+
100: string;
|
|
92
|
+
200: string;
|
|
93
|
+
300: string;
|
|
94
|
+
400: string;
|
|
95
|
+
500: string;
|
|
96
|
+
600: string;
|
|
97
|
+
700: string;
|
|
98
|
+
800: string;
|
|
99
|
+
900: string;
|
|
100
|
+
};
|
|
101
|
+
amber: {
|
|
102
|
+
50: string;
|
|
103
|
+
100: string;
|
|
104
|
+
200: string;
|
|
105
|
+
300: string;
|
|
106
|
+
400: string;
|
|
107
|
+
500: string;
|
|
108
|
+
600: string;
|
|
109
|
+
700: string;
|
|
110
|
+
800: string;
|
|
111
|
+
900: string;
|
|
112
|
+
};
|
|
113
|
+
yellow: {
|
|
114
|
+
50: string;
|
|
115
|
+
100: string;
|
|
116
|
+
200: string;
|
|
117
|
+
300: string;
|
|
118
|
+
400: string;
|
|
119
|
+
500: string;
|
|
120
|
+
600: string;
|
|
121
|
+
700: string;
|
|
122
|
+
800: string;
|
|
123
|
+
900: string;
|
|
124
|
+
};
|
|
125
|
+
lime: {
|
|
126
|
+
50: string;
|
|
127
|
+
100: string;
|
|
128
|
+
200: string;
|
|
129
|
+
300: string;
|
|
130
|
+
400: string;
|
|
131
|
+
500: string;
|
|
132
|
+
600: string;
|
|
133
|
+
700: string;
|
|
134
|
+
800: string;
|
|
135
|
+
900: string;
|
|
136
|
+
};
|
|
137
|
+
green: {
|
|
138
|
+
50: string;
|
|
139
|
+
100: string;
|
|
140
|
+
200: string;
|
|
141
|
+
300: string;
|
|
142
|
+
400: string;
|
|
143
|
+
500: string;
|
|
144
|
+
600: string;
|
|
145
|
+
700: string;
|
|
146
|
+
800: string;
|
|
147
|
+
900: string;
|
|
148
|
+
};
|
|
149
|
+
emerald: {
|
|
150
|
+
50: string;
|
|
151
|
+
100: string;
|
|
152
|
+
200: string;
|
|
153
|
+
300: string;
|
|
154
|
+
400: string;
|
|
155
|
+
500: string;
|
|
156
|
+
600: string;
|
|
157
|
+
700: string;
|
|
158
|
+
800: string;
|
|
159
|
+
900: string;
|
|
160
|
+
};
|
|
161
|
+
teal: {
|
|
162
|
+
50: string;
|
|
163
|
+
100: string;
|
|
164
|
+
200: string;
|
|
165
|
+
300: string;
|
|
166
|
+
400: string;
|
|
167
|
+
500: string;
|
|
168
|
+
600: string;
|
|
169
|
+
700: string;
|
|
170
|
+
800: string;
|
|
171
|
+
900: string;
|
|
172
|
+
};
|
|
173
|
+
cyan: {
|
|
174
|
+
50: string;
|
|
175
|
+
100: string;
|
|
176
|
+
200: string;
|
|
177
|
+
300: string;
|
|
178
|
+
400: string;
|
|
179
|
+
500: string;
|
|
180
|
+
600: string;
|
|
181
|
+
700: string;
|
|
182
|
+
800: string;
|
|
183
|
+
900: string;
|
|
184
|
+
};
|
|
185
|
+
sky: {
|
|
186
|
+
50: string;
|
|
187
|
+
100: string;
|
|
188
|
+
200: string;
|
|
189
|
+
300: string;
|
|
190
|
+
400: string;
|
|
191
|
+
500: string;
|
|
192
|
+
600: string;
|
|
193
|
+
700: string;
|
|
194
|
+
800: string;
|
|
195
|
+
900: string;
|
|
196
|
+
};
|
|
197
|
+
blue: {
|
|
198
|
+
50: string;
|
|
199
|
+
100: string;
|
|
200
|
+
200: string;
|
|
201
|
+
300: string;
|
|
202
|
+
400: string;
|
|
203
|
+
500: string;
|
|
204
|
+
600: string;
|
|
205
|
+
700: string;
|
|
206
|
+
800: string;
|
|
207
|
+
900: string;
|
|
208
|
+
};
|
|
209
|
+
indigo: {
|
|
210
|
+
50: string;
|
|
211
|
+
100: string;
|
|
212
|
+
200: string;
|
|
213
|
+
300: string;
|
|
214
|
+
400: string;
|
|
215
|
+
500: string;
|
|
216
|
+
600: string;
|
|
217
|
+
700: string;
|
|
218
|
+
800: string;
|
|
219
|
+
900: string;
|
|
220
|
+
};
|
|
221
|
+
violet: {
|
|
222
|
+
50: string;
|
|
223
|
+
100: string;
|
|
224
|
+
200: string;
|
|
225
|
+
300: string;
|
|
226
|
+
400: string;
|
|
227
|
+
500: string;
|
|
228
|
+
600: string;
|
|
229
|
+
700: string;
|
|
230
|
+
800: string;
|
|
231
|
+
900: string;
|
|
232
|
+
};
|
|
233
|
+
purple: {
|
|
234
|
+
50: string;
|
|
235
|
+
100: string;
|
|
236
|
+
200: string;
|
|
237
|
+
300: string;
|
|
238
|
+
400: string;
|
|
239
|
+
500: string;
|
|
240
|
+
600: string;
|
|
241
|
+
700: string;
|
|
242
|
+
800: string;
|
|
243
|
+
900: string;
|
|
244
|
+
};
|
|
245
|
+
fuchsia: {
|
|
246
|
+
50: string;
|
|
247
|
+
100: string;
|
|
248
|
+
200: string;
|
|
249
|
+
300: string;
|
|
250
|
+
400: string;
|
|
251
|
+
500: string;
|
|
252
|
+
600: string;
|
|
253
|
+
700: string;
|
|
254
|
+
800: string;
|
|
255
|
+
900: string;
|
|
256
|
+
};
|
|
257
|
+
pink: {
|
|
258
|
+
50: string;
|
|
259
|
+
100: string;
|
|
260
|
+
200: string;
|
|
261
|
+
300: string;
|
|
262
|
+
400: string;
|
|
263
|
+
500: string;
|
|
264
|
+
600: string;
|
|
265
|
+
700: string;
|
|
266
|
+
800: string;
|
|
267
|
+
900: string;
|
|
268
|
+
};
|
|
269
|
+
rose: {
|
|
270
|
+
50: string;
|
|
271
|
+
100: string;
|
|
272
|
+
200: string;
|
|
273
|
+
300: string;
|
|
274
|
+
400: string;
|
|
275
|
+
500: string;
|
|
276
|
+
600: string;
|
|
277
|
+
700: string;
|
|
278
|
+
800: string;
|
|
279
|
+
900: string;
|
|
280
|
+
};
|
|
281
|
+
};
|
|
282
|
+
export declare function parseColor(value: any): {
|
|
283
|
+
mode: string;
|
|
284
|
+
color: any[];
|
|
285
|
+
alpha: any;
|
|
286
|
+
};
|