histoire 0.1.5 → 0.2.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 (107) hide show
  1. package/dist/client/app/codegen/vue3.js +1 -0
  2. package/dist/client/app/codegen/vue3.js.map +1 -0
  3. package/dist/client/app/components/app/AppHeader.vue +2 -1
  4. package/dist/client/app/components/base/BaseCheckbox.vue +76 -0
  5. package/dist/client/app/components/exposed/Story.vue +20 -14
  6. package/dist/client/app/components/sandbox/lib.d.ts +2 -0
  7. package/dist/client/app/components/sandbox/lib.js +6 -0
  8. package/dist/client/app/components/sandbox/lib.ts +8 -0
  9. package/dist/client/app/components/search/SearchItem.vue +4 -1
  10. package/dist/client/app/components/search/SearchModal.vue +4 -4
  11. package/dist/client/app/components/story/StoryControls.vue +1 -1
  12. package/dist/client/app/components/story/StoryDocs.vue +1 -0
  13. package/dist/client/app/components/story/StoryListFolder.vue +1 -1
  14. package/dist/client/app/components/story/StoryListItem.vue +4 -1
  15. package/dist/client/app/components/story/StoryResponsivePreview.vue +3 -4
  16. package/dist/client/app/components/story/StorySidePanel.vue +1 -0
  17. package/dist/client/app/components/story/StorySourceCode.vue +4 -1
  18. package/dist/client/app/components/story/StoryVariantGrid.vue +112 -0
  19. package/dist/client/app/components/story/StoryVariantGridItem.vue +34 -4
  20. package/dist/client/app/components/story/StoryVariantListItem.vue +4 -1
  21. package/dist/client/app/components/story/StoryVariantSingleView.vue +20 -160
  22. package/dist/client/app/components/story/StoryViewer.vue +6 -25
  23. package/dist/client/app/components/story/variant/StoryVariantBackground.vue +67 -0
  24. package/dist/client/app/components/story/variant/StoryVariantNewTab.vue +29 -0
  25. package/dist/client/app/components/story/variant/StoryVariantResponsiveSize.vue +82 -0
  26. package/dist/client/app/components/story/variant/StoryVariantTitle.vue +21 -0
  27. package/dist/client/app/global-components.js +1 -0
  28. package/dist/client/app/global-components.js.map +1 -0
  29. package/dist/client/app/index.js +1 -0
  30. package/dist/client/app/index.js.map +1 -0
  31. package/dist/client/app/sandbox.js +1 -0
  32. package/dist/client/app/sandbox.js.map +1 -0
  33. package/dist/client/app/stores/story.d.ts +6 -6
  34. package/dist/client/app/stores/story.js +1 -0
  35. package/dist/client/app/stores/story.js.map +1 -0
  36. package/dist/client/app/style/main.pcss +9 -5
  37. package/dist/client/app/types.d.ts +1 -1
  38. package/dist/client/app/types.ts +1 -1
  39. package/dist/client/app/util/keyboard.js +1 -0
  40. package/dist/client/app/util/keyboard.js.map +1 -0
  41. package/dist/client/app/util/mapping.js +1 -0
  42. package/dist/client/app/util/mapping.js.map +1 -0
  43. package/dist/client/app/util/preview-settings.js +1 -0
  44. package/dist/client/app/util/preview-settings.js.map +1 -0
  45. package/dist/client/app/util/reactivity.js +1 -0
  46. package/dist/client/app/util/reactivity.js.map +1 -0
  47. package/dist/client/app/util/scroll.d.ts +3 -1
  48. package/dist/client/app/util/scroll.js +4 -0
  49. package/dist/client/app/util/scroll.js.map +1 -0
  50. package/dist/client/app/util/scroll.ts +4 -0
  51. package/dist/client/app/util/variant.js +1 -0
  52. package/dist/client/app/util/variant.js.map +1 -0
  53. package/dist/client/index.js +1 -0
  54. package/dist/client/index.js.map +1 -0
  55. package/dist/client/server/index.js +1 -0
  56. package/dist/client/server/index.js.map +1 -0
  57. package/dist/controls.js +1 -0
  58. package/dist/controls.js.map +1 -0
  59. package/dist/node/bin.js +7 -0
  60. package/dist/node/build.js +1 -1
  61. package/dist/node/{collect.d.ts → collect/index.d.ts} +2 -2
  62. package/dist/node/{collect.js → collect/index.js} +37 -27
  63. package/dist/node/collect/worker.d.ts +14 -0
  64. package/dist/node/collect/worker.js +36 -0
  65. package/dist/node/commands/preview.d.ts +4 -0
  66. package/dist/node/commands/preview.js +36 -0
  67. package/dist/node/config.d.ts +2 -2
  68. package/dist/node/server.js +1 -1
  69. package/dist/node/tree.js +24 -4
  70. package/dist/node/types.d.ts +1 -1
  71. package/dist/style.css +98 -50
  72. package/package.json +10 -6
  73. package/src/client/app/components/app/AppHeader.vue +2 -1
  74. package/src/client/app/components/base/BaseCheckbox.vue +76 -0
  75. package/src/client/app/components/exposed/Story.vue +20 -14
  76. package/src/client/app/components/sandbox/lib.ts +8 -0
  77. package/src/client/app/components/search/SearchItem.vue +4 -1
  78. package/src/client/app/components/search/SearchModal.vue +4 -4
  79. package/src/client/app/components/story/StoryControls.vue +1 -1
  80. package/src/client/app/components/story/StoryDocs.vue +1 -0
  81. package/src/client/app/components/story/StoryListFolder.vue +1 -1
  82. package/src/client/app/components/story/StoryListItem.vue +4 -1
  83. package/src/client/app/components/story/StoryResponsivePreview.vue +3 -4
  84. package/src/client/app/components/story/StorySidePanel.vue +1 -0
  85. package/src/client/app/components/story/StorySourceCode.vue +4 -1
  86. package/src/client/app/components/story/StoryVariantGrid.vue +112 -0
  87. package/src/client/app/components/story/StoryVariantGridItem.vue +34 -4
  88. package/src/client/app/components/story/StoryVariantListItem.vue +4 -1
  89. package/src/client/app/components/story/StoryVariantSingleView.vue +20 -160
  90. package/src/client/app/components/story/StoryViewer.vue +6 -25
  91. package/src/client/app/components/story/variant/StoryVariantBackground.vue +67 -0
  92. package/src/client/app/components/story/variant/StoryVariantNewTab.vue +29 -0
  93. package/src/client/app/components/story/variant/StoryVariantResponsiveSize.vue +82 -0
  94. package/src/client/app/components/story/variant/StoryVariantTitle.vue +21 -0
  95. package/src/client/app/style/main.pcss +9 -5
  96. package/src/client/app/types.ts +1 -1
  97. package/src/client/app/util/scroll.ts +4 -0
  98. package/src/node/bin.ts +8 -0
  99. package/src/node/build.ts +1 -1
  100. package/src/node/{collect.ts → collect/index.ts} +48 -30
  101. package/src/node/collect/worker.ts +61 -0
  102. package/src/node/commands/preview.ts +50 -0
  103. package/src/node/config.ts +2 -2
  104. package/src/node/server.ts +1 -1
  105. package/src/node/tree.spec.ts +61 -0
  106. package/src/node/tree.ts +29 -5
  107. package/src/node/types.ts +1 -1
@@ -1,173 +1,39 @@
1
1
  <script lang="ts" setup>
2
- import { PropType, ref } from 'vue'
3
- import { Icon } from '@iconify/vue'
2
+ import { PropType } from 'vue'
4
3
  import type { Story, Variant } from '../../types'
5
- import { histoireConfig } from '../../util/config'
6
4
  import { usePreviewSettings } from '../../util/preview-settings'
7
5
  import StoryResponsivePreview from './StoryResponsivePreview.vue'
8
6
  import { isMobile } from '../../util/responsive'
7
+ import StoryVariantTitle from './variant/StoryVariantTitle.vue'
8
+ import StoryVariantResponsiveSize from './variant/StoryVariantResponsiveSize.vue'
9
+ import StoryVariantBackground from './variant/StoryVariantBackground.vue'
10
+ import StoryVariantNewTab from './variant/StoryVariantNewTab.vue'
9
11
 
10
- defineProps({
11
- variant: {
12
- type: Object as PropType<Variant>,
13
- required: true,
14
- },
15
-
16
- story: {
17
- type: Object as PropType<Story>,
18
- required: true,
19
- },
20
- })
12
+ defineProps<{
13
+ variant: Variant
14
+ story: Story
15
+ }>()
21
16
 
22
17
  const settings = usePreviewSettings()
23
18
  </script>
24
19
 
25
20
  <template>
26
- <div class="htw-h-full htw-flex htw-flex-col">
21
+ <div
22
+ class="htw-h-full htw-flex htw-flex-col"
23
+ data-test-id="story-variant-single-view"
24
+ >
27
25
  <!-- Toolbar -->
28
26
  <div
29
27
  v-if="!isMobile"
30
28
  class="htw-flex-none htw-flex htw-items-center htw-h-8 -htw-mt-1"
31
29
  >
32
- <!-- Variant title -->
33
- <div class="htw-flex htw-items-center htw-gap-1 htw-text-gray-500 htw-flex-1 htw-truncate htw-min-w-0">
34
- <Icon
35
- :icon="variant.icon ?? 'carbon:cube'"
36
- class="base-list-item-link-icon htw-w-4 htw-h-4 htw-opacity-50"
37
- :class="[
38
- variant.iconColor ? 'bind-icon-color' : 'htw-text-gray-500',
39
- ]"
40
- />
41
- <span>{{ variant.title }}</span>
42
- </div>
43
-
44
- <!-- Responsive size -->
45
- <VDropdown
46
- placement="bottom-end"
47
- :skidding="6"
48
- :disabled="!histoireConfig.responsivePresets?.length"
49
- class="htw-h-full htw-flex-none"
50
- >
51
- <div
52
- v-tooltip="'Responsive sizes'"
53
- class="htw-flex htw-items-center htw-gap-1 htw-h-full htw-px-2"
54
- :class="{
55
- 'htw-cursor-pointer hover:htw-text-primary-500': histoireConfig.responsivePresets?.length,
56
- }"
57
- >
58
- <Icon
59
- icon="ic:baseline-phone-android"
60
- class="htw-w-4 htw-h-4 htw-opacity-50"
61
- />
62
- <Icon
63
- icon="carbon:caret-down"
64
- class="htw-w-4 htw-h-4 htw-opacity-50"
65
- />
66
- </div>
67
-
68
- <template #popper="{ hide }">
69
- <div class="htw-flex htw-flex-col htw-items-stretch">
70
- <HstCheckbox
71
- v-model="settings.rotate"
72
- >
73
- Rotate
74
- </HstCheckbox>
75
-
76
- <div class="htw-flex htw-gap-2 htw-px-4 htw-py-3">
77
- <input
78
- v-model.number="settings.responsiveWidth"
79
- v-tooltip="'Responsive width (px)'"
80
- type="number"
81
- class="htw-bg-transparent htw-border htw-border-gray-200 dark:htw-border-gray-850 htw-rounded htw-w-20 htw-opacity-50 focus:htw-opacity-100 htw-flex-1 htw-min-w-0"
82
- step="16"
83
- placeholder="Auto"
84
- >
85
- <span class="htw-opacity-50">x</span>
86
- <input
87
- v-model.number="settings.responsiveHeight"
88
- v-tooltip="'Responsive height (px)'"
89
- type="number"
90
- class="htw-bg-transparent htw-border htw-border-gray-200 dark:htw-border-gray-850 htw-rounded htw-w-20 htw-opacity-50 focus:htw-opacity-100 htw-flex-1 htw-min-w-0"
91
- step="16"
92
- placeholder="Auto"
93
- >
94
- </div>
95
-
96
- <button
97
- v-for="(preset, index) in histoireConfig.responsivePresets"
98
- :key="index"
99
- class="htw-px-4 htw-py-3 htw-cursor-pointer htw-text-left htw-flex htw-gap-4"
100
- :class="[
101
- settings.responsiveWidth === preset.width && settings.responsiveHeight === preset.height
102
- ? 'htw-bg-primary-500 hover:htw-bg-primary-600 htw-text-white dark:htw-text-black'
103
- : 'htw-bg-transparent hover:htw-bg-primary-100 dark:hover:htw-bg-primary-700',
104
- ]"
105
- @click="settings.responsiveWidth = preset.width;settings.responsiveHeight = preset.height;hide()"
106
- >
107
- {{ preset.label }}
108
- <span class="htw-ml-auto htw-opacity-70 htw-flex htw-gap-1">
109
- <span v-if="preset.width">{{ preset.width }}<span v-if="!preset.height">px</span></span>
110
- <span v-if="preset.width && preset.height">x</span>
111
- <span v-if="preset.height">{{ preset.height }}<span v-if="!preset.width">px</span></span>
112
- </span>
113
- </button>
114
- </div>
115
- </template>
116
- </VDropdown>
117
-
118
- <!-- Background -->
119
- <VDropdown
120
- v-if="histoireConfig.backgroundPresets.length"
121
- placement="bottom-end"
122
- :skidding="6"
123
- class="htw-h-full htw-flex-none"
124
- >
125
- <div
126
- v-tooltip="'Background color'"
127
- class="htw-cursor-pointer hover:htw-text-primary-500 htw-flex htw-items-center htw-gap-1 htw-h-full htw-px-2"
128
- >
129
- <div
130
- class="bind-preview-bg htw-w-4 htw-h-4 htw-rounded-full htw-border htw-border-black/20 dark:htw-border-white/20"
131
- />
132
- <Icon
133
- icon="carbon:caret-down"
134
- class="htw-w-4 htw-h-4 htw-opacity-50"
135
- />
136
- </div>
137
-
138
- <template #popper="{ hide }">
139
- <div class="htw-flex htw-flex-col htw-items-stretch">
140
- <HstCheckbox
141
- v-model="settings.checkerboard"
142
- >
143
- Checkerboard
144
- </HstCheckbox>
145
-
146
- <button
147
- v-for="(option, index) in histoireConfig.backgroundPresets"
148
- :key="index"
149
- class="htw-px-4 htw-py-3 htw-cursor-pointer htw-text-left htw-flex htw-gap-4"
150
- :class="[
151
- settings.backgroundColor === option.color
152
- ? 'htw-bg-primary-500 hover:htw-bg-primary-600 htw-text-white dark:htw-text-black'
153
- : 'htw-bg-transparent hover:htw-bg-primary-100 dark:hover:htw-bg-primary-700',
154
- ]"
155
- @click="settings.backgroundColor = option.color;hide()"
156
- >
157
- <span class="htw-mr-auto">{{ option.label }}</span>
158
- <template v-if="option.color !== '$checkerboard'">
159
- <span class="htw-ml-auto htw-opacity-70">{{ option.color }}</span>
160
- <div
161
- class="htw-w-4 htw-h-4 htw-rounded-full htw-border htw-border-black/20 dark:htw-border-white/20"
162
- :style="{
163
- backgroundColor: option.color,
164
- }"
165
- />
166
- </template>
167
- </button>
168
- </div>
169
- </template>
170
- </VDropdown>
30
+ <StoryVariantTitle :variant="variant" />
31
+ <StoryVariantResponsiveSize />
32
+ <StoryVariantBackground />
33
+ <StoryVariantNewTab
34
+ :variant="variant"
35
+ :story="story"
36
+ />
171
37
  </div>
172
38
 
173
39
  <!-- Preview -->
@@ -178,9 +44,3 @@ const settings = usePreviewSettings()
178
44
  />
179
45
  </div>
180
46
  </template>
181
-
182
- <style scoped>
183
- .bind-preview-bg {
184
- background-color: v-bind('settings.backgroundColor');
185
- }
186
- </style>
@@ -1,21 +1,16 @@
1
1
  <script lang="ts" setup>
2
2
  import { computed, ref, watch } from 'vue'
3
- import { useRoute, useRouter } from 'vue-router'
4
3
  import { useStoryStore } from '../../stores/story'
5
-
4
+ import { Icon } from '@iconify/vue'
5
+ import { isMobile } from '../../util/responsive'
6
6
  import BaseSplitPane from '../base/BaseSplitPane.vue'
7
7
  import StoryVariantListItem from './StoryVariantListItem.vue'
8
- import StoryVariantGridItem from './StoryVariantGridItem.vue'
9
8
  import StoryVariantSingleView from './StoryVariantSingleView.vue'
10
- import { isMobile } from '../../util/responsive'
11
- import { Icon } from '@iconify/vue'
12
9
  import MobileOverlay from '../app/MobileOverlay.vue'
10
+ import StoryVariantGrid from './StoryVariantGrid.vue'
13
11
 
14
12
  const storyStore = useStoryStore()
15
13
 
16
- const router = useRouter()
17
- const route = useRoute()
18
-
19
14
  const hasSingleVariant = computed(() => (storyStore.currentStory?.variants.length === 1))
20
15
 
21
16
  const variant = computed(() => storyStore.currentVariant)
@@ -33,28 +28,14 @@ function closeMenu () {
33
28
  watch(variant, () => {
34
29
  isMenuOpened.value = false
35
30
  })
31
+
36
32
  </script>
37
33
 
38
34
  <template>
39
35
  <div class="htw-bg-gray-50 htw-h-full dark:htw-bg-gray-750">
40
- <div
36
+ <StoryVariantGrid
41
37
  v-if="storyStore.currentStory.layout.type === 'grid'"
42
- class="htw-h-full htw-overflow-y-auto"
43
- >
44
- <div
45
- class="htw-grid htw-gap-4 htw-m-4"
46
- :style="{
47
- gridTemplateColumns: `repeat(auto-fill, ${storyStore.currentStory.layout.width ?? 200}px)`,
48
- }"
49
- >
50
- <StoryVariantGridItem
51
- v-for="(variant, index) of storyStore.currentStory.variants"
52
- :key="index"
53
- :variant="variant"
54
- :story="storyStore.currentStory"
55
- />
56
- </div>
57
- </div>
38
+ />
58
39
 
59
40
  <template v-else-if="storyStore.currentStory.layout.type === 'single'">
60
41
  <div
@@ -0,0 +1,67 @@
1
+ <script lang="ts" setup>
2
+ import { Icon } from '@iconify/vue'
3
+ import { histoireConfig } from '../../../util/config'
4
+ import { usePreviewSettings } from '../../../util/preview-settings'
5
+ import BaseCheckbox from '../../base/BaseCheckbox.vue'
6
+
7
+ const settings = usePreviewSettings()
8
+ </script>
9
+
10
+ <template>
11
+ <VDropdown
12
+ v-if="histoireConfig.backgroundPresets.length"
13
+ placement="bottom-end"
14
+ :skidding="6"
15
+ class="htw-h-full htw-flex-none"
16
+ >
17
+ <div
18
+ v-tooltip="'Background color'"
19
+ class="htw-cursor-pointer hover:htw-text-primary-500 htw-flex htw-items-center htw-gap-1 htw-h-full htw-px-2"
20
+ >
21
+ <div
22
+ class="bind-preview-bg htw-w-4 htw-h-4 htw-rounded-full htw-border htw-border-black/50 dark:htw-border-white/50"
23
+ />
24
+ <Icon
25
+ icon="carbon:caret-down"
26
+ class="htw-w-4 htw-h-4 htw-opacity-50"
27
+ />
28
+ </div>
29
+
30
+ <template #popper="{ hide }">
31
+ <div class="htw-flex htw-flex-col htw-items-stretch">
32
+ <BaseCheckbox v-model="settings.checkerboard">
33
+ Checkerboard
34
+ </BaseCheckbox>
35
+
36
+ <button
37
+ v-for="(option, index) in histoireConfig.backgroundPresets"
38
+ :key="index"
39
+ class="htw-px-4 htw-py-3 htw-cursor-pointer htw-text-left htw-flex htw-gap-4"
40
+ :class="[
41
+ settings.backgroundColor === option.color
42
+ ? 'htw-bg-primary-500 hover:htw-bg-primary-600 htw-text-white dark:htw-text-black'
43
+ : 'htw-bg-transparent hover:htw-bg-primary-100 dark:hover:htw-bg-primary-700',
44
+ ]"
45
+ @click="settings.backgroundColor = option.color;hide()"
46
+ >
47
+ <span class="htw-mr-auto">{{ option.label }}</span>
48
+ <template v-if="option.color !== '$checkerboard'">
49
+ <span class="htw-ml-auto htw-opacity-70">{{ option.color }}</span>
50
+ <div
51
+ class="htw-w-4 htw-h-4 htw-rounded-full htw-border htw-border-black/20 dark:htw-border-white/20"
52
+ :style="{
53
+ backgroundColor: option.color,
54
+ }"
55
+ />
56
+ </template>
57
+ </button>
58
+ </div>
59
+ </template>
60
+ </VDropdown>
61
+ </template>
62
+
63
+ <style scoped>
64
+ .bind-preview-bg {
65
+ background-color: v-bind('settings.backgroundColor');
66
+ }
67
+ </style>
@@ -0,0 +1,29 @@
1
+ <script lang="ts" setup>
2
+ import { Icon } from '@iconify/vue'
3
+ import type { Story, Variant } from '../../../types'
4
+ import { computed } from 'vue'
5
+ import { getSandboxUrl } from '../../sandbox/lib'
6
+
7
+ const props = defineProps<{
8
+ variant: Variant
9
+ story: Story
10
+ }>()
11
+
12
+ const sandboxUrl = computed(() => {
13
+ return getSandboxUrl(props.story, props.variant)
14
+ })
15
+ </script>
16
+
17
+ <template>
18
+ <a
19
+ v-tooltip="'Open variant in new tab'"
20
+ :href="sandboxUrl"
21
+ target="_blank"
22
+ class="htw-flex htw-items-center htw-gap-1 htw-h-full htw-px-2 hover:htw-text-primary-500"
23
+ >
24
+ <Icon
25
+ icon="carbon:launch"
26
+ class="base-list-item-link-icon htw-w-4 htw-h-4 htw-opacity-50"
27
+ />
28
+ </a>
29
+ </template>
@@ -0,0 +1,82 @@
1
+ <script lang="ts" setup>
2
+ import { Icon } from '@iconify/vue'
3
+ import { histoireConfig } from '../../../util/config'
4
+ import { usePreviewSettings } from '../../../util/preview-settings'
5
+ import BaseCheckbox from '../../base/BaseCheckbox.vue'
6
+
7
+ const settings = usePreviewSettings()
8
+ </script>
9
+
10
+ <template>
11
+ <!-- Responsive size -->
12
+ <VDropdown
13
+ placement="bottom-end"
14
+ :skidding="6"
15
+ :disabled="!histoireConfig.responsivePresets?.length"
16
+ class="htw-h-full htw-flex-none"
17
+ >
18
+ <div
19
+ v-tooltip="'Responsive sizes'"
20
+ class="htw-flex htw-items-center htw-gap-1 htw-h-full htw-px-2"
21
+ :class="{
22
+ 'htw-cursor-pointer hover:htw-text-primary-500': histoireConfig.responsivePresets?.length,
23
+ }"
24
+ >
25
+ <Icon
26
+ icon="carbon:devices"
27
+ class="htw-w-4 htw-h-4 htw-opacity-50"
28
+ />
29
+ <Icon
30
+ icon="carbon:caret-down"
31
+ class="htw-w-4 htw-h-4 htw-opacity-50"
32
+ />
33
+ </div>
34
+
35
+ <template #popper="{ hide }">
36
+ <div class="htw-flex htw-flex-col htw-items-stretch">
37
+ <BaseCheckbox v-model="settings.rotate">
38
+ Rotate
39
+ </BaseCheckbox>
40
+
41
+ <div class="htw-flex htw-gap-2 htw-px-4 htw-py-3">
42
+ <input
43
+ v-model.number="settings.responsiveWidth"
44
+ v-tooltip="'Responsive width (px)'"
45
+ type="number"
46
+ class="htw-bg-transparent htw-border htw-border-gray-200 dark:htw-border-gray-850 htw-rounded htw-w-20 htw-opacity-50 focus:htw-opacity-100 htw-flex-1 htw-min-w-0"
47
+ step="16"
48
+ placeholder="Auto"
49
+ >
50
+ <span class="htw-opacity-50">x</span>
51
+ <input
52
+ v-model.number="settings.responsiveHeight"
53
+ v-tooltip="'Responsive height (px)'"
54
+ type="number"
55
+ class="htw-bg-transparent htw-border htw-border-gray-200 dark:htw-border-gray-850 htw-rounded htw-w-20 htw-opacity-50 focus:htw-opacity-100 htw-flex-1 htw-min-w-0"
56
+ step="16"
57
+ placeholder="Auto"
58
+ >
59
+ </div>
60
+
61
+ <button
62
+ v-for="(preset, index) in histoireConfig.responsivePresets"
63
+ :key="index"
64
+ class="htw-px-4 htw-py-3 htw-cursor-pointer htw-text-left htw-flex htw-gap-4"
65
+ :class="[
66
+ settings.responsiveWidth === preset.width && settings.responsiveHeight === preset.height
67
+ ? 'htw-bg-primary-500 hover:htw-bg-primary-600 htw-text-white dark:htw-text-black'
68
+ : 'htw-bg-transparent hover:htw-bg-primary-100 dark:hover:htw-bg-primary-700',
69
+ ]"
70
+ @click="settings.responsiveWidth = preset.width;settings.responsiveHeight = preset.height;hide()"
71
+ >
72
+ {{ preset.label }}
73
+ <span class="htw-ml-auto htw-opacity-70 htw-flex htw-gap-1">
74
+ <span v-if="preset.width">{{ preset.width }}<span v-if="!preset.height">px</span></span>
75
+ <span v-if="preset.width && preset.height">x</span>
76
+ <span v-if="preset.height">{{ preset.height }}<span v-if="!preset.width">px</span></span>
77
+ </span>
78
+ </button>
79
+ </div>
80
+ </template>
81
+ </VDropdown>
82
+ </template>
@@ -0,0 +1,21 @@
1
+ <script lang="ts" setup>
2
+ import { Icon } from '@iconify/vue'
3
+ import type { Variant } from '../../../types'
4
+
5
+ defineProps<{
6
+ variant: Variant
7
+ }>()
8
+ </script>
9
+
10
+ <template>
11
+ <div class="htw-flex htw-items-center htw-gap-1 htw-text-gray-500 htw-flex-1 htw-truncate htw-min-w-0">
12
+ <Icon
13
+ :icon="variant.icon ?? 'carbon:cube'"
14
+ class="base-list-item-link-icon htw-w-4 htw-h-4 htw-opacity-50"
15
+ :class="[
16
+ variant.iconColor ? 'bind-icon-color' : 'htw-text-gray-500',
17
+ ]"
18
+ />
19
+ <span>{{ variant.title }}</span>
20
+ </div>
21
+ </template>
@@ -8,3 +8,4 @@ export function registerGlobalComponents(app) {
8
8
  app.component('Variant', Variant);
9
9
  registerVueComponents(app);
10
10
  }
11
+ //# sourceMappingURL=global-components.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"global-components.js","sourceRoot":"","sources":["../../../src/client/app/global-components.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAA;AAC1D,OAAO,KAAK,MAAM,gCAAgC,CAAA;AAClD,OAAO,OAAO,MAAM,kCAAkC,CAAA;AAEtD,MAAM,UAAU,wBAAwB,CAAE,GAAQ;IAChD,0DAA0D;IAC1D,GAAG,CAAC,SAAS,CAAC,OAAO,EAAE,KAAK,CAAC,CAAA;IAC7B,0DAA0D;IAC1D,GAAG,CAAC,SAAS,CAAC,SAAS,EAAE,OAAO,CAAC,CAAA;IAEjC,qBAAqB,CAAC,GAAG,CAAC,CAAA;AAC5B,CAAC"}
@@ -24,3 +24,4 @@ app.use(FloatingVue, {
24
24
  app.use(router);
25
25
  registerGlobalComponents(app);
26
26
  app.mount('#app');
27
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/client/app/index.ts"],"names":[],"mappings":"AAAA,OAAO,iBAAiB,CAAA;AACxB,OAAO,iBAAiB,CAAA;AAExB,OAAO,EAAE,SAAS,EAAE,MAAM,KAAK,CAAA;AAC/B,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAA;AACnC,OAAO,WAAW,MAAM,cAAc,CAAA;AACtC,OAAO,GAAG,MAAM,WAAW,CAAA;AAC3B,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAA;AACjE,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAEjC,MAAM,GAAG,GAAG,SAAS,CAAC,GAAG,CAAC,CAAA;AAC1B,GAAG,CAAC,GAAG,CAAC,WAAW,EAAE,CAAC,CAAA;AACtB,GAAG,CAAC,GAAG,CAAC,WAAW,EAAE;IACnB,eAAe,EAAE,CAAC;IAClB,YAAY,EAAE,CAAC;IACf,MAAM,EAAE;QACN,OAAO,EAAE;YACP,QAAQ,EAAE,CAAC;SACZ;QACD,QAAQ,EAAE;YACR,sBAAsB,EAAE,IAAI;YAC5B,QAAQ,EAAE,CAAC;SACZ;KACF;CACF,CAAC,CAAA;AACF,GAAG,CAAC,GAAG,CAAC,MAAM,CAAC,CAAA;AACf,wBAAwB,CAAC,GAAG,CAAC,CAAA;AAC7B,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA"}
@@ -85,3 +85,4 @@ watch(isDark, value => {
85
85
  }, {
86
86
  immediate: true,
87
87
  });
88
+ //# sourceMappingURL=sandbox.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sandbox.js","sourceRoot":"","sources":["../../../src/client/app/sandbox.ts"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,CAAA;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AACvC,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC,EAAE,SAAS,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,KAAK,CAAA;AACnE,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAA;AACnC,OAAO,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAA;AAC9D,OAAO,WAAW,MAAM,sCAAsC,CAAA;AAE9D,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AACxC,kCAAkC;AAClC,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AACzC,OAAO,EAAE,qBAAqB,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAClF,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAA;AACjE,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAA;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAE7C,MAAM,KAAK,GAAG,UAAU,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAA;AAChD,MAAM,IAAI,GAAG,GAAG,CAAY,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC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C,EAAE;IACD,SAAS,EAAE,IAAI;CAChB,CAAC,CAAA"}
@@ -18,7 +18,7 @@ export declare const useStoryStore: import("pinia").StoreDefinition<"story", imp
18
18
  type: "single";
19
19
  } | {
20
20
  type: "grid";
21
- width: number;
21
+ width?: string | number;
22
22
  };
23
23
  icon?: string;
24
24
  iconColor?: string;
@@ -60,7 +60,7 @@ export declare const useStoryStore: import("pinia").StoreDefinition<"story", imp
60
60
  type: "single";
61
61
  } | {
62
62
  type: "grid";
63
- width: number;
63
+ width?: string | number;
64
64
  };
65
65
  icon?: string;
66
66
  iconColor?: string;
@@ -115,7 +115,7 @@ export declare const useStoryStore: import("pinia").StoreDefinition<"story", imp
115
115
  type: "single";
116
116
  } | {
117
117
  type: "grid";
118
- width: number;
118
+ width?: string | number;
119
119
  };
120
120
  icon?: string;
121
121
  iconColor?: string;
@@ -157,7 +157,7 @@ export declare const useStoryStore: import("pinia").StoreDefinition<"story", imp
157
157
  type: "single";
158
158
  } | {
159
159
  type: "grid";
160
- width: number;
160
+ width?: string | number;
161
161
  };
162
162
  icon?: string;
163
163
  iconColor?: string;
@@ -212,7 +212,7 @@ export declare const useStoryStore: import("pinia").StoreDefinition<"story", imp
212
212
  type: "single";
213
213
  } | {
214
214
  type: "grid";
215
- width: number;
215
+ width?: string | number;
216
216
  };
217
217
  icon?: string;
218
218
  iconColor?: string;
@@ -254,7 +254,7 @@ export declare const useStoryStore: import("pinia").StoreDefinition<"story", imp
254
254
  type: "single";
255
255
  } | {
256
256
  type: "grid";
257
- width: number;
257
+ width?: string | number;
258
258
  };
259
259
  icon?: string;
260
260
  iconColor?: string;
@@ -45,3 +45,4 @@ export const useStoryStore = defineStore('story', () => {
45
45
  toggleFolder,
46
46
  };
47
47
  });
48
+ //# sourceMappingURL=story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"story.js","sourceRoot":"","sources":["../../../../src/client/app/stores/story.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,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,IAAI,KAAK,EAAE;YACT,aAAa,CAAC,KAAK,CAAC,GAAG,CAAC,UAAU,EAAE,IAAI,CAAC,CAAA;SAC1C;aAAM;YACL,aAAa,CAAC,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,CAAA;SACvC;IACH,CAAC;IAED,SAAS,cAAc,CAAE,IAAmB;QAC1C,OAAO,aAAa,CAAC,KAAK,CAAC,GAAG,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,CAAA;IACrD,CAAC;IAED,SAAS,eAAe,CAAE,IAAmB;QAC3C,KAAK,IAAI,UAAU,GAAG,CAAC,EAAE,UAAU,GAAG,IAAI,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE;YAC/D,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,UAAU,CAAC,EAAE,IAAI,CAAC,CAAA;SAC9C;IACH,CAAC;IAED,KAAK,CAAC,YAAY,EAAE,GAAG,EAAE;QACvB,eAAe,CAAC,YAAY,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;IAC/C,CAAC,CAAC,CAAA;IAEF,OAAO;QACL,OAAO;QACP,UAAU;QACV,YAAY;QACZ,cAAc;QACd,cAAc;QACd,YAAY;KACb,CAAA;AACH,CAAC,CAAC,CAAA"}
@@ -48,14 +48,18 @@ body,
48
48
  font-family: 'Lato', sans-serif;
49
49
  }
50
50
 
51
- #app {
52
- font-size: 18px;
51
+ html {
52
+ font-size: 16px;
53
+ }
54
+
55
+ body {
56
+ font-size: 18px;
53
57
  }
54
58
 
55
59
  @media (min-width: 640px) {
56
- #app {
57
- font-size: 14px;
58
- }
60
+ body {
61
+ font-size: 14px;
62
+ }
59
63
  }
60
64
 
61
65
  .__histoire-sandbox {
@@ -14,7 +14,7 @@ export interface Story {
14
14
  type: 'single';
15
15
  } | {
16
16
  type: 'grid';
17
- width: number;
17
+ width?: number | string;
18
18
  };
19
19
  icon?: string;
20
20
  iconColor?: string;
@@ -16,7 +16,7 @@ export interface Story {
16
16
  type: 'single'
17
17
  } | {
18
18
  type: 'grid'
19
- width: number
19
+ width?: number | string
20
20
  }
21
21
  icon?: string
22
22
  iconColor?: string
@@ -80,3 +80,4 @@ 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 @@
1
+ {"version":3,"file":"keyboard.js","sourceRoot":"","sources":["../../../../src/client/app/util/keyboard.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAC/C,OAAO,EAAE,KAAK,EAAO,MAAM,KAAK,CAAA;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAA;AAUhC,MAAM,UAAU,kBAAkB,CAAE,QAAkD,EAAE,OAAwB,EAAE,UAAmC,EAAE;IACrJ,gBAAgB,CAAC,OAAO,CAAC,KAAK,IAAI,SAAS,EAAE,KAAK,CAAC,EAAE;QACnD,IAAI,kBAAkB,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE;YACnE,OAAO,CAAC,KAAK,CAAC,CAAA;SACf;IACH,CAAC,CAAC,CAAA;AACJ,CAAC;AAED,MAAM,SAAS,GAAuD;IACpE,IAAI,EAAE,EAAE,GAAG,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE;IACxC,GAAG,EAAE,EAAE,GAAG,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE;IACnC,KAAK,EAAE,EAAE,GAAG,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE;IACvC,IAAI,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE;CACtC,CAAA;AAED,MAAM,WAAW,GAAG,IAAI,GAAG,EAAU,CAAA;AAErC,MAAM,CAAC,gBAAgB,CAAC,SAA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K,CAAC,mBAAmB,EAAE;YAC1C,MAAM,CAAC,KAAK,CAAC,mBAAmB,GAAG,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,YAAY,CAAC,KAAK,CAAC,mBAAmB,CAAC,EAAE,CAAC,CAAA;SACvH;KACF;IAED,OAAO,MAAM,CAAA;AACf,CAAC;AAED,MAAM,UAAU,UAAU,CAAE,OAAgB;IAC1C,OAAO;QACL,GAAG,OAAO;QACV,KAAK,EAAE,EAAE;QACT,SAAS,EAAE,IAAI;QACf,KAAK,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC;QACjB,KAAK,EAAE,KAAK;KACb,CAAA;AACH,CAAC"}
@@ -13,3 +13,4 @@ export const receivedSettings = reactive({});
13
13
  export function applyPreviewSettings(settings) {
14
14
  Object.assign(receivedSettings, settings);
15
15
  }
16
+ //# sourceMappingURL=preview-settings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preview-settings.js","sourceRoot":"","sources":["../../../../src/client/app/util/preview-settings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAU9B,MAAM,UAAU,kBAAkB;IAChC,OAAO,UAAU,CAAkB,+BAA+B,EAAE;QAClE,eAAe,EAAE,GAAG;QACpB,gBAAgB,EAAE,IAAI;QACtB,MAAM,EAAE,KAAK;QACb,eAAe,EAAE,aAAa;QAC9B,YAAY,EAAE,KAAK;KACpB,CAAC,CAAA;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,gBAAgB,GAAG,QAAQ,CAAkB,EAAqB,CAAC,CAAA;AAEhF,MAAM,UAAU,oBAAoB,CAAE,QAAyB;IAC7D,MAAM,CAAC,MAAM,CAAC,gBAAgB,EAAE,QAAQ,CAAC,CAAA;AAC3C,CAAC"}
@@ -14,3 +14,4 @@ const toRawObject = (obj) => Object.keys(obj).reduce((raw, key) => {
14
14
  raw[key] = toRawDeep(obj[key]);
15
15
  return raw;
16
16
  }, {});
17
+ //# sourceMappingURL=reactivity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reactivity.js","sourceRoot":"","sources":["../../../../src/client/app/util/reactivity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,KAAK,CAAA;AAElC,MAAM,QAAQ,GAAG,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,KAAK,IAAI,IAAI,OAAO,GAAG,KAAK,QAAQ,CAAA;AAEjE,MAAM,UAAU,SAAS,CAAE,GAAG;IAC5B,MAAM,cAAc,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAA;IAEpD,IAAI,CAAC,QAAQ,CAAC,cAAc,CAAC,EAAE;QAC7B,OAAO,cAAc,CAAA;KACtB;IAED,IAAI,KAAK,CAAC,OAAO,CAAC,cAAc,CAAC,EAAE;QACjC,OAAO,cAAc,CAAC,GAAG,CAAC,SAAS,CAAC,CAAA;KACrC;IAED,OAAO,WAAW,CAAC,cAAc,CAAC,CAAA;AACpC,CAAC;AAED,MAAM,WAAW,GAAG,CAAC,GAAqB,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;IAClF,GAAG,CAAC,GAAG,CAAC,GAAG,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAA;IAC9B,OAAO,GAAG,CAAA;AACZ,CAAC,EAAE,EAAE,CAAC,CAAA"}