@poveste/app 0.2.1 → 0.3.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.
- package/dist/app/style/floating.pcss +16 -10
- package/dist/app/style/main.pcss +190 -30
- package/dist/app/style/sandbox.css +3 -1
- package/dist/app/style/transitions.pcss +49 -50
- package/dist/bundled/App.js +5 -0
- package/dist/bundled/App.vue_vue_type_script_setup_true_lang.js +169 -0
- package/dist/bundled/_virtual/_plugin-vue_export-helper.js +7 -9
- package/dist/bundled/api.js +5 -9
- package/dist/bundled/app.css +40 -39
- package/dist/bundled/assets/poveste-text-dark.js +4 -0
- package/dist/bundled/assets/poveste-text.js +4 -0
- package/dist/bundled/assets/poveste.js +4 -0
- package/dist/bundled/components/HomeView.js +5 -0
- package/dist/bundled/components/HomeView.vue_vue_type_script_setup_true_lang.js +58 -0
- package/dist/bundled/components/app/AppActions.js +5 -0
- package/dist/bundled/components/app/AppActions.vue_vue_type_script_setup_true_lang.js +63 -0
- package/dist/bundled/components/app/AppHeader.js +5 -0
- package/dist/bundled/components/app/AppHeader.vue_vue_type_script_setup_true_lang.js +21 -0
- package/dist/bundled/components/app/AppLogo.js +5 -0
- package/dist/bundled/components/app/AppLogo.vue_vue_type_script_setup_true_lang.js +26 -0
- package/dist/bundled/components/app/Breadcrumb.js +7 -0
- package/dist/bundled/components/app/Breadcrumb.vue_vue_type_script_setup_true_lang.js +68 -0
- package/dist/bundled/components/app/HomeCounter.js +5 -0
- package/dist/bundled/components/app/HomeCounter.vue_vue_type_script_setup_true_lang.js +35 -0
- package/dist/bundled/components/app/InitialLoading.js +5 -0
- package/dist/bundled/components/app/InitialLoading.vue_vue_type_script_setup_true_lang.js +34 -0
- package/dist/bundled/components/app/MobileOverlay.js +5 -0
- package/dist/bundled/components/app/MobileOverlay.vue_vue_type_script_setup_true_lang.js +34 -0
- package/dist/bundled/components/app/TopBar.js +5 -0
- package/dist/bundled/components/app/TopBar.vue_vue_type_script_setup_true_lang.js +65 -0
- package/dist/bundled/components/app/TopBarChip.js +11 -0
- package/dist/bundled/components/app/TopBarChipItem.js +11 -0
- package/dist/bundled/components/base/BaseButton.js +5 -0
- package/dist/bundled/components/base/BaseButton.vue_vue_type_script_setup_true_lang.js +30 -0
- package/dist/bundled/components/base/BaseCheckbox.js +5 -0
- package/dist/bundled/components/base/BaseCheckbox.vue_vue_type_script_setup_true_lang.js +53 -0
- package/dist/bundled/components/base/BaseEmpty.js +12 -0
- package/dist/bundled/components/base/BaseIcon.js +7 -0
- package/dist/bundled/components/base/BaseIcon.vue_vue_type_script_setup_true_lang.js +26 -0
- package/dist/bundled/components/base/BaseKeyboardShortcut.js +5 -0
- package/dist/bundled/components/base/BaseKeyboardShortcut.vue_vue_type_script_setup_true_lang.js +17 -0
- package/dist/bundled/components/base/BaseListItem.js +5 -0
- package/dist/bundled/components/base/BaseListItem.vue_vue_type_script_setup_true_lang.js +22 -0
- package/dist/bundled/components/base/BaseListItemLink.js +24 -0
- package/dist/bundled/components/base/BaseListItemLink.vue_vue_type_script_lang.js +19 -0
- package/dist/bundled/components/base/BaseOverflowMenu.js +5 -0
- package/dist/bundled/components/base/BaseOverflowMenu.vue_vue_type_script_setup_true_lang.js +95 -0
- package/dist/bundled/components/base/BaseOverflowTab.js +26 -0
- package/dist/bundled/components/base/BaseOverflowTab.vue_vue_type_script_lang.js +17 -0
- package/dist/bundled/components/base/BaseSelect.js +5 -0
- package/dist/bundled/components/base/BaseSelect.vue_vue_type_script_setup_true_lang.js +59 -0
- package/dist/bundled/components/base/BaseSplitPane.js +7 -0
- package/dist/bundled/components/base/BaseSplitPane.vue_vue_type_script_setup_true_lang.js +159 -0
- package/dist/bundled/components/base/BaseTab.js +26 -0
- package/dist/bundled/components/base/BaseTab.vue_vue_type_script_lang.js +17 -0
- package/dist/bundled/components/base/BaseTag.js +11 -0
- package/dist/bundled/components/command/CommandPrompts.js +5 -0
- package/dist/bundled/components/command/CommandPrompts.vue_vue_type_script_setup_true_lang.js +86 -0
- package/dist/bundled/components/command/CommandPromptsModal.js +5 -0
- package/dist/bundled/components/command/CommandPromptsModal.vue_vue_type_script_setup_true_lang.js +35 -0
- package/dist/bundled/components/command/PromptSelect.js +5 -0
- package/dist/bundled/components/command/PromptSelect.vue_vue_type_script_setup_true_lang.js +111 -0
- package/dist/bundled/components/command/PromptText.js +5 -0
- package/dist/bundled/components/command/PromptText.vue_vue_type_script_setup_true_lang.js +51 -0
- package/dist/bundled/components/layout/LayoutItem.js +5 -0
- package/dist/bundled/components/layout/LayoutItem.vue_vue_type_script_setup_true_lang.js +42 -0
- package/dist/bundled/components/layout/LayoutItemGroup.js +5 -0
- package/dist/bundled/components/layout/LayoutItemGroup.vue_vue_type_script_setup_true_lang.js +19 -0
- package/dist/bundled/components/layout/LayoutModal.js +5 -0
- package/dist/bundled/components/layout/LayoutModal.vue_vue_type_script_setup_true_lang.js +47 -0
- package/dist/bundled/components/layout/LayoutPane.js +5 -0
- package/dist/bundled/components/layout/LayoutPane.vue_vue_type_script_setup_true_lang.js +47 -0
- package/dist/bundled/components/misc/CheckerboardPattern.js +34 -0
- package/dist/bundled/components/misc/HatchedPattern.js +12 -0
- package/dist/bundled/components/panel/ControlsComponentPropItem.js +5 -0
- package/dist/bundled/components/panel/ControlsComponentPropItem.vue_vue_type_script_setup_true_lang.js +60 -0
- package/dist/bundled/components/panel/ControlsComponentProps.js +5 -0
- package/dist/bundled/components/panel/ControlsComponentProps.vue_vue_type_script_setup_true_lang.js +39 -0
- package/dist/bundled/components/panel/ControlsComponentState.js +5 -0
- package/dist/bundled/components/panel/ControlsComponentState.vue_vue_type_script_setup_true_lang.js +29 -0
- package/dist/bundled/components/panel/ControlsComponentStateItem.js +5 -0
- package/dist/bundled/components/panel/ControlsComponentStateItem.vue_vue_type_script_setup_true_lang.js +40 -0
- package/dist/bundled/components/panel/PaneTabs.js +5 -0
- package/dist/bundled/components/panel/PaneTabs.vue_vue_type_script_setup_true_lang.js +137 -0
- package/dist/bundled/components/panel/StatePresets.js +5 -0
- package/dist/bundled/components/panel/StatePresets.vue_vue_type_script_setup_true_lang.js +147 -0
- package/dist/bundled/components/panel/StoryControls.js +5 -0
- package/dist/bundled/components/panel/StoryControls.vue_vue_type_script_setup_true_lang.js +73 -0
- package/dist/bundled/components/panel/StoryDocs.js +5 -0
- package/dist/bundled/components/panel/StoryDocs.vue_vue_type_script_setup_true_lang.js +130 -0
- package/dist/bundled/components/panel/StoryEvent.js +5 -0
- package/dist/bundled/components/panel/StoryEvent.vue_vue_type_script_setup_true_lang.js +36 -0
- package/dist/bundled/components/panel/StoryEvents.js +5 -0
- package/dist/bundled/components/panel/StoryEvents.vue_vue_type_script_setup_true_lang.js +42 -0
- package/dist/bundled/components/panel/StorySidePanel.js +5 -0
- package/dist/bundled/components/panel/StorySidePanel.vue_vue_type_script_setup_true_lang.js +69 -0
- package/dist/bundled/components/panel/StorySourceCode.js +7 -0
- package/dist/bundled/components/panel/StorySourceCode.vue_vue_type_script_setup_true_lang.js +146 -0
- package/dist/bundled/components/search/SearchItem.js +7 -0
- package/dist/bundled/components/search/SearchItem.vue_vue_type_script_setup_true_lang.js +67 -0
- package/dist/bundled/components/search/SearchItemContent.js +5 -0
- package/dist/bundled/components/search/SearchItemContent.vue_vue_type_script_setup_true_lang.js +49 -0
- package/dist/bundled/components/search/SearchLoading.js +5 -0
- package/dist/bundled/components/search/SearchLoading.vue_vue_type_script_setup_true_lang.js +17 -0
- package/dist/bundled/components/search/SearchModal.js +5 -0
- package/dist/bundled/components/search/SearchModal.vue_vue_type_script_setup_true_lang.js +38 -0
- package/dist/bundled/components/search/SearchPane.js +5 -0
- package/dist/bundled/components/search/SearchPane.vue_vue_type_script_setup_true_lang.js +229 -0
- package/dist/bundled/components/search/search-docs-data.js +6 -8
- package/dist/bundled/components/search/search-title-data.js +7 -9
- package/dist/bundled/components/story/GenericMountStory.js +5 -0
- package/dist/bundled/components/story/GenericMountStory.vue_vue_type_script_setup_true_lang.js +27 -0
- package/dist/bundled/components/story/GenericRenderStory.js +5 -0
- package/dist/bundled/components/story/GenericRenderStory.vue_vue_type_script_setup_true_lang.js +30 -0
- package/dist/bundled/components/story/StoryResponsivePreview.js +7 -0
- package/dist/bundled/components/story/StoryResponsivePreview.vue_vue_type_script_setup_true_lang.js +170 -0
- package/dist/bundled/components/story/StoryVariantGrid.js +5 -0
- package/dist/bundled/components/story/StoryVariantGrid.vue_vue_type_script_setup_true_lang.js +99 -0
- package/dist/bundled/components/story/StoryVariantGridItem.js +7 -0
- package/dist/bundled/components/story/StoryVariantGridItem.vue_vue_type_script_setup_true_lang.js +142 -0
- package/dist/bundled/components/story/StoryVariantListItem.js +7 -0
- package/dist/bundled/components/story/StoryVariantListItem.vue_vue_type_script_setup_true_lang.js +44 -0
- package/dist/bundled/components/story/StoryVariantSingle.js +7 -0
- package/dist/bundled/components/story/StoryVariantSingle.vue_vue_type_script_setup_true_lang.js +76 -0
- package/dist/bundled/components/story/StoryVariantSinglePreviewNative.js +5 -0
- package/dist/bundled/components/story/StoryVariantSinglePreviewNative.vue_vue_type_script_setup_true_lang.js +68 -0
- package/dist/bundled/components/story/StoryVariantSinglePreviewRemote.js +5 -0
- package/dist/bundled/components/story/StoryVariantSinglePreviewRemote.vue_vue_type_script_setup_true_lang.js +134 -0
- package/dist/bundled/components/story/StoryVariantSingleView.js +5 -0
- package/dist/bundled/components/story/StoryVariantSingleView.vue_vue_type_script_setup_true_lang.js +30 -0
- package/dist/bundled/components/story/StoryView.js +5 -0
- package/dist/bundled/components/story/StoryView.vue_vue_type_script_setup_true_lang.js +95 -0
- package/dist/bundled/components/story/StoryViewer.js +7 -0
- package/dist/bundled/components/story/StoryViewer.vue_vue_type_script_setup_true_lang.js +43 -0
- package/dist/bundled/components/toolbar/DevOnlyToolbarOpenInEditor.js +5 -0
- package/dist/bundled/components/toolbar/DevOnlyToolbarOpenInEditor.vue_vue_type_script_setup_true_lang.js +30 -0
- package/dist/bundled/components/toolbar/ToolbarBackground.js +7 -0
- package/dist/bundled/components/toolbar/ToolbarBackground.vue_vue_type_script_setup_true_lang.js +109 -0
- package/dist/bundled/components/toolbar/ToolbarNewTab.js +5 -0
- package/dist/bundled/components/toolbar/ToolbarNewTab.vue_vue_type_script_setup_true_lang.js +34 -0
- package/dist/bundled/components/toolbar/ToolbarResponsiveSize.js +5 -0
- package/dist/bundled/components/toolbar/ToolbarResponsiveSize.vue_vue_type_script_setup_true_lang.js +93 -0
- package/dist/bundled/components/toolbar/ToolbarTextDirection.js +5 -0
- package/dist/bundled/components/toolbar/ToolbarTextDirection.vue_vue_type_script_setup_true_lang.js +26 -0
- package/dist/bundled/components/toolbar/ToolbarTitle.js +7 -0
- package/dist/bundled/components/toolbar/ToolbarTitle.vue_vue_type_script_setup_true_lang.js +35 -0
- package/dist/bundled/components/tree/StoryGroup.js +5 -0
- package/dist/bundled/components/tree/StoryGroup.vue_vue_type_script_setup_true_lang.js +59 -0
- package/dist/bundled/components/tree/StoryList.js +5 -0
- package/dist/bundled/components/tree/StoryList.vue_vue_type_script_setup_true_lang.js +33 -0
- package/dist/bundled/components/tree/StoryListFolder.js +7 -0
- package/dist/bundled/components/tree/StoryListFolder.vue_vue_type_script_setup_true_lang.js +67 -0
- package/dist/bundled/components/tree/StoryListItem.js +7 -0
- package/dist/bundled/components/tree/StoryListItem.vue_vue_type_script_setup_true_lang.js +58 -0
- package/dist/bundled/index.js +24 -33
- package/dist/bundled/plugin.js +43 -46
- package/dist/bundled/router.js +20 -28
- package/dist/bundled/sandbox.js +85 -99
- package/dist/bundled/stores/command.js +21 -23
- package/dist/bundled/stores/events.js +26 -27
- package/dist/bundled/stores/folder.js +37 -51
- package/dist/bundled/stores/layout.js +9 -13
- package/dist/bundled/stores/preview-settings.js +28 -31
- package/dist/bundled/stores/story.js +54 -41
- package/dist/bundled/util/color-scheme.js +29 -21
- package/dist/bundled/util/commands.js +39 -50
- package/dist/bundled/util/config.js +5 -7
- package/dist/bundled/util/const.js +8 -12
- package/dist/bundled/util/dark.js +16 -20
- package/dist/bundled/util/docs.js +14 -23
- package/dist/bundled/util/env.js +4 -4
- package/dist/bundled/util/events.js +22 -28
- package/dist/bundled/util/highlighter.js +23 -0
- package/dist/bundled/util/keyboard.js +89 -103
- package/dist/bundled/util/mapping.js +49 -64
- package/dist/bundled/util/open-in-editor.js +4 -4
- package/dist/bundled/util/preview-settings.js +23 -26
- package/dist/bundled/util/responsive.js +4 -5
- package/dist/bundled/util/sandbox.js +7 -8
- package/dist/bundled/util/scroll.js +20 -28
- package/dist/bundled/util/select.js +21 -26
- package/dist/bundled/util/state.js +25 -36
- package/dist/bundled/util/tooltip.js +8 -9
- package/dist/bundled/util/variant.js +14 -17
- package/dist/style.css +2805 -2953
- package/package.json +12 -9
- package/src/__tests__/postcss-scope-wrapper.spec.ts +65 -0
- package/src/app/App.vue +16 -16
- package/src/app/components/HomeView.vue +3 -3
- package/src/app/components/app/AppActions.vue +3 -3
- package/src/app/components/app/AppHeader.vue +4 -4
- package/src/app/components/app/Breadcrumb.vue +8 -8
- package/src/app/components/app/HomeCounter.vue +5 -5
- package/src/app/components/app/InitialLoading.vue +5 -5
- package/src/app/components/app/MobileOverlay.vue +5 -5
- package/src/app/components/app/TopBar.vue +4 -4
- package/src/app/components/app/TopBarChip.vue +1 -1
- package/src/app/components/app/TopBarChipItem.vue +1 -1
- package/src/app/components/base/BaseButton.vue +3 -3
- package/src/app/components/base/BaseCheckbox.vue +9 -9
- package/src/app/components/base/BaseCopyIcon.vue +1 -1
- package/src/app/components/base/BaseEmpty.vue +4 -4
- package/src/app/components/base/BaseKeyboardShortcut.vue +1 -1
- package/src/app/components/base/BaseListItem.vue +3 -3
- package/src/app/components/base/BaseListItemLink.vue +3 -3
- package/src/app/components/base/BaseOverflowMenu.vue +4 -4
- package/src/app/components/base/BaseOverflowTab.vue +3 -3
- package/src/app/components/base/BaseSelect.vue +6 -6
- package/src/app/components/base/BaseSplitPane.vue +18 -18
- package/src/app/components/base/BaseTab.vue +3 -3
- package/src/app/components/base/BaseTag.vue +1 -1
- package/src/app/components/command/CommandPrompts.vue +5 -5
- package/src/app/components/command/CommandPromptsModal.vue +5 -5
- package/src/app/components/command/PromptSelect.vue +14 -14
- package/src/app/components/command/PromptText.vue +4 -4
- package/src/app/components/layout/LayoutItem.vue +4 -4
- package/src/app/components/layout/LayoutItemGroup.vue +1 -1
- package/src/app/components/layout/LayoutModal.vue +7 -7
- package/src/app/components/layout/LayoutPane.vue +1 -1
- package/src/app/components/panel/ControlsComponentPropItem.vue +2 -2
- package/src/app/components/panel/ControlsComponentProps.vue +3 -3
- package/src/app/components/panel/ControlsComponentState.vue +2 -2
- package/src/app/components/panel/PaneTabs.vue +4 -4
- package/src/app/components/panel/StatePresets.vue +16 -16
- package/src/app/components/panel/StoryControls.vue +7 -8
- package/src/app/components/panel/StoryDocs.vue +5 -5
- package/src/app/components/panel/StoryEvent.vue +7 -7
- package/src/app/components/panel/StoryEvents.vue +1 -1
- package/src/app/components/panel/StorySidePanel.vue +6 -6
- package/src/app/components/panel/StorySourceCode.vue +31 -33
- package/src/app/components/search/SearchItem.vue +5 -17
- package/src/app/components/search/SearchItemContent.vue +9 -9
- package/src/app/components/search/SearchLoading.vue +2 -2
- package/src/app/components/search/SearchModal.vue +9 -9
- package/src/app/components/search/SearchPane.vue +41 -17
- package/src/app/components/story/StoryResponsivePreview.vue +27 -27
- package/src/app/components/story/StoryVariantGrid.vue +5 -5
- package/src/app/components/story/StoryVariantGridItem.vue +21 -21
- package/src/app/components/story/StoryVariantListItem.vue +4 -4
- package/src/app/components/story/StoryVariantSingle.vue +9 -9
- package/src/app/components/story/StoryVariantSinglePreviewNative.vue +7 -8
- package/src/app/components/story/StoryVariantSinglePreviewRemote.vue +15 -14
- package/src/app/components/story/StoryVariantSingleView.vue +1 -1
- package/src/app/components/story/StoryView.vue +5 -5
- package/src/app/components/story/StoryViewer.vue +1 -1
- package/src/app/components/toolbar/DevOnlyToolbarOpenInEditor.vue +1 -1
- package/src/app/components/toolbar/ToolbarBackground.vue +16 -16
- package/src/app/components/toolbar/ToolbarNewTab.vue +1 -1
- package/src/app/components/toolbar/ToolbarResponsiveSize.vue +14 -14
- package/src/app/components/toolbar/ToolbarTextDirection.vue +1 -1
- package/src/app/components/toolbar/ToolbarTitle.vue +6 -6
- package/src/app/components/tree/StoryGroup.vue +5 -5
- package/src/app/components/tree/StoryList.vue +1 -1
- package/src/app/components/tree/StoryListFolder.vue +6 -6
- package/src/app/components/tree/StoryListItem.vue +6 -6
- package/src/app/sandbox.ts +36 -10
- package/src/app/stores/story.ts +17 -0
- package/src/app/style/floating.pcss +16 -10
- package/src/app/style/main.pcss +190 -30
- package/src/app/style/sandbox.css +3 -1
- package/src/app/style/transitions.pcss +49 -50
- package/src/app/util/env.ts +5 -0
- package/src/app/util/events.ts +0 -1
- package/src/app/util/highlighter.ts +32 -0
- package/src/app/util/scroll.ts +2 -1
- package/src/app/util/tooltip.ts +2 -2
- package/dist/bundled/App.vue.js +0 -5
- package/dist/bundled/App.vue2.js +0 -211
- package/dist/bundled/assets/poveste-text-dark.svg.js +0 -4
- package/dist/bundled/assets/poveste-text.svg.js +0 -4
- package/dist/bundled/assets/poveste.svg.js +0 -4
- package/dist/bundled/components/HomeView.vue.js +0 -5
- package/dist/bundled/components/HomeView.vue2.js +0 -66
- package/dist/bundled/components/app/AppActions.vue.js +0 -5
- package/dist/bundled/components/app/AppActions.vue2.js +0 -76
- package/dist/bundled/components/app/AppHeader.vue.js +0 -5
- package/dist/bundled/components/app/AppHeader.vue2.js +0 -29
- package/dist/bundled/components/app/AppLogo.vue.js +0 -5
- package/dist/bundled/components/app/AppLogo.vue2.js +0 -29
- package/dist/bundled/components/app/Breadcrumb.vue.js +0 -8
- package/dist/bundled/components/app/Breadcrumb.vue2.js +0 -91
- package/dist/bundled/components/app/HomeCounter.vue.js +0 -5
- package/dist/bundled/components/app/HomeCounter.vue2.js +0 -42
- package/dist/bundled/components/app/InitialLoading.vue.js +0 -5
- package/dist/bundled/components/app/InitialLoading.vue2.js +0 -51
- package/dist/bundled/components/app/MobileOverlay.vue.js +0 -5
- package/dist/bundled/components/app/MobileOverlay.vue2.js +0 -45
- package/dist/bundled/components/app/TopBar.vue.js +0 -5
- package/dist/bundled/components/app/TopBar.vue2.js +0 -73
- package/dist/bundled/components/app/TopBarChip.vue.js +0 -13
- package/dist/bundled/components/app/TopBarChipItem.vue.js +0 -13
- package/dist/bundled/components/base/BaseButton.vue.js +0 -5
- package/dist/bundled/components/base/BaseButton.vue2.js +0 -39
- package/dist/bundled/components/base/BaseCheckbox.vue.js +0 -5
- package/dist/bundled/components/base/BaseCheckbox.vue2.js +0 -78
- package/dist/bundled/components/base/BaseEmpty.vue.js +0 -14
- package/dist/bundled/components/base/BaseIcon.vue.js +0 -8
- package/dist/bundled/components/base/BaseIcon.vue2.js +0 -29
- package/dist/bundled/components/base/BaseKeyboardShortcut.vue.js +0 -5
- package/dist/bundled/components/base/BaseKeyboardShortcut.vue2.js +0 -20
- package/dist/bundled/components/base/BaseListItem.vue.js +0 -5
- package/dist/bundled/components/base/BaseListItem.vue2.js +0 -33
- package/dist/bundled/components/base/BaseListItemLink.vue.js +0 -33
- package/dist/bundled/components/base/BaseListItemLink.vue2.js +0 -26
- package/dist/bundled/components/base/BaseOverflowMenu.vue.js +0 -5
- package/dist/bundled/components/base/BaseOverflowMenu.vue2.js +0 -100
- package/dist/bundled/components/base/BaseOverflowTab.vue.js +0 -36
- package/dist/bundled/components/base/BaseOverflowTab.vue2.js +0 -18
- package/dist/bundled/components/base/BaseSelect.vue.js +0 -5
- package/dist/bundled/components/base/BaseSelect.vue2.js +0 -77
- package/dist/bundled/components/base/BaseSplitPane.vue.js +0 -8
- package/dist/bundled/components/base/BaseSplitPane.vue2.js +0 -187
- package/dist/bundled/components/base/BaseTab.vue.js +0 -36
- package/dist/bundled/components/base/BaseTab.vue2.js +0 -18
- package/dist/bundled/components/base/BaseTag.vue.js +0 -13
- package/dist/bundled/components/command/CommandPrompts.vue.js +0 -5
- package/dist/bundled/components/command/CommandPrompts.vue2.js +0 -91
- package/dist/bundled/components/command/CommandPromptsModal.vue.js +0 -5
- package/dist/bundled/components/command/CommandPromptsModal.vue2.js +0 -45
- package/dist/bundled/components/command/PromptSelect.vue.js +0 -5
- package/dist/bundled/components/command/PromptSelect.vue2.js +0 -142
- package/dist/bundled/components/command/PromptText.vue.js +0 -5
- package/dist/bundled/components/command/PromptText.vue2.js +0 -67
- package/dist/bundled/components/layout/LayoutItem.vue.js +0 -5
- package/dist/bundled/components/layout/LayoutItem.vue2.js +0 -44
- package/dist/bundled/components/layout/LayoutItemGroup.vue.js +0 -5
- package/dist/bundled/components/layout/LayoutItemGroup.vue2.js +0 -25
- package/dist/bundled/components/layout/LayoutModal.vue.js +0 -5
- package/dist/bundled/components/layout/LayoutModal.vue2.js +0 -68
- package/dist/bundled/components/layout/LayoutPane.vue.js +0 -5
- package/dist/bundled/components/layout/LayoutPane.vue2.js +0 -59
- package/dist/bundled/components/misc/CheckerboardPattern.vue.js +0 -40
- package/dist/bundled/components/misc/HatchedPattern.vue.js +0 -12
- package/dist/bundled/components/panel/ControlsComponentPropItem.vue.js +0 -5
- package/dist/bundled/components/panel/ControlsComponentPropItem.vue2.js +0 -72
- package/dist/bundled/components/panel/ControlsComponentProps.vue.js +0 -5
- package/dist/bundled/components/panel/ControlsComponentProps.vue2.js +0 -45
- package/dist/bundled/components/panel/ControlsComponentState.vue.js +0 -5
- package/dist/bundled/components/panel/ControlsComponentState.vue2.js +0 -41
- package/dist/bundled/components/panel/ControlsComponentStateItem.vue.js +0 -5
- package/dist/bundled/components/panel/ControlsComponentStateItem.vue2.js +0 -46
- package/dist/bundled/components/panel/PaneTabs.vue.js +0 -5
- package/dist/bundled/components/panel/PaneTabs.vue2.js +0 -114
- package/dist/bundled/components/panel/StatePresets.vue.js +0 -5
- package/dist/bundled/components/panel/StatePresets.vue2.js +0 -193
- package/dist/bundled/components/panel/StoryControls.vue.js +0 -5
- package/dist/bundled/components/panel/StoryControls.vue2.js +0 -87
- package/dist/bundled/components/panel/StoryDocs.vue.js +0 -7
- package/dist/bundled/components/panel/StoryDocs.vue2.js +0 -161
- package/dist/bundled/components/panel/StoryEvent.vue.js +0 -5
- package/dist/bundled/components/panel/StoryEvent.vue2.js +0 -59
- package/dist/bundled/components/panel/StoryEvents.vue.js +0 -5
- package/dist/bundled/components/panel/StoryEvents.vue2.js +0 -53
- package/dist/bundled/components/panel/StorySidePanel.vue.js +0 -5
- package/dist/bundled/components/panel/StorySidePanel.vue2.js +0 -94
- package/dist/bundled/components/panel/StorySourceCode.vue.js +0 -8
- package/dist/bundled/components/panel/StorySourceCode.vue2.js +0 -204
- package/dist/bundled/components/search/SearchItem.vue.js +0 -8
- package/dist/bundled/components/search/SearchItem.vue2.js +0 -93
- package/dist/bundled/components/search/SearchItemContent.vue.js +0 -5
- package/dist/bundled/components/search/SearchItemContent.vue2.js +0 -71
- package/dist/bundled/components/search/SearchLoading.vue.js +0 -5
- package/dist/bundled/components/search/SearchLoading.vue2.js +0 -21
- package/dist/bundled/components/search/SearchModal.vue.js +0 -5
- package/dist/bundled/components/search/SearchModal.vue2.js +0 -51
- package/dist/bundled/components/search/SearchPane.vue.js +0 -5
- package/dist/bundled/components/search/SearchPane.vue2.js +0 -272
- package/dist/bundled/components/story/GenericMountStory.vue.js +0 -5
- package/dist/bundled/components/story/GenericMountStory.vue2.js +0 -34
- package/dist/bundled/components/story/GenericRenderStory.vue.js +0 -5
- package/dist/bundled/components/story/GenericRenderStory.vue2.js +0 -39
- package/dist/bundled/components/story/StoryResponsivePreview.vue.js +0 -8
- package/dist/bundled/components/story/StoryResponsivePreview.vue2.js +0 -207
- package/dist/bundled/components/story/StoryVariantGrid.vue.js +0 -5
- package/dist/bundled/components/story/StoryVariantGrid.vue2.js +0 -127
- package/dist/bundled/components/story/StoryVariantGridItem.vue.js +0 -8
- package/dist/bundled/components/story/StoryVariantGridItem.vue2.js +0 -170
- package/dist/bundled/components/story/StoryVariantListItem.vue.js +0 -8
- package/dist/bundled/components/story/StoryVariantListItem.vue2.js +0 -55
- package/dist/bundled/components/story/StoryVariantSingle.vue.js +0 -8
- package/dist/bundled/components/story/StoryVariantSingle.vue2.js +0 -107
- package/dist/bundled/components/story/StoryVariantSinglePreviewNative.vue.js +0 -5
- package/dist/bundled/components/story/StoryVariantSinglePreviewNative.vue2.js +0 -73
- package/dist/bundled/components/story/StoryVariantSinglePreviewRemote.vue.js +0 -5
- package/dist/bundled/components/story/StoryVariantSinglePreviewRemote.vue2.js +0 -153
- package/dist/bundled/components/story/StoryVariantSingleView.vue.js +0 -5
- package/dist/bundled/components/story/StoryVariantSingleView.vue2.js +0 -35
- package/dist/bundled/components/story/StoryView.vue.js +0 -5
- package/dist/bundled/components/story/StoryView.vue2.js +0 -114
- package/dist/bundled/components/story/StoryViewer.vue.js +0 -8
- package/dist/bundled/components/story/StoryViewer.vue2.js +0 -55
- package/dist/bundled/components/toolbar/DevOnlyToolbarOpenInEditor.vue.js +0 -5
- package/dist/bundled/components/toolbar/DevOnlyToolbarOpenInEditor.vue2.js +0 -35
- package/dist/bundled/components/toolbar/ToolbarBackground.vue.js +0 -8
- package/dist/bundled/components/toolbar/ToolbarBackground.vue2.js +0 -127
- package/dist/bundled/components/toolbar/ToolbarNewTab.vue.js +0 -5
- package/dist/bundled/components/toolbar/ToolbarNewTab.vue2.js +0 -39
- package/dist/bundled/components/toolbar/ToolbarResponsiveSize.vue.js +0 -5
- package/dist/bundled/components/toolbar/ToolbarResponsiveSize.vue2.js +0 -127
- package/dist/bundled/components/toolbar/ToolbarTextDirection.vue.js +0 -5
- package/dist/bundled/components/toolbar/ToolbarTextDirection.vue2.js +0 -31
- package/dist/bundled/components/toolbar/ToolbarTitle.vue.js +0 -8
- package/dist/bundled/components/toolbar/ToolbarTitle.vue2.js +0 -49
- package/dist/bundled/components/tree/StoryGroup.vue.js +0 -5
- package/dist/bundled/components/tree/StoryGroup.vue2.js +0 -74
- package/dist/bundled/components/tree/StoryList.vue.js +0 -5
- package/dist/bundled/components/tree/StoryList.vue2.js +0 -41
- package/dist/bundled/components/tree/StoryListFolder.vue.js +0 -8
- package/dist/bundled/components/tree/StoryListFolder.vue2.js +0 -86
- package/dist/bundled/components/tree/StoryListItem.vue.js +0 -8
- package/dist/bundled/components/tree/StoryListItem.vue2.js +0 -69
|
@@ -1,51 +1,50 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
.__poveste-scale-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}
|
|
1
|
+
/*
|
|
2
|
+
* Vue transition classes. Written out in full rather than with SCSS-style
|
|
3
|
+
* `&-enter-active` concatenation: Tailwind v4 uses native CSS nesting, where
|
|
4
|
+
* `&` is a real selector reference (`:is(…)`) and cannot be string-joined
|
|
5
|
+
* with a suffix. v3 resolved that through postcss-nested.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
.__poveste-scale-x-enter-active,
|
|
9
|
+
.__poveste-scale-x-leave-active {
|
|
10
|
+
transition: transform .15s, opacity .15s;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.__poveste-scale-x-enter-from,
|
|
14
|
+
.__poveste-scale-x-leave-to {
|
|
15
|
+
transform: scaleX(0);
|
|
16
|
+
opacity: 0;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.__poveste-scale-y-enter-active,
|
|
20
|
+
.__poveste-scale-y-leave-active {
|
|
21
|
+
transition: transform .15s, opacity .15s;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.__poveste-scale-y-enter-from,
|
|
25
|
+
.__poveste-scale-y-leave-to {
|
|
26
|
+
transform: scaleY(0);
|
|
27
|
+
opacity: 0;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.__poveste-fade-enter-active,
|
|
31
|
+
.__poveste-fade-leave-active {
|
|
32
|
+
transition: opacity .15s;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.__poveste-fade-enter-from,
|
|
36
|
+
.__poveste-fade-leave-to {
|
|
37
|
+
opacity: 0;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.__poveste-fade-bottom-enter-active,
|
|
41
|
+
.__poveste-fade-bottom-leave-active {
|
|
42
|
+
transition: transform .15s, opacity .15s;
|
|
43
|
+
transform: translateY(0px);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.__poveste-fade-bottom-enter-from,
|
|
47
|
+
.__poveste-fade-bottom-leave-to {
|
|
48
|
+
transform: translateY(32px);
|
|
49
|
+
opacity: 0;
|
|
51
50
|
}
|
package/src/app/util/env.ts
CHANGED
|
@@ -1 +1,6 @@
|
|
|
1
|
+
// `navigator.platform` is deprecated with no cross-browser replacement:
|
|
2
|
+
// `navigator.userAgentData` is Chromium-only, so reading it here would simply
|
|
3
|
+
// stop detecting macOS in Safari and Firefox — the two places where getting the
|
|
4
|
+
// ⌘ shortcuts right matters most.
|
|
5
|
+
// eslint-disable-next-line ts/no-deprecated
|
|
1
6
|
export const isMac = navigator.platform.toLowerCase().includes('mac')
|
package/src/app/util/events.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { EVENT_SEND } from './const'
|
|
2
2
|
|
|
3
3
|
export async function logEvent(name: string, argument) {
|
|
4
|
-
console.log('[poveste] Event fired', { name, argument })
|
|
5
4
|
const event = {
|
|
6
5
|
name,
|
|
7
6
|
argument: JSON.parse(stringifyEvent(argument)), // Needed for HTMLEvent that can't be cloned
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { Highlighter } from 'shiki'
|
|
2
|
+
import { createHighlighter } from 'shiki'
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Shiki is meant to be used as a singleton: each instance carries its own WASM
|
|
6
|
+
* engine and grammar set. The source pane unmounts and remounts on every story
|
|
7
|
+
* navigation, so creating one per mount grows memory for the lifetime of the
|
|
8
|
+
* tab — and trips Shiki's own warning once ten are live.
|
|
9
|
+
*
|
|
10
|
+
* The langs and themes are fixed, so one shared instance is always correct.
|
|
11
|
+
*/
|
|
12
|
+
let highlighterPromise: Promise<Highlighter> | undefined
|
|
13
|
+
|
|
14
|
+
export function getHighlighter(): Promise<Highlighter> {
|
|
15
|
+
highlighterPromise ??= createHighlighter({
|
|
16
|
+
langs: [
|
|
17
|
+
'html',
|
|
18
|
+
'jsx',
|
|
19
|
+
],
|
|
20
|
+
themes: [
|
|
21
|
+
'github-light',
|
|
22
|
+
'github-dark',
|
|
23
|
+
],
|
|
24
|
+
}).catch((e) => {
|
|
25
|
+
// Don't let a cached rejection disable highlighting for the rest of the
|
|
26
|
+
// session — drop it so the next mount can try again.
|
|
27
|
+
highlighterPromise = undefined
|
|
28
|
+
throw e
|
|
29
|
+
})
|
|
30
|
+
|
|
31
|
+
return highlighterPromise
|
|
32
|
+
}
|
package/src/app/util/scroll.ts
CHANGED
|
@@ -7,7 +7,7 @@ export function useScrollOnActive(active: Ref<boolean>, el: Ref<HTMLElement>) {
|
|
|
7
7
|
if (value) {
|
|
8
8
|
autoScroll()
|
|
9
9
|
}
|
|
10
|
-
})
|
|
10
|
+
}, { flush: 'post' })
|
|
11
11
|
|
|
12
12
|
function autoScroll() {
|
|
13
13
|
if (el.value) {
|
|
@@ -16,6 +16,7 @@ export function useScrollOnActive(active: Ref<boolean>, el: Ref<HTMLElement>) {
|
|
|
16
16
|
block: 'center',
|
|
17
17
|
inline: 'nearest',
|
|
18
18
|
behavior: 'smooth',
|
|
19
|
+
boundary: document.body,
|
|
19
20
|
})
|
|
20
21
|
}
|
|
21
22
|
}
|
package/src/app/util/tooltip.ts
CHANGED
|
@@ -3,11 +3,11 @@ import { formatKey } from './keyboard.js'
|
|
|
3
3
|
|
|
4
4
|
export function makeTooltip(descriptionHtml: string, keyboardShortcut: (options: { isMac: boolean }) => string) {
|
|
5
5
|
return {
|
|
6
|
-
content: `<div>${descriptionHtml}</div><div class="
|
|
6
|
+
content: `<div>${descriptionHtml}</div><div class="flex items-center gap-1 mt-2 text-sm">${genKeyboardShortcutHtml(keyboardShortcut({ isMac }))}</div>`,
|
|
7
7
|
html: true,
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
function genKeyboardShortcutHtml(shortcut: string) {
|
|
12
|
-
return `<span class="
|
|
12
|
+
return `<span class="border border-gray-600 px-1 rounded-sm text-gray-400">${shortcut.split('+').map(k => formatKey(k.trim())).join(' ')}</span>`
|
|
13
13
|
}
|
package/dist/bundled/App.vue.js
DELETED
package/dist/bundled/App.vue2.js
DELETED
|
@@ -1,211 +0,0 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, watch, onMounted, resolveComponent, createElementBlock, openBlock, createCommentVNode, createElementVNode, createVNode, unref, createBlock, normalizeStyle, withCtx, Transition } from "@poveste/vendors/vue";
|
|
2
|
-
import { useTitle } from "@poveste/vendors/vue-use";
|
|
3
|
-
import { files, tree, onUpdate } from "virtual:$poveste-stories";
|
|
4
|
-
import "./components/app/AppActions.vue.js";
|
|
5
|
-
import "./components/app/AppHeader.vue.js";
|
|
6
|
-
import Breadcrumb from "./components/app/Breadcrumb.vue.js";
|
|
7
|
-
import "./components/app/InitialLoading.vue.js";
|
|
8
|
-
import "./components/app/TopBar.vue.js";
|
|
9
|
-
import BaseSplitPane from "./components/base/BaseSplitPane.vue.js";
|
|
10
|
-
import "./components/command/CommandPromptsModal.vue.js";
|
|
11
|
-
import "./components/layout/LayoutModal.vue.js";
|
|
12
|
-
import "./components/search/SearchModal.vue.js";
|
|
13
|
-
import "./components/story/GenericMountStory.vue.js";
|
|
14
|
-
import "./components/tree/StoryList.vue.js";
|
|
15
|
-
import { useCommandStore } from "./stores/command.js";
|
|
16
|
-
import { useLayoutStore } from "./stores/layout.js";
|
|
17
|
-
import { useStoryStore } from "./stores/story.js";
|
|
18
|
-
import { povesteConfig } from "./util/config.js";
|
|
19
|
-
import { toggleDark } from "./util/dark.js";
|
|
20
|
-
import { onKeyboardShortcut } from "./util/keyboard.js";
|
|
21
|
-
import { mapFile } from "./util/mapping.js";
|
|
22
|
-
import { isMobile } from "./util/responsive.js";
|
|
23
|
-
import _sfc_main$1 from "./components/story/GenericMountStory.vue2.js";
|
|
24
|
-
import _sfc_main$2 from "./components/app/AppHeader.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";
|
|
32
|
-
"use strict";
|
|
33
|
-
const _hoisted_1 = { class: "poveste-app-root ptw-h-full" };
|
|
34
|
-
const _hoisted_2 = {
|
|
35
|
-
key: 0,
|
|
36
|
-
class: "poveste-app ptw-hidden"
|
|
37
|
-
};
|
|
38
|
-
const _hoisted_3 = {
|
|
39
|
-
key: 0,
|
|
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"
|
|
48
|
-
};
|
|
49
|
-
const __default__ = {
|
|
50
|
-
name: "PovesteApp"
|
|
51
|
-
};
|
|
52
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
53
|
-
...__default__,
|
|
54
|
-
setup(__props) {
|
|
55
|
-
const files$1 = ref(files.map((file) => mapFile(file)));
|
|
56
|
-
const tree$1 = ref(tree);
|
|
57
|
-
onUpdate((newFiles, newTree) => {
|
|
58
|
-
loading.value = false;
|
|
59
|
-
files$1.value = newFiles.map((file) => {
|
|
60
|
-
const existingFile = files$1.value.find((f) => f.id === file.id);
|
|
61
|
-
return mapFile(file, existingFile);
|
|
62
|
-
});
|
|
63
|
-
tree$1.value = newTree;
|
|
64
|
-
});
|
|
65
|
-
const stories = computed(() => files$1.value.reduce((acc, file) => {
|
|
66
|
-
acc.push(file.story);
|
|
67
|
-
return acc;
|
|
68
|
-
}, []));
|
|
69
|
-
const storyStore = useStoryStore();
|
|
70
|
-
watch(stories, (value) => {
|
|
71
|
-
storyStore.setStories(value);
|
|
72
|
-
}, {
|
|
73
|
-
immediate: true
|
|
74
|
-
});
|
|
75
|
-
useTitle(computed(() => {
|
|
76
|
-
if (storyStore.currentStory) {
|
|
77
|
-
let title = storyStore.currentStory.title;
|
|
78
|
-
if (storyStore.currentVariant) {
|
|
79
|
-
title += ` › ${storyStore.currentVariant.title}`;
|
|
80
|
-
}
|
|
81
|
-
return `${title} | ${povesteConfig.theme.title}`;
|
|
82
|
-
}
|
|
83
|
-
return povesteConfig.theme.title;
|
|
84
|
-
}));
|
|
85
|
-
const loadSearch = ref(false);
|
|
86
|
-
const isSearchOpen = ref(false);
|
|
87
|
-
const isLayoutOpen = ref(false);
|
|
88
|
-
watch(isSearchOpen, (value) => {
|
|
89
|
-
if (value) {
|
|
90
|
-
loadSearch.value = true;
|
|
91
|
-
}
|
|
92
|
-
});
|
|
93
|
-
onKeyboardShortcut(["ctrl+k", "meta+k"], (event) => {
|
|
94
|
-
isSearchOpen.value = true;
|
|
95
|
-
event.preventDefault();
|
|
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
|
-
});
|
|
105
|
-
const loading = ref(false);
|
|
106
|
-
if (import.meta.hot && !files.length) {
|
|
107
|
-
loading.value = true;
|
|
108
|
-
import.meta.hot.on("poveste:all-stories-loaded", () => {
|
|
109
|
-
loading.value = false;
|
|
110
|
-
});
|
|
111
|
-
}
|
|
112
|
-
const mounted = ref(false);
|
|
113
|
-
onMounted(() => {
|
|
114
|
-
mounted.value = true;
|
|
115
|
-
});
|
|
116
|
-
const commandStore = useCommandStore();
|
|
117
|
-
const layoutStore = useLayoutStore();
|
|
118
|
-
return (_ctx, _cache) => {
|
|
119
|
-
const _component_RouterView = resolveComponent("RouterView");
|
|
120
|
-
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
121
|
-
unref(storyStore).currentStory ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
122
|
-
(openBlock(), createBlock(_sfc_main$1, {
|
|
123
|
-
key: unref(storyStore).currentStory.id,
|
|
124
|
-
story: unref(storyStore).currentStory
|
|
125
|
-
}, null, 8, ["story"]))
|
|
126
|
-
])) : createCommentVNode("", true),
|
|
127
|
-
createElementVNode("div", {
|
|
128
|
-
class: "ptw-h-screen ptw-bg-gray-100 dark:ptw-bg-gray-750 dark:ptw-text-gray-100",
|
|
129
|
-
style: normalizeStyle({
|
|
130
|
-
// Prevent flash of content
|
|
131
|
-
opacity: mounted.value ? 1 : 0
|
|
132
|
-
})
|
|
133
|
-
}, [
|
|
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
|
-
]),
|
|
143
|
-
createVNode(Breadcrumb, {
|
|
144
|
-
tree: tree$1.value,
|
|
145
|
-
stories: stories.value
|
|
146
|
-
}, null, 8, ["tree", "stories"]),
|
|
147
|
-
createVNode(_component_RouterView, { class: "ptw-grow" })
|
|
148
|
-
])) : unref(layoutStore).settings.storyListVisible ? (openBlock(), createBlock(BaseSplitPane, {
|
|
149
|
-
key: 1,
|
|
150
|
-
"save-id": "main-horiz",
|
|
151
|
-
min: 5,
|
|
152
|
-
max: 50,
|
|
153
|
-
"default-split": 15,
|
|
154
|
-
class: "ptw-h-full"
|
|
155
|
-
}, {
|
|
156
|
-
first: withCtx(() => [
|
|
157
|
-
createElementVNode("div", _hoisted_5, [
|
|
158
|
-
createVNode(_sfc_main$2, { class: "ptw-flex-none" }),
|
|
159
|
-
createVNode(_sfc_main$5, {
|
|
160
|
-
tree: tree$1.value,
|
|
161
|
-
stories: stories.value,
|
|
162
|
-
class: "ptw-flex-1"
|
|
163
|
-
}, null, 8, ["tree", "stories"])
|
|
164
|
-
])
|
|
165
|
-
]),
|
|
166
|
-
last: withCtx(() => [
|
|
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
|
-
])
|
|
174
|
-
]),
|
|
175
|
-
_: 1
|
|
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,
|
|
190
|
-
shown: isSearchOpen.value,
|
|
191
|
-
onClose: _cache[7] || (_cache[7] = ($event) => isSearchOpen.value = false)
|
|
192
|
-
}, null, 8, ["shown"])) : createCommentVNode("", true),
|
|
193
|
-
_ctx.__POVESTE_DEV__ ? (openBlock(), createBlock(_sfc_main$8, {
|
|
194
|
-
key: 5,
|
|
195
|
-
shown: unref(commandStore).showPromptsModal,
|
|
196
|
-
onClose: _cache[8] || (_cache[8] = ($event) => unref(commandStore).showPromptsModal = false)
|
|
197
|
-
}, null, 8, ["shown"])) : createCommentVNode("", true)
|
|
198
|
-
], 4),
|
|
199
|
-
createVNode(Transition, { name: "__poveste-fade" }, {
|
|
200
|
-
default: withCtx(() => [
|
|
201
|
-
loading.value ? (openBlock(), createBlock(_sfc_main$9, { key: 0 })) : createCommentVNode("", true)
|
|
202
|
-
]),
|
|
203
|
-
_: 1
|
|
204
|
-
})
|
|
205
|
-
]);
|
|
206
|
-
};
|
|
207
|
-
}
|
|
208
|
-
});
|
|
209
|
-
export {
|
|
210
|
-
_sfc_main as default
|
|
211
|
-
};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
const PovesteLogoDark = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxODcwIDUxMiIgZmlsbD0ibm9uZSI+CiAgPGRlZnM+CiAgICA8bGluZWFyR3JhZGllbnQgaWQ9InB2dyIgeDE9Ijk2IiB5MT0iNDE2IiB4Mj0iNDE2IiB5Mj0iOTYiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KICAgICAgPHN0b3Agb2Zmc2V0PSIwIiBzdG9wLWNvbG9yPSIjMjRDNTZBIi8+CiAgICAgIDxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzE3QTZDNiIvPgogICAgPC9saW5lYXJHcmFkaWVudD4KICA8L2RlZnM+CiAgPHJlY3QgeD0iMTYiIHk9IjE2IiB3aWR0aD0iNDgwIiBoZWlnaHQ9IjQ4MCIgcng9IjExMiIgZmlsbD0idXJsKCNwdncpIi8+CiAgPHJlY3QgeD0iMTQwIiB5PSIxNDIiIHdpZHRoPSIyMzIiIGhlaWdodD0iNDQiIHJ4PSIxNiIgZmlsbD0iI2ZmZiIvPgogIDxyZWN0IHg9IjE1MSIgeT0iMjE3IiB3aWR0aD0iODgiIGhlaWdodD0iMTQ2IiByeD0iOSIgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIyIi8+CiAgPHJlY3QgeD0iMTcyIiB5PSIyNDQiIHdpZHRoPSIzMCIgaGVpZ2h0PSI5MiIgcng9IjEzIiBmaWxsPSIjZmZmIi8+CiAgPHJlY3QgeD0iMjYyIiB5PSIyMDYiIHdpZHRoPSIxMTAiIGhlaWdodD0iMTY4IiByeD0iMjAiIGZpbGw9IiNmZmYiLz4KICA8cmVjdCB4PSIyODQiIHk9IjIyNiIgd2lkdGg9IjY2IiBoZWlnaHQ9IjU4IiByeD0iMTMiIGZpbGw9InVybCgjcHZ3KSIvPgogIDx0ZXh0IHg9IjY3NiIgeT0iMjU2IiBkb21pbmFudC1iYXNlbGluZT0iY2VudHJhbCIgZm9udC1mYW1pbHk9InVpLXNhbnMtc2VyaWYsIHN5c3RlbS11aSwgLWFwcGxlLXN5c3RlbSwgJ1NlZ29lIFVJJywgUm9ib3RvLCBIZWx2ZXRpY2EsIEFyaWFsLCBzYW5zLXNlcmlmIiBmb250LXNpemU9IjMyMCIgZm9udC13ZWlnaHQ9IjQwMCIgbGV0dGVyLXNwYWNpbmc9Ii00IiBmaWxsPSIjZjhmYWZjIj5Qb3Zlc3RlPC90ZXh0Pgo8L3N2Zz4K";
|
|
2
|
-
export {
|
|
3
|
-
PovesteLogoDark as default
|
|
4
|
-
};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
const PovesteLogoLight = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxODcwIDUxMiIgZmlsbD0ibm9uZSI+CiAgPGRlZnM+CiAgICA8bGluZWFyR3JhZGllbnQgaWQ9InB2dyIgeDE9Ijk2IiB5MT0iNDE2IiB4Mj0iNDE2IiB5Mj0iOTYiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KICAgICAgPHN0b3Agb2Zmc2V0PSIwIiBzdG9wLWNvbG9yPSIjMjRDNTZBIi8+CiAgICAgIDxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzE3QTZDNiIvPgogICAgPC9saW5lYXJHcmFkaWVudD4KICA8L2RlZnM+CiAgPHJlY3QgeD0iMTYiIHk9IjE2IiB3aWR0aD0iNDgwIiBoZWlnaHQ9IjQ4MCIgcng9IjExMiIgZmlsbD0idXJsKCNwdncpIi8+CiAgPHJlY3QgeD0iMTQwIiB5PSIxNDIiIHdpZHRoPSIyMzIiIGhlaWdodD0iNDQiIHJ4PSIxNiIgZmlsbD0iI2ZmZiIvPgogIDxyZWN0IHg9IjE1MSIgeT0iMjE3IiB3aWR0aD0iODgiIGhlaWdodD0iMTQ2IiByeD0iOSIgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIyIi8+CiAgPHJlY3QgeD0iMTcyIiB5PSIyNDQiIHdpZHRoPSIzMCIgaGVpZ2h0PSI5MiIgcng9IjEzIiBmaWxsPSIjZmZmIi8+CiAgPHJlY3QgeD0iMjYyIiB5PSIyMDYiIHdpZHRoPSIxMTAiIGhlaWdodD0iMTY4IiByeD0iMjAiIGZpbGw9IiNmZmYiLz4KICA8cmVjdCB4PSIyODQiIHk9IjIyNiIgd2lkdGg9IjY2IiBoZWlnaHQ9IjU4IiByeD0iMTMiIGZpbGw9InVybCgjcHZ3KSIvPgogIDx0ZXh0IHg9IjY3NiIgeT0iMjU2IiBkb21pbmFudC1iYXNlbGluZT0iY2VudHJhbCIgZm9udC1mYW1pbHk9InVpLXNhbnMtc2VyaWYsIHN5c3RlbS11aSwgLWFwcGxlLXN5c3RlbSwgJ1NlZ29lIFVJJywgUm9ib3RvLCBIZWx2ZXRpY2EsIEFyaWFsLCBzYW5zLXNlcmlmIiBmb250LXNpemU9IjMyMCIgZm9udC13ZWlnaHQ9IjQwMCIgbGV0dGVyLXNwYWNpbmc9Ii00IiBmaWxsPSIjMWUyOTNiIj5Qb3Zlc3RlPC90ZXh0Pgo8L3N2Zz4K";
|
|
2
|
-
export {
|
|
3
|
-
PovesteLogoLight as default
|
|
4
|
-
};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
const PovesteLogo = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20512%20512'%20width='512'%20height='512'%20fill='none'%3e%3cdefs%3e%3clinearGradient%20id='pv'%20x1='96'%20y1='416'%20x2='416'%20y2='96'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%2324C56A'/%3e%3cstop%20offset='1'%20stop-color='%2317A6C6'/%3e%3c/linearGradient%3e%3c/defs%3e%3crect%20x='16'%20y='16'%20width='480'%20height='480'%20rx='112'%20fill='url(%23pv)'/%3e%3crect%20x='140'%20y='142'%20width='232'%20height='44'%20rx='16'%20fill='%23fff'/%3e%3crect%20x='151'%20y='217'%20width='88'%20height='146'%20rx='9'%20stroke='%23fff'%20stroke-width='22'/%3e%3crect%20x='172'%20y='244'%20width='30'%20height='92'%20rx='13'%20fill='%23fff'/%3e%3crect%20x='262'%20y='206'%20width='110'%20height='168'%20rx='20'%20fill='%23fff'/%3e%3crect%20x='284'%20y='226'%20width='66'%20height='58'%20rx='13'%20fill='url(%23pv)'/%3e%3c/svg%3e";
|
|
2
|
-
export {
|
|
3
|
-
PovesteLogo as default
|
|
4
|
-
};
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { defineComponent, computed, createElementBlock, openBlock, createElementVNode, createVNode } from "@poveste/vendors/vue";
|
|
2
|
-
import PovesteLogo from "../assets/poveste.svg.js";
|
|
3
|
-
import { useStoryStore } from "../stores/story.js";
|
|
4
|
-
import { customLogos, povesteConfig } from "../util/config.js";
|
|
5
|
-
import "./app/HomeCounter.vue.js";
|
|
6
|
-
import _sfc_main$1 from "./app/HomeCounter.vue2.js";
|
|
7
|
-
"use strict";
|
|
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
|
-
const _hoisted_2 = ["src"];
|
|
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
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
12
|
-
__name: "HomeView",
|
|
13
|
-
setup(__props) {
|
|
14
|
-
const logoUrl = computed(() => povesteConfig.theme?.logo?.square ? customLogos.square : PovesteLogo);
|
|
15
|
-
const storyStore = useStoryStore();
|
|
16
|
-
const stats = computed(() => {
|
|
17
|
-
let storyCount = 0;
|
|
18
|
-
let variantCount = 0;
|
|
19
|
-
let docsCount = 0;
|
|
20
|
-
(storyStore.stories || []).forEach((story) => {
|
|
21
|
-
if (story.docsOnly) {
|
|
22
|
-
docsCount++;
|
|
23
|
-
} else {
|
|
24
|
-
storyCount++;
|
|
25
|
-
if (story.variants) {
|
|
26
|
-
variantCount += story.variants.length;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
return {
|
|
31
|
-
storyCount,
|
|
32
|
-
variantCount,
|
|
33
|
-
docsCount
|
|
34
|
-
};
|
|
35
|
-
});
|
|
36
|
-
return (_ctx, _cache) => {
|
|
37
|
-
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
38
|
-
createElementVNode("img", {
|
|
39
|
-
src: logoUrl.value,
|
|
40
|
-
alt: "Logo",
|
|
41
|
-
class: "ptw-w-64 ptw-h-64 ptw-opacity-25 ptw-mb-8 ptw-hidden md:ptw-block"
|
|
42
|
-
}, null, 8, _hoisted_2),
|
|
43
|
-
createElementVNode("div", _hoisted_3, [
|
|
44
|
-
createVNode(_sfc_main$1, {
|
|
45
|
-
title: "Stories",
|
|
46
|
-
icon: "carbon:cube",
|
|
47
|
-
count: stats.value.storyCount
|
|
48
|
-
}, null, 8, ["count"]),
|
|
49
|
-
createVNode(_sfc_main$1, {
|
|
50
|
-
title: "Variants",
|
|
51
|
-
icon: "carbon:cube-view",
|
|
52
|
-
count: stats.value.variantCount
|
|
53
|
-
}, null, 8, ["count"]),
|
|
54
|
-
createVNode(_sfc_main$1, {
|
|
55
|
-
title: "Documents",
|
|
56
|
-
icon: "carbon:document-blank",
|
|
57
|
-
count: stats.value.docsCount
|
|
58
|
-
}, null, 8, ["count"])
|
|
59
|
-
])
|
|
60
|
-
]);
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
});
|
|
64
|
-
export {
|
|
65
|
-
_sfc_main as default
|
|
66
|
-
};
|
|
@@ -1,76 +0,0 @@
|
|
|
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,29 +0,0 @@
|
|
|
1
|
-
import { defineComponent, createElementBlock, openBlock, createElementVNode, unref, createVNode } from "@poveste/vendors/vue";
|
|
2
|
-
import { povesteConfig } from "../../util/config.js";
|
|
3
|
-
import "./AppLogo.vue.js";
|
|
4
|
-
import _sfc_main$1 from "./AppLogo.vue2.js";
|
|
5
|
-
"use strict";
|
|
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" };
|
|
8
|
-
const _hoisted_3 = ["href"];
|
|
9
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
10
|
-
__name: "AppHeader",
|
|
11
|
-
setup(__props) {
|
|
12
|
-
return (_ctx, _cache) => {
|
|
13
|
-
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
14
|
-
createElementVNode("div", _hoisted_2, [
|
|
15
|
-
createElementVNode("a", {
|
|
16
|
-
href: unref(povesteConfig).theme?.logoHref,
|
|
17
|
-
target: "_blank",
|
|
18
|
-
class: "ptw-w-full ptw-h-full ptw-flex ptw-items-center"
|
|
19
|
-
}, [
|
|
20
|
-
createVNode(_sfc_main$1, { class: "ptw-max-w-full ptw-max-h-full" })
|
|
21
|
-
], 8, _hoisted_3)
|
|
22
|
-
])
|
|
23
|
-
]);
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
export {
|
|
28
|
-
_sfc_main as default
|
|
29
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { defineComponent, computed, createElementBlock, openBlock } from "@poveste/vendors/vue";
|
|
2
|
-
import PovesteLogoDark from "../../assets/poveste-text-dark.svg.js";
|
|
3
|
-
import PovesteLogoLight from "../../assets/poveste-text.svg.js";
|
|
4
|
-
import { customLogos, povesteConfig } from "../../util/config.js";
|
|
5
|
-
import { isDark } from "../../util/dark.js";
|
|
6
|
-
"use strict";
|
|
7
|
-
const _hoisted_1 = ["src", "alt"];
|
|
8
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
|
-
__name: "AppLogo",
|
|
10
|
-
setup(__props) {
|
|
11
|
-
const logoUrl = computed(() => {
|
|
12
|
-
if (isDark.value) {
|
|
13
|
-
return povesteConfig.theme.logo?.dark ? customLogos.dark : PovesteLogoDark;
|
|
14
|
-
}
|
|
15
|
-
return povesteConfig.theme.logo?.light ? customLogos.light : PovesteLogoLight;
|
|
16
|
-
});
|
|
17
|
-
const altText = computed(() => `${povesteConfig.theme.title} logo`);
|
|
18
|
-
return (_ctx, _cache) => {
|
|
19
|
-
return openBlock(), createElementBlock("img", {
|
|
20
|
-
class: "poveste-app-logo",
|
|
21
|
-
src: logoUrl.value,
|
|
22
|
-
alt: altText.value
|
|
23
|
-
}, null, 8, _hoisted_1);
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
export {
|
|
28
|
-
_sfc_main as default
|
|
29
|
-
};
|