@poveste/app 0.1.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 (299) hide show
  1. package/LICENSE +22 -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.pcss +34 -0
  6. package/dist/app/style/main.pcss +100 -0
  7. package/dist/app/style/sandbox.css +24 -0
  8. package/dist/app/style/transitions.pcss +51 -0
  9. package/dist/bundle-index.js +1 -0
  10. package/dist/bundle-main-dev.js +4 -0
  11. package/dist/bundle-main.js +5 -0
  12. package/dist/bundle-sandbox-dev.js +2 -0
  13. package/dist/bundle-sandbox.js +2 -0
  14. package/dist/bundled/App.vue.js +5 -0
  15. package/dist/bundled/App.vue2.js +167 -0
  16. package/dist/bundled/_virtual/_plugin-vue_export-helper.js +10 -0
  17. package/dist/bundled/api.js +12 -0
  18. package/dist/bundled/app.css +116 -0
  19. package/dist/bundled/assets/histoire-text-dark.svg.js +4 -0
  20. package/dist/bundled/assets/histoire-text.svg.js +4 -0
  21. package/dist/bundled/assets/histoire.svg.js +4 -0
  22. package/dist/bundled/components/HomeView.vue.js +5 -0
  23. package/dist/bundled/components/HomeView.vue2.js +66 -0
  24. package/dist/bundled/components/app/AppHeader.vue.js +5 -0
  25. package/dist/bundled/components/app/AppHeader.vue2.js +71 -0
  26. package/dist/bundled/components/app/AppLogo.vue.js +5 -0
  27. package/dist/bundled/components/app/AppLogo.vue2.js +29 -0
  28. package/dist/bundled/components/app/Breadcrumb.vue.js +8 -0
  29. package/dist/bundled/components/app/Breadcrumb.vue2.js +91 -0
  30. package/dist/bundled/components/app/HomeCounter.vue.js +5 -0
  31. package/dist/bundled/components/app/HomeCounter.vue2.js +42 -0
  32. package/dist/bundled/components/app/InitialLoading.vue.js +5 -0
  33. package/dist/bundled/components/app/InitialLoading.vue2.js +51 -0
  34. package/dist/bundled/components/app/MobileOverlay.vue.js +5 -0
  35. package/dist/bundled/components/app/MobileOverlay.vue2.js +45 -0
  36. package/dist/bundled/components/base/BaseButton.vue.js +5 -0
  37. package/dist/bundled/components/base/BaseButton.vue2.js +39 -0
  38. package/dist/bundled/components/base/BaseCheckbox.vue.js +5 -0
  39. package/dist/bundled/components/base/BaseCheckbox.vue2.js +78 -0
  40. package/dist/bundled/components/base/BaseEmpty.vue.js +14 -0
  41. package/dist/bundled/components/base/BaseIcon.vue.js +8 -0
  42. package/dist/bundled/components/base/BaseIcon.vue2.js +29 -0
  43. package/dist/bundled/components/base/BaseKeyboardShortcut.vue.js +5 -0
  44. package/dist/bundled/components/base/BaseKeyboardShortcut.vue2.js +20 -0
  45. package/dist/bundled/components/base/BaseListItem.vue.js +5 -0
  46. package/dist/bundled/components/base/BaseListItem.vue2.js +33 -0
  47. package/dist/bundled/components/base/BaseListItemLink.vue.js +33 -0
  48. package/dist/bundled/components/base/BaseListItemLink.vue2.js +26 -0
  49. package/dist/bundled/components/base/BaseOverflowMenu.vue.js +5 -0
  50. package/dist/bundled/components/base/BaseOverflowMenu.vue2.js +100 -0
  51. package/dist/bundled/components/base/BaseOverflowTab.vue.js +36 -0
  52. package/dist/bundled/components/base/BaseOverflowTab.vue2.js +18 -0
  53. package/dist/bundled/components/base/BaseSelect.vue.js +5 -0
  54. package/dist/bundled/components/base/BaseSelect.vue2.js +77 -0
  55. package/dist/bundled/components/base/BaseSplitPane.vue.js +8 -0
  56. package/dist/bundled/components/base/BaseSplitPane.vue2.js +183 -0
  57. package/dist/bundled/components/base/BaseTab.vue.js +36 -0
  58. package/dist/bundled/components/base/BaseTab.vue2.js +18 -0
  59. package/dist/bundled/components/base/BaseTag.vue.js +13 -0
  60. package/dist/bundled/components/command/CommandPrompts.vue.js +5 -0
  61. package/dist/bundled/components/command/CommandPrompts.vue2.js +91 -0
  62. package/dist/bundled/components/command/CommandPromptsModal.vue.js +5 -0
  63. package/dist/bundled/components/command/CommandPromptsModal.vue2.js +45 -0
  64. package/dist/bundled/components/command/PromptSelect.vue.js +5 -0
  65. package/dist/bundled/components/command/PromptSelect.vue2.js +142 -0
  66. package/dist/bundled/components/command/PromptText.vue.js +5 -0
  67. package/dist/bundled/components/command/PromptText.vue2.js +67 -0
  68. package/dist/bundled/components/misc/CheckerboardPattern.vue.js +40 -0
  69. package/dist/bundled/components/misc/HatchedPattern.vue.js +12 -0
  70. package/dist/bundled/components/panel/ControlsComponentPropItem.vue.js +5 -0
  71. package/dist/bundled/components/panel/ControlsComponentPropItem.vue2.js +72 -0
  72. package/dist/bundled/components/panel/ControlsComponentProps.vue.js +5 -0
  73. package/dist/bundled/components/panel/ControlsComponentProps.vue2.js +45 -0
  74. package/dist/bundled/components/panel/ControlsComponentState.vue.js +5 -0
  75. package/dist/bundled/components/panel/ControlsComponentState.vue2.js +41 -0
  76. package/dist/bundled/components/panel/ControlsComponentStateItem.vue.js +5 -0
  77. package/dist/bundled/components/panel/ControlsComponentStateItem.vue2.js +46 -0
  78. package/dist/bundled/components/panel/PaneTabs.vue.js +5 -0
  79. package/dist/bundled/components/panel/PaneTabs.vue2.js +114 -0
  80. package/dist/bundled/components/panel/StatePresets.vue.js +5 -0
  81. package/dist/bundled/components/panel/StatePresets.vue2.js +193 -0
  82. package/dist/bundled/components/panel/StoryControls.vue.js +5 -0
  83. package/dist/bundled/components/panel/StoryControls.vue2.js +87 -0
  84. package/dist/bundled/components/panel/StoryDocs.vue.js +7 -0
  85. package/dist/bundled/components/panel/StoryDocs.vue2.js +161 -0
  86. package/dist/bundled/components/panel/StoryEvent.vue.js +5 -0
  87. package/dist/bundled/components/panel/StoryEvent.vue2.js +59 -0
  88. package/dist/bundled/components/panel/StoryEvents.vue.js +5 -0
  89. package/dist/bundled/components/panel/StoryEvents.vue2.js +53 -0
  90. package/dist/bundled/components/panel/StorySidePanel.vue.js +5 -0
  91. package/dist/bundled/components/panel/StorySidePanel.vue2.js +83 -0
  92. package/dist/bundled/components/panel/StorySourceCode.vue.js +8 -0
  93. package/dist/bundled/components/panel/StorySourceCode.vue2.js +204 -0
  94. package/dist/bundled/components/search/SearchItem.vue.js +8 -0
  95. package/dist/bundled/components/search/SearchItem.vue2.js +93 -0
  96. package/dist/bundled/components/search/SearchItemContent.vue.js +5 -0
  97. package/dist/bundled/components/search/SearchItemContent.vue2.js +71 -0
  98. package/dist/bundled/components/search/SearchLoading.vue.js +5 -0
  99. package/dist/bundled/components/search/SearchLoading.vue2.js +21 -0
  100. package/dist/bundled/components/search/SearchModal.vue.js +5 -0
  101. package/dist/bundled/components/search/SearchModal.vue2.js +51 -0
  102. package/dist/bundled/components/search/SearchPane.vue.js +5 -0
  103. package/dist/bundled/components/search/SearchPane.vue2.js +272 -0
  104. package/dist/bundled/components/search/search-docs-data.js +11 -0
  105. package/dist/bundled/components/search/search-title-data.js +11 -0
  106. package/dist/bundled/components/story/GenericMountStory.vue.js +5 -0
  107. package/dist/bundled/components/story/GenericMountStory.vue2.js +34 -0
  108. package/dist/bundled/components/story/GenericRenderStory.vue.js +5 -0
  109. package/dist/bundled/components/story/GenericRenderStory.vue2.js +39 -0
  110. package/dist/bundled/components/story/StoryResponsivePreview.vue.js +8 -0
  111. package/dist/bundled/components/story/StoryResponsivePreview.vue2.js +207 -0
  112. package/dist/bundled/components/story/StoryVariantGrid.vue.js +5 -0
  113. package/dist/bundled/components/story/StoryVariantGrid.vue2.js +146 -0
  114. package/dist/bundled/components/story/StoryVariantGridItem.vue.js +8 -0
  115. package/dist/bundled/components/story/StoryVariantGridItem.vue2.js +153 -0
  116. package/dist/bundled/components/story/StoryVariantListItem.vue.js +8 -0
  117. package/dist/bundled/components/story/StoryVariantListItem.vue2.js +55 -0
  118. package/dist/bundled/components/story/StoryVariantSingle.vue.js +8 -0
  119. package/dist/bundled/components/story/StoryVariantSingle.vue2.js +107 -0
  120. package/dist/bundled/components/story/StoryVariantSinglePreviewNative.vue.js +5 -0
  121. package/dist/bundled/components/story/StoryVariantSinglePreviewNative.vue2.js +70 -0
  122. package/dist/bundled/components/story/StoryVariantSinglePreviewRemote.vue.js +5 -0
  123. package/dist/bundled/components/story/StoryVariantSinglePreviewRemote.vue2.js +128 -0
  124. package/dist/bundled/components/story/StoryVariantSingleView.vue.js +5 -0
  125. package/dist/bundled/components/story/StoryVariantSingleView.vue2.js +66 -0
  126. package/dist/bundled/components/story/StoryView.vue.js +5 -0
  127. package/dist/bundled/components/story/StoryView.vue2.js +104 -0
  128. package/dist/bundled/components/story/StoryViewer.vue.js +8 -0
  129. package/dist/bundled/components/story/StoryViewer.vue2.js +55 -0
  130. package/dist/bundled/components/toolbar/DevOnlyToolbarOpenInEditor.vue.js +5 -0
  131. package/dist/bundled/components/toolbar/DevOnlyToolbarOpenInEditor.vue2.js +31 -0
  132. package/dist/bundled/components/toolbar/ToolbarBackground.vue.js +8 -0
  133. package/dist/bundled/components/toolbar/ToolbarBackground.vue2.js +98 -0
  134. package/dist/bundled/components/toolbar/ToolbarNewTab.vue.js +5 -0
  135. package/dist/bundled/components/toolbar/ToolbarNewTab.vue2.js +36 -0
  136. package/dist/bundled/components/toolbar/ToolbarResponsiveSize.vue.js +5 -0
  137. package/dist/bundled/components/toolbar/ToolbarResponsiveSize.vue2.js +127 -0
  138. package/dist/bundled/components/toolbar/ToolbarTextDirection.vue.js +5 -0
  139. package/dist/bundled/components/toolbar/ToolbarTextDirection.vue2.js +27 -0
  140. package/dist/bundled/components/toolbar/ToolbarTitle.vue.js +5 -0
  141. package/dist/bundled/components/toolbar/ToolbarTitle.vue2.js +26 -0
  142. package/dist/bundled/components/tree/StoryGroup.vue.js +5 -0
  143. package/dist/bundled/components/tree/StoryGroup.vue2.js +74 -0
  144. package/dist/bundled/components/tree/StoryList.vue.js +5 -0
  145. package/dist/bundled/components/tree/StoryList.vue2.js +41 -0
  146. package/dist/bundled/components/tree/StoryListFolder.vue.js +8 -0
  147. package/dist/bundled/components/tree/StoryListFolder.vue2.js +86 -0
  148. package/dist/bundled/components/tree/StoryListItem.vue.js +8 -0
  149. package/dist/bundled/components/tree/StoryListItem.vue2.js +69 -0
  150. package/dist/bundled/index.js +35 -0
  151. package/dist/bundled/plugin.js +49 -0
  152. package/dist/bundled/router.js +32 -0
  153. package/dist/bundled/sandbox.js +87 -0
  154. package/dist/bundled/stores/command.js +25 -0
  155. package/dist/bundled/stores/events.js +29 -0
  156. package/dist/bundled/stores/folder.js +54 -0
  157. package/dist/bundled/stores/preview-settings.js +19 -0
  158. package/dist/bundled/stores/story.js +43 -0
  159. package/dist/bundled/util/commands.js +57 -0
  160. package/dist/bundled/util/config.js +8 -0
  161. package/dist/bundled/util/const.js +10 -0
  162. package/dist/bundled/util/dark.js +28 -0
  163. package/dist/bundled/util/docs.js +26 -0
  164. package/dist/bundled/util/env.js +4 -0
  165. package/dist/bundled/util/events.js +33 -0
  166. package/dist/bundled/util/keyboard.js +90 -0
  167. package/dist/bundled/util/mapping.js +70 -0
  168. package/dist/bundled/util/open-in-editor.js +6 -0
  169. package/dist/bundled/util/preview-settings.js +21 -0
  170. package/dist/bundled/util/responsive.js +6 -0
  171. package/dist/bundled/util/sandbox.js +11 -0
  172. package/dist/bundled/util/scroll.js +31 -0
  173. package/dist/bundled/util/select.js +28 -0
  174. package/dist/bundled/util/state.js +41 -0
  175. package/dist/bundled/util/tooltip.js +15 -0
  176. package/dist/bundled/util/variant.js +21 -0
  177. package/dist/style.css +2626 -0
  178. package/package.json +56 -0
  179. package/postcss-scope-wrapper.cjs +35 -0
  180. package/postcss.config.cjs +9 -0
  181. package/scripts/copy.mjs +12 -0
  182. package/scripts/watchAndCopy.mjs +15 -0
  183. package/src/app/App.vue +172 -0
  184. package/src/app/api.ts +9 -0
  185. package/src/app/assets/histoire-text-dark.svg +89 -0
  186. package/src/app/assets/histoire-text.svg +89 -0
  187. package/src/app/assets/histoire.svg +51 -0
  188. package/src/app/components/HomeView.vue +61 -0
  189. package/src/app/components/app/AppHeader.vue +65 -0
  190. package/src/app/components/app/AppLogo.vue +25 -0
  191. package/src/app/components/app/Breadcrumb.vue +98 -0
  192. package/src/app/components/app/HomeCounter.vue +39 -0
  193. package/src/app/components/app/InitialLoading.vue +44 -0
  194. package/src/app/components/app/MobileOverlay.vue +33 -0
  195. package/src/app/components/base/BaseButton.vue +33 -0
  196. package/src/app/components/base/BaseCheckbox.vue +76 -0
  197. package/src/app/components/base/BaseCopyIcon.vue +34 -0
  198. package/src/app/components/base/BaseEmpty.vue +21 -0
  199. package/src/app/components/base/BaseIcon.vue +31 -0
  200. package/src/app/components/base/BaseKeyboardShortcut.vue +16 -0
  201. package/src/app/components/base/BaseListItem.vue +30 -0
  202. package/src/app/components/base/BaseListItemLink.vue +56 -0
  203. package/src/app/components/base/BaseOverflowMenu.vue +119 -0
  204. package/src/app/components/base/BaseOverflowTab.vue +47 -0
  205. package/src/app/components/base/BaseSelect.vue +75 -0
  206. package/src/app/components/base/BaseSplitPane.vue +244 -0
  207. package/src/app/components/base/BaseTab.vue +47 -0
  208. package/src/app/components/base/BaseTag.vue +5 -0
  209. package/src/app/components/command/CommandPrompts.vue +95 -0
  210. package/src/app/components/command/CommandPromptsModal.vue +41 -0
  211. package/src/app/components/command/PromptSelect.vue +142 -0
  212. package/src/app/components/command/PromptText.vue +65 -0
  213. package/src/app/components/misc/CheckerboardPattern.vue +32 -0
  214. package/src/app/components/misc/HatchedPattern.vue +13 -0
  215. package/src/app/components/panel/ControlsComponentPropItem.vue +73 -0
  216. package/src/app/components/panel/ControlsComponentProps.vue +34 -0
  217. package/src/app/components/panel/ControlsComponentState.vue +38 -0
  218. package/src/app/components/panel/ControlsComponentStateItem.vue +44 -0
  219. package/src/app/components/panel/PaneTabs.vue +84 -0
  220. package/src/app/components/panel/StatePresets.vue +199 -0
  221. package/src/app/components/panel/StoryControls.vue +97 -0
  222. package/src/app/components/panel/StoryDocs.vue +202 -0
  223. package/src/app/components/panel/StoryEvent.vue +54 -0
  224. package/src/app/components/panel/StoryEvents.vue +48 -0
  225. package/src/app/components/panel/StorySidePanel.vue +76 -0
  226. package/src/app/components/panel/StorySourceCode.vue +248 -0
  227. package/src/app/components/search/SearchItem.vue +89 -0
  228. package/src/app/components/search/SearchItemContent.vue +67 -0
  229. package/src/app/components/search/SearchLoading.vue +16 -0
  230. package/src/app/components/search/SearchModal.vue +44 -0
  231. package/src/app/components/search/SearchPane.vue +319 -0
  232. package/src/app/components/search/search-docs-data.ts +9 -0
  233. package/src/app/components/search/search-title-data.ts +9 -0
  234. package/src/app/components/search/types.ts +4 -0
  235. package/src/app/components/story/GenericMountStory.vue +35 -0
  236. package/src/app/components/story/GenericRenderStory.vue +41 -0
  237. package/src/app/components/story/StoryResponsivePreview.vue +216 -0
  238. package/src/app/components/story/StoryVariantGrid.vue +169 -0
  239. package/src/app/components/story/StoryVariantGridItem.vue +163 -0
  240. package/src/app/components/story/StoryVariantListItem.vue +52 -0
  241. package/src/app/components/story/StoryVariantSingle.vue +105 -0
  242. package/src/app/components/story/StoryVariantSinglePreviewNative.vue +66 -0
  243. package/src/app/components/story/StoryVariantSinglePreviewRemote.vue +143 -0
  244. package/src/app/components/story/StoryVariantSingleView.vue +61 -0
  245. package/src/app/components/story/StoryView.vue +110 -0
  246. package/src/app/components/story/StoryViewer.vue +52 -0
  247. package/src/app/components/toolbar/DevOnlyToolbarOpenInEditor.vue +23 -0
  248. package/src/app/components/toolbar/ToolbarBackground.vue +81 -0
  249. package/src/app/components/toolbar/ToolbarNewTab.vue +29 -0
  250. package/src/app/components/toolbar/ToolbarResponsiveSize.vue +82 -0
  251. package/src/app/components/toolbar/ToolbarTextDirection.vue +19 -0
  252. package/src/app/components/toolbar/ToolbarTitle.vue +21 -0
  253. package/src/app/components/tree/StoryGroup.vue +73 -0
  254. package/src/app/components/tree/StoryList.vue +35 -0
  255. package/src/app/components/tree/StoryListFolder.vue +88 -0
  256. package/src/app/components/tree/StoryListItem.vue +72 -0
  257. package/src/app/index.ts +33 -0
  258. package/src/app/plugin.ts +59 -0
  259. package/src/app/router.ts +29 -0
  260. package/src/app/sandbox.ts +101 -0
  261. package/src/app/stores/command.ts +26 -0
  262. package/src/app/stores/events.ts +36 -0
  263. package/src/app/stores/folder.ts +63 -0
  264. package/src/app/stores/preview-settings.ts +18 -0
  265. package/src/app/stores/story.ts +47 -0
  266. package/src/app/style/floating.pcss +34 -0
  267. package/src/app/style/main.pcss +100 -0
  268. package/src/app/style/sandbox.css +24 -0
  269. package/src/app/style/transitions.pcss +51 -0
  270. package/src/app/types.ts +72 -0
  271. package/src/app/util/commands.ts +57 -0
  272. package/src/app/util/config.ts +5 -0
  273. package/src/app/util/const.ts +4 -0
  274. package/src/app/util/dark.ts +27 -0
  275. package/src/app/util/docs.ts +27 -0
  276. package/src/app/util/env.ts +1 -0
  277. package/src/app/util/events.ts +31 -0
  278. package/src/app/util/keyboard.ts +103 -0
  279. package/src/app/util/mapping.ts +80 -0
  280. package/src/app/util/open-in-editor.ts +3 -0
  281. package/src/app/util/preview-settings.ts +23 -0
  282. package/src/app/util/responsive.ts +3 -0
  283. package/src/app/util/sandbox.ts +9 -0
  284. package/src/app/util/scroll.ts +32 -0
  285. package/src/app/util/select.ts +30 -0
  286. package/src/app/util/state.ts +45 -0
  287. package/src/app/util/tooltip.ts +13 -0
  288. package/src/app/util/variant.ts +21 -0
  289. package/src/bundle-index.js +1 -0
  290. package/src/bundle-main-dev.js +4 -0
  291. package/src/bundle-main.js +5 -0
  292. package/src/bundle-sandbox-dev.js +2 -0
  293. package/src/bundle-sandbox.js +2 -0
  294. package/src/index.ts +1 -0
  295. package/src/shim.d.ts +10 -0
  296. package/src/virtual.d.ts +7 -0
  297. package/tailwind.config.cjs +137 -0
  298. package/tsconfig.json +53 -0
  299. package/vite.config.ts +88 -0
@@ -0,0 +1,5 @@
1
+ import _sfc_main from "./BaseButton.vue2.js";
2
+ "use strict";
3
+ export {
4
+ _sfc_main as default
5
+ };
@@ -0,0 +1,39 @@
1
+ import { defineComponent, computed, createBlock, openBlock, resolveDynamicComponent, normalizeClass, withCtx, renderSlot } from "@poveste/vendors/vue";
2
+ import { RouterLink } from "@poveste/vendors/vue-router";
3
+ "use strict";
4
+ const _sfc_main = /* @__PURE__ */ defineComponent({
5
+ __name: "BaseButton",
6
+ props: {
7
+ to: {},
8
+ href: {},
9
+ color: {}
10
+ },
11
+ setup(__props) {
12
+ const props = __props;
13
+ const comp = computed(() => {
14
+ if (props.to) {
15
+ return RouterLink;
16
+ }
17
+ if (props.href) {
18
+ return "a";
19
+ }
20
+ return "button";
21
+ });
22
+ return (_ctx, _cache) => {
23
+ return openBlock(), createBlock(resolveDynamicComponent(comp.value), {
24
+ class: normalizeClass(["histoire-base-button htw-rounded htw-cursor-pointer", {
25
+ "htw-bg-primary-200 dark:htw-bg-primary-800 hover:htw-bg-primary-300 dark:hover:htw-bg-primary-700": __props.color === "primary" || !__props.color,
26
+ "htw-bg-grey-100 dark:htw-bg-grey-900 hover:htw-bg-grey-200 dark:hover:htw-bg-grey-800": __props.color === "grey"
27
+ }])
28
+ }, {
29
+ default: withCtx(() => [
30
+ renderSlot(_ctx.$slots, "default")
31
+ ]),
32
+ _: 3
33
+ }, 8, ["class"]);
34
+ };
35
+ }
36
+ });
37
+ export {
38
+ _sfc_main as default
39
+ };
@@ -0,0 +1,5 @@
1
+ import _sfc_main from "./BaseCheckbox.vue2.js";
2
+ "use strict";
3
+ export {
4
+ _sfc_main as default
5
+ };
@@ -0,0 +1,78 @@
1
+ import { defineComponent, ref, computed, watch, createElementBlock, openBlock, withKeys, withModifiers, createElementVNode, renderSlot, normalizeClass } from "@poveste/vendors/vue";
2
+ "use strict";
3
+ const _hoisted_1 = { class: "htw-text-white htw-w-[16px] htw-h-[16px] htw-relative" };
4
+ const _hoisted_2 = {
5
+ width: "16",
6
+ height: "16",
7
+ viewBox: "0 0 24 24",
8
+ class: "htw-relative htw-z-10"
9
+ };
10
+ const _hoisted_3 = ["stroke-dasharray", "stroke-dashoffset"];
11
+ const _sfc_main = /* @__PURE__ */ defineComponent({
12
+ __name: "BaseCheckbox",
13
+ props: {
14
+ modelValue: {
15
+ type: Boolean,
16
+ default: false
17
+ }
18
+ },
19
+ emits: {
20
+ "update:modelValue": (_newValue) => true
21
+ },
22
+ setup(__props, { emit: __emit }) {
23
+ const props = __props;
24
+ const emit = __emit;
25
+ function toggle() {
26
+ emit("update:modelValue", !props.modelValue);
27
+ animationEnabled.value = true;
28
+ }
29
+ const path = ref();
30
+ const dasharray = ref(0);
31
+ const progress = computed(() => props.modelValue ? 1 : 0);
32
+ const dashoffset = computed(() => (1 - progress.value) * dasharray.value);
33
+ const animationEnabled = ref(false);
34
+ watch(path, () => {
35
+ dasharray.value = path.value.getTotalLength?.() ?? 21.21;
36
+ });
37
+ return (_ctx, _cache) => {
38
+ return openBlock(), createElementBlock("div", {
39
+ role: "checkbox",
40
+ tabindex: "0",
41
+ class: "histoire-base-checkbox 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",
42
+ onClick: _cache[0] || (_cache[0] = ($event) => toggle()),
43
+ onKeydown: [
44
+ _cache[1] || (_cache[1] = withKeys(withModifiers(($event) => toggle(), ["prevent"]), ["enter"])),
45
+ _cache[2] || (_cache[2] = withKeys(withModifiers(($event) => toggle(), ["prevent"]), ["space"]))
46
+ ]
47
+ }, [
48
+ createElementVNode("div", _hoisted_1, [
49
+ createElementVNode("div", {
50
+ 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", [
51
+ __props.modelValue ? "htw-border-primary-500 htw-border-8" : "htw-border-black/25 dark:htw-border-white/25 htw-delay-150"
52
+ ]])
53
+ }, null, 2),
54
+ (openBlock(), createElementBlock("svg", _hoisted_2, [
55
+ createElementVNode("path", {
56
+ ref_key: "path",
57
+ ref: path,
58
+ d: "m 4 12 l 5 5 l 10 -10",
59
+ fill: "none",
60
+ class: normalizeClass(["htw-stroke-white htw-stroke-2 htw-duration-200 htw-ease-in-out", [
61
+ animationEnabled.value ? "htw-transition-all" : "htw-transition-none",
62
+ {
63
+ "htw-delay-150": __props.modelValue
64
+ }
65
+ ]]),
66
+ "stroke-dasharray": dasharray.value,
67
+ "stroke-dashoffset": dashoffset.value
68
+ }, null, 10, _hoisted_3)
69
+ ]))
70
+ ]),
71
+ renderSlot(_ctx.$slots, "default")
72
+ ], 32);
73
+ };
74
+ }
75
+ });
76
+ export {
77
+ _sfc_main as default
78
+ };
@@ -0,0 +1,14 @@
1
+ import { createElementBlock, openBlock, renderSlot } from "@poveste/vendors/vue";
2
+ /* empty css */
3
+ import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const _sfc_main = {};
5
+ const _hoisted_1 = { class: "histoire-base-empty 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" };
6
+ function _sfc_render(_ctx, _cache) {
7
+ return openBlock(), createElementBlock("div", _hoisted_1, [
8
+ renderSlot(_ctx.$slots, "default", {}, void 0, true)
9
+ ]);
10
+ }
11
+ const BaseEmpty = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-c5ecfead"]]);
12
+ export {
13
+ BaseEmpty as default
14
+ };
@@ -0,0 +1,8 @@
1
+ import _sfc_main from "./BaseIcon.vue2.js";
2
+ /* empty css */
3
+ import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
4
+ "use strict";
5
+ const BaseIcon = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-2114f510"]]);
6
+ export {
7
+ BaseIcon as default
8
+ };
@@ -0,0 +1,29 @@
1
+ import { defineComponent, computed, createElementBlock, createBlock, openBlock, unref } from "@poveste/vendors/vue";
2
+ import { Icon } from "@poveste/vendors/iconify";
3
+ "use strict";
4
+ const _hoisted_1 = ["src", "alt"];
5
+ const _sfc_main = /* @__PURE__ */ defineComponent({
6
+ __name: "BaseIcon",
7
+ props: {
8
+ icon: {}
9
+ },
10
+ setup(__props) {
11
+ const props = __props;
12
+ const isUrl = computed(() => props.icon.startsWith("http") || props.icon.startsWith("data:image") || props.icon.startsWith(".") || props.icon.startsWith("/"));
13
+ return (_ctx, _cache) => {
14
+ return isUrl.value ? (openBlock(), createElementBlock("img", {
15
+ key: 0,
16
+ src: __props.icon,
17
+ alt: __props.icon,
18
+ class: "histoire-base-icon"
19
+ }, null, 8, _hoisted_1)) : (openBlock(), createBlock(unref(Icon), {
20
+ key: 1,
21
+ icon: __props.icon,
22
+ class: "histoire-base-icon"
23
+ }, null, 8, ["icon"]));
24
+ };
25
+ }
26
+ });
27
+ export {
28
+ _sfc_main as default
29
+ };
@@ -0,0 +1,5 @@
1
+ import _sfc_main from "./BaseKeyboardShortcut.vue2.js";
2
+ "use strict";
3
+ export {
4
+ _sfc_main as default
5
+ };
@@ -0,0 +1,20 @@
1
+ import { defineComponent, computed, createElementBlock, openBlock, toDisplayString } from "@poveste/vendors/vue";
2
+ import { formatKey } from "../../util/keyboard.js";
3
+ "use strict";
4
+ const _hoisted_1 = { class: "histoire-base-keyboard-shortcut htw-border htw-border-current htw-opacity-50 htw-px-1 htw-rounded-sm" };
5
+ const _sfc_main = /* @__PURE__ */ defineComponent({
6
+ __name: "BaseKeyboardShortcut",
7
+ props: {
8
+ shortcut: {}
9
+ },
10
+ setup(__props) {
11
+ const props = __props;
12
+ const formatted = computed(() => props.shortcut.split("+").map((k) => formatKey(k.trim())).join(" "));
13
+ return (_ctx, _cache) => {
14
+ return openBlock(), createElementBlock("span", _hoisted_1, toDisplayString(formatted.value), 1);
15
+ };
16
+ }
17
+ });
18
+ export {
19
+ _sfc_main as default
20
+ };
@@ -0,0 +1,5 @@
1
+ import _sfc_main from "./BaseListItem.vue2.js";
2
+ "use strict";
3
+ export {
4
+ _sfc_main as default
5
+ };
@@ -0,0 +1,33 @@
1
+ import { defineComponent, createElementBlock, openBlock, withKeys, normalizeClass, renderSlot } from "@poveste/vendors/vue";
2
+ "use strict";
3
+ const _sfc_main = /* @__PURE__ */ defineComponent({
4
+ __name: "BaseListItem",
5
+ props: {
6
+ isActive: { type: Boolean }
7
+ },
8
+ emits: ["navigate"],
9
+ setup(__props, { emit: __emit }) {
10
+ const emit = __emit;
11
+ function handleNavigate() {
12
+ emit("navigate");
13
+ }
14
+ return (_ctx, _cache) => {
15
+ return openBlock(), createElementBlock("a", {
16
+ class: normalizeClass(["istoire-base-list-ite htw-flex htw-items-center htw-gap-2 htw-text-gray-900 dark:htw-text-gray-100", [
17
+ _ctx.$attrs.class,
18
+ __props.isActive ? "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"
19
+ ]]),
20
+ onClick: _cache[0] || (_cache[0] = ($event) => handleNavigate()),
21
+ onKeyup: [
22
+ _cache[1] || (_cache[1] = withKeys(($event) => handleNavigate(), ["enter"])),
23
+ _cache[2] || (_cache[2] = withKeys(($event) => handleNavigate(), ["space"]))
24
+ ]
25
+ }, [
26
+ renderSlot(_ctx.$slots, "default")
27
+ ], 34);
28
+ };
29
+ }
30
+ });
31
+ export {
32
+ _sfc_main as default
33
+ };
@@ -0,0 +1,33 @@
1
+ import _sfc_main from "./BaseListItemLink.vue2.js";
2
+ import { resolveComponent, createBlock, openBlock, mergeProps, withCtx, createElementVNode, withKeys, normalizeClass, renderSlot } from "@poveste/vendors/vue";
3
+ import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
4
+ "use strict";
5
+ const _hoisted_1 = ["href", "onClick", "onKeyup"];
6
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
7
+ const _component_RouterLink = resolveComponent("RouterLink");
8
+ return openBlock(), createBlock(_component_RouterLink, mergeProps({ class: "histoire-base-list-item-link" }, _ctx.$attrs, { custom: "" }), {
9
+ default: withCtx(({ isActive: linkIsActive, href, navigate }) => [
10
+ createElementVNode("a", {
11
+ href,
12
+ class: normalizeClass(["htw-flex htw-items-center htw-gap-2 htw-text-gray-900 dark:htw-text-gray-100", [
13
+ _ctx.$attrs.class,
14
+ (_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"
15
+ ]]),
16
+ onClick: ($event) => _ctx.handleNavigate($event, navigate),
17
+ onKeyup: [
18
+ withKeys(($event) => _ctx.handleNavigate($event, navigate), ["enter"]),
19
+ withKeys(($event) => _ctx.handleNavigate($event, navigate), ["space"])
20
+ ]
21
+ }, [
22
+ renderSlot(_ctx.$slots, "default", {
23
+ active: _ctx.isActive != null ? _ctx.isActive : linkIsActive
24
+ })
25
+ ], 42, _hoisted_1)
26
+ ]),
27
+ _: 3
28
+ }, 16);
29
+ }
30
+ const BaseListItemLink = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
31
+ export {
32
+ BaseListItemLink as default
33
+ };
@@ -0,0 +1,26 @@
1
+ import { defineComponent } from "@poveste/vendors/vue";
2
+ "use strict";
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
+ export {
25
+ _sfc_main as default
26
+ };
@@ -0,0 +1,5 @@
1
+ import _sfc_main from "./BaseOverflowMenu.vue2.js";
2
+ "use strict";
3
+ export {
4
+ _sfc_main as default
5
+ };
@@ -0,0 +1,100 @@
1
+ import { defineComponent, ref, computed, resolveComponent, createElementBlock, openBlock, createVNode, createBlock, createCommentVNode, withCtx, renderSlot, createElementVNode, unref, reactive, onBeforeUnmount, h } from "@poveste/vendors/vue";
2
+ import { Icon } from "@poveste/vendors/iconify";
3
+ import { useResizeObserver } from "@poveste/vendors/vue-use";
4
+ "use strict";
5
+ const _hoisted_1 = {
6
+ role: "button",
7
+ 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"
8
+ };
9
+ const _hoisted_2 = { class: "htw-flex htw-flex-col htw-items-stretch" };
10
+ const overflowButtonWidth = 32;
11
+ const _sfc_main = /* @__PURE__ */ defineComponent({
12
+ __name: "BaseOverflowMenu",
13
+ setup(__props) {
14
+ const el = ref();
15
+ const availableWidth = ref(0);
16
+ useResizeObserver(el, (entries) => {
17
+ const containerWidth = entries[0].contentRect.width;
18
+ availableWidth.value = containerWidth - overflowButtonWidth;
19
+ });
20
+ const children = ref(/* @__PURE__ */ new Map());
21
+ const visibleChildrenCount = computed(() => {
22
+ let width = 0;
23
+ const c = [...children.value.values()].sort((a, b) => a.index - b.index);
24
+ for (let i = 0; i < c.length; i++) {
25
+ width += c[i].width;
26
+ if (width > availableWidth.value) {
27
+ return i;
28
+ }
29
+ }
30
+ return c.length;
31
+ });
32
+ const ChildWrapper = {
33
+ name: "ChildWrapper",
34
+ props: ["index"],
35
+ setup(props, { slots }) {
36
+ const el2 = ref();
37
+ const state = reactive({ width: 0, index: props.index });
38
+ useResizeObserver(el2, (entries) => {
39
+ const width = entries[0].contentRect.width;
40
+ if (!children.value.has(el2.value)) {
41
+ children.value.set(el2.value, state);
42
+ }
43
+ state.width = width;
44
+ });
45
+ onBeforeUnmount(() => {
46
+ children.value.delete(el2.value);
47
+ });
48
+ const visible = computed(() => visibleChildrenCount.value > state.index);
49
+ return () => h("div", { ref: el2, style: { visibility: visible.value ? "visible" : "hidden" } }, slots.default());
50
+ }
51
+ };
52
+ function ChildrenRender(props, { slots }) {
53
+ const [fragment] = slots.default();
54
+ return fragment.children.map((vnode, index) => h(ChildWrapper, { index }, () => [vnode]));
55
+ }
56
+ function ChildrenSlice(props, { slots }) {
57
+ const [fragment] = slots.default();
58
+ return fragment.children.slice(props.start, props.end);
59
+ }
60
+ return (_ctx, _cache) => {
61
+ const _component_VDropdown = resolveComponent("VDropdown");
62
+ return openBlock(), createElementBlock("div", {
63
+ ref_key: "el",
64
+ ref: el,
65
+ class: "histoire-base-overflow-menu htw-flex htw-overflow-hidden htw-relative"
66
+ }, [
67
+ createVNode(ChildrenRender, null, {
68
+ default: withCtx(() => [
69
+ renderSlot(_ctx.$slots, "default")
70
+ ]),
71
+ _: 3
72
+ }),
73
+ visibleChildrenCount.value < children.value.size ? (openBlock(), createBlock(_component_VDropdown, { key: 0 }, {
74
+ popper: withCtx(() => [
75
+ createElementVNode("div", _hoisted_2, [
76
+ createVNode(ChildrenSlice, { start: visibleChildrenCount.value }, {
77
+ default: withCtx(() => [
78
+ renderSlot(_ctx.$slots, "overflow")
79
+ ]),
80
+ _: 3
81
+ }, 8, ["start"])
82
+ ])
83
+ ]),
84
+ default: withCtx(() => [
85
+ createElementVNode("div", _hoisted_1, [
86
+ createVNode(unref(Icon), {
87
+ icon: "carbon:caret-down",
88
+ class: "htw-w-4 htw-h-4 htw-opacity-50 group-hover:htw-opacity-100"
89
+ })
90
+ ])
91
+ ]),
92
+ _: 3
93
+ })) : createCommentVNode("", true)
94
+ ], 512);
95
+ };
96
+ }
97
+ });
98
+ export {
99
+ _sfc_main as default
100
+ };
@@ -0,0 +1,36 @@
1
+ import _sfc_main from "./BaseOverflowTab.vue2.js";
2
+ import { resolveComponent, createBlock, openBlock, mergeProps, withCtx, createElementVNode, renderSlot, createVNode, Transition, createElementBlock, createCommentVNode } from "@poveste/vendors/vue";
3
+ import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
4
+ "use strict";
5
+ const _hoisted_1 = ["href", "onClick"];
6
+ const _hoisted_2 = {
7
+ key: 0,
8
+ class: "htw-absolute htw-top-0 htw-left-0 htw-h-full htw-w-[2px] htw-bg-primary-500 dark:htw-bg-primary-400"
9
+ };
10
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
11
+ const _component_router_link = resolveComponent("router-link");
12
+ return openBlock(), createBlock(_component_router_link, mergeProps({ class: "histoire-base-overflow-tab" }, _ctx.$attrs, { custom: "" }), {
13
+ default: withCtx(({ isActive, isExactActive, href, navigate }) => [
14
+ createElementVNode("a", mergeProps(_ctx.$attrs, {
15
+ href,
16
+ 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", {
17
+ "htw-text-primary-500 dark:htw-text-primary-400": _ctx.matched != null ? _ctx.matched : _ctx.exact && isExactActive || !_ctx.exact && isActive
18
+ }],
19
+ onClick: navigate
20
+ }), [
21
+ renderSlot(_ctx.$slots, "default"),
22
+ createVNode(Transition, { name: "__histoire-scale-y" }, {
23
+ default: withCtx(() => [
24
+ (_ctx.matched != null ? _ctx.matched : _ctx.exact && isExactActive || !_ctx.exact && isActive) ? (openBlock(), createElementBlock("div", _hoisted_2)) : createCommentVNode("", true)
25
+ ]),
26
+ _: 2
27
+ }, 1024)
28
+ ], 16, _hoisted_1)
29
+ ]),
30
+ _: 3
31
+ }, 16);
32
+ }
33
+ const BaseOverflowTab = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
34
+ export {
35
+ BaseOverflowTab as default
36
+ };
@@ -0,0 +1,18 @@
1
+ import { defineComponent } from "@poveste/vendors/vue";
2
+ "use strict";
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
+ export {
17
+ _sfc_main as default
18
+ };
@@ -0,0 +1,5 @@
1
+ import _sfc_main from "./BaseSelect.vue2.js";
2
+ "use strict";
3
+ export {
4
+ _sfc_main as default
5
+ };
@@ -0,0 +1,77 @@
1
+ import { defineComponent, computed, createBlock, openBlock, unref, withCtx, createElementVNode, createVNode, renderSlot, createTextVNode, toDisplayString, createElementBlock, Fragment, renderList, mergeProps } from "@poveste/vendors/vue";
2
+ import { Icon } from "@poveste/vendors/iconify";
3
+ import { Dropdown } from "@poveste/vendors/floating-vue";
4
+ "use strict";
5
+ const _hoisted_1 = { class: "htw-cursor-pointer htw-w-full htw-outline-none htw-px-2 htw-h-[27px] -htw-my-1 htw-border htw-border-solid htw-border-black/25 dark:htw-border-white/25 hover:htw-border-primary-500 dark:hover:htw-border-primary-500 htw-rounded-sm htw-flex htw-gap-2 htw-items-center htw-leading-normal" };
6
+ const _hoisted_2 = { class: "htw-flex-1 htw-truncate" };
7
+ const _hoisted_3 = { class: "htw-flex htw-flex-col htw-bg-gray-50 dark:htw-bg-gray-700" };
8
+ const _hoisted_4 = ["onClick"];
9
+ const _sfc_main = /* @__PURE__ */ defineComponent({
10
+ __name: "BaseSelect",
11
+ props: {
12
+ modelValue: {},
13
+ options: {}
14
+ },
15
+ emits: ["update:modelValue", "select"],
16
+ setup(__props, { emit: __emit }) {
17
+ const props = __props;
18
+ const emit = __emit;
19
+ const formattedOptions = computed(() => {
20
+ if (Array.isArray(props.options)) {
21
+ return Object.fromEntries(props.options.map((value) => [value, value]));
22
+ }
23
+ return props.options;
24
+ });
25
+ const selectedLabel = computed(() => formattedOptions.value[props.modelValue]);
26
+ function selectValue(value, hide) {
27
+ emit("update:modelValue", value);
28
+ emit("select", value);
29
+ hide();
30
+ }
31
+ return (_ctx, _cache) => {
32
+ return openBlock(), createBlock(unref(Dropdown), {
33
+ class: "histoire-base-select",
34
+ "auto-size": "",
35
+ "auto-boundary-max-size": ""
36
+ }, {
37
+ popper: withCtx(({ hide }) => [
38
+ createElementVNode("div", _hoisted_3, [
39
+ (openBlock(true), createElementBlock(Fragment, null, renderList(formattedOptions.value, (label, value) => {
40
+ return openBlock(), createElementBlock("div", mergeProps({ ref_for: true }, { ..._ctx.$attrs, class: null, style: null }, {
41
+ key: label,
42
+ class: ["htw-px-2 htw-py-1 htw-cursor-pointer hover:htw-bg-primary-100 dark:hover:htw-bg-primary-700", {
43
+ "htw-bg-primary-200 dark:htw-bg-primary-800": props.modelValue === value
44
+ }],
45
+ onClick: ($event) => selectValue(value, hide)
46
+ }), [
47
+ renderSlot(_ctx.$slots, "option", {
48
+ label,
49
+ value
50
+ }, () => [
51
+ createTextVNode(toDisplayString(label), 1)
52
+ ])
53
+ ], 16, _hoisted_4);
54
+ }), 128))
55
+ ])
56
+ ]),
57
+ default: withCtx(() => [
58
+ createElementVNode("div", _hoisted_1, [
59
+ createElementVNode("div", _hoisted_2, [
60
+ renderSlot(_ctx.$slots, "default", { label: selectedLabel.value }, () => [
61
+ createTextVNode(toDisplayString(selectedLabel.value), 1)
62
+ ])
63
+ ]),
64
+ createVNode(unref(Icon), {
65
+ icon: "carbon:chevron-sort",
66
+ class: "htw-w-4 htw-h-4 htw-flex-none htw-ml-auto"
67
+ })
68
+ ])
69
+ ]),
70
+ _: 3
71
+ });
72
+ };
73
+ }
74
+ });
75
+ export {
76
+ _sfc_main as default
77
+ };
@@ -0,0 +1,8 @@
1
+ import _sfc_main from "./BaseSplitPane.vue2.js";
2
+ /* empty css */
3
+ import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
4
+ "use strict";
5
+ const BaseSplitPane = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-4f40a1bb"]]);
6
+ export {
7
+ BaseSplitPane as default
8
+ };