@poveste/app 0.1.2 → 0.2.0

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 (187) hide show
  1. package/dist/app/style/floating.pcss +4 -4
  2. package/dist/app/style/main.pcss +2 -2
  3. package/dist/app/style/sandbox.css +1 -1
  4. package/dist/bundle-main.js +2 -0
  5. package/dist/bundled/App.vue2.js +81 -37
  6. package/dist/bundled/app.css +51 -46
  7. package/dist/bundled/components/HomeView.vue2.js +3 -3
  8. package/dist/bundled/components/app/AppActions.vue.js +5 -0
  9. package/dist/bundled/components/app/AppActions.vue2.js +76 -0
  10. package/dist/bundled/components/app/AppHeader.vue2.js +5 -47
  11. package/dist/bundled/components/app/Breadcrumb.vue.js +1 -1
  12. package/dist/bundled/components/app/Breadcrumb.vue2.js +9 -9
  13. package/dist/bundled/components/app/HomeCounter.vue2.js +5 -5
  14. package/dist/bundled/components/app/InitialLoading.vue2.js +5 -5
  15. package/dist/bundled/components/app/MobileOverlay.vue2.js +5 -5
  16. package/dist/bundled/components/app/TopBar.vue.js +5 -0
  17. package/dist/bundled/components/app/TopBar.vue2.js +73 -0
  18. package/dist/bundled/components/app/TopBarChip.vue.js +13 -0
  19. package/dist/bundled/components/app/TopBarChipItem.vue.js +13 -0
  20. package/dist/bundled/components/base/BaseButton.vue2.js +3 -3
  21. package/dist/bundled/components/base/BaseCheckbox.vue2.js +8 -8
  22. package/dist/bundled/components/base/BaseEmpty.vue.js +2 -2
  23. package/dist/bundled/components/base/BaseKeyboardShortcut.vue2.js +1 -1
  24. package/dist/bundled/components/base/BaseListItem.vue2.js +2 -2
  25. package/dist/bundled/components/base/BaseListItemLink.vue.js +2 -2
  26. package/dist/bundled/components/base/BaseOverflowMenu.vue2.js +4 -4
  27. package/dist/bundled/components/base/BaseOverflowTab.vue.js +3 -3
  28. package/dist/bundled/components/base/BaseSelect.vue2.js +6 -6
  29. package/dist/bundled/components/base/BaseSplitPane.vue.js +1 -1
  30. package/dist/bundled/components/base/BaseSplitPane.vue2.js +20 -16
  31. package/dist/bundled/components/base/BaseTab.vue.js +3 -3
  32. package/dist/bundled/components/base/BaseTag.vue.js +1 -1
  33. package/dist/bundled/components/command/CommandPrompts.vue2.js +5 -5
  34. package/dist/bundled/components/command/CommandPromptsModal.vue2.js +3 -3
  35. package/dist/bundled/components/command/PromptSelect.vue2.js +12 -12
  36. package/dist/bundled/components/command/PromptText.vue2.js +4 -4
  37. package/dist/bundled/components/layout/LayoutItem.vue.js +5 -0
  38. package/dist/bundled/components/layout/LayoutItem.vue2.js +44 -0
  39. package/dist/bundled/components/layout/LayoutItemGroup.vue.js +5 -0
  40. package/dist/bundled/components/layout/LayoutItemGroup.vue2.js +25 -0
  41. package/dist/bundled/components/layout/LayoutModal.vue.js +5 -0
  42. package/dist/bundled/components/layout/LayoutModal.vue2.js +68 -0
  43. package/dist/bundled/components/layout/LayoutPane.vue.js +5 -0
  44. package/dist/bundled/components/layout/LayoutPane.vue2.js +59 -0
  45. package/dist/bundled/components/panel/ControlsComponentPropItem.vue2.js +2 -2
  46. package/dist/bundled/components/panel/ControlsComponentProps.vue2.js +4 -4
  47. package/dist/bundled/components/panel/ControlsComponentState.vue2.js +2 -2
  48. package/dist/bundled/components/panel/PaneTabs.vue2.js +4 -4
  49. package/dist/bundled/components/panel/StatePresets.vue2.js +13 -13
  50. package/dist/bundled/components/panel/StoryControls.vue2.js +6 -6
  51. package/dist/bundled/components/panel/StoryDocs.vue2.js +4 -4
  52. package/dist/bundled/components/panel/StoryEvent.vue2.js +7 -7
  53. package/dist/bundled/components/panel/StoryEvents.vue2.js +1 -1
  54. package/dist/bundled/components/panel/StorySidePanel.vue2.js +58 -47
  55. package/dist/bundled/components/panel/StorySourceCode.vue.js +1 -1
  56. package/dist/bundled/components/panel/StorySourceCode.vue2.js +19 -19
  57. package/dist/bundled/components/search/SearchItem.vue.js +1 -1
  58. package/dist/bundled/components/search/SearchItem.vue2.js +3 -3
  59. package/dist/bundled/components/search/SearchItemContent.vue2.js +9 -9
  60. package/dist/bundled/components/search/SearchLoading.vue2.js +2 -2
  61. package/dist/bundled/components/search/SearchModal.vue2.js +3 -3
  62. package/dist/bundled/components/search/SearchPane.vue2.js +4 -4
  63. package/dist/bundled/components/story/StoryResponsivePreview.vue.js +1 -1
  64. package/dist/bundled/components/story/StoryResponsivePreview.vue2.js +21 -21
  65. package/dist/bundled/components/story/StoryVariantGrid.vue2.js +7 -26
  66. package/dist/bundled/components/story/StoryVariantGridItem.vue.js +1 -1
  67. package/dist/bundled/components/story/StoryVariantGridItem.vue2.js +36 -21
  68. package/dist/bundled/components/story/StoryVariantListItem.vue.js +1 -1
  69. package/dist/bundled/components/story/StoryVariantListItem.vue2.js +5 -5
  70. package/dist/bundled/components/story/StoryVariantSingle.vue.js +1 -1
  71. package/dist/bundled/components/story/StoryVariantSingle.vue2.js +10 -10
  72. package/dist/bundled/components/story/StoryVariantSinglePreviewNative.vue2.js +6 -5
  73. package/dist/bundled/components/story/StoryVariantSinglePreviewRemote.vue2.js +33 -8
  74. package/dist/bundled/components/story/StoryVariantSingleView.vue2.js +8 -39
  75. package/dist/bundled/components/story/StoryView.vue2.js +21 -11
  76. package/dist/bundled/components/story/StoryViewer.vue.js +1 -1
  77. package/dist/bundled/components/story/StoryViewer.vue2.js +2 -2
  78. package/dist/bundled/components/toolbar/DevOnlyToolbarOpenInEditor.vue2.js +13 -9
  79. package/dist/bundled/components/toolbar/ToolbarBackground.vue.js +1 -1
  80. package/dist/bundled/components/toolbar/ToolbarBackground.vue2.js +62 -33
  81. package/dist/bundled/components/toolbar/ToolbarNewTab.vue2.js +13 -10
  82. package/dist/bundled/components/toolbar/ToolbarResponsiveSize.vue2.js +14 -14
  83. package/dist/bundled/components/toolbar/ToolbarTextDirection.vue2.js +13 -9
  84. package/dist/bundled/components/toolbar/ToolbarTitle.vue.js +4 -1
  85. package/dist/bundled/components/toolbar/ToolbarTitle.vue2.js +30 -7
  86. package/dist/bundled/components/tree/StoryGroup.vue2.js +5 -5
  87. package/dist/bundled/components/tree/StoryList.vue2.js +1 -1
  88. package/dist/bundled/components/tree/StoryListFolder.vue.js +1 -1
  89. package/dist/bundled/components/tree/StoryListFolder.vue2.js +7 -7
  90. package/dist/bundled/components/tree/StoryListItem.vue.js +1 -1
  91. package/dist/bundled/components/tree/StoryListItem.vue2.js +8 -8
  92. package/dist/bundled/index.js +3 -0
  93. package/dist/bundled/sandbox.js +41 -15
  94. package/dist/bundled/stores/layout.js +16 -0
  95. package/dist/bundled/stores/preview-settings.js +19 -4
  96. package/dist/bundled/util/color-scheme.js +27 -0
  97. package/dist/bundled/util/const.js +2 -0
  98. package/dist/bundled/util/dark.js +3 -3
  99. package/dist/bundled/util/keyboard.js +60 -32
  100. package/dist/bundled/util/preview-settings.js +11 -0
  101. package/dist/bundled/util/tooltip.js +2 -2
  102. package/dist/style.css +644 -529
  103. package/package.json +8 -8
  104. package/src/app/App.vue +109 -66
  105. package/src/app/components/HomeView.vue +3 -3
  106. package/src/app/components/app/AppActions.vue +58 -0
  107. package/src/app/components/app/AppHeader.vue +4 -47
  108. package/src/app/components/app/Breadcrumb.vue +8 -8
  109. package/src/app/components/app/HomeCounter.vue +5 -5
  110. package/src/app/components/app/InitialLoading.vue +5 -5
  111. package/src/app/components/app/MobileOverlay.vue +5 -5
  112. package/src/app/components/app/TopBar.vue +60 -0
  113. package/src/app/components/app/TopBarChip.vue +5 -0
  114. package/src/app/components/app/TopBarChipItem.vue +7 -0
  115. package/src/app/components/base/BaseButton.vue +3 -3
  116. package/src/app/components/base/BaseCheckbox.vue +9 -9
  117. package/src/app/components/base/BaseCopyIcon.vue +1 -1
  118. package/src/app/components/base/BaseEmpty.vue +4 -4
  119. package/src/app/components/base/BaseKeyboardShortcut.vue +1 -1
  120. package/src/app/components/base/BaseListItem.vue +3 -3
  121. package/src/app/components/base/BaseListItemLink.vue +3 -3
  122. package/src/app/components/base/BaseOverflowMenu.vue +4 -4
  123. package/src/app/components/base/BaseOverflowTab.vue +3 -3
  124. package/src/app/components/base/BaseSelect.vue +6 -6
  125. package/src/app/components/base/BaseSplitPane.vue +21 -16
  126. package/src/app/components/base/BaseTab.vue +3 -3
  127. package/src/app/components/base/BaseTag.vue +1 -1
  128. package/src/app/components/command/CommandPrompts.vue +5 -5
  129. package/src/app/components/command/CommandPromptsModal.vue +3 -3
  130. package/src/app/components/command/PromptSelect.vue +14 -14
  131. package/src/app/components/command/PromptText.vue +4 -4
  132. package/src/app/components/layout/LayoutItem.vue +36 -0
  133. package/src/app/components/layout/LayoutItemGroup.vue +18 -0
  134. package/src/app/components/layout/LayoutModal.vue +60 -0
  135. package/src/app/components/layout/LayoutPane.vue +45 -0
  136. package/src/app/components/panel/ControlsComponentPropItem.vue +2 -2
  137. package/src/app/components/panel/ControlsComponentProps.vue +3 -3
  138. package/src/app/components/panel/ControlsComponentState.vue +2 -2
  139. package/src/app/components/panel/PaneTabs.vue +4 -4
  140. package/src/app/components/panel/StatePresets.vue +13 -13
  141. package/src/app/components/panel/StoryControls.vue +6 -6
  142. package/src/app/components/panel/StoryDocs.vue +4 -4
  143. package/src/app/components/panel/StoryEvent.vue +7 -7
  144. package/src/app/components/panel/StoryEvents.vue +1 -1
  145. package/src/app/components/panel/StorySidePanel.vue +51 -41
  146. package/src/app/components/panel/StorySourceCode.vue +19 -19
  147. package/src/app/components/search/SearchItem.vue +2 -2
  148. package/src/app/components/search/SearchItemContent.vue +9 -9
  149. package/src/app/components/search/SearchLoading.vue +2 -2
  150. package/src/app/components/search/SearchModal.vue +3 -3
  151. package/src/app/components/search/SearchPane.vue +4 -4
  152. package/src/app/components/story/StoryResponsivePreview.vue +27 -27
  153. package/src/app/components/story/StoryVariantGrid.vue +5 -24
  154. package/src/app/components/story/StoryVariantGridItem.vue +36 -17
  155. package/src/app/components/story/StoryVariantListItem.vue +4 -4
  156. package/src/app/components/story/StoryVariantSingle.vue +9 -9
  157. package/src/app/components/story/StoryVariantSinglePreviewNative.vue +7 -5
  158. package/src/app/components/story/StoryVariantSinglePreviewRemote.vue +37 -7
  159. package/src/app/components/story/StoryVariantSingleView.vue +1 -34
  160. package/src/app/components/story/StoryView.vue +23 -8
  161. package/src/app/components/story/StoryViewer.vue +1 -1
  162. package/src/app/components/toolbar/DevOnlyToolbarOpenInEditor.vue +5 -4
  163. package/src/app/components/toolbar/ToolbarBackground.vue +62 -25
  164. package/src/app/components/toolbar/ToolbarNewTab.vue +5 -4
  165. package/src/app/components/toolbar/ToolbarResponsiveSize.vue +15 -15
  166. package/src/app/components/toolbar/ToolbarTextDirection.vue +5 -4
  167. package/src/app/components/toolbar/ToolbarTitle.vue +32 -8
  168. package/src/app/components/tree/StoryGroup.vue +5 -5
  169. package/src/app/components/tree/StoryList.vue +1 -1
  170. package/src/app/components/tree/StoryListFolder.vue +6 -6
  171. package/src/app/components/tree/StoryListItem.vue +6 -6
  172. package/src/app/index.ts +3 -0
  173. package/src/app/sandbox.ts +59 -15
  174. package/src/app/stores/layout.ts +22 -0
  175. package/src/app/stores/preview-settings.ts +26 -2
  176. package/src/app/style/floating.pcss +4 -4
  177. package/src/app/style/main.pcss +2 -2
  178. package/src/app/style/sandbox.css +1 -1
  179. package/src/app/types.ts +49 -0
  180. package/src/app/util/color-scheme.ts +36 -0
  181. package/src/app/util/const.ts +1 -0
  182. package/src/app/util/dark.ts +3 -3
  183. package/src/app/util/keyboard.ts +65 -32
  184. package/src/app/util/preview-settings.ts +16 -0
  185. package/src/app/util/tooltip.ts +2 -2
  186. package/src/bundle-main.js +2 -0
  187. package/src/shim.d.ts +2 -2
@@ -5,17 +5,17 @@
5
5
  }
6
6
 
7
7
  .v-popper--theme-dropdown {
8
- .htw-dark & {
8
+ .ptw-dark & {
9
9
  .v-popper__inner {
10
- @apply htw-bg-gray-700 htw-border-gray-850 htw-text-gray-100;
10
+ @apply ptw-bg-gray-700 ptw-border-gray-850 ptw-text-gray-100;
11
11
  }
12
12
 
13
13
  .v-popper__arrow-inner {
14
- @apply htw-border-gray-700;
14
+ @apply ptw-border-gray-700;
15
15
  }
16
16
 
17
17
  .v-popper__arrow-outer {
18
- @apply htw-border-gray-850;
18
+ @apply ptw-border-gray-850;
19
19
  }
20
20
  }
21
21
 
@@ -73,7 +73,7 @@ button {
73
73
  background: transparent !important;
74
74
  }
75
75
 
76
- .htw-prose {
76
+ .ptw-prose {
77
77
  h1, h2, h3, h4 {
78
78
  &:not(:hover) {
79
79
  .header-anchor[aria-hidden="true"] {
@@ -93,7 +93,7 @@ button {
93
93
  background-repeat: no-repeat;
94
94
  background-position: right;
95
95
 
96
- .htw-dark & {
96
+ .ptw-dark & {
97
97
  background-image: linear-gradient(to left, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0));
98
98
  }
99
99
  }
@@ -14,7 +14,7 @@ html {
14
14
  font-family: 'Noto Sans Display', system-ui, sans-serif;
15
15
  }
16
16
 
17
- .htw-sandbox-hidden {
17
+ .ptw-sandbox-hidden {
18
18
  display: none;
19
19
  }
20
20
 
@@ -1,3 +1,5 @@
1
+ /* eslint-disable perfectionist/sort-imports -- global styles must load before app bundle */
2
+ import 'virtual:$poveste-global-styles'
1
3
  import { mountMainApp } from './bundled/index.js'
2
4
  import './style.css'
3
5
  import './bundled/app.css'
@@ -1,36 +1,51 @@
1
- import { defineComponent, ref, computed, watch, onMounted, resolveComponent, createElementBlock, openBlock, Fragment, createCommentVNode, createElementVNode, createVNode, unref, createBlock, normalizeStyle, withCtx, Transition } from "@poveste/vendors/vue";
1
+ import { defineComponent, ref, computed, watch, onMounted, resolveComponent, createElementBlock, openBlock, createCommentVNode, createElementVNode, createVNode, unref, createBlock, normalizeStyle, withCtx, Transition } from "@poveste/vendors/vue";
2
2
  import { useTitle } from "@poveste/vendors/vue-use";
3
3
  import { files, tree, onUpdate } from "virtual:$poveste-stories";
4
+ import "./components/app/AppActions.vue.js";
4
5
  import "./components/app/AppHeader.vue.js";
5
6
  import Breadcrumb from "./components/app/Breadcrumb.vue.js";
6
7
  import "./components/app/InitialLoading.vue.js";
8
+ import "./components/app/TopBar.vue.js";
7
9
  import BaseSplitPane from "./components/base/BaseSplitPane.vue.js";
8
10
  import "./components/command/CommandPromptsModal.vue.js";
11
+ import "./components/layout/LayoutModal.vue.js";
9
12
  import "./components/search/SearchModal.vue.js";
10
13
  import "./components/story/GenericMountStory.vue.js";
11
14
  import "./components/tree/StoryList.vue.js";
12
15
  import { useCommandStore } from "./stores/command.js";
16
+ import { useLayoutStore } from "./stores/layout.js";
13
17
  import { useStoryStore } from "./stores/story.js";
14
18
  import { povesteConfig } from "./util/config.js";
19
+ import { toggleDark } from "./util/dark.js";
15
20
  import { onKeyboardShortcut } from "./util/keyboard.js";
16
21
  import { mapFile } from "./util/mapping.js";
17
22
  import { isMobile } from "./util/responsive.js";
18
23
  import _sfc_main$1 from "./components/story/GenericMountStory.vue2.js";
19
24
  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";
25
+ import _sfc_main$3 from "./components/app/AppActions.vue2.js";
26
+ import _sfc_main$4 from "./components/app/TopBar.vue2.js";
27
+ import _sfc_main$5 from "./components/tree/StoryList.vue2.js";
28
+ import _sfc_main$6 from "./components/layout/LayoutModal.vue2.js";
29
+ import _sfc_main$7 from "./components/search/SearchModal.vue2.js";
30
+ import _sfc_main$8 from "./components/command/CommandPromptsModal.vue2.js";
31
+ import _sfc_main$9 from "./components/app/InitialLoading.vue2.js";
24
32
  "use strict";
25
- const _hoisted_1 = {
33
+ const _hoisted_1 = { class: "poveste-app-root ptw-h-full" };
34
+ const _hoisted_2 = {
26
35
  key: 0,
27
- class: "poveste-app htw-hidden"
36
+ class: "poveste-app ptw-hidden"
28
37
  };
29
- const _hoisted_2 = {
38
+ const _hoisted_3 = {
30
39
  key: 0,
31
- class: "htw-h-full htw-flex htw-flex-col htw-divide-y htw-divide-gray-100 dark:htw-divide-gray-800"
40
+ class: "ptw-h-full ptw-flex ptw-flex-col ptw-divide-y ptw-divide-gray-100 dark:ptw-divide-gray-800"
41
+ };
42
+ const _hoisted_4 = { class: "ptw-flex ptw-items-center ptw-gap-2 ptw-pr-4" };
43
+ const _hoisted_5 = { class: "ptw-flex ptw-flex-col ptw-h-full ptw-bg-gray-100 dark:ptw-bg-gray-750 __poveste-pane-shadow-from-right" };
44
+ const _hoisted_6 = { class: "ptw-flex ptw-flex-col ptw-h-full" };
45
+ const _hoisted_7 = {
46
+ key: 2,
47
+ class: "ptw-h-full ptw-flex ptw-flex-col"
32
48
  };
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
49
  const __default__ = {
35
50
  name: "PovesteApp"
36
51
  };
@@ -69,6 +84,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
69
84
  }));
70
85
  const loadSearch = ref(false);
71
86
  const isSearchOpen = ref(false);
87
+ const isLayoutOpen = ref(false);
72
88
  watch(isSearchOpen, (value) => {
73
89
  if (value) {
74
90
  loadSearch.value = true;
@@ -78,6 +94,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
78
94
  isSearchOpen.value = true;
79
95
  event.preventDefault();
80
96
  });
97
+ onKeyboardShortcut(["ctrl+shift+l", "meta+shift+l"], (event) => {
98
+ isLayoutOpen.value = !isLayoutOpen.value;
99
+ event.preventDefault();
100
+ });
101
+ onKeyboardShortcut(["ctrl+shift+d", "meta+shift+d"], (event) => {
102
+ event.preventDefault();
103
+ toggleDark();
104
+ });
81
105
  const loading = ref(false);
82
106
  if (import.meta.hot && !files.length) {
83
107
  loading.value = true;
@@ -90,75 +114,95 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
90
114
  mounted.value = true;
91
115
  });
92
116
  const commandStore = useCommandStore();
117
+ const layoutStore = useLayoutStore();
93
118
  return (_ctx, _cache) => {
94
119
  const _component_RouterView = resolveComponent("RouterView");
95
- return openBlock(), createElementBlock(Fragment, null, [
96
- unref(storyStore).currentStory ? (openBlock(), createElementBlock("div", _hoisted_1, [
120
+ return openBlock(), createElementBlock("div", _hoisted_1, [
121
+ unref(storyStore).currentStory ? (openBlock(), createElementBlock("div", _hoisted_2, [
97
122
  (openBlock(), createBlock(_sfc_main$1, {
98
123
  key: unref(storyStore).currentStory.id,
99
124
  story: unref(storyStore).currentStory
100
125
  }, null, 8, ["story"]))
101
126
  ])) : createCommentVNode("", true),
102
127
  createElementVNode("div", {
103
- class: "htw-h-screen htw-bg-white dark:htw-bg-gray-700 dark:htw-text-gray-100",
128
+ class: "ptw-h-screen ptw-bg-gray-100 dark:ptw-bg-gray-750 dark:ptw-text-gray-100",
104
129
  style: normalizeStyle({
105
130
  // Prevent flash of content
106
131
  opacity: mounted.value ? 1 : 0
107
132
  })
108
133
  }, [
109
- unref(isMobile) ? (openBlock(), createElementBlock("div", _hoisted_2, [
110
- createVNode(_sfc_main$2, {
111
- onSearch: _cache[0] || (_cache[0] = ($event) => isSearchOpen.value = true)
112
- }),
134
+ unref(isMobile) ? (openBlock(), createElementBlock("div", _hoisted_3, [
135
+ createElementVNode("div", _hoisted_4, [
136
+ createVNode(_sfc_main$2, { class: "ptw-flex-1" }),
137
+ createVNode(_sfc_main$3, {
138
+ class: "ptw-flex-none",
139
+ onLayout: _cache[0] || (_cache[0] = ($event) => isLayoutOpen.value = true),
140
+ onSearch: _cache[1] || (_cache[1] = ($event) => isSearchOpen.value = true)
141
+ })
142
+ ]),
113
143
  createVNode(Breadcrumb, {
114
144
  tree: tree$1.value,
115
145
  stories: stories.value
116
146
  }, null, 8, ["tree", "stories"]),
117
- createVNode(_component_RouterView, { class: "htw-grow" })
118
- ])) : (openBlock(), createBlock(BaseSplitPane, {
147
+ createVNode(_component_RouterView, { class: "ptw-grow" })
148
+ ])) : unref(layoutStore).settings.storyListVisible ? (openBlock(), createBlock(BaseSplitPane, {
119
149
  key: 1,
120
150
  "save-id": "main-horiz",
121
151
  min: 5,
122
152
  max: 50,
123
153
  "default-split": 15,
124
- class: "htw-h-full"
154
+ class: "ptw-h-full"
125
155
  }, {
126
156
  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, {
157
+ createElementVNode("div", _hoisted_5, [
158
+ createVNode(_sfc_main$2, { class: "ptw-flex-none" }),
159
+ createVNode(_sfc_main$5, {
133
160
  tree: tree$1.value,
134
161
  stories: stories.value,
135
- class: "htw-flex-1"
162
+ class: "ptw-flex-1"
136
163
  }, null, 8, ["tree", "stories"])
137
164
  ])
138
165
  ]),
139
166
  last: withCtx(() => [
140
- createVNode(_component_RouterView)
167
+ createElementVNode("div", _hoisted_6, [
168
+ createVNode(_sfc_main$4, {
169
+ onLayout: _cache[2] || (_cache[2] = ($event) => isLayoutOpen.value = true),
170
+ onSearch: _cache[3] || (_cache[3] = ($event) => isSearchOpen.value = true)
171
+ }),
172
+ createVNode(_component_RouterView, { class: "ptw-flex-1 ptw-min-h-0" })
173
+ ])
141
174
  ]),
142
175
  _: 1
143
- })),
144
- loadSearch.value ? (openBlock(), createBlock(_sfc_main$4, {
145
- key: 2,
176
+ })) : (openBlock(), createElementBlock("div", _hoisted_7, [
177
+ createVNode(_sfc_main$4, {
178
+ onLayout: _cache[4] || (_cache[4] = ($event) => isLayoutOpen.value = true),
179
+ onSearch: _cache[5] || (_cache[5] = ($event) => isSearchOpen.value = true)
180
+ }),
181
+ createVNode(_component_RouterView, { class: "ptw-flex-1 ptw-min-h-0" })
182
+ ])),
183
+ !unref(isMobile) ? (openBlock(), createBlock(_sfc_main$6, {
184
+ key: 3,
185
+ shown: isLayoutOpen.value,
186
+ onClose: _cache[6] || (_cache[6] = ($event) => isLayoutOpen.value = false)
187
+ }, null, 8, ["shown"])) : createCommentVNode("", true),
188
+ loadSearch.value ? (openBlock(), createBlock(_sfc_main$7, {
189
+ key: 4,
146
190
  shown: isSearchOpen.value,
147
- onClose: _cache[2] || (_cache[2] = ($event) => isSearchOpen.value = false)
191
+ onClose: _cache[7] || (_cache[7] = ($event) => isSearchOpen.value = false)
148
192
  }, null, 8, ["shown"])) : createCommentVNode("", true),
149
- _ctx.__POVESTE_DEV__ ? (openBlock(), createBlock(_sfc_main$5, {
150
- key: 3,
193
+ _ctx.__POVESTE_DEV__ ? (openBlock(), createBlock(_sfc_main$8, {
194
+ key: 5,
151
195
  shown: unref(commandStore).showPromptsModal,
152
- onClose: _cache[3] || (_cache[3] = ($event) => unref(commandStore).showPromptsModal = false)
196
+ onClose: _cache[8] || (_cache[8] = ($event) => unref(commandStore).showPromptsModal = false)
153
197
  }, null, 8, ["shown"])) : createCommentVNode("", true)
154
198
  ], 4),
155
199
  createVNode(Transition, { name: "__poveste-fade" }, {
156
200
  default: withCtx(() => [
157
- loading.value ? (openBlock(), createBlock(_sfc_main$6, { key: 0 })) : createCommentVNode("", true)
201
+ loading.value ? (openBlock(), createBlock(_sfc_main$9, { key: 0 })) : createCommentVNode("", true)
158
202
  ]),
159
203
  _: 1
160
204
  })
161
- ], 64);
205
+ ]);
162
206
  };
163
207
  }
164
208
  });
@@ -1,52 +1,63 @@
1
1
  @scope (:root) to (.__poveste-render-story:not(.__poveste-render-custom-controls)) {
2
- .bind-tree-margin[data-v-a12ff9e7] {
3
- margin-left: var(--v2411f6f6);
2
+ .bind-tree-margin[data-v-8b5cda46] {
3
+ margin-left: var(--v09275fa8);
4
4
  }
5
- .bind-icon-color[data-v-a12ff9e7] {
6
- color: var(--b2034f9c);
5
+ .bind-icon-color[data-v-8b5cda46] {
6
+ color: var(--v8627d038);
7
7
  }
8
8
  }
9
9
  @scope (:root) to (.__poveste-render-story:not(.__poveste-render-custom-controls)) {
10
- .bind-tree-padding[data-v-18510a3c] {
11
- padding-left: var(--v8d8133ee);
10
+ .bind-tree-padding[data-v-5a91a083] {
11
+ padding-left: var(--v32f93782);
12
12
  }
13
13
  }
14
14
  @scope (:root) to (.__poveste-render-story:not(.__poveste-render-custom-controls)) {
15
- .bind-icon-color[data-v-79fbe0df] {
16
- color: var(--v2ff034b2);
15
+ .bind-icon-color[data-v-b1aa3e2c] {
16
+ color: var(--v3db71ace);
17
17
  }
18
18
  }
19
19
  @scope (:root) to (.__poveste-render-story:not(.__poveste-render-custom-controls)) {
20
- .landscape > div > .dragger[data-v-6c89c62e] {
20
+ .bind-preview-bg[data-v-dcd1e9e2] {
21
+ background-color: var(--v2708c2ed);
22
+ color: var(--v4a6df57e);
23
+ }
24
+ }
25
+ @scope (:root) to (.__poveste-render-story:not(.__poveste-render-custom-controls)) {
26
+ .bind-icon-color[data-v-ced59894] {
27
+ color: var(--b13fe2b2);
28
+ }
29
+ }
30
+ @scope (:root) to (.__poveste-render-story:not(.__poveste-render-custom-controls)) {
31
+ .landscape > div > .dragger[data-v-02634f87] {
21
32
  width: .625rem;
22
33
  }
23
- .portrait > div > .dragger[data-v-6c89c62e] {
34
+ .portrait > div > .dragger[data-v-02634f87] {
24
35
  height: .625rem;
25
36
  }
26
- .landscape > div > .dragger.dragger-offset-before[data-v-6c89c62e] {
37
+ .landscape > div > .dragger.dragger-offset-before[data-v-02634f87] {
27
38
  right: 0;
28
39
  }
29
- .portrait > div > .dragger.dragger-offset-before[data-v-6c89c62e] {
40
+ .portrait > div > .dragger.dragger-offset-before[data-v-02634f87] {
30
41
  bottom: 0;
31
42
  }
32
- .landscape > div > .dragger.dragger-offset-center[data-v-6c89c62e] {
43
+ .landscape > div > .dragger.dragger-offset-center[data-v-02634f87] {
33
44
  right: -.3125rem;
34
45
  }
35
- .portrait > div > .dragger.dragger-offset-center[data-v-6c89c62e] {
46
+ .portrait > div > .dragger.dragger-offset-center[data-v-02634f87] {
36
47
  bottom: -.3125rem;
37
48
  }
38
- .landscape > div > .dragger.dragger-offset-after[data-v-6c89c62e] {
49
+ .landscape > div > .dragger.dragger-offset-after[data-v-02634f87] {
39
50
  right: -.625rem;
40
51
  }
41
- .portrait > div > .dragger.dragger-offset-after[data-v-6c89c62e] {
52
+ .portrait > div > .dragger.dragger-offset-after[data-v-02634f87] {
42
53
  bottom: -.625rem;
43
54
  }
44
55
  }
45
56
  @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;
57
+ .ptw-base-empty[data-v-176506c5]:not(.no-animation) {
58
+ animation: ptw-base-empty-176506c5 .15s .2s both;
48
59
  }
49
- @keyframes htw-base-empty-1adb09aa {
60
+ @keyframes ptw-base-empty-176506c5 {
50
61
  0% {
51
62
  opacity: 0;
52
63
  }
@@ -56,52 +67,46 @@
56
67
  }
57
68
  }
58
69
  @scope (:root) to (.__poveste-render-story:not(.__poveste-render-custom-controls)) {
59
- .__poveste-code-placeholder[data-v-82d96c7f] {
70
+ .__poveste-code-placeholder[data-v-5ee6b7f7] {
60
71
  color: inherit;
61
72
  font-size: inherit;
62
73
  }
63
74
  }
64
75
  @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);
76
+ .__poveste-hatched-pattern[data-v-c1be54fa] {
77
+ background: repeating-linear-gradient(135deg,
78
+ transparent 0px,
79
+ transparent 32px,
80
+ currentColor 32px,
81
+ currentColor 64px);
68
82
  }
69
83
  }
70
84
  @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);
85
+ .bind-preview-bg[data-v-996dc779] {
86
+ background-color: var(--v2ebc4fb8);
76
87
  }
77
88
  }
78
89
  @scope (:root) to (.__poveste-render-story:not(.__poveste-render-custom-controls)) {
79
- .bind-icon-color[data-v-e7e8e2de] {
80
- color: var(--v6ef859d8);
81
- }
90
+ .bind-icon-color[data-v-42097cb5] {
91
+ color: var(--v087cd7b6);
82
92
  }
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);
93
+ .bind-preview-bg[data-v-42097cb5] {
94
+ background-color: var(--v6d9d16a6);
90
95
  }
91
96
  }
92
97
  @scope (:root) to (.__poveste-render-story:not(.__poveste-render-custom-controls)) {
93
- .bind-preview-bg[data-v-275bf3ef] {
94
- background-color: var(--v30eb5fc0);
98
+ .bind-icon-color[data-v-363b3d4f] {
99
+ color: var(--v3223e976);
95
100
  }
96
101
  }
97
102
  @scope (:root) to (.__poveste-render-story:not(.__poveste-render-custom-controls)) {
98
- .bind-icon-color[data-v-b675426a] {
99
- color: var(--v5162df32);
103
+ .bind-icon-color[data-v-ca14569e] {
104
+ color: var(--fcfb0a0c);
100
105
  }
101
106
  }
102
107
  @scope (:root) to (.__poveste-render-story:not(.__poveste-render-custom-controls)) {
103
- .bind-icon-color[data-v-1d298079] {
104
- color: var(--v4009a800);
108
+ .bind-icon-color[data-v-14c2dacd] {
109
+ color: var(--e0c29708);
105
110
  }
106
111
  }
107
112
  @scope (:root) to (.__poveste-render-story:not(.__poveste-render-custom-controls)) {
@@ -110,7 +115,7 @@ img.colorize-black[data-v-f632abed] {
110
115
  }
111
116
  }
112
117
  @scope (:root) to (.__poveste-render-story:not(.__poveste-render-custom-controls)) {
113
- .bind-icon-color[data-v-0c821aae] {
114
- color: var(--v12a213a0);
118
+ .bind-icon-color[data-v-81e4dd33] {
119
+ color: var(--dacfd852);
115
120
  }
116
121
  }
@@ -5,9 +5,9 @@ import { customLogos, povesteConfig } from "../util/config.js";
5
5
  import "./app/HomeCounter.vue.js";
6
6
  import _sfc_main$1 from "./app/HomeCounter.vue2.js";
7
7
  "use strict";
8
- const _hoisted_1 = { class: "poveste-home-view htw-flex md:htw-flex-col htw-gap-12 htw-items-center htw-justify-center htw-h-full" };
8
+ const _hoisted_1 = { class: "poveste-home-view ptw-flex md:ptw-flex-col ptw-gap-12 ptw-items-center ptw-justify-center ptw-h-full" };
9
9
  const _hoisted_2 = ["src"];
10
- const _hoisted_3 = { class: "htw-flex !md:htw-flex-col htw-flex-wrap htw-justify-evenly htw-gap-2 htw-px-4 htw-py-2 htw-bg-gray-100 dark:htw-bg-gray-750 htw-rounded htw-border htw-border-gray-500/30" };
10
+ const _hoisted_3 = { class: "ptw-flex !md:ptw-flex-col ptw-flex-wrap ptw-justify-evenly ptw-gap-2 ptw-px-4 ptw-py-2 ptw-bg-gray-100 dark:ptw-bg-gray-750 ptw-rounded ptw-border ptw-border-gray-500/30" };
11
11
  const _sfc_main = /* @__PURE__ */ defineComponent({
12
12
  __name: "HomeView",
13
13
  setup(__props) {
@@ -38,7 +38,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
38
38
  createElementVNode("img", {
39
39
  src: logoUrl.value,
40
40
  alt: "Logo",
41
- class: "htw-w-64 htw-h-64 htw-opacity-25 htw-mb-8 htw-hidden md:htw-block"
41
+ class: "ptw-w-64 ptw-h-64 ptw-opacity-25 ptw-mb-8 ptw-hidden md:ptw-block"
42
42
  }, null, 8, _hoisted_2),
43
43
  createElementVNode("div", _hoisted_3, [
44
44
  createVNode(_sfc_main$1, {
@@ -0,0 +1,5 @@
1
+ import _sfc_main from "./AppActions.vue2.js";
2
+ "use strict";
3
+ export {
4
+ _sfc_main as default
5
+ };
@@ -0,0 +1,76 @@
1
+ import { defineComponent, computed, resolveDirective, createBlock, openBlock, withCtx, withDirectives, createCommentVNode, unref, createVNode } from "@poveste/vendors/vue";
2
+ import { Icon } from "@poveste/vendors/iconify";
3
+ import { povesteConfig } from "../../util/config.js";
4
+ import { isDark, toggleDark } from "../../util/dark.js";
5
+ import { isMobile } from "../../util/responsive.js";
6
+ import { makeTooltip } from "../../util/tooltip.js";
7
+ import TopBarChip from "./TopBarChip.vue.js";
8
+ import TopBarChipItem from "./TopBarChipItem.vue.js";
9
+ "use strict";
10
+ const _sfc_main = /* @__PURE__ */ defineComponent({
11
+ __name: "AppActions",
12
+ emits: {
13
+ search: () => true,
14
+ layout: () => true
15
+ },
16
+ setup(__props) {
17
+ const themeIcon = computed(() => {
18
+ return isDark.value ? "carbon:moon" : "carbon:sun";
19
+ });
20
+ return (_ctx, _cache) => {
21
+ const _directive_tooltip = resolveDirective("tooltip");
22
+ return openBlock(), createBlock(TopBarChip, null, {
23
+ default: withCtx(() => [
24
+ !unref(isMobile) ? withDirectives((openBlock(), createBlock(TopBarChipItem, {
25
+ key: 0,
26
+ "aria-label": "Open layout customization",
27
+ "data-test-id": "layout-btn",
28
+ onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("layout"))
29
+ }, {
30
+ default: withCtx(() => [
31
+ createVNode(unref(Icon), {
32
+ icon: "carbon:panel-expansion",
33
+ class: "ptw-w-4 ptw-h-4"
34
+ })
35
+ ]),
36
+ _: 1
37
+ })), [
38
+ [_directive_tooltip, unref(makeTooltip)("Layout", ({ isMac }) => isMac ? "meta+shift+l" : "ctrl+shift+l")]
39
+ ]) : createCommentVNode("", true),
40
+ withDirectives((openBlock(), createBlock(TopBarChipItem, {
41
+ "data-test-id": "search-btn",
42
+ onClick: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("search"))
43
+ }, {
44
+ default: withCtx(() => [
45
+ createVNode(unref(Icon), {
46
+ icon: "carbon:search",
47
+ class: "ptw-w-4 ptw-h-4"
48
+ })
49
+ ]),
50
+ _: 1
51
+ })), [
52
+ [_directive_tooltip, unref(makeTooltip)("Search", ({ isMac }) => isMac ? "meta+k" : "ctrl+k")]
53
+ ]),
54
+ !unref(povesteConfig).theme.hideColorSchemeSwitch ? withDirectives((openBlock(), createBlock(TopBarChipItem, {
55
+ key: 1,
56
+ onClick: _cache[2] || (_cache[2] = ($event) => unref(toggleDark)())
57
+ }, {
58
+ default: withCtx(() => [
59
+ createVNode(unref(Icon), {
60
+ icon: themeIcon.value,
61
+ class: "ptw-w-4 ptw-h-4"
62
+ }, null, 8, ["icon"])
63
+ ]),
64
+ _: 1
65
+ })), [
66
+ [_directive_tooltip, unref(makeTooltip)("Toggle dark mode", ({ isMac }) => isMac ? "meta+shift+d" : "ctrl+shift+d")]
67
+ ]) : createCommentVNode("", true)
68
+ ]),
69
+ _: 1
70
+ });
71
+ };
72
+ }
73
+ });
74
+ export {
75
+ _sfc_main as default
76
+ };
@@ -1,66 +1,24 @@
1
- import { defineComponent, computed, resolveDirective, createElementBlock, openBlock, createElementVNode, unref, createVNode, withDirectives, createCommentVNode } from "@poveste/vendors/vue";
2
- import { Icon } from "@poveste/vendors/iconify";
1
+ import { defineComponent, createElementBlock, openBlock, createElementVNode, unref, createVNode } from "@poveste/vendors/vue";
3
2
  import { povesteConfig } from "../../util/config.js";
4
- import { isDark, toggleDark } from "../../util/dark.js";
5
- import { onKeyboardShortcut } from "../../util/keyboard.js";
6
- import { makeTooltip } from "../../util/tooltip.js";
7
3
  import "./AppLogo.vue.js";
8
4
  import _sfc_main$1 from "./AppLogo.vue2.js";
9
5
  "use strict";
10
- const _hoisted_1 = { class: "poveste-app-header htw-px-4 htw-h-16 htw-flex htw-items-center htw-gap-2" };
11
- const _hoisted_2 = { class: "htw-py-3 sm:htw-py-4 htw-flex-1 htw-h-full htw-flex htw-items-center htw-pr-2" };
6
+ const _hoisted_1 = { class: "poveste-app-header ptw-px-4 ptw-h-14 ptw-flex ptw-items-center ptw-gap-2" };
7
+ const _hoisted_2 = { class: "ptw-py-3 sm:ptw-py-4 ptw-flex-1 ptw-h-full ptw-flex ptw-items-center ptw-pr-2" };
12
8
  const _hoisted_3 = ["href"];
13
- const _hoisted_4 = { class: "htw-ml-auto htw-flex-none htw-flex" };
14
9
  const _sfc_main = /* @__PURE__ */ defineComponent({
15
10
  __name: "AppHeader",
16
- emits: {
17
- search: () => true
18
- },
19
11
  setup(__props) {
20
- const themeIcon = computed(() => {
21
- return isDark.value ? "carbon:moon" : "carbon:sun";
22
- });
23
- onKeyboardShortcut(["ctrl+shift+d", "meta+shift+d"], (event) => {
24
- event.preventDefault();
25
- toggleDark();
26
- });
27
12
  return (_ctx, _cache) => {
28
- const _directive_tooltip = resolveDirective("tooltip");
29
13
  return openBlock(), createElementBlock("div", _hoisted_1, [
30
14
  createElementVNode("div", _hoisted_2, [
31
15
  createElementVNode("a", {
32
16
  href: unref(povesteConfig).theme?.logoHref,
33
17
  target: "_blank",
34
- class: "htw-w-full htw-h-full htw-flex htw-items-center"
18
+ class: "ptw-w-full ptw-h-full ptw-flex ptw-items-center"
35
19
  }, [
36
- createVNode(_sfc_main$1, { class: "htw-max-w-full htw-max-h-full" })
20
+ createVNode(_sfc_main$1, { class: "ptw-max-w-full ptw-max-h-full" })
37
21
  ], 8, _hoisted_3)
38
- ]),
39
- createElementVNode("div", _hoisted_4, [
40
- withDirectives((openBlock(), createElementBlock("a", {
41
- class: "htw-p-2 sm:htw-p-1 hover:htw-text-primary-500 dark:hover:htw-text-primary-400 htw-cursor-pointer htw-text-gray-900 dark:htw-text-gray-100",
42
- "data-test-id": "search-btn",
43
- onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("search"))
44
- }, [
45
- createVNode(unref(Icon), {
46
- icon: "carbon:search",
47
- class: "htw-w-6 htw-h-6 sm:htw-w-4 sm:htw-h-4"
48
- })
49
- ])), [
50
- [_directive_tooltip, unref(makeTooltip)("Search", ({ isMac }) => isMac ? "meta+k" : "ctrl+k")]
51
- ]),
52
- !unref(povesteConfig).theme.hideColorSchemeSwitch ? withDirectives((openBlock(), createElementBlock("a", {
53
- key: 0,
54
- class: "htw-p-2 sm:htw-p-1 hover:htw-text-primary-500 dark:hover:htw-text-primary-400 htw-cursor-pointer htw-text-gray-900 dark:htw-text-gray-100",
55
- onClick: _cache[1] || (_cache[1] = ($event) => unref(toggleDark)())
56
- }, [
57
- createVNode(unref(Icon), {
58
- icon: themeIcon.value,
59
- class: "htw-w-6 htw-h-6 sm:htw-w-4 sm:htw-h-4"
60
- }, null, 8, ["icon"])
61
- ])), [
62
- [_directive_tooltip, unref(makeTooltip)("Toggle dark mode", ({ isMac }) => isMac ? "meta+shift+d" : "ctrl+shift+d")]
63
- ]) : createCommentVNode("", true)
64
22
  ])
65
23
  ]);
66
24
  };
@@ -2,7 +2,7 @@ import _sfc_main from "./Breadcrumb.vue2.js";
2
2
  /* empty css */
3
3
  import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
4
4
  "use strict";
5
- const Breadcrumb = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-79fbe0df"]]);
5
+ const Breadcrumb = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b1aa3e2c"]]);
6
6
  export {
7
7
  Breadcrumb as default
8
8
  };