@poveste/app 0.1.1 → 0.1.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.
Files changed (184) hide show
  1. package/dist/app/assets/poveste-text-dark.svg +15 -0
  2. package/dist/app/assets/poveste-text.svg +15 -0
  3. package/dist/app/assets/poveste.svg +14 -0
  4. package/dist/app/style/floating.pcss +34 -0
  5. package/dist/app/style/main.pcss +100 -0
  6. package/dist/app/style/sandbox.css +24 -0
  7. package/dist/app/style/transitions.pcss +51 -0
  8. package/dist/bundle-index.js +1 -0
  9. package/dist/bundle-main-dev.js +4 -0
  10. package/dist/bundle-main.js +5 -0
  11. package/dist/bundle-sandbox-dev.js +2 -0
  12. package/dist/bundle-sandbox.js +2 -0
  13. package/dist/bundled/App.vue.js +5 -0
  14. package/dist/bundled/App.vue2.js +167 -0
  15. package/dist/bundled/_virtual/_plugin-vue_export-helper.js +10 -0
  16. package/dist/bundled/api.js +12 -0
  17. package/dist/bundled/app.css +116 -0
  18. package/dist/bundled/assets/poveste-text-dark.svg.js +4 -0
  19. package/dist/bundled/assets/poveste-text.svg.js +4 -0
  20. package/dist/bundled/assets/poveste.svg.js +4 -0
  21. package/dist/bundled/components/HomeView.vue.js +5 -0
  22. package/dist/bundled/components/HomeView.vue2.js +66 -0
  23. package/dist/bundled/components/app/AppHeader.vue.js +5 -0
  24. package/dist/bundled/components/app/AppHeader.vue2.js +71 -0
  25. package/dist/bundled/components/app/AppLogo.vue.js +5 -0
  26. package/dist/bundled/components/app/AppLogo.vue2.js +29 -0
  27. package/dist/bundled/components/app/Breadcrumb.vue.js +8 -0
  28. package/dist/bundled/components/app/Breadcrumb.vue2.js +91 -0
  29. package/dist/bundled/components/app/HomeCounter.vue.js +5 -0
  30. package/dist/bundled/components/app/HomeCounter.vue2.js +42 -0
  31. package/dist/bundled/components/app/InitialLoading.vue.js +5 -0
  32. package/dist/bundled/components/app/InitialLoading.vue2.js +51 -0
  33. package/dist/bundled/components/app/MobileOverlay.vue.js +5 -0
  34. package/dist/bundled/components/app/MobileOverlay.vue2.js +45 -0
  35. package/dist/bundled/components/base/BaseButton.vue.js +5 -0
  36. package/dist/bundled/components/base/BaseButton.vue2.js +39 -0
  37. package/dist/bundled/components/base/BaseCheckbox.vue.js +5 -0
  38. package/dist/bundled/components/base/BaseCheckbox.vue2.js +78 -0
  39. package/dist/bundled/components/base/BaseEmpty.vue.js +14 -0
  40. package/dist/bundled/components/base/BaseIcon.vue.js +8 -0
  41. package/dist/bundled/components/base/BaseIcon.vue2.js +29 -0
  42. package/dist/bundled/components/base/BaseKeyboardShortcut.vue.js +5 -0
  43. package/dist/bundled/components/base/BaseKeyboardShortcut.vue2.js +20 -0
  44. package/dist/bundled/components/base/BaseListItem.vue.js +5 -0
  45. package/dist/bundled/components/base/BaseListItem.vue2.js +33 -0
  46. package/dist/bundled/components/base/BaseListItemLink.vue.js +33 -0
  47. package/dist/bundled/components/base/BaseListItemLink.vue2.js +26 -0
  48. package/dist/bundled/components/base/BaseOverflowMenu.vue.js +5 -0
  49. package/dist/bundled/components/base/BaseOverflowMenu.vue2.js +100 -0
  50. package/dist/bundled/components/base/BaseOverflowTab.vue.js +36 -0
  51. package/dist/bundled/components/base/BaseOverflowTab.vue2.js +18 -0
  52. package/dist/bundled/components/base/BaseSelect.vue.js +5 -0
  53. package/dist/bundled/components/base/BaseSelect.vue2.js +77 -0
  54. package/dist/bundled/components/base/BaseSplitPane.vue.js +8 -0
  55. package/dist/bundled/components/base/BaseSplitPane.vue2.js +183 -0
  56. package/dist/bundled/components/base/BaseTab.vue.js +36 -0
  57. package/dist/bundled/components/base/BaseTab.vue2.js +18 -0
  58. package/dist/bundled/components/base/BaseTag.vue.js +13 -0
  59. package/dist/bundled/components/command/CommandPrompts.vue.js +5 -0
  60. package/dist/bundled/components/command/CommandPrompts.vue2.js +91 -0
  61. package/dist/bundled/components/command/CommandPromptsModal.vue.js +5 -0
  62. package/dist/bundled/components/command/CommandPromptsModal.vue2.js +45 -0
  63. package/dist/bundled/components/command/PromptSelect.vue.js +5 -0
  64. package/dist/bundled/components/command/PromptSelect.vue2.js +142 -0
  65. package/dist/bundled/components/command/PromptText.vue.js +5 -0
  66. package/dist/bundled/components/command/PromptText.vue2.js +67 -0
  67. package/dist/bundled/components/misc/CheckerboardPattern.vue.js +40 -0
  68. package/dist/bundled/components/misc/HatchedPattern.vue.js +12 -0
  69. package/dist/bundled/components/panel/ControlsComponentPropItem.vue.js +5 -0
  70. package/dist/bundled/components/panel/ControlsComponentPropItem.vue2.js +72 -0
  71. package/dist/bundled/components/panel/ControlsComponentProps.vue.js +5 -0
  72. package/dist/bundled/components/panel/ControlsComponentProps.vue2.js +45 -0
  73. package/dist/bundled/components/panel/ControlsComponentState.vue.js +5 -0
  74. package/dist/bundled/components/panel/ControlsComponentState.vue2.js +41 -0
  75. package/dist/bundled/components/panel/ControlsComponentStateItem.vue.js +5 -0
  76. package/dist/bundled/components/panel/ControlsComponentStateItem.vue2.js +46 -0
  77. package/dist/bundled/components/panel/PaneTabs.vue.js +5 -0
  78. package/dist/bundled/components/panel/PaneTabs.vue2.js +114 -0
  79. package/dist/bundled/components/panel/StatePresets.vue.js +5 -0
  80. package/dist/bundled/components/panel/StatePresets.vue2.js +193 -0
  81. package/dist/bundled/components/panel/StoryControls.vue.js +5 -0
  82. package/dist/bundled/components/panel/StoryControls.vue2.js +87 -0
  83. package/dist/bundled/components/panel/StoryDocs.vue.js +7 -0
  84. package/dist/bundled/components/panel/StoryDocs.vue2.js +161 -0
  85. package/dist/bundled/components/panel/StoryEvent.vue.js +5 -0
  86. package/dist/bundled/components/panel/StoryEvent.vue2.js +59 -0
  87. package/dist/bundled/components/panel/StoryEvents.vue.js +5 -0
  88. package/dist/bundled/components/panel/StoryEvents.vue2.js +53 -0
  89. package/dist/bundled/components/panel/StorySidePanel.vue.js +5 -0
  90. package/dist/bundled/components/panel/StorySidePanel.vue2.js +83 -0
  91. package/dist/bundled/components/panel/StorySourceCode.vue.js +8 -0
  92. package/dist/bundled/components/panel/StorySourceCode.vue2.js +204 -0
  93. package/dist/bundled/components/search/SearchItem.vue.js +8 -0
  94. package/dist/bundled/components/search/SearchItem.vue2.js +93 -0
  95. package/dist/bundled/components/search/SearchItemContent.vue.js +5 -0
  96. package/dist/bundled/components/search/SearchItemContent.vue2.js +71 -0
  97. package/dist/bundled/components/search/SearchLoading.vue.js +5 -0
  98. package/dist/bundled/components/search/SearchLoading.vue2.js +21 -0
  99. package/dist/bundled/components/search/SearchModal.vue.js +5 -0
  100. package/dist/bundled/components/search/SearchModal.vue2.js +51 -0
  101. package/dist/bundled/components/search/SearchPane.vue.js +5 -0
  102. package/dist/bundled/components/search/SearchPane.vue2.js +272 -0
  103. package/dist/bundled/components/search/search-docs-data.js +11 -0
  104. package/dist/bundled/components/search/search-title-data.js +11 -0
  105. package/dist/bundled/components/story/GenericMountStory.vue.js +5 -0
  106. package/dist/bundled/components/story/GenericMountStory.vue2.js +34 -0
  107. package/dist/bundled/components/story/GenericRenderStory.vue.js +5 -0
  108. package/dist/bundled/components/story/GenericRenderStory.vue2.js +39 -0
  109. package/dist/bundled/components/story/StoryResponsivePreview.vue.js +8 -0
  110. package/dist/bundled/components/story/StoryResponsivePreview.vue2.js +207 -0
  111. package/dist/bundled/components/story/StoryVariantGrid.vue.js +5 -0
  112. package/dist/bundled/components/story/StoryVariantGrid.vue2.js +146 -0
  113. package/dist/bundled/components/story/StoryVariantGridItem.vue.js +8 -0
  114. package/dist/bundled/components/story/StoryVariantGridItem.vue2.js +155 -0
  115. package/dist/bundled/components/story/StoryVariantListItem.vue.js +8 -0
  116. package/dist/bundled/components/story/StoryVariantListItem.vue2.js +55 -0
  117. package/dist/bundled/components/story/StoryVariantSingle.vue.js +8 -0
  118. package/dist/bundled/components/story/StoryVariantSingle.vue2.js +107 -0
  119. package/dist/bundled/components/story/StoryVariantSinglePreviewNative.vue.js +5 -0
  120. package/dist/bundled/components/story/StoryVariantSinglePreviewNative.vue2.js +72 -0
  121. package/dist/bundled/components/story/StoryVariantSinglePreviewRemote.vue.js +5 -0
  122. package/dist/bundled/components/story/StoryVariantSinglePreviewRemote.vue2.js +128 -0
  123. package/dist/bundled/components/story/StoryVariantSingleView.vue.js +5 -0
  124. package/dist/bundled/components/story/StoryVariantSingleView.vue2.js +66 -0
  125. package/dist/bundled/components/story/StoryView.vue.js +5 -0
  126. package/dist/bundled/components/story/StoryView.vue2.js +104 -0
  127. package/dist/bundled/components/story/StoryViewer.vue.js +8 -0
  128. package/dist/bundled/components/story/StoryViewer.vue2.js +55 -0
  129. package/dist/bundled/components/toolbar/DevOnlyToolbarOpenInEditor.vue.js +5 -0
  130. package/dist/bundled/components/toolbar/DevOnlyToolbarOpenInEditor.vue2.js +31 -0
  131. package/dist/bundled/components/toolbar/ToolbarBackground.vue.js +8 -0
  132. package/dist/bundled/components/toolbar/ToolbarBackground.vue2.js +98 -0
  133. package/dist/bundled/components/toolbar/ToolbarNewTab.vue.js +5 -0
  134. package/dist/bundled/components/toolbar/ToolbarNewTab.vue2.js +36 -0
  135. package/dist/bundled/components/toolbar/ToolbarResponsiveSize.vue.js +5 -0
  136. package/dist/bundled/components/toolbar/ToolbarResponsiveSize.vue2.js +127 -0
  137. package/dist/bundled/components/toolbar/ToolbarTextDirection.vue.js +5 -0
  138. package/dist/bundled/components/toolbar/ToolbarTextDirection.vue2.js +27 -0
  139. package/dist/bundled/components/toolbar/ToolbarTitle.vue.js +5 -0
  140. package/dist/bundled/components/toolbar/ToolbarTitle.vue2.js +26 -0
  141. package/dist/bundled/components/tree/StoryGroup.vue.js +5 -0
  142. package/dist/bundled/components/tree/StoryGroup.vue2.js +74 -0
  143. package/dist/bundled/components/tree/StoryList.vue.js +5 -0
  144. package/dist/bundled/components/tree/StoryList.vue2.js +41 -0
  145. package/dist/bundled/components/tree/StoryListFolder.vue.js +8 -0
  146. package/dist/bundled/components/tree/StoryListFolder.vue2.js +86 -0
  147. package/dist/bundled/components/tree/StoryListItem.vue.js +8 -0
  148. package/dist/bundled/components/tree/StoryListItem.vue2.js +69 -0
  149. package/dist/bundled/index.js +35 -0
  150. package/dist/bundled/plugin.js +49 -0
  151. package/dist/bundled/router.js +32 -0
  152. package/dist/bundled/sandbox.js +87 -0
  153. package/dist/bundled/stores/command.js +25 -0
  154. package/dist/bundled/stores/events.js +29 -0
  155. package/dist/bundled/stores/folder.js +54 -0
  156. package/dist/bundled/stores/preview-settings.js +19 -0
  157. package/dist/bundled/stores/story.js +43 -0
  158. package/dist/bundled/util/commands.js +57 -0
  159. package/dist/bundled/util/config.js +8 -0
  160. package/dist/bundled/util/const.js +10 -0
  161. package/dist/bundled/util/dark.js +28 -0
  162. package/dist/bundled/util/docs.js +26 -0
  163. package/dist/bundled/util/env.js +4 -0
  164. package/dist/bundled/util/events.js +33 -0
  165. package/dist/bundled/util/keyboard.js +90 -0
  166. package/dist/bundled/util/mapping.js +70 -0
  167. package/dist/bundled/util/open-in-editor.js +6 -0
  168. package/dist/bundled/util/preview-settings.js +22 -0
  169. package/dist/bundled/util/responsive.js +6 -0
  170. package/dist/bundled/util/sandbox.js +11 -0
  171. package/dist/bundled/util/scroll.js +31 -0
  172. package/dist/bundled/util/select.js +28 -0
  173. package/dist/bundled/util/state.js +41 -0
  174. package/dist/bundled/util/tooltip.js +15 -0
  175. package/dist/bundled/util/variant.js +21 -0
  176. package/dist/style.css +2853 -0
  177. package/package.json +8 -4
  178. package/postcss-scope-wrapper.cjs +0 -35
  179. package/postcss.config.cjs +0 -9
  180. package/scripts/copy.mjs +0 -12
  181. package/scripts/watchAndCopy.mjs +0 -15
  182. package/tailwind.config.cjs +0 -137
  183. package/tsconfig.json +0 -53
  184. package/vite.config.ts +0 -88
@@ -0,0 +1,15 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1870 512" fill="none">
2
+ <defs>
3
+ <linearGradient id="pvw" x1="96" y1="416" x2="416" y2="96" gradientUnits="userSpaceOnUse">
4
+ <stop offset="0" stop-color="#24C56A"/>
5
+ <stop offset="1" stop-color="#17A6C6"/>
6
+ </linearGradient>
7
+ </defs>
8
+ <rect x="16" y="16" width="480" height="480" rx="112" fill="url(#pvw)"/>
9
+ <rect x="140" y="142" width="232" height="44" rx="16" fill="#fff"/>
10
+ <rect x="151" y="217" width="88" height="146" rx="9" stroke="#fff" stroke-width="22"/>
11
+ <rect x="172" y="244" width="30" height="92" rx="13" fill="#fff"/>
12
+ <rect x="262" y="206" width="110" height="168" rx="20" fill="#fff"/>
13
+ <rect x="284" y="226" width="66" height="58" rx="13" fill="url(#pvw)"/>
14
+ <text x="676" y="256" dominant-baseline="central" font-family="ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif" font-size="320" font-weight="400" letter-spacing="-4" fill="#f8fafc">Poveste</text>
15
+ </svg>
@@ -0,0 +1,15 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1870 512" fill="none">
2
+ <defs>
3
+ <linearGradient id="pvw" x1="96" y1="416" x2="416" y2="96" gradientUnits="userSpaceOnUse">
4
+ <stop offset="0" stop-color="#24C56A"/>
5
+ <stop offset="1" stop-color="#17A6C6"/>
6
+ </linearGradient>
7
+ </defs>
8
+ <rect x="16" y="16" width="480" height="480" rx="112" fill="url(#pvw)"/>
9
+ <rect x="140" y="142" width="232" height="44" rx="16" fill="#fff"/>
10
+ <rect x="151" y="217" width="88" height="146" rx="9" stroke="#fff" stroke-width="22"/>
11
+ <rect x="172" y="244" width="30" height="92" rx="13" fill="#fff"/>
12
+ <rect x="262" y="206" width="110" height="168" rx="20" fill="#fff"/>
13
+ <rect x="284" y="226" width="66" height="58" rx="13" fill="url(#pvw)"/>
14
+ <text x="676" y="256" dominant-baseline="central" font-family="ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif" font-size="320" font-weight="400" letter-spacing="-4" fill="#1e293b">Poveste</text>
15
+ </svg>
@@ -0,0 +1,14 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="512" height="512" fill="none">
2
+ <defs>
3
+ <linearGradient id="pv" x1="96" y1="416" x2="416" y2="96" gradientUnits="userSpaceOnUse">
4
+ <stop offset="0" stop-color="#24C56A"/>
5
+ <stop offset="1" stop-color="#17A6C6"/>
6
+ </linearGradient>
7
+ </defs>
8
+ <rect x="16" y="16" width="480" height="480" rx="112" fill="url(#pv)"/>
9
+ <rect x="140" y="142" width="232" height="44" rx="16" fill="#fff"/>
10
+ <rect x="151" y="217" width="88" height="146" rx="9" stroke="#fff" stroke-width="22"/>
11
+ <rect x="172" y="244" width="30" height="92" rx="13" fill="#fff"/>
12
+ <rect x="262" y="206" width="110" height="168" rx="20" fill="#fff"/>
13
+ <rect x="284" y="226" width="66" height="58" rx="13" fill="url(#pv)"/>
14
+ </svg>
@@ -0,0 +1,34 @@
1
+ /* @TODO custom themes */
2
+
3
+ .v-popper {
4
+ line-height: 0;
5
+ }
6
+
7
+ .v-popper--theme-dropdown {
8
+ .htw-dark & {
9
+ .v-popper__inner {
10
+ @apply htw-bg-gray-700 htw-border-gray-850 htw-text-gray-100;
11
+ }
12
+
13
+ .v-popper__arrow-inner {
14
+ @apply htw-border-gray-700;
15
+ }
16
+
17
+ .v-popper__arrow-outer {
18
+ @apply htw-border-gray-850;
19
+ }
20
+ }
21
+
22
+ &.v-popper__popper--show-from .v-popper__wrapper {
23
+ transform: scale(.75);
24
+ }
25
+
26
+ &.v-popper__popper--show-to .v-popper__wrapper {
27
+ transform: none;
28
+ transition: transform .15s cubic-bezier(0, 1, .5, 1);
29
+ }
30
+ }
31
+
32
+ .v-popper__popper:focus-visible {
33
+ outline: none;
34
+ }
@@ -0,0 +1,100 @@
1
+ @import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Display&display=swap');
2
+ @import 'floating-vue/dist/style.css';
3
+ @import '@poveste/controls/dist/index.es.css';
4
+
5
+ @import 'floating.pcss';
6
+ @import 'transitions.pcss';
7
+
8
+ *,
9
+ ::before,
10
+ ::after {
11
+ box-sizing: border-box;
12
+ border-width: 0;
13
+ border-style: solid;
14
+ border-color: #e5e7eb;
15
+ }
16
+
17
+ a,
18
+ input,
19
+ button {
20
+ color: inherit;
21
+ }
22
+
23
+ a {
24
+ text-decoration: inherit;
25
+ }
26
+
27
+ input, button {
28
+ font-family: inherit;
29
+ }
30
+
31
+ a,
32
+ button {
33
+ user-select: none;
34
+ }
35
+
36
+ @tailwind base;
37
+ @tailwind components;
38
+ @tailwind utilities;
39
+
40
+ @layer base {
41
+ body,
42
+ pre {
43
+ margin: 0;
44
+ }
45
+
46
+ html,
47
+ body,
48
+ #app {
49
+ height: 100%;
50
+ }
51
+
52
+ html {
53
+ font-family: 'Noto Sans Display', system-ui, sans-serif;
54
+ font-size: 1rem;
55
+ }
56
+
57
+ body {
58
+ font-size: 1.125rem;
59
+ }
60
+
61
+ @media (min-width: 640px) {
62
+ body {
63
+ font-size: .875rem;
64
+ }
65
+ }
66
+
67
+ .__poveste-render-story:not(.__poveste-render-custom-controls) {
68
+ overflow: auto;
69
+ min-height: 100%;
70
+ }
71
+
72
+ .__poveste-code .shiki {
73
+ background: transparent !important;
74
+ }
75
+
76
+ .htw-prose {
77
+ h1, h2, h3, h4 {
78
+ &:not(:hover) {
79
+ .header-anchor[aria-hidden="true"] {
80
+ visibility: hidden;
81
+ }
82
+ }
83
+ }
84
+
85
+ hr {
86
+ margin: 1rem 0;
87
+ }
88
+ }
89
+
90
+ .__poveste-pane-shadow-from-right {
91
+ background-image: linear-gradient(to left, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0));
92
+ background-size: 24px;
93
+ background-repeat: no-repeat;
94
+ background-position: right;
95
+
96
+ .htw-dark & {
97
+ background-image: linear-gradient(to left, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0));
98
+ }
99
+ }
100
+ }
@@ -0,0 +1,24 @@
1
+ @import '@poveste/controls/dist/index.es.css';
2
+
3
+ html,
4
+ body {
5
+ background: transparent !important;
6
+ }
7
+
8
+ body {
9
+ margin: 0;
10
+ }
11
+
12
+ html {
13
+ font-size: 1rem;
14
+ font-family: 'Noto Sans Display', system-ui, sans-serif;
15
+ }
16
+
17
+ .htw-sandbox-hidden {
18
+ display: none;
19
+ }
20
+
21
+ .__poveste-render-story:not(.__poveste-render-custom-controls) {
22
+ overflow: auto;
23
+ min-height: 100%;
24
+ }
@@ -0,0 +1,51 @@
1
+ .__poveste-scale-x {
2
+ &-enter-active,
3
+ &-leave-active {
4
+ transition: transform .15s, opacity .15s;
5
+ }
6
+
7
+ &-enter-from,
8
+ &-leave-to {
9
+ transform: scaleX(0);
10
+ opacity: 0;
11
+ }
12
+ }
13
+
14
+ .__poveste-scale-y {
15
+ &-enter-active,
16
+ &-leave-active {
17
+ transition: transform .15s, opacity .15s;
18
+ }
19
+
20
+ &-enter-from,
21
+ &-leave-to {
22
+ transform: scaleY(0);
23
+ opacity: 0;
24
+ }
25
+ }
26
+
27
+ .__poveste-fade {
28
+ &-enter-active,
29
+ &-leave-active {
30
+ transition: opacity .15s;
31
+ }
32
+
33
+ &-enter-from,
34
+ &-leave-to {
35
+ opacity: 0;
36
+ }
37
+ }
38
+
39
+ .__poveste-fade-bottom {
40
+ &-enter-active,
41
+ &-leave-active {
42
+ transition: transform .15s, opacity .15s;
43
+ transform: translateY(0px);
44
+ }
45
+
46
+ &-enter-from,
47
+ &-leave-to {
48
+ transform: translateY(32px);
49
+ opacity: 0;
50
+ }
51
+ }
@@ -0,0 +1 @@
1
+ export * from './bundled/api.js'
@@ -0,0 +1,4 @@
1
+ import { mountMainApp } from './app/index'
2
+ import './app/style/main.pcss'
3
+
4
+ mountMainApp()
@@ -0,0 +1,5 @@
1
+ import { mountMainApp } from './bundled/index.js'
2
+ import './style.css'
3
+ import './bundled/app.css'
4
+
5
+ mountMainApp()
@@ -0,0 +1,2 @@
1
+ import './app/style/sandbox.css'
2
+ import './app/sandbox'
@@ -0,0 +1,2 @@
1
+ import './app/style/sandbox.css'
2
+ import './bundled/sandbox.js'
@@ -0,0 +1,5 @@
1
+ import _sfc_main from "./App.vue2.js";
2
+ "use strict";
3
+ export {
4
+ _sfc_main as default
5
+ };
@@ -0,0 +1,167 @@
1
+ import { defineComponent, ref, computed, watch, onMounted, resolveComponent, createElementBlock, openBlock, Fragment, createCommentVNode, createElementVNode, createVNode, unref, createBlock, normalizeStyle, withCtx, Transition } from "@poveste/vendors/vue";
2
+ import { useTitle } from "@poveste/vendors/vue-use";
3
+ import { files, tree, onUpdate } from "virtual:$poveste-stories";
4
+ import "./components/app/AppHeader.vue.js";
5
+ import Breadcrumb from "./components/app/Breadcrumb.vue.js";
6
+ import "./components/app/InitialLoading.vue.js";
7
+ import BaseSplitPane from "./components/base/BaseSplitPane.vue.js";
8
+ import "./components/command/CommandPromptsModal.vue.js";
9
+ import "./components/search/SearchModal.vue.js";
10
+ import "./components/story/GenericMountStory.vue.js";
11
+ import "./components/tree/StoryList.vue.js";
12
+ import { useCommandStore } from "./stores/command.js";
13
+ import { useStoryStore } from "./stores/story.js";
14
+ import { povesteConfig } from "./util/config.js";
15
+ import { onKeyboardShortcut } from "./util/keyboard.js";
16
+ import { mapFile } from "./util/mapping.js";
17
+ import { isMobile } from "./util/responsive.js";
18
+ import _sfc_main$1 from "./components/story/GenericMountStory.vue2.js";
19
+ import _sfc_main$2 from "./components/app/AppHeader.vue2.js";
20
+ import _sfc_main$3 from "./components/tree/StoryList.vue2.js";
21
+ import _sfc_main$4 from "./components/search/SearchModal.vue2.js";
22
+ import _sfc_main$5 from "./components/command/CommandPromptsModal.vue2.js";
23
+ import _sfc_main$6 from "./components/app/InitialLoading.vue2.js";
24
+ "use strict";
25
+ const _hoisted_1 = {
26
+ key: 0,
27
+ class: "poveste-app htw-hidden"
28
+ };
29
+ const _hoisted_2 = {
30
+ key: 0,
31
+ class: "htw-h-full htw-flex htw-flex-col htw-divide-y htw-divide-gray-100 dark:htw-divide-gray-800"
32
+ };
33
+ const _hoisted_3 = { class: "htw-flex htw-flex-col htw-h-full htw-bg-gray-100 dark:htw-bg-gray-750 __poveste-pane-shadow-from-right" };
34
+ const __default__ = {
35
+ name: "PovesteApp"
36
+ };
37
+ const _sfc_main = /* @__PURE__ */ defineComponent({
38
+ ...__default__,
39
+ setup(__props) {
40
+ const files$1 = ref(files.map((file) => mapFile(file)));
41
+ const tree$1 = ref(tree);
42
+ onUpdate((newFiles, newTree) => {
43
+ loading.value = false;
44
+ files$1.value = newFiles.map((file) => {
45
+ const existingFile = files$1.value.find((f) => f.id === file.id);
46
+ return mapFile(file, existingFile);
47
+ });
48
+ tree$1.value = newTree;
49
+ });
50
+ const stories = computed(() => files$1.value.reduce((acc, file) => {
51
+ acc.push(file.story);
52
+ return acc;
53
+ }, []));
54
+ const storyStore = useStoryStore();
55
+ watch(stories, (value) => {
56
+ storyStore.setStories(value);
57
+ }, {
58
+ immediate: true
59
+ });
60
+ useTitle(computed(() => {
61
+ if (storyStore.currentStory) {
62
+ let title = storyStore.currentStory.title;
63
+ if (storyStore.currentVariant) {
64
+ title += ` › ${storyStore.currentVariant.title}`;
65
+ }
66
+ return `${title} | ${povesteConfig.theme.title}`;
67
+ }
68
+ return povesteConfig.theme.title;
69
+ }));
70
+ const loadSearch = ref(false);
71
+ const isSearchOpen = ref(false);
72
+ watch(isSearchOpen, (value) => {
73
+ if (value) {
74
+ loadSearch.value = true;
75
+ }
76
+ });
77
+ onKeyboardShortcut(["ctrl+k", "meta+k"], (event) => {
78
+ isSearchOpen.value = true;
79
+ event.preventDefault();
80
+ });
81
+ const loading = ref(false);
82
+ if (import.meta.hot && !files.length) {
83
+ loading.value = true;
84
+ import.meta.hot.on("poveste:all-stories-loaded", () => {
85
+ loading.value = false;
86
+ });
87
+ }
88
+ const mounted = ref(false);
89
+ onMounted(() => {
90
+ mounted.value = true;
91
+ });
92
+ const commandStore = useCommandStore();
93
+ return (_ctx, _cache) => {
94
+ const _component_RouterView = resolveComponent("RouterView");
95
+ return openBlock(), createElementBlock(Fragment, null, [
96
+ unref(storyStore).currentStory ? (openBlock(), createElementBlock("div", _hoisted_1, [
97
+ (openBlock(), createBlock(_sfc_main$1, {
98
+ key: unref(storyStore).currentStory.id,
99
+ story: unref(storyStore).currentStory
100
+ }, null, 8, ["story"]))
101
+ ])) : createCommentVNode("", true),
102
+ createElementVNode("div", {
103
+ class: "htw-h-screen htw-bg-white dark:htw-bg-gray-700 dark:htw-text-gray-100",
104
+ style: normalizeStyle({
105
+ // Prevent flash of content
106
+ opacity: mounted.value ? 1 : 0
107
+ })
108
+ }, [
109
+ unref(isMobile) ? (openBlock(), createElementBlock("div", _hoisted_2, [
110
+ createVNode(_sfc_main$2, {
111
+ onSearch: _cache[0] || (_cache[0] = ($event) => isSearchOpen.value = true)
112
+ }),
113
+ createVNode(Breadcrumb, {
114
+ tree: tree$1.value,
115
+ stories: stories.value
116
+ }, null, 8, ["tree", "stories"]),
117
+ createVNode(_component_RouterView, { class: "htw-grow" })
118
+ ])) : (openBlock(), createBlock(BaseSplitPane, {
119
+ key: 1,
120
+ "save-id": "main-horiz",
121
+ min: 5,
122
+ max: 50,
123
+ "default-split": 15,
124
+ class: "htw-h-full"
125
+ }, {
126
+ first: withCtx(() => [
127
+ createElementVNode("div", _hoisted_3, [
128
+ createVNode(_sfc_main$2, {
129
+ class: "htw-flex-none",
130
+ onSearch: _cache[1] || (_cache[1] = ($event) => isSearchOpen.value = true)
131
+ }),
132
+ createVNode(_sfc_main$3, {
133
+ tree: tree$1.value,
134
+ stories: stories.value,
135
+ class: "htw-flex-1"
136
+ }, null, 8, ["tree", "stories"])
137
+ ])
138
+ ]),
139
+ last: withCtx(() => [
140
+ createVNode(_component_RouterView)
141
+ ]),
142
+ _: 1
143
+ })),
144
+ loadSearch.value ? (openBlock(), createBlock(_sfc_main$4, {
145
+ key: 2,
146
+ shown: isSearchOpen.value,
147
+ onClose: _cache[2] || (_cache[2] = ($event) => isSearchOpen.value = false)
148
+ }, null, 8, ["shown"])) : createCommentVNode("", true),
149
+ _ctx.__POVESTE_DEV__ ? (openBlock(), createBlock(_sfc_main$5, {
150
+ key: 3,
151
+ shown: unref(commandStore).showPromptsModal,
152
+ onClose: _cache[3] || (_cache[3] = ($event) => unref(commandStore).showPromptsModal = false)
153
+ }, null, 8, ["shown"])) : createCommentVNode("", true)
154
+ ], 4),
155
+ createVNode(Transition, { name: "__poveste-fade" }, {
156
+ default: withCtx(() => [
157
+ loading.value ? (openBlock(), createBlock(_sfc_main$6, { key: 0 })) : createCommentVNode("", true)
158
+ ]),
159
+ _: 1
160
+ })
161
+ ], 64);
162
+ };
163
+ }
164
+ });
165
+ export {
166
+ _sfc_main as default
167
+ };
@@ -0,0 +1,10 @@
1
+ const _export_sfc = (sfc, props) => {
2
+ const target = sfc.__vccOpts || sfc;
3
+ for (const [key, val] of props) {
4
+ target[key] = val;
5
+ }
6
+ return target;
7
+ };
8
+ export {
9
+ _export_sfc as default
10
+ };
@@ -0,0 +1,12 @@
1
+ import { isDark as isDark$1 } from "./util/dark.js";
2
+ import { toggleDark } from "./util/dark.js";
3
+ import { logEvent } from "./util/events.js";
4
+ "use strict";
5
+ function isDark() {
6
+ return isDark$1.value;
7
+ }
8
+ export {
9
+ isDark,
10
+ logEvent,
11
+ toggleDark
12
+ };
@@ -0,0 +1,116 @@
1
+ @scope (:root) to (.__poveste-render-story:not(.__poveste-render-custom-controls)) {
2
+ .bind-tree-margin[data-v-a12ff9e7] {
3
+ margin-left: var(--v2411f6f6);
4
+ }
5
+ .bind-icon-color[data-v-a12ff9e7] {
6
+ color: var(--b2034f9c);
7
+ }
8
+ }
9
+ @scope (:root) to (.__poveste-render-story:not(.__poveste-render-custom-controls)) {
10
+ .bind-tree-padding[data-v-18510a3c] {
11
+ padding-left: var(--v8d8133ee);
12
+ }
13
+ }
14
+ @scope (:root) to (.__poveste-render-story:not(.__poveste-render-custom-controls)) {
15
+ .bind-icon-color[data-v-79fbe0df] {
16
+ color: var(--v2ff034b2);
17
+ }
18
+ }
19
+ @scope (:root) to (.__poveste-render-story:not(.__poveste-render-custom-controls)) {
20
+ .landscape > div > .dragger[data-v-6c89c62e] {
21
+ width: .625rem;
22
+ }
23
+ .portrait > div > .dragger[data-v-6c89c62e] {
24
+ height: .625rem;
25
+ }
26
+ .landscape > div > .dragger.dragger-offset-before[data-v-6c89c62e] {
27
+ right: 0;
28
+ }
29
+ .portrait > div > .dragger.dragger-offset-before[data-v-6c89c62e] {
30
+ bottom: 0;
31
+ }
32
+ .landscape > div > .dragger.dragger-offset-center[data-v-6c89c62e] {
33
+ right: -.3125rem;
34
+ }
35
+ .portrait > div > .dragger.dragger-offset-center[data-v-6c89c62e] {
36
+ bottom: -.3125rem;
37
+ }
38
+ .landscape > div > .dragger.dragger-offset-after[data-v-6c89c62e] {
39
+ right: -.625rem;
40
+ }
41
+ .portrait > div > .dragger.dragger-offset-after[data-v-6c89c62e] {
42
+ bottom: -.625rem;
43
+ }
44
+ }
45
+ @scope (:root) to (.__poveste-render-story:not(.__poveste-render-custom-controls)) {
46
+ .htw-base-empty[data-v-1adb09aa]:not(.no-animation) {
47
+ animation: htw-base-empty-1adb09aa .15s .2s both;
48
+ }
49
+ @keyframes htw-base-empty-1adb09aa {
50
+ 0% {
51
+ opacity: 0;
52
+ }
53
+ 100% {
54
+ opacity: 1;
55
+ }
56
+ }
57
+ }
58
+ @scope (:root) to (.__poveste-render-story:not(.__poveste-render-custom-controls)) {
59
+ .__poveste-code-placeholder[data-v-82d96c7f] {
60
+ color: inherit;
61
+ font-size: inherit;
62
+ }
63
+ }
64
+ @scope (:root) to (.__poveste-render-story:not(.__poveste-render-custom-controls)) {
65
+ .bind-preview-bg[data-v-26d08825] {
66
+ background-color: var(--v57972cd3);
67
+ color: var(--v07febf58);
68
+ }
69
+ }
70
+ @scope (:root) to (.__poveste-render-story:not(.__poveste-render-custom-controls)) {
71
+ .bind-icon-color[data-v-a3dc7302] {
72
+ color: var(--v70ef7b9c);
73
+ }
74
+ .bind-preview-bg[data-v-a3dc7302] {
75
+ background-color: var(--v960da962);
76
+ }
77
+ }
78
+ @scope (:root) to (.__poveste-render-story:not(.__poveste-render-custom-controls)) {
79
+ .bind-icon-color[data-v-e7e8e2de] {
80
+ color: var(--v6ef859d8);
81
+ }
82
+ }
83
+ @scope (:root) to (.__poveste-render-story:not(.__poveste-render-custom-controls)) {
84
+ .__poveste-hatched-pattern[data-v-c1be54fa] {
85
+ background: repeating-linear-gradient(135deg,
86
+ transparent 0px,
87
+ transparent 32px,
88
+ currentColor 32px,
89
+ currentColor 64px);
90
+ }
91
+ }
92
+ @scope (:root) to (.__poveste-render-story:not(.__poveste-render-custom-controls)) {
93
+ .bind-preview-bg[data-v-275bf3ef] {
94
+ background-color: var(--v30eb5fc0);
95
+ }
96
+ }
97
+ @scope (:root) to (.__poveste-render-story:not(.__poveste-render-custom-controls)) {
98
+ .bind-icon-color[data-v-b675426a] {
99
+ color: var(--v5162df32);
100
+ }
101
+ }
102
+ @scope (:root) to (.__poveste-render-story:not(.__poveste-render-custom-controls)) {
103
+ .bind-icon-color[data-v-1d298079] {
104
+ color: var(--v4009a800);
105
+ }
106
+ }
107
+ @scope (:root) to (.__poveste-render-story:not(.__poveste-render-custom-controls)) {
108
+ img.colorize-black[data-v-f632abed] {
109
+ filter: grayscale(100) brightness(0);
110
+ }
111
+ }
112
+ @scope (:root) to (.__poveste-render-story:not(.__poveste-render-custom-controls)) {
113
+ .bind-icon-color[data-v-0c821aae] {
114
+ color: var(--v12a213a0);
115
+ }
116
+ }
@@ -0,0 +1,4 @@
1
+ const PovesteLogoDark = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxODcwIDUxMiIgZmlsbD0ibm9uZSI+CiAgPGRlZnM+CiAgICA8bGluZWFyR3JhZGllbnQgaWQ9InB2dyIgeDE9Ijk2IiB5MT0iNDE2IiB4Mj0iNDE2IiB5Mj0iOTYiIGdyYWRpZW50VW5pdHM9InV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4KICA8cmVjdCB4PSIyODQiIHk9IjIyNiIgd2lkdGg9IjY2IiBoZWlnaHQ9IjU4IiByeD0iMTMiIGZpbGw9InVybCgjcHZ3KSIvPgogIDx0ZXh0IHg9IjY3NiIgeT0iMjU2IiBkb21pbmFudC1iYXNlbGluZT0iY2VudHJhbCIgZm9udC1mYW1pbHk9InVpLXNhbnMtc2VyaWYsIHN5c3RlbS11aSwgLWFwcGxlLXN5c3RlbSwgJ1NlZ29lIFVJJywgUm9ib3RvLCBIZWx2ZXRpY2EsIEFyaWFsLCBzYW5zLXNlcmlmIiBmb250LXNpemU9IjMyMCIgZm9udC13ZWlnaHQ9IjQwMCIgbGV0dGVyLXNwYWNpbmc9Ii00IiBmaWxsPSIjMWUyOTNiIj5Qb3Zlc3RlPC90ZXh0Pgo8L3N2Zz4K";
2
+ export {
3
+ PovesteLogoLight as default
4
+ };
@@ -0,0 +1,4 @@
1
+ const PovesteLogo = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20512%20512'%20width='512'%20height='512'%20fill='none'%3e%3cdefs%3e%3clinearGradient%20id='pv'%20x1='96'%20y1='416'%20x2='416'%20y2='96'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%2324C56A'/%3e%3cstop%20offset='1'%20stop-color='%2317A6C6'/%3e%3c/linearGradient%3e%3c/defs%3e%3crect%20x='16'%20y='16'%20width='480'%20height='480'%20rx='112'%20fill='url(%23pv)'/%3e%3crect%20x='140'%20y='142'%20width='232'%20height='44'%20rx='16'%20fill='%23fff'/%3e%3crect%20x='151'%20y='217'%20width='88'%20height='146'%20rx='9'%20stroke='%23fff'%20stroke-width='22'/%3e%3crect%20x='172'%20y='244'%20width='30'%20height='92'%20rx='13'%20fill='%23fff'/%3e%3crect%20x='262'%20y='206'%20width='110'%20height='168'%20rx='20'%20fill='%23fff'/%3e%3crect%20x='284'%20y='226'%20width='66'%20height='58'%20rx='13'%20fill='url(%23pv)'/%3e%3c/svg%3e";
2
+ export {
3
+ PovesteLogo as default
4
+ };
@@ -0,0 +1,5 @@
1
+ import _sfc_main from "./HomeView.vue2.js";
2
+ "use strict";
3
+ export {
4
+ _sfc_main as default
5
+ };