@histoire/app 0.9.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 (210) hide show
  1. package/LICENSE +21 -0
  2. package/dist/app/assets/histoire-text-dark.svg +89 -0
  3. package/dist/app/assets/histoire-text.svg +89 -0
  4. package/dist/app/assets/histoire.svg +51 -0
  5. package/dist/app/style/floating-vue.pcss +34 -0
  6. package/dist/app/style/main.pcss +86 -0
  7. package/dist/app/style/sandbox.css +19 -0
  8. package/dist/app/style/transitions.pcss +51 -0
  9. package/dist/bundle-index.js +1 -0
  10. package/dist/bundle-main.js +5 -0
  11. package/dist/bundle-sandbox.js +2 -0
  12. package/dist/bundled/App.js +148 -0
  13. package/dist/bundled/_virtual/plugin-vue_export-helper.js +8 -0
  14. package/dist/bundled/api.js +1 -0
  15. package/dist/bundled/assets/histoire-text-dark.js +2 -0
  16. package/dist/bundled/assets/histoire-text.js +2 -0
  17. package/dist/bundled/assets/histoire.js +2 -0
  18. package/dist/bundled/components/HomeView.js +24 -0
  19. package/dist/bundled/components/app/AppHeader.js +67 -0
  20. package/dist/bundled/components/app/AppLogo.js +26 -0
  21. package/dist/bundled/components/app/Breadcrumb.js +95 -0
  22. package/dist/bundled/components/app/Breadcrumb.vue_vue_type_style_index_0_scoped_true_lang.js +2 -0
  23. package/dist/bundled/components/app/InitialLoading.js +48 -0
  24. package/dist/bundled/components/app/MobileOverlay.js +41 -0
  25. package/dist/bundled/components/base/BaseCheckbox.js +75 -0
  26. package/dist/bundled/components/base/BaseEmpty.js +13 -0
  27. package/dist/bundled/components/base/BaseEmpty.vue_vue_type_style_index_0_scoped_true_lang.js +2 -0
  28. package/dist/bundled/components/base/BaseListItemLink.js +50 -0
  29. package/dist/bundled/components/base/BaseOverflowMenu.js +97 -0
  30. package/dist/bundled/components/base/BaseOverflowTab.js +45 -0
  31. package/dist/bundled/components/base/BaseSelect.js +69 -0
  32. package/dist/bundled/components/base/BaseSplitPane.js +184 -0
  33. package/dist/bundled/components/base/BaseSplitPane.vue_vue_type_style_index_0_scoped_true_lang.js +2 -0
  34. package/dist/bundled/components/base/BaseTab.js +45 -0
  35. package/dist/bundled/components/misc/CheckerboardPattern.js +41 -0
  36. package/dist/bundled/components/misc/HatchedPattern.js +11 -0
  37. package/dist/bundled/components/misc/HatchedPattern.vue_vue_type_style_index_0_scoped_true_lang.js +2 -0
  38. package/dist/bundled/components/panel/ControlsComponentPropItem.js +98 -0
  39. package/dist/bundled/components/panel/ControlsComponentProps.js +42 -0
  40. package/dist/bundled/components/panel/PaneTabs.js +112 -0
  41. package/dist/bundled/components/panel/StatePresets.js +190 -0
  42. package/dist/bundled/components/panel/StoryControls.js +66 -0
  43. package/dist/bundled/components/panel/StoryDocs.js +57 -0
  44. package/dist/bundled/components/panel/StoryEvent.js +56 -0
  45. package/dist/bundled/components/panel/StoryEvents.js +49 -0
  46. package/dist/bundled/components/panel/StorySidePanel.js +72 -0
  47. package/dist/bundled/components/panel/StorySourceCode.js +119 -0
  48. package/dist/bundled/components/panel/StorySourceCode.vue_vue_type_style_index_0_scoped_true_lang.js +2 -0
  49. package/dist/bundled/components/search/SearchItem.js +113 -0
  50. package/dist/bundled/components/search/SearchItem.vue_vue_type_style_index_0_scoped_true_lang.js +2 -0
  51. package/dist/bundled/components/search/SearchLoading.js +19 -0
  52. package/dist/bundled/components/search/SearchModal.js +46 -0
  53. package/dist/bundled/components/search/SearchPane.js +263 -0
  54. package/dist/bundled/components/search/search-docs-data.js +7 -0
  55. package/dist/bundled/components/search/search-title-data.js +7 -0
  56. package/dist/bundled/components/story/GenericMountStory.js +27 -0
  57. package/dist/bundled/components/story/GenericRenderStory.js +27 -0
  58. package/dist/bundled/components/story/StoryResponsivePreview.js +180 -0
  59. package/dist/bundled/components/story/StoryResponsivePreview.vue_vue_type_style_index_0_scoped_true_lang.js +2 -0
  60. package/dist/bundled/components/story/StoryVariantGrid.js +94 -0
  61. package/dist/bundled/components/story/StoryVariantGridItem.js +106 -0
  62. package/dist/bundled/components/story/StoryVariantGridItem.vue_vue_type_style_index_0_scoped_true_lang.js +2 -0
  63. package/dist/bundled/components/story/StoryVariantListItem.js +58 -0
  64. package/dist/bundled/components/story/StoryVariantListItem.vue_vue_type_style_index_0_scoped_true_lang.js +2 -0
  65. package/dist/bundled/components/story/StoryVariantSingle.js +115 -0
  66. package/dist/bundled/components/story/StoryVariantSingle.vue_vue_type_style_index_0_scoped_true_lang.js +2 -0
  67. package/dist/bundled/components/story/StoryVariantSinglePreviewNative.js +43 -0
  68. package/dist/bundled/components/story/StoryVariantSinglePreviewRemote.js +119 -0
  69. package/dist/bundled/components/story/StoryVariantSingleView.js +49 -0
  70. package/dist/bundled/components/story/StoryView.js +90 -0
  71. package/dist/bundled/components/story/StoryViewer.js +57 -0
  72. package/dist/bundled/components/story/StoryViewer.vue_vue_type_style_index_0_scoped_true_lang.js +2 -0
  73. package/dist/bundled/components/toolbar/StoryVariantBackground.js +85 -0
  74. package/dist/bundled/components/toolbar/StoryVariantBackground.vue_vue_type_style_index_0_scoped_true_lang.js +2 -0
  75. package/dist/bundled/components/toolbar/StoryVariantNewTab.js +33 -0
  76. package/dist/bundled/components/toolbar/StoryVariantResponsiveSize.js +129 -0
  77. package/dist/bundled/components/toolbar/StoryVariantTitle.js +24 -0
  78. package/dist/bundled/components/tree/StoryGroup.js +74 -0
  79. package/dist/bundled/components/tree/StoryList.js +37 -0
  80. package/dist/bundled/components/tree/StoryListFolder.js +89 -0
  81. package/dist/bundled/components/tree/StoryListFolder.vue_vue_type_style_index_0_scoped_true_lang.js +2 -0
  82. package/dist/bundled/components/tree/StoryListItem.js +72 -0
  83. package/dist/bundled/components/tree/StoryListItem.vue_vue_type_style_index_0_scoped_true_lang.js +2 -0
  84. package/dist/bundled/index.js +29 -0
  85. package/dist/bundled/node_modules/.pnpm/flexsearch@0.7.21/node_modules/flexsearch/dist/module/common.js +40 -0
  86. package/dist/bundled/node_modules/.pnpm/flexsearch@0.7.21/node_modules/flexsearch/dist/module/lang/en.js +5 -0
  87. package/dist/bundled/node_modules/.pnpm/flexsearch@0.7.21/node_modules/flexsearch/dist/module/lang/latin/advanced.js +11 -0
  88. package/dist/bundled/node_modules/.pnpm/flexsearch@0.7.21/node_modules/flexsearch/dist/module/lang/latin/balance.js +26 -0
  89. package/dist/bundled/node_modules/.pnpm/flexsearch@0.7.21/node_modules/flexsearch/dist/module/lang/latin/simple.js +10 -0
  90. package/dist/bundled/node_modules/.pnpm/flexsearch@0.7.21/node_modules/flexsearch/dist/module/lang.js +50 -0
  91. package/dist/bundled/node_modules/.pnpm/flexsearch@0.7.21/node_modules/flexsearch/dist/module/type.js +8 -0
  92. package/dist/bundled/router.js +28 -0
  93. package/dist/bundled/sandbox.js +88 -0
  94. package/dist/bundled/stores/events.js +29 -0
  95. package/dist/bundled/stores/folder.js +49 -0
  96. package/dist/bundled/stores/preview-settings.js +15 -0
  97. package/dist/bundled/stores/story.js +43 -0
  98. package/dist/bundled/style.css +102 -0
  99. package/dist/bundled/util/config.js +4 -0
  100. package/dist/bundled/util/const.js +5 -0
  101. package/dist/bundled/util/dark.js +4 -0
  102. package/dist/bundled/util/env.js +2 -0
  103. package/dist/bundled/util/events.js +32 -0
  104. package/dist/bundled/util/keyboard.js +84 -0
  105. package/dist/bundled/util/mapping.js +65 -0
  106. package/dist/bundled/util/preview-settings.js +6 -0
  107. package/dist/bundled/util/responsive.js +3 -0
  108. package/dist/bundled/util/sandbox.js +8 -0
  109. package/dist/bundled/util/scroll.js +28 -0
  110. package/dist/bundled/util/state.js +31 -0
  111. package/dist/bundled/util/tooltip.js +12 -0
  112. package/dist/bundled/util/variant.js +18 -0
  113. package/dist/style.css +2697 -0
  114. package/package.json +57 -0
  115. package/postcss.config.cjs +8 -0
  116. package/scripts/copy.mjs +12 -0
  117. package/scripts/watchAndCopy.mjs +15 -0
  118. package/src/app/App.vue +162 -0
  119. package/src/app/api.ts +1 -0
  120. package/src/app/assets/histoire-text-dark.svg +89 -0
  121. package/src/app/assets/histoire-text.svg +89 -0
  122. package/src/app/assets/histoire.svg +51 -0
  123. package/src/app/components/HomeView.vue +17 -0
  124. package/src/app/components/app/AppHeader.vue +64 -0
  125. package/src/app/components/app/AppLogo.vue +24 -0
  126. package/src/app/components/app/Breadcrumb.vue +98 -0
  127. package/src/app/components/app/InitialLoading.vue +44 -0
  128. package/src/app/components/app/MobileOverlay.vue +33 -0
  129. package/src/app/components/base/BaseCheckbox.vue +77 -0
  130. package/src/app/components/base/BaseCopyIcon.vue +34 -0
  131. package/src/app/components/base/BaseEmpty.vue +21 -0
  132. package/src/app/components/base/BaseListItemLink.vue +55 -0
  133. package/src/app/components/base/BaseOverflowMenu.vue +119 -0
  134. package/src/app/components/base/BaseOverflowTab.vue +46 -0
  135. package/src/app/components/base/BaseSelect.vue +72 -0
  136. package/src/app/components/base/BaseSplitPane.vue +240 -0
  137. package/src/app/components/base/BaseTab.vue +46 -0
  138. package/src/app/components/misc/CheckerboardPattern.vue +32 -0
  139. package/src/app/components/misc/HatchedPattern.vue +13 -0
  140. package/src/app/components/panel/ControlsComponentPropItem.vue +103 -0
  141. package/src/app/components/panel/ControlsComponentProps.vue +34 -0
  142. package/src/app/components/panel/PaneTabs.vue +89 -0
  143. package/src/app/components/panel/StatePresets.vue +196 -0
  144. package/src/app/components/panel/StoryControls.vue +68 -0
  145. package/src/app/components/panel/StoryDocs.vue +60 -0
  146. package/src/app/components/panel/StoryEvent.vue +54 -0
  147. package/src/app/components/panel/StoryEvents.vue +45 -0
  148. package/src/app/components/panel/StorySidePanel.vue +70 -0
  149. package/src/app/components/panel/StorySourceCode.vue +126 -0
  150. package/src/app/components/search/SearchItem.vue +110 -0
  151. package/src/app/components/search/SearchLoading.vue +16 -0
  152. package/src/app/components/search/SearchModal.vue +43 -0
  153. package/src/app/components/search/SearchPane.vue +293 -0
  154. package/src/app/components/search/search-docs-data.ts +10 -0
  155. package/src/app/components/search/search-title-data.ts +10 -0
  156. package/src/app/components/search/types.ts +4 -0
  157. package/src/app/components/story/GenericMountStory.vue +28 -0
  158. package/src/app/components/story/GenericRenderStory.vue +29 -0
  159. package/src/app/components/story/StoryResponsivePreview.vue +204 -0
  160. package/src/app/components/story/StoryVariantGrid.vue +112 -0
  161. package/src/app/components/story/StoryVariantGridItem.vue +110 -0
  162. package/src/app/components/story/StoryVariantListItem.vue +50 -0
  163. package/src/app/components/story/StoryVariantSingle.vue +105 -0
  164. package/src/app/components/story/StoryVariantSinglePreviewNative.vue +42 -0
  165. package/src/app/components/story/StoryVariantSinglePreviewRemote.vue +139 -0
  166. package/src/app/components/story/StoryVariantSingleView.vue +52 -0
  167. package/src/app/components/story/StoryView.vue +96 -0
  168. package/src/app/components/story/StoryViewer.vue +53 -0
  169. package/src/app/components/toolbar/StoryVariantBackground.vue +67 -0
  170. package/src/app/components/toolbar/StoryVariantNewTab.vue +29 -0
  171. package/src/app/components/toolbar/StoryVariantResponsiveSize.vue +82 -0
  172. package/src/app/components/toolbar/StoryVariantTitle.vue +21 -0
  173. package/src/app/components/tree/StoryGroup.vue +75 -0
  174. package/src/app/components/tree/StoryList.vue +35 -0
  175. package/src/app/components/tree/StoryListFolder.vue +89 -0
  176. package/src/app/components/tree/StoryListItem.vue +71 -0
  177. package/src/app/index.ts +30 -0
  178. package/src/app/router.ts +29 -0
  179. package/src/app/sandbox.ts +96 -0
  180. package/src/app/stores/events.ts +36 -0
  181. package/src/app/stores/folder.ts +59 -0
  182. package/src/app/stores/preview-settings.ts +17 -0
  183. package/src/app/stores/story.ts +47 -0
  184. package/src/app/style/floating-vue.pcss +34 -0
  185. package/src/app/style/main.pcss +86 -0
  186. package/src/app/style/sandbox.css +19 -0
  187. package/src/app/style/transitions.pcss +51 -0
  188. package/src/app/types.ts +46 -0
  189. package/src/app/util/config.ts +6 -0
  190. package/src/app/util/const.ts +4 -0
  191. package/src/app/util/dark.ts +4 -0
  192. package/src/app/util/env.ts +1 -0
  193. package/src/app/util/events.ts +30 -0
  194. package/src/app/util/keyboard.ts +99 -0
  195. package/src/app/util/mapping.ts +76 -0
  196. package/src/app/util/preview-settings.ts +8 -0
  197. package/src/app/util/responsive.ts +3 -0
  198. package/src/app/util/sandbox.ts +10 -0
  199. package/src/app/util/scroll.ts +31 -0
  200. package/src/app/util/state.ts +37 -0
  201. package/src/app/util/tooltip.ts +13 -0
  202. package/src/app/util/variant.ts +20 -0
  203. package/src/bundle-index.js +1 -0
  204. package/src/bundle-main.js +5 -0
  205. package/src/bundle-sandbox.js +2 -0
  206. package/src/index.ts +1 -0
  207. package/src/shim.d.ts +7 -0
  208. package/tailwind.config.cjs +126 -0
  209. package/tsconfig.json +54 -0
  210. package/vite.config.ts +87 -0
@@ -0,0 +1,2 @@
1
+ var HistoireLogoLight = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgoKPHN2ZwogICB3aWR0aD0iMTUzNiIKICAgaGVpZ2h0PSI1MTIiCiAgIHZpZXdCb3g9IjAgMCAxNTM2IDUxMiIKICAgdmVyc2lvbj0iMS4xIgogICBpZD0ic3ZnNSIKICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB4bWxuczpzdmc9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8ZGVmcwogICAgIGlkPSJkZWZzMiIgLz4KICA8ZwogICAgIGlkPSJsYXllcjEiPgogICAgPHJlY3QKICAgICAgIHN0eWxlPSJvcGFjaXR5OjAuNTtmaWxsOiMzNGQzOTk7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlLXdpZHRoOjEuMDAzNzUiCiAgICAgICBpZD0icmVjdDEzNzIiCiAgICAgICB3aWR0aD0iMzE0LjMwOTIzIgogICAgICAgaGVpZ2h0PSI0MDYuNj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ggODguNzAxMTcgeiBNIDI2Mi44MzAwOCwyMzAuMDUwNzggMjE2LDQwOC4wMTc1OCAzNTEuNTMxMjUsMjMwLjA1MDc4IFoiCiAgICAgICB0cmFuc2Zvcm09InJvdGF0ZSgtNC4xNTY1NTMsMjU2LDI1Ni4wMDY5MSkiIC8+CiAgPC9nPgo8L3N2Zz4K";
2
+ export { HistoireLogoLight as default };
@@ -0,0 +1,2 @@
1
+ var HistoireLogo = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgoKPHN2ZwogICB3aWR0aD0iNTEyIgogICBoZWlnaHQ9IjUxMiIKICAgdmlld0JveD0iMCAwIDUxMiA1MTIiCiAgIHZlcnNpb249IjEuMSIKICAgaWQ9InN2ZzUiCiAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgeG1sbnM6c3ZnPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPGRlZnMKICAgICBpZD0iZGVmczIiIC8+CiAgPGcKICAgICBpZD0ibGF5ZXIxIj4KICAgIDxyZWN0CiAgICAgICBzdHlsZT0ib3BhY2l0eTowLjU7ZmlsbDojMzRkMzk5O2ZpbGwtb3BhY2l0eToxO3N0cm9rZS13aWR0aDoxLjAwMzc1IgogICAgICAgaWQ9InJlY3QxMzcyIgogICAgICAgd2lkdGg9IjMxNC4zMDkyMyIKICAgICAgIGhlaWdodD0iNDA2LjYwOTAxIgogICAgICAgeD0iLTI2LjU2NTA2MyIKICAgICAgIHk9IjEzNC43NTA3OSIKICAgICAgIHRyYW5zZm9ybT0icm90YXRlKC0yMy44MjEyNjIpIgogICAgICAgcnk9IjgiIC8+CiAgICA8cmVjdAogICAgICAgc3R5bGU9ImZpbGw6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2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICBkPSJtIDI5NiwxMDMuOTgyNDIgLTEzNS41MzEyNSwxNzcuOTY2OCBoIDg4LjcwMTE3IHogTSAyNjIuODMwMDgsMjMwLjA1MDc4IDIxNiw0MDguMDE3NTggMzUxLjUzMTI1LDIzMC4wNTA3OCBaIgogICAgICAgdHJhbnNmb3JtPSJyb3RhdGUoLTQuMTU2NTUzLDI1NiwyNTYuMDA2OTEpIiAvPgogIDwvZz4KPC9zdmc+Cg==";
2
+ export { HistoireLogo as default };
@@ -0,0 +1,24 @@
1
+ import { defineComponent, computed, openBlock, createElementBlock, createElementVNode, unref } from "@histoire/vendors/vue";
2
+ import { histoireConfig, customLogos } from "../util/config.js";
3
+ import HistoireLogo from "../assets/histoire.js";
4
+ const _hoisted_1 = { class: "htw-flex htw-items-center htw-justify-center htw-h-full" };
5
+ const _hoisted_2 = ["src"];
6
+ const _sfc_main = /* @__PURE__ */ defineComponent({
7
+ __name: "HomeView",
8
+ setup(__props) {
9
+ const logoUrl = computed(() => {
10
+ var _a, _b;
11
+ return ((_b = (_a = histoireConfig.theme) == null ? void 0 : _a.logo) == null ? void 0 : _b.square) ? customLogos.square : HistoireLogo;
12
+ });
13
+ return (_ctx, _cache) => {
14
+ return openBlock(), createElementBlock("div", _hoisted_1, [
15
+ createElementVNode("img", {
16
+ src: unref(logoUrl),
17
+ alt: "Logo",
18
+ class: "htw-w-64 htw-h-64 htw-opacity-25"
19
+ }, null, 8, _hoisted_2)
20
+ ]);
21
+ };
22
+ }
23
+ });
24
+ export { _sfc_main as default };
@@ -0,0 +1,67 @@
1
+ import { defineComponent, computed, resolveDirective, openBlock, createElementBlock, createElementVNode, unref, createVNode, withDirectives } from "@histoire/vendors/vue";
2
+ import { Icon } from "@histoire/vendors/iconify";
3
+ import _sfc_main$1 from "./AppLogo.js";
4
+ import { isDark, toggleDark } from "../../util/dark.js";
5
+ import { onKeyboardShortcut } from "../../util/keyboard.js";
6
+ import { makeTooltip } from "../../util/tooltip.js";
7
+ import { histoireConfig } from "../../util/config.js";
8
+ const _hoisted_1 = { class: "htw-px-4 htw-h-16 htw-flex htw-items-center htw-gap-2" };
9
+ 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" };
10
+ const _hoisted_3 = ["href"];
11
+ const _hoisted_4 = { class: "htw-ml-auto htw-flex-none htw-flex" };
12
+ const _sfc_main = /* @__PURE__ */ defineComponent({
13
+ __name: "AppHeader",
14
+ emits: {
15
+ search: () => true
16
+ },
17
+ setup(__props) {
18
+ const themeIcon = computed(() => {
19
+ return isDark.value ? "carbon:moon" : "carbon:sun";
20
+ });
21
+ onKeyboardShortcut(["ctrl+shift+d", "meta+shift+d"], (event) => {
22
+ event.preventDefault();
23
+ toggleDark();
24
+ });
25
+ return (_ctx, _cache) => {
26
+ var _a;
27
+ const _directive_tooltip = resolveDirective("tooltip");
28
+ return openBlock(), createElementBlock("div", _hoisted_1, [
29
+ createElementVNode("div", _hoisted_2, [
30
+ createElementVNode("a", {
31
+ href: (_a = unref(histoireConfig).theme) == null ? void 0 : _a.logoHref,
32
+ target: "_blank",
33
+ class: "htw-w-full htw-h-full htw-flex htw-items-center"
34
+ }, [
35
+ createVNode(_sfc_main$1, { class: "htw-max-w-full htw-max-h-full" })
36
+ ], 8, _hoisted_3)
37
+ ]),
38
+ createElementVNode("div", _hoisted_4, [
39
+ withDirectives((openBlock(), createElementBlock("a", {
40
+ 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",
41
+ "data-test-id": "search-btn",
42
+ onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("search"))
43
+ }, [
44
+ createVNode(unref(Icon), {
45
+ icon: "carbon:search",
46
+ class: "htw-w-6 htw-h-6 sm:htw-w-4 sm:htw-h-4"
47
+ })
48
+ ])), [
49
+ [_directive_tooltip, unref(makeTooltip)("Search", ({ isMac }) => isMac ? "meta+k" : "ctrl+k")]
50
+ ]),
51
+ withDirectives((openBlock(), createElementBlock("a", {
52
+ 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",
53
+ onClick: _cache[1] || (_cache[1] = ($event) => unref(toggleDark)())
54
+ }, [
55
+ createVNode(unref(Icon), {
56
+ icon: unref(themeIcon),
57
+ class: "htw-w-6 htw-h-6 sm:htw-w-4 sm:htw-h-4"
58
+ }, null, 8, ["icon"])
59
+ ])), [
60
+ [_directive_tooltip, unref(makeTooltip)("Toggle dark mode", ({ isMac }) => isMac ? "meta+shift+d" : "ctrl+shift+d")]
61
+ ])
62
+ ])
63
+ ]);
64
+ };
65
+ }
66
+ });
67
+ export { _sfc_main as default };
@@ -0,0 +1,26 @@
1
+ import { defineComponent, computed, openBlock, createElementBlock, unref } from "@histoire/vendors/vue";
2
+ import { isDark } from "../../util/dark.js";
3
+ import { histoireConfig, customLogos } from "../../util/config.js";
4
+ import HistoireLogoDark from "../../assets/histoire-text-dark.js";
5
+ import HistoireLogoLight from "../../assets/histoire-text.js";
6
+ const _hoisted_1 = ["src", "alt"];
7
+ const _sfc_main = /* @__PURE__ */ defineComponent({
8
+ __name: "AppLogo",
9
+ setup(__props) {
10
+ const logoUrl = computed(() => {
11
+ var _a, _b;
12
+ if (isDark.value) {
13
+ return ((_a = histoireConfig.theme.logo) == null ? void 0 : _a.dark) ? customLogos.dark : HistoireLogoDark;
14
+ }
15
+ return ((_b = histoireConfig.theme.logo) == null ? void 0 : _b.light) ? customLogos.light : HistoireLogoLight;
16
+ });
17
+ const altText = computed(() => histoireConfig.theme.title + " logo");
18
+ return (_ctx, _cache) => {
19
+ return openBlock(), createElementBlock("img", {
20
+ src: unref(logoUrl),
21
+ alt: unref(altText)
22
+ }, null, 8, _hoisted_1);
23
+ };
24
+ }
25
+ });
26
+ export { _sfc_main as default };
@@ -0,0 +1,95 @@
1
+ import { pushScopeId, popScopeId, createElementVNode, createTextVNode, defineComponent, useCssVars, unref, computed, ref, watch, openBlock, createElementBlock, Fragment, renderList, toDisplayString, createVNode, normalizeClass, withCtx } from "@histoire/vendors/vue";
2
+ import { Icon } from "@histoire/vendors/iconify";
3
+ import { useStoryStore } from "../../stores/story.js";
4
+ import _sfc_main$1 from "./MobileOverlay.js";
5
+ import _sfc_main$2 from "../tree/StoryList.js";
6
+ import "./Breadcrumb.vue_vue_type_style_index_0_scoped_true_lang.js";
7
+ import _export_sfc from "../../_virtual/plugin-vue_export-helper.js";
8
+ const _withScopeId = (n) => (pushScopeId("data-v-25f7510c"), n = n(), popScopeId(), n);
9
+ const _hoisted_1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { class: "htw-opacity-40" }, " / ", -1));
10
+ const _hoisted_2 = { class: "htw-flex htw-items-center htw-gap-2" };
11
+ const _hoisted_3 = { class: "htw-opacity-40 htw-text-sm" };
12
+ const _hoisted_4 = /* @__PURE__ */ createTextVNode(" Select a story... ");
13
+ const _sfc_main = /* @__PURE__ */ defineComponent({
14
+ __name: "Breadcrumb",
15
+ props: {
16
+ tree: null,
17
+ stories: null
18
+ },
19
+ setup(__props) {
20
+ useCssVars((_ctx) => {
21
+ var _a;
22
+ return {
23
+ "353b213f": (_a = unref(story)) == null ? void 0 : _a.iconColor
24
+ };
25
+ });
26
+ const storyStore = useStoryStore();
27
+ const story = computed(() => storyStore.currentStory);
28
+ const folders = computed(() => {
29
+ return story.value.file.path.slice(0, -1);
30
+ });
31
+ const isMenuOpened = ref(false);
32
+ function openMenu() {
33
+ isMenuOpened.value = true;
34
+ }
35
+ function closeMenu() {
36
+ isMenuOpened.value = false;
37
+ }
38
+ watch(story, () => {
39
+ isMenuOpened.value = false;
40
+ });
41
+ return (_ctx, _cache) => {
42
+ var _a;
43
+ return openBlock(), createElementBlock(Fragment, null, [
44
+ createElementVNode("div", null, [
45
+ createElementVNode("a", {
46
+ class: "htw-px-6 htw-h-12 hover:htw-text-primary-500 dark:hover:htw-text-primary-400 htw-cursor-pointer htw-flex htw-gap-2 htw-flex-wrap htw-w-full htw-items-center",
47
+ onClick: openMenu
48
+ }, [
49
+ unref(story) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
50
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(folders), (file, key) => {
51
+ return openBlock(), createElementBlock(Fragment, { key }, [
52
+ createElementVNode("span", null, toDisplayString(file), 1),
53
+ _hoisted_1
54
+ ], 64);
55
+ }), 128)),
56
+ createElementVNode("span", _hoisted_2, [
57
+ createVNode(unref(Icon), {
58
+ icon: (_a = unref(story).icon) != null ? _a : "carbon:cube",
59
+ class: normalizeClass(["base-list-item-link-icon htw-w-5 htw-h-5 htw-flex-none", {
60
+ "htw-text-primary-500": !unref(story).iconColor,
61
+ "bind-icon-color": unref(story).iconColor
62
+ }])
63
+ }, null, 8, ["icon", "class"]),
64
+ createTextVNode(" " + toDisplayString(unref(story).title) + " ", 1),
65
+ createElementVNode("span", _hoisted_3, toDisplayString(unref(story).variants.length), 1)
66
+ ])
67
+ ], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
68
+ _hoisted_4
69
+ ], 64)),
70
+ createVNode(unref(Icon), {
71
+ icon: "carbon:chevron-sort",
72
+ class: "htw-w-5 htw-h-5 htw-shrink-0 htw-ml-auto"
73
+ })
74
+ ])
75
+ ]),
76
+ createVNode(_sfc_main$1, {
77
+ title: "Select a story",
78
+ opened: isMenuOpened.value,
79
+ onClose: closeMenu
80
+ }, {
81
+ default: withCtx(() => [
82
+ createVNode(_sfc_main$2, {
83
+ tree: __props.tree,
84
+ stories: __props.stories,
85
+ class: "htw-flex-1 htw-overflow-y-scroll"
86
+ }, null, 8, ["tree", "stories"])
87
+ ]),
88
+ _: 1
89
+ }, 8, ["opened"])
90
+ ], 64);
91
+ };
92
+ }
93
+ });
94
+ var Breadcrumb = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-25f7510c"]]);
95
+ export { Breadcrumb as default };
@@ -0,0 +1,2 @@
1
+ var Breadcrumb_vue_vue_type_style_index_0_scoped_true_lang = "";
2
+ export { Breadcrumb_vue_vue_type_style_index_0_scoped_true_lang as default };
@@ -0,0 +1,48 @@
1
+ import { defineComponent, reactive, openBlock, createElementBlock, createVNode, Transition, withCtx, normalizeStyle, Fragment, renderList, createElementVNode, normalizeClass, createCommentVNode } from "@histoire/vendors/vue";
2
+ const _hoisted_1 = { class: "htw-fixed htw-inset-0 htw-bg-white dark:htw-bg-gray-700 htw-flex htw-flex-col htw-gap-6 htw-items-center htw-justify-center" };
3
+ const _sfc_main = /* @__PURE__ */ defineComponent({
4
+ __name: "InitialLoading",
5
+ setup(__props) {
6
+ const progress = reactive({
7
+ loaded: 0,
8
+ total: 0
9
+ });
10
+ const maxCols = window.innerWidth / 20;
11
+ if (import.meta.hot) {
12
+ import.meta.hot.on("histoire:stories-loading-progress", (data) => {
13
+ progress.loaded = data.loadedFileCount;
14
+ progress.total = data.totalFileCount;
15
+ });
16
+ }
17
+ return (_ctx, _cache) => {
18
+ return openBlock(), createElementBlock("div", _hoisted_1, [
19
+ createVNode(Transition, { name: "__histoire-fade" }, {
20
+ default: withCtx(() => [
21
+ progress.total > 0 ? (openBlock(), createElementBlock("div", {
22
+ key: 0,
23
+ class: "htw-grid htw-gap-2",
24
+ style: normalizeStyle({
25
+ gridTemplateColumns: `repeat(${Math.min(Math.ceil(Math.sqrt(progress.total)), maxCols)}, minmax(0, 1fr))`
26
+ })
27
+ }, [
28
+ (openBlock(true), createElementBlock(Fragment, null, renderList(progress.total, (n) => {
29
+ return openBlock(), createElementBlock("div", {
30
+ key: n,
31
+ class: "htw-bg-primary-500/10 htw-rounded-full"
32
+ }, [
33
+ createElementVNode("div", {
34
+ class: normalizeClass(["htw-w-3 htw-h-3 htw-bg-primary-500 htw-rounded-full htw-duration-150 htw-ease-out", {
35
+ "htw-transition-transform htw-scale-0": n >= progress.loaded
36
+ }])
37
+ }, null, 2)
38
+ ]);
39
+ }), 128))
40
+ ], 4)) : createCommentVNode("", true)
41
+ ]),
42
+ _: 1
43
+ })
44
+ ]);
45
+ };
46
+ }
47
+ });
48
+ export { _sfc_main as default };
@@ -0,0 +1,41 @@
1
+ import { defineComponent, openBlock, createBlock, Transition, withCtx, createElementBlock, createElementVNode, toDisplayString, createVNode, unref, renderSlot, createCommentVNode } from "@histoire/vendors/vue";
2
+ import { Icon } from "@histoire/vendors/iconify";
3
+ const _hoisted_1 = {
4
+ key: 0,
5
+ class: "htw-absolute htw-z-10 htw-bg-white dark:htw-bg-gray-700 htw-w-screen htw-h-screen htw-inset-0 htw-overflow-hidden htw-flex htw-flex-col"
6
+ };
7
+ const _hoisted_2 = { class: "htw-p-4 htw-h-16 htw-flex htw-border-b htw-border-gray-100 dark:htw-border-gray-800 htw-items-center htw-place-content-between" };
8
+ const _hoisted_3 = { class: "htw-text-gray-500" };
9
+ const _sfc_main = /* @__PURE__ */ defineComponent({
10
+ __name: "MobileOverlay",
11
+ props: {
12
+ title: null,
13
+ opened: { type: Boolean }
14
+ },
15
+ emits: ["close"],
16
+ setup(__props, { emit: emits }) {
17
+ return (_ctx, _cache) => {
18
+ return openBlock(), createBlock(Transition, { name: "__histoire-fade-bottom" }, {
19
+ default: withCtx(() => [
20
+ __props.opened ? (openBlock(), createElementBlock("div", _hoisted_1, [
21
+ createElementVNode("div", _hoisted_2, [
22
+ createElementVNode("span", _hoisted_3, toDisplayString(__props.title), 1),
23
+ createElementVNode("a", {
24
+ class: "htw-p-1 hover:htw-text-primary-500 dark:hover:htw-text-primary-400 htw-cursor-pointer",
25
+ onClick: _cache[0] || (_cache[0] = ($event) => emits("close"))
26
+ }, [
27
+ createVNode(unref(Icon), {
28
+ icon: "carbon:close",
29
+ class: "htw-w-8 htw-h-8 htw-shrink-0"
30
+ })
31
+ ])
32
+ ]),
33
+ renderSlot(_ctx.$slots, "default")
34
+ ])) : createCommentVNode("", true)
35
+ ]),
36
+ _: 3
37
+ });
38
+ };
39
+ }
40
+ });
41
+ export { _sfc_main as default };
@@ -0,0 +1,75 @@
1
+ import { defineComponent, ref, computed, watch, openBlock, createElementBlock, withKeys, withModifiers, createElementVNode, normalizeClass, unref, renderSlot } from "@histoire/vendors/vue";
2
+ const _hoisted_1 = { class: "htw-text-white htw-w-[16px] htw-h-[16px] htw-relative" };
3
+ const _hoisted_2 = {
4
+ width: "16",
5
+ height: "16",
6
+ viewBox: "0 0 24 24",
7
+ class: "htw-relative htw-z-10"
8
+ };
9
+ const _hoisted_3 = ["stroke-dasharray", "stroke-dashoffset"];
10
+ const _sfc_main = /* @__PURE__ */ defineComponent({
11
+ __name: "BaseCheckbox",
12
+ props: {
13
+ modelValue: {
14
+ type: Boolean,
15
+ default: false
16
+ }
17
+ },
18
+ emits: {
19
+ "update:modelValue": (newValue) => true
20
+ },
21
+ setup(__props, { emit }) {
22
+ const props = __props;
23
+ function toggle() {
24
+ emit("update:modelValue", !props.modelValue);
25
+ animationEnabled.value = true;
26
+ }
27
+ const path = ref();
28
+ const dasharray = ref(0);
29
+ const progress = computed(() => props.modelValue ? 1 : 0);
30
+ const dashoffset = computed(() => (1 - progress.value) * dasharray.value);
31
+ const animationEnabled = ref(false);
32
+ watch(path, () => {
33
+ var _a, _b, _c;
34
+ dasharray.value = (_c = (_b = (_a = path.value).getTotalLength) == null ? void 0 : _b.call(_a)) != null ? _c : 21.21;
35
+ });
36
+ return (_ctx, _cache) => {
37
+ return openBlock(), createElementBlock("div", {
38
+ role: "checkbox",
39
+ tabindex: "0",
40
+ class: "htw-flex htw-items-center htw-gap-2 htw-select-none htw-px-4 htw-py-3 htw-cursor-pointer hover:htw-bg-primary-100 dark:hover:htw-bg-primary-700",
41
+ onClick: _cache[0] || (_cache[0] = ($event) => toggle()),
42
+ onKeydown: [
43
+ _cache[1] || (_cache[1] = withKeys(withModifiers(($event) => toggle(), ["prevent"]), ["enter"])),
44
+ _cache[2] || (_cache[2] = withKeys(withModifiers(($event) => toggle(), ["prevent"]), ["space"]))
45
+ ]
46
+ }, [
47
+ createElementVNode("div", _hoisted_1, [
48
+ createElementVNode("div", {
49
+ class: normalizeClass(["htw-border group-active:htw-bg-gray-500/20 htw-rounded-sm htw-box-border htw-absolute htw-inset-0 htw-transition-border htw-duration-150 htw-ease-out", [
50
+ __props.modelValue ? "htw-border-primary-500 htw-border-8" : "htw-border-black/25 dark:htw-border-white/25 htw-delay-150"
51
+ ]])
52
+ }, null, 2),
53
+ (openBlock(), createElementBlock("svg", _hoisted_2, [
54
+ createElementVNode("path", {
55
+ ref_key: "path",
56
+ ref: path,
57
+ d: "m 4 12 l 5 5 l 10 -10",
58
+ fill: "none",
59
+ class: normalizeClass(["htw-stroke-white htw-stroke-2 htw-duration-200 htw-ease-in-out", [
60
+ animationEnabled.value ? "htw-transition-all" : "htw-transition-none",
61
+ {
62
+ "htw-delay-150": __props.modelValue
63
+ }
64
+ ]]),
65
+ "stroke-dasharray": dasharray.value,
66
+ "stroke-dashoffset": unref(dashoffset)
67
+ }, null, 10, _hoisted_3)
68
+ ]))
69
+ ]),
70
+ renderSlot(_ctx.$slots, "default")
71
+ ], 32);
72
+ };
73
+ }
74
+ });
75
+ export { _sfc_main as default };
@@ -0,0 +1,13 @@
1
+ import { pushScopeId, popScopeId, openBlock, createElementBlock, renderSlot } from "@histoire/vendors/vue";
2
+ import "./BaseEmpty.vue_vue_type_style_index_0_scoped_true_lang.js";
3
+ import _export_sfc from "../../_virtual/plugin-vue_export-helper.js";
4
+ const _sfc_main = {};
5
+ const _withScopeId = (n) => (pushScopeId("data-v-c242ab26"), n = n(), popScopeId(), n);
6
+ const _hoisted_1 = { class: "htw-base-empty htw-flex htw-flex-col htw-items-center htw-justify-center htw-space-y-4 htw-py-12 htw-h-full htw-text-center htw-text-gray-400 htw-text-lg" };
7
+ function _sfc_render(_ctx, _cache) {
8
+ return openBlock(), createElementBlock("div", _hoisted_1, [
9
+ renderSlot(_ctx.$slots, "default", {}, void 0, true)
10
+ ]);
11
+ }
12
+ var BaseEmpty = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-c242ab26"]]);
13
+ export { BaseEmpty as default };
@@ -0,0 +1,2 @@
1
+ var BaseEmpty_vue_vue_type_style_index_0_scoped_true_lang = "";
2
+ export { BaseEmpty_vue_vue_type_style_index_0_scoped_true_lang as default };
@@ -0,0 +1,50 @@
1
+ import { defineComponent, resolveComponent, openBlock, createBlock, mergeProps, withCtx, createElementVNode, normalizeClass, withKeys, renderSlot } from "@histoire/vendors/vue";
2
+ import _export_sfc from "../../_virtual/plugin-vue_export-helper.js";
3
+ const _sfc_main = defineComponent({
4
+ inheritAttrs: false,
5
+ props: {
6
+ isActive: {
7
+ type: Boolean,
8
+ default: void 0
9
+ }
10
+ },
11
+ emits: {
12
+ navigate: () => true
13
+ },
14
+ setup(props, { emit }) {
15
+ function handleNavigate(event, navigate) {
16
+ emit("navigate");
17
+ navigate(event);
18
+ }
19
+ return {
20
+ handleNavigate
21
+ };
22
+ }
23
+ });
24
+ const _hoisted_1 = ["href", "onClick", "onKeyup"];
25
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
26
+ const _component_RouterLink = resolveComponent("RouterLink");
27
+ return openBlock(), createBlock(_component_RouterLink, mergeProps(_ctx.$attrs, { custom: "" }), {
28
+ default: withCtx(({ isActive: linkIsActive, href, navigate }) => [
29
+ createElementVNode("a", {
30
+ href,
31
+ class: normalizeClass(["htw-flex htw-items-center htw-gap-2 htw-text-gray-900 dark:htw-text-gray-100", [
32
+ _ctx.$attrs.class,
33
+ (_ctx.isActive != null ? _ctx.isActive : linkIsActive) ? "active htw-bg-primary-500 hover:htw-bg-primary-600 htw-text-white dark:htw-text-black" : "hover:htw-bg-primary-100 dark:hover:htw-bg-primary-900"
34
+ ]]),
35
+ onClick: ($event) => _ctx.handleNavigate($event, navigate),
36
+ onKeyup: [
37
+ withKeys(($event) => _ctx.handleNavigate($event, navigate), ["enter"]),
38
+ withKeys(($event) => _ctx.handleNavigate($event, navigate), ["space"])
39
+ ]
40
+ }, [
41
+ renderSlot(_ctx.$slots, "default", {
42
+ active: _ctx.isActive != null ? _ctx.isActive : linkIsActive
43
+ })
44
+ ], 42, _hoisted_1)
45
+ ]),
46
+ _: 3
47
+ }, 16);
48
+ }
49
+ var BaseListItemLink = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
50
+ export { BaseListItemLink as default };
@@ -0,0 +1,97 @@
1
+ import { defineComponent, ref, computed, reactive, onBeforeUnmount, h, resolveComponent, openBlock, createElementBlock, createVNode, withCtx, renderSlot, unref, createBlock, createElementVNode, createCommentVNode } from "@histoire/vendors/vue";
2
+ import { useResizeObserver } from "@histoire/vendors/vue-use";
3
+ import { Icon } from "@histoire/vendors/iconify";
4
+ const _hoisted_1 = {
5
+ role: "button",
6
+ class: "htw-cursor-pointer hover:htw-bg-primary-50 dark:hover:htw-bg-primary-900 htw-w-8 htw-h-full htw-flex htw-items-center htw-justify-center htw-absolute htw-top-0 htw-right-0"
7
+ };
8
+ const _hoisted_2 = { class: "htw-flex htw-flex-col htw-items-stretch" };
9
+ const _sfc_main = /* @__PURE__ */ defineComponent({
10
+ __name: "BaseOverflowMenu",
11
+ setup(__props) {
12
+ const overflowButtonWidth = 32;
13
+ const el = ref();
14
+ const availableWidth = ref(0);
15
+ useResizeObserver(el, (entries) => {
16
+ const containerWidth = entries[0].contentRect.width;
17
+ availableWidth.value = containerWidth - overflowButtonWidth;
18
+ });
19
+ const children = ref(/* @__PURE__ */ new Map());
20
+ const visibleChildrenCount = computed(() => {
21
+ let width = 0;
22
+ const c = [...children.value.values()].sort((a, b) => a.index - b.index);
23
+ for (let i = 0; i < c.length; i++) {
24
+ width += c[i].width;
25
+ if (width > availableWidth.value) {
26
+ return i;
27
+ }
28
+ }
29
+ return c.length;
30
+ });
31
+ const ChildWrapper = {
32
+ name: "ChildWrapper",
33
+ props: ["index"],
34
+ setup(props, { slots }) {
35
+ const el2 = ref();
36
+ const state = reactive({ width: 0, index: props.index });
37
+ useResizeObserver(el2, (entries) => {
38
+ const width = entries[0].contentRect.width;
39
+ if (!children.value.has(el2.value)) {
40
+ children.value.set(el2.value, state);
41
+ }
42
+ state.width = width;
43
+ });
44
+ onBeforeUnmount(() => {
45
+ children.value.delete(el2.value);
46
+ });
47
+ const visible = computed(() => visibleChildrenCount.value > state.index);
48
+ return () => h("div", { ref: el2, style: { visibility: visible.value ? "visible" : "hidden" } }, slots.default());
49
+ }
50
+ };
51
+ const ChildrenRender = (props, { slots }) => {
52
+ const [fragment] = slots.default();
53
+ return fragment.children.map((vnode, index) => h(ChildWrapper, { index }, () => [vnode]));
54
+ };
55
+ const ChildrenSlice = (props, { slots }) => {
56
+ const [fragment] = slots.default();
57
+ return fragment.children.slice(props.start, props.end);
58
+ };
59
+ return (_ctx, _cache) => {
60
+ const _component_VDropdown = resolveComponent("VDropdown");
61
+ return openBlock(), createElementBlock("div", {
62
+ ref_key: "el",
63
+ ref: el,
64
+ class: "htw-flex htw-overflow-hidden htw-relative"
65
+ }, [
66
+ createVNode(ChildrenRender, null, {
67
+ default: withCtx(() => [
68
+ renderSlot(_ctx.$slots, "default")
69
+ ]),
70
+ _: 3
71
+ }),
72
+ unref(visibleChildrenCount) < children.value.size ? (openBlock(), createBlock(_component_VDropdown, { key: 0 }, {
73
+ popper: withCtx(() => [
74
+ createElementVNode("div", _hoisted_2, [
75
+ createVNode(ChildrenSlice, { start: unref(visibleChildrenCount) }, {
76
+ default: withCtx(() => [
77
+ renderSlot(_ctx.$slots, "overflow")
78
+ ]),
79
+ _: 3
80
+ }, 8, ["start"])
81
+ ])
82
+ ]),
83
+ default: withCtx(() => [
84
+ createElementVNode("div", _hoisted_1, [
85
+ createVNode(unref(Icon), {
86
+ icon: "carbon:caret-down",
87
+ class: "htw-w-4 htw-h-4 htw-opacity-50 group-hover:htw-opacity-100"
88
+ })
89
+ ])
90
+ ]),
91
+ _: 3
92
+ })) : createCommentVNode("", true)
93
+ ], 512);
94
+ };
95
+ }
96
+ });
97
+ export { _sfc_main as default };
@@ -0,0 +1,45 @@
1
+ import { defineComponent, resolveComponent, openBlock, createBlock, mergeProps, withCtx, createElementVNode, renderSlot, createVNode, Transition, createElementBlock, createCommentVNode } from "@histoire/vendors/vue";
2
+ import _export_sfc from "../../_virtual/plugin-vue_export-helper.js";
3
+ const _sfc_main = defineComponent({
4
+ inheritAttrs: false,
5
+ props: {
6
+ exact: {
7
+ type: Boolean,
8
+ default: false
9
+ },
10
+ matched: {
11
+ type: Boolean,
12
+ default: null
13
+ }
14
+ }
15
+ });
16
+ const _hoisted_1 = ["href", "onClick"];
17
+ const _hoisted_2 = {
18
+ key: 0,
19
+ class: "htw-absolute htw-top-0 htw-left-0 htw-h-full htw-w-[2px] htw-bg-primary-500 dark:htw-bg-primary-400"
20
+ };
21
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
22
+ const _component_router_link = resolveComponent("router-link");
23
+ return openBlock(), createBlock(_component_router_link, mergeProps(_ctx.$attrs, { custom: "" }), {
24
+ default: withCtx(({ isActive, isExactActive, href, navigate }) => [
25
+ createElementVNode("a", mergeProps(_ctx.$attrs, {
26
+ href,
27
+ class: ["htw-px-4 htw-h-10 htw-min-w-[150px] htw-inline-flex htw-items-center hover:htw-bg-primary-50 dark:hover:htw-bg-primary-900 htw-relative htw-text-gray-900 dark:htw-text-gray-100", {
28
+ "htw-text-primary-500 dark:htw-text-primary-400": _ctx.matched != null ? _ctx.matched : _ctx.exact && isExactActive || !_ctx.exact && isActive
29
+ }],
30
+ onClick: navigate
31
+ }), [
32
+ renderSlot(_ctx.$slots, "default"),
33
+ createVNode(Transition, { name: "__histoire-scale-y" }, {
34
+ default: withCtx(() => [
35
+ (_ctx.matched != null ? _ctx.matched : _ctx.exact && isExactActive || !_ctx.exact && isActive) ? (openBlock(), createElementBlock("div", _hoisted_2)) : createCommentVNode("", true)
36
+ ]),
37
+ _: 2
38
+ }, 1024)
39
+ ], 16, _hoisted_1)
40
+ ]),
41
+ _: 3
42
+ }, 16);
43
+ }
44
+ var BaseOverflowTab = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
45
+ export { BaseOverflowTab as default };