histoire 0.0.1 → 0.0.2

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.
Files changed (87) hide show
  1. package/dist/client/app/codegen/serialize-js.js +0 -1
  2. package/dist/client/app/codegen/util.js +0 -1
  3. package/dist/client/app/codegen/vue3.js +0 -1
  4. package/dist/client/app/components/StoryListFolder.vue +9 -2
  5. package/dist/client/app/composable/variant.js +0 -1
  6. package/dist/client/app/global-components.js +0 -1
  7. package/dist/client/app/index.js +0 -1
  8. package/dist/client/app/router.js +0 -1
  9. package/dist/client/app/sandbox.js +0 -1
  10. package/dist/client/app/stores/story.d.ts +7 -1
  11. package/dist/client/app/stores/story.js +30 -2
  12. package/dist/client/app/stores/story.ts +37 -1
  13. package/dist/client/app/types.js +0 -1
  14. package/dist/client/app/types.ts +14 -0
  15. package/dist/client/app/util/config.js +0 -1
  16. package/dist/client/app/util/const.js +0 -1
  17. package/dist/client/app/util/dark.js +0 -1
  18. package/dist/client/app/util/env.js +0 -1
  19. package/dist/client/app/util/env.ts +1 -0
  20. package/dist/client/app/util/keyboard.js +0 -1
  21. package/dist/client/app/util/keyboard.ts +99 -0
  22. package/dist/client/app/util/mapping.js +0 -1
  23. package/dist/client/app/util/tooltip.js +0 -1
  24. package/dist/client/app/util/tooltip.ts +13 -0
  25. package/dist/client/index.js +0 -1
  26. package/dist/client/server/index.js +0 -1
  27. package/dist/node/alias.js +0 -1
  28. package/dist/node/bin.js +0 -1
  29. package/dist/node/build.js +0 -1
  30. package/dist/node/collect.js +0 -1
  31. package/dist/node/colors.d.ts +12 -0
  32. package/dist/node/colors.js +12 -1
  33. package/dist/node/commands/build.js +0 -1
  34. package/dist/node/commands/dev.js +0 -1
  35. package/dist/node/config.js +0 -1
  36. package/dist/node/context.js +0 -1
  37. package/dist/node/dom/dom-keys.js +0 -1
  38. package/dist/node/dom/env.js +0 -1
  39. package/dist/node/index.js +0 -1
  40. package/dist/node/plugin.js +0 -1
  41. package/dist/node/server.js +0 -1
  42. package/dist/node/stories.js +0 -1
  43. package/dist/node/tree.js +0 -1
  44. package/dist/node/types.js +0 -1
  45. package/dist/style.css +68 -72
  46. package/package.json +5 -2
  47. package/src/client/app/components/StoryListFolder.vue +9 -2
  48. package/src/client/app/stores/story.ts +37 -1
  49. package/src/node/colors.ts +12 -0
  50. package/src/node/tree.spec.ts +28 -0
  51. package/tsconfig.json +2 -1
  52. package/dist/client/app/codegen/serialize-js.js.map +0 -1
  53. package/dist/client/app/codegen/util.js.map +0 -1
  54. package/dist/client/app/codegen/vue3.js.map +0 -1
  55. package/dist/client/app/composable/variant.js.map +0 -1
  56. package/dist/client/app/global-components.js.map +0 -1
  57. package/dist/client/app/index.js.map +0 -1
  58. package/dist/client/app/router.js.map +0 -1
  59. package/dist/client/app/sandbox.js.map +0 -1
  60. package/dist/client/app/stores/story.js.map +0 -1
  61. package/dist/client/app/types.js.map +0 -1
  62. package/dist/client/app/util/config.js.map +0 -1
  63. package/dist/client/app/util/const.js.map +0 -1
  64. package/dist/client/app/util/dark.js.map +0 -1
  65. package/dist/client/app/util/env.js.map +0 -1
  66. package/dist/client/app/util/keyboard.js.map +0 -1
  67. package/dist/client/app/util/mapping.js.map +0 -1
  68. package/dist/client/app/util/tooltip.js.map +0 -1
  69. package/dist/client/index.js.map +0 -1
  70. package/dist/client/server/index.js.map +0 -1
  71. package/dist/node/alias.js.map +0 -1
  72. package/dist/node/bin.js.map +0 -1
  73. package/dist/node/build.js.map +0 -1
  74. package/dist/node/collect.js.map +0 -1
  75. package/dist/node/colors.js.map +0 -1
  76. package/dist/node/commands/build.js.map +0 -1
  77. package/dist/node/commands/dev.js.map +0 -1
  78. package/dist/node/config.js.map +0 -1
  79. package/dist/node/context.js.map +0 -1
  80. package/dist/node/dom/dom-keys.js.map +0 -1
  81. package/dist/node/dom/env.js.map +0 -1
  82. package/dist/node/index.js.map +0 -1
  83. package/dist/node/plugin.js.map +0 -1
  84. package/dist/node/server.js.map +0 -1
  85. package/dist/node/stories.js.map +0 -1
  86. package/dist/node/tree.js.map +0 -1
  87. package/dist/node/types.js.map +0 -1
@@ -111,4 +111,3 @@ function wrap(lines, before, after) {
111
111
  lines[lines.length - 1].line += after;
112
112
  return lines;
113
113
  }
114
- //# sourceMappingURL=serialize-js.js.map
@@ -68,4 +68,3 @@ export function createAutoBuildingObject(format, specialKeysHandler, key = '', d
68
68
  proxy,
69
69
  };
70
70
  }
71
- //# sourceMappingURL=util.js.map
@@ -236,4 +236,3 @@ function serializeAndCleanJs(value) {
236
236
  return result.replace(/\$setup\./g, '').split('\n');
237
237
  }
238
238
  }
239
- //# sourceMappingURL=vue3.js.map
@@ -3,19 +3,25 @@ import { Story, TreeFolder } from '../types'
3
3
  import StoryListItem from './StoryListItem.vue'
4
4
  import { Icon } from '@iconify/vue'
5
5
  import { computed, ref, withDefaults } from 'vue'
6
+ import { useStoryStore } from '../stores/story'
6
7
 
7
8
  const props = withDefaults(defineProps<{
9
+ path?: Array<string>
8
10
  folder: TreeFolder
9
11
  stories: Story[]
10
12
  depth?: number
11
13
  }>(), {
12
14
  depth: 0,
15
+ path: () => [],
13
16
  })
14
17
 
15
- const isFolderOpen = ref(false)
18
+ const storyStore = useStoryStore()
19
+
20
+ const folderPath = computed(() => [...props.path, props.folder.title])
21
+ const isFolderOpen = computed(() => storyStore.isFolderOpened(folderPath.value))
16
22
 
17
23
  function toggleOpen () {
18
- isFolderOpen.value = !isFolderOpen.value
24
+ storyStore.toggleFolder(folderPath.value)
19
25
  }
20
26
 
21
27
  const folderPadding = computed(() => {
@@ -59,6 +65,7 @@ const folderPadding = computed(() => {
59
65
  >
60
66
  <StoryListFolder
61
67
  v-if="element.children"
68
+ :path="folderPath"
62
69
  :folder="element"
63
70
  :stories="stories"
64
71
  :depth="depth + 1"
@@ -15,4 +15,3 @@ export function useCurrentVariantRoute(variant) {
15
15
  targetRoute,
16
16
  };
17
17
  }
18
- //# sourceMappingURL=variant.js.map
@@ -6,4 +6,3 @@ export function registerGlobalComponents(app) {
6
6
  // eslint-disable-next-line vue/multi-word-component-names
7
7
  app.component('Variant', Variant);
8
8
  }
9
- //# sourceMappingURL=global-components.js.map
@@ -14,4 +14,3 @@ app.use(FloatingVue, {
14
14
  app.use(router);
15
15
  registerGlobalComponents(app);
16
16
  app.mount('#app');
17
- //# sourceMappingURL=index.js.map
@@ -14,4 +14,3 @@ export const router = createRouter({
14
14
  },
15
15
  ],
16
16
  });
17
- //# sourceMappingURL=router.js.map
@@ -51,4 +51,3 @@ const app = createApp({
51
51
  app.use(createPinia());
52
52
  registerGlobalComponents(app);
53
53
  app.mount('#app');
54
- //# sourceMappingURL=sandbox.js.map
@@ -89,6 +89,8 @@ export declare const useStoryStore: import("pinia").StoreDefinition<"story", imp
89
89
  state?: any;
90
90
  source?: string;
91
91
  }>;
92
+ isFolderOpened: (path: Array<string>) => boolean;
93
+ toggleFolder: (path: Array<string>, force?: boolean) => void;
92
94
  }, "stories">>, import("pinia")._UnwrapAll<Pick<{
93
95
  stories: import("vue").Ref<{
94
96
  id: string;
@@ -179,6 +181,8 @@ export declare const useStoryStore: import("pinia").StoreDefinition<"story", imp
179
181
  state?: any;
180
182
  source?: string;
181
183
  }>;
184
+ isFolderOpened: (path: Array<string>) => boolean;
185
+ toggleFolder: (path: Array<string>, force?: boolean) => void;
182
186
  }, "currentStory" | "currentVariant">>, Pick<{
183
187
  stories: import("vue").Ref<{
184
188
  id: string;
@@ -269,4 +273,6 @@ export declare const useStoryStore: import("pinia").StoreDefinition<"story", imp
269
273
  state?: any;
270
274
  source?: string;
271
275
  }>;
272
- }, "setStories">>;
276
+ isFolderOpened: (path: Array<string>) => boolean;
277
+ toggleFolder: (path: Array<string>, force?: boolean) => void;
278
+ }, "setStories" | "isFolderOpened" | "toggleFolder">>;
@@ -1,5 +1,5 @@
1
1
  import { defineStore } from 'pinia';
2
- import { computed, ref } from 'vue';
2
+ import { computed, ref, watch } from 'vue';
3
3
  import { router } from '../router';
4
4
  export const useStoryStore = defineStore('story', () => {
5
5
  const stories = ref([]);
@@ -8,11 +8,39 @@ export const useStoryStore = defineStore('story', () => {
8
8
  }
9
9
  const currentStory = computed(() => stories.value.find(s => s.id === router.currentRoute.value.params.storyId));
10
10
  const currentVariant = computed(() => currentStory.value?.variants.find(v => v.id === router.currentRoute.value.query.variantId));
11
+ const openedFolders = ref(new Map());
12
+ function getStringPath(path) {
13
+ return path.join('␜');
14
+ }
15
+ function toggleFolder(path, force) {
16
+ const stringPath = getStringPath(path);
17
+ if (force === undefined) {
18
+ force = !openedFolders.value.get(stringPath);
19
+ }
20
+ if (force) {
21
+ openedFolders.value.set(stringPath, true);
22
+ }
23
+ else {
24
+ openedFolders.value.delete(stringPath);
25
+ }
26
+ }
27
+ function isFolderOpened(path) {
28
+ return openedFolders.value.get(getStringPath(path));
29
+ }
30
+ function openFileFolders(path) {
31
+ for (let pathLength = 1; pathLength < path.length; pathLength++) {
32
+ toggleFolder(path.slice(0, pathLength), true);
33
+ }
34
+ }
35
+ watch(currentStory, () => {
36
+ openFileFolders(currentStory.value.file.path);
37
+ });
11
38
  return {
12
39
  stories,
13
40
  setStories,
14
41
  currentStory,
15
42
  currentVariant,
43
+ isFolderOpened,
44
+ toggleFolder,
16
45
  };
17
46
  });
18
- //# sourceMappingURL=story.js.map
@@ -1,5 +1,5 @@
1
1
  import { defineStore } from 'pinia'
2
- import { computed, ref } from 'vue'
2
+ import { computed, reactive, ref, watch } from 'vue'
3
3
  import { router } from '../router'
4
4
  import { Story } from '../types'
5
5
 
@@ -13,10 +13,46 @@ export const useStoryStore = defineStore('story', () => {
13
13
 
14
14
  const currentVariant = computed(() => currentStory.value?.variants.find(v => v.id === router.currentRoute.value.query.variantId))
15
15
 
16
+ const openedFolders = ref(new Map() as Map<string, boolean>)
17
+
18
+ function getStringPath (path: Array<string>) {
19
+ return path.join('␜')
20
+ }
21
+
22
+ function toggleFolder (path: Array<string>, force?: boolean) {
23
+ const stringPath = getStringPath(path)
24
+
25
+ if (force === undefined) {
26
+ force = !openedFolders.value.get(stringPath)
27
+ }
28
+
29
+ if (force) {
30
+ openedFolders.value.set(stringPath, true)
31
+ } else {
32
+ openedFolders.value.delete(stringPath)
33
+ }
34
+ }
35
+
36
+ function isFolderOpened (path: Array<string>) {
37
+ return openedFolders.value.get(getStringPath(path))
38
+ }
39
+
40
+ function openFileFolders (path: Array<string>) {
41
+ for (let pathLength = 1; pathLength < path.length; pathLength++) {
42
+ toggleFolder(path.slice(0, pathLength), true)
43
+ }
44
+ }
45
+
46
+ watch(currentStory, () => {
47
+ openFileFolders(currentStory.value.file.path)
48
+ })
49
+
16
50
  return {
17
51
  stories,
18
52
  setStories,
19
53
  currentStory,
20
54
  currentVariant,
55
+ isFolderOpened,
56
+ toggleFolder,
21
57
  }
22
58
  })
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=types.js.map
@@ -1,8 +1,11 @@
1
+ import type { RouteLocationRaw } from 'vue-router'
2
+
1
3
  export interface StoryFile {
2
4
  id: string
3
5
  framework: string
4
6
  component: any
5
7
  story: Story
8
+ path: string[]
6
9
  }
7
10
 
8
11
  export interface Story {
@@ -43,3 +46,14 @@ export type TreeFolder = {
43
46
  }
44
47
 
45
48
  export type Tree = (TreeFolder | TreeLeaf)[]
49
+
50
+ export interface SearchResult {
51
+ kind: 'story' | 'variant'
52
+ rank: number
53
+ id: string
54
+ title: string
55
+ route: RouteLocationRaw
56
+ path?: string[]
57
+ icon?: string
58
+ iconColor?: string
59
+ }
@@ -2,4 +2,3 @@
2
2
  import { config as configRaw, logos as logosRaw } from '$histoire-config';
3
3
  export const histoireConfig = configRaw;
4
4
  export const customLogos = logosRaw;
5
- //# sourceMappingURL=config.js.map
@@ -1,2 +1 @@
1
1
  export const STATE_SYNC = '__histoire:state-sync';
2
- //# sourceMappingURL=const.js.map
@@ -1,4 +1,3 @@
1
1
  import { useDark, useToggle } from '@vueuse/core';
2
2
  export const isDark = useDark({ valueDark: 'htw-dark' });
3
3
  export const toggleDark = useToggle(isDark);
4
- //# sourceMappingURL=dark.js.map
@@ -1,2 +1 @@
1
1
  export const isMac = navigator.platform.toLowerCase().includes('mac');
2
- //# sourceMappingURL=env.js.map
@@ -0,0 +1 @@
1
+ export const isMac = navigator.platform.toLowerCase().includes('mac')
@@ -80,4 +80,3 @@ export function formatKey(key) {
80
80
  }
81
81
  return key.charAt(0).toUpperCase() + key.substring(1).toLowerCase();
82
82
  }
83
- //# sourceMappingURL=keyboard.js.map
@@ -0,0 +1,99 @@
1
+ import { useEventListener } from '@vueuse/core'
2
+ import { isRef, Ref } from 'vue'
3
+ import { isMac } from './env.js'
4
+
5
+ export type KeyboardShortcut = string[]
6
+
7
+ export type KeyboardHandler = (event: KeyboardEvent) => unknown
8
+
9
+ export interface KeyboardShortcutOptions {
10
+ event?: 'keyup' | 'keydown' | 'keypress'
11
+ }
12
+
13
+ export function onKeyboardShortcut (shortcut: KeyboardShortcut | Ref<KeyboardShortcut>, handler: KeyboardHandler, options: KeyboardShortcutOptions = {}) {
14
+ useEventListener(options.event ?? 'keydown', event => {
15
+ if (isMatchingShortcut(isRef(shortcut) ? shortcut.value : shortcut)) {
16
+ handler(event)
17
+ }
18
+ })
19
+ }
20
+
21
+ const modifiers: { [i: string]: { key: string, pressed: boolean } } = {
22
+ ctrl: { key: 'Control', pressed: false },
23
+ alt: { key: 'Alt', pressed: false },
24
+ shift: { key: 'Shift', pressed: false },
25
+ meta: { key: 'Meta', pressed: false },
26
+ }
27
+
28
+ const pressedKeys = new Set<string>()
29
+
30
+ window.addEventListener('keydown', event => {
31
+ for (const i in modifiers) {
32
+ const mod = modifiers[i]
33
+ if (mod.key === event.key) {
34
+ mod.pressed = true
35
+ return
36
+ }
37
+ }
38
+ pressedKeys.add(event.key.toLocaleLowerCase())
39
+ })
40
+
41
+ window.addEventListener('keyup', event => {
42
+ requestAnimationFrame(() => {
43
+ pressedKeys.clear()
44
+ for (const i in modifiers) {
45
+ const mod = modifiers[i]
46
+ if (mod.key === event.key) {
47
+ mod.pressed = false
48
+ break
49
+ }
50
+ }
51
+ })
52
+ })
53
+
54
+ window.addEventListener('blur', () => {
55
+ pressedKeys.clear()
56
+ for (const i in modifiers) {
57
+ const mod = modifiers[i]
58
+ mod.pressed = false
59
+ }
60
+ })
61
+
62
+ function isMatchingShortcut (shortcut: KeyboardShortcut): boolean {
63
+ for (const combination of shortcut) {
64
+ if (isMatchingCombination(combination.toLowerCase())) {
65
+ return true
66
+ }
67
+ }
68
+ return false
69
+ }
70
+
71
+ function isMatchingCombination (combination: string): boolean {
72
+ const splitted = combination.split('+').map(key => key.trim())
73
+ const targetKey = splitted.pop()
74
+ for (const mod in modifiers) {
75
+ const containsMod = splitted.includes(mod)
76
+ const isPressed = modifiers[mod].pressed
77
+ if (containsMod !== isPressed) {
78
+ return false
79
+ }
80
+ }
81
+ return pressedKeys.has(targetKey)
82
+ }
83
+
84
+ export function formatKey (key: string) {
85
+ key = key.toLowerCase()
86
+ if (key === 'ctrl') {
87
+ return isMac ? '^' : 'Ctrl'
88
+ }
89
+ if (key === 'alt') {
90
+ return isMac ? '⎇' : 'Alt'
91
+ }
92
+ if (key === 'shift') {
93
+ return '⇧'
94
+ }
95
+ if (key === 'meta') {
96
+ return '⌘'
97
+ }
98
+ return key.charAt(0).toUpperCase() + key.substring(1).toLowerCase()
99
+ }
@@ -34,4 +34,3 @@ export function mapVariant(variant) {
34
34
  slots: () => ({}),
35
35
  };
36
36
  }
37
- //# sourceMappingURL=mapping.js.map
@@ -9,4 +9,3 @@ export function makeTooltip(descriptionHtml, keyboardShortcut) {
9
9
  function genKeyboardShortcutHtml(shortcut) {
10
10
  return shortcut.split('+').map(k => k.trim()).map(key => `<span class="htw-bg-gray-500 htw-border-b-2 htw-border-gray-600 htw-px-1 htw-rounded-sm">${formatKey(key)}</span>`).join('');
11
11
  }
12
- //# sourceMappingURL=tooltip.js.map
@@ -0,0 +1,13 @@
1
+ import { isMac } from './env.js'
2
+ import { formatKey } from './keyboard.js'
3
+
4
+ export function makeTooltip (descriptionHtml: string, keyboardShortcut: ({ isMac: boolean }) => string) {
5
+ return {
6
+ content: `<div>${descriptionHtml}</div><div class="htw-flex htw-items-center htw-gap-1 htw-mt-2 htw-text-sm">${genKeyboardShortcutHtml(keyboardShortcut({ isMac }))}</div>`,
7
+ html: true,
8
+ }
9
+ }
10
+
11
+ function genKeyboardShortcutHtml (shortcut: string) {
12
+ return shortcut.split('+').map(k => k.trim()).map(key => `<span class="htw-bg-gray-500 htw-border-b-2 htw-border-gray-600 htw-px-1 htw-rounded-sm">${formatKey(key)}</span>`).join('')
13
+ }
@@ -1,4 +1,3 @@
1
1
  export function defineVue3StorySetup(handler) {
2
2
  return handler;
3
3
  }
4
- //# sourceMappingURL=index.js.map
@@ -23,4 +23,3 @@ export async function run(file, storyData, el) {
23
23
  app.mount(el);
24
24
  app.unmount();
25
25
  }
26
- //# sourceMappingURL=index.js.map
@@ -3,4 +3,3 @@ import { fileURLToPath } from 'url';
3
3
  const __dirname = dirname(fileURLToPath(import.meta.url));
4
4
  export const DIST_CLIENT_PATH = join(__dirname, '../client');
5
5
  export const APP_PATH = join(DIST_CLIENT_PATH, 'app');
6
- //# sourceMappingURL=alias.js.map
package/dist/node/bin.js CHANGED
@@ -20,4 +20,3 @@ program.command('build')
20
20
  return buildCommand();
21
21
  });
22
22
  program.parse(process.argv);
23
- //# sourceMappingURL=bin.js.map
@@ -69,4 +69,3 @@ async function writeHtml(jsEntryFile, cssEntryFile, htmlFileName, ctx) {
69
69
  </html>`;
70
70
  await fs.writeFile(join(ctx.config.outDir, htmlFileName), code, 'utf8');
71
71
  }
72
- //# sourceMappingURL=build.js.map
@@ -63,4 +63,3 @@ export function useCollectStories(options, ctx) {
63
63
  destroy,
64
64
  };
65
65
  }
66
- //# sourceMappingURL=collect.js.map
@@ -8,8 +8,11 @@ export declare const defaultColors: {
8
8
  500: string;
9
9
  600: string;
10
10
  700: string;
11
+ 750: string;
11
12
  800: string;
13
+ 850: string;
12
14
  900: string;
15
+ 950: string;
13
16
  };
14
17
  gray: {
15
18
  50: string;
@@ -20,8 +23,11 @@ export declare const defaultColors: {
20
23
  500: string;
21
24
  600: string;
22
25
  700: string;
26
+ 750: string;
23
27
  800: string;
28
+ 850: string;
24
29
  900: string;
30
+ 950: string;
25
31
  };
26
32
  zinc: {
27
33
  50: string;
@@ -47,8 +53,11 @@ export declare const defaultColors: {
47
53
  500: string;
48
54
  600: string;
49
55
  700: string;
56
+ 750: string;
50
57
  800: string;
58
+ 850: string;
51
59
  900: string;
60
+ 950: string;
52
61
  };
53
62
  stone: {
54
63
  50: string;
@@ -59,8 +68,11 @@ export declare const defaultColors: {
59
68
  500: string;
60
69
  600: string;
61
70
  700: string;
71
+ 750: string;
62
72
  800: string;
73
+ 850: string;
63
74
  900: string;
75
+ 950: string;
64
76
  };
65
77
  red: {
66
78
  50: string;
@@ -8,8 +8,11 @@ export const defaultColors = {
8
8
  500: '#64748b',
9
9
  600: '#475569',
10
10
  700: '#334155',
11
+ 750: '#283548',
11
12
  800: '#1e293b',
13
+ 850: '#151f32',
12
14
  900: '#0f172a',
15
+ 950: '#09101f',
13
16
  },
14
17
  gray: {
15
18
  50: '#f9fafb',
@@ -20,8 +23,11 @@ export const defaultColors = {
20
23
  500: '#6b7280',
21
24
  600: '#4b5563',
22
25
  700: '#374151',
26
+ 750: '#2b3546',
23
27
  800: '#1f2937',
28
+ 850: '#18212f',
24
29
  900: '#111827',
30
+ 950: '#0c101d',
25
31
  },
26
32
  zinc: {
27
33
  50: '#fafafa',
@@ -47,8 +53,11 @@ export const defaultColors = {
47
53
  500: '#737373',
48
54
  600: '#525252',
49
55
  700: '#404040',
56
+ 750: '#333333',
50
57
  800: '#262626',
58
+ 850: '#1f1f1f',
51
59
  900: '#171717',
60
+ 950: '#0f0f0f',
52
61
  },
53
62
  stone: {
54
63
  50: '#fafaf9',
@@ -59,8 +68,11 @@ export const defaultColors = {
59
68
  500: '#78716c',
60
69
  600: '#57534e',
61
70
  700: '#44403c',
71
+ 750: '#363230',
62
72
  800: '#292524',
73
+ 850: '#211e1c',
63
74
  900: '#1c1917',
75
+ 950: '#171412',
64
76
  },
65
77
  red: {
66
78
  50: '#fef2f2',
@@ -310,4 +322,3 @@ export function parseColor(value) {
310
322
  }
311
323
  return null;
312
324
  }
313
- //# sourceMappingURL=colors.js.map
@@ -8,4 +8,3 @@ export async function buildCommand() {
8
8
  // @TODO remove when https://github.com/vitejs/vite/issues/6815 is fixed
9
9
  process.exit(0);
10
10
  }
11
- //# sourceMappingURL=build.js.map
@@ -7,4 +7,3 @@ export async function devCommand(options) {
7
7
  const { server } = await createServer(ctx, options.port);
8
8
  server.printUrls();
9
9
  }
10
- //# sourceMappingURL=dev.js.map
@@ -88,4 +88,3 @@ export function processConfig(config) {
88
88
  export function defineConfig(config) {
89
89
  return config;
90
90
  }
91
- //# sourceMappingURL=config.js.map
@@ -10,4 +10,3 @@ export async function createContext(options) {
10
10
  storyFiles: [],
11
11
  };
12
12
  }
13
- //# sourceMappingURL=context.js.map
@@ -221,4 +221,3 @@ const OTHER_KEYS = [
221
221
  'window',
222
222
  ];
223
223
  export const KEYS = LIVING_KEYS.concat(OTHER_KEYS);
224
- //# sourceMappingURL=dom-keys.js.map
@@ -20,4 +20,3 @@ export function createDomEnv() {
20
20
  destroy,
21
21
  };
22
22
  }
23
- //# sourceMappingURL=env.js.map
@@ -1,3 +1,2 @@
1
1
  export * from './config.js';
2
2
  export { defaultColors } from './colors.js';
3
- //# sourceMappingURL=index.js.map
@@ -201,4 +201,3 @@ if (import.meta.hot) {
201
201
  }
202
202
  return plugins;
203
203
  }
204
- //# sourceMappingURL=plugin.js.map
@@ -93,4 +93,3 @@ export async function createServer(ctx, port) {
93
93
  close,
94
94
  };
95
95
  }
96
- //# sourceMappingURL=server.js.map
@@ -60,4 +60,3 @@ export async function findAllStories(newContext) {
60
60
  addStory(file);
61
61
  }
62
62
  }
63
- //# sourceMappingURL=stories.js.map
package/dist/node/tree.js CHANGED
@@ -52,4 +52,3 @@ export function makeTree(config, files) {
52
52
  return tree;
53
53
  }
54
54
  }
55
- //# sourceMappingURL=tree.js.map
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=types.js.map