@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,8 +0,0 @@
|
|
|
1
|
-
import _sfc_main from "./Breadcrumb.vue2.js";
|
|
2
|
-
/* empty css */
|
|
3
|
-
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
"use strict";
|
|
5
|
-
const Breadcrumb = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b1aa3e2c"]]);
|
|
6
|
-
export {
|
|
7
|
-
Breadcrumb as default
|
|
8
|
-
};
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import { defineComponent, useCssVars, computed, ref, watch, createElementBlock, openBlock, Fragment, createElementVNode, createVNode, renderList, toDisplayString, createTextVNode, unref, normalizeClass, withCtx } from "@poveste/vendors/vue";
|
|
2
|
-
import { Icon } from "@poveste/vendors/iconify";
|
|
3
|
-
import { useStoryStore } from "../../stores/story.js";
|
|
4
|
-
import "../tree/StoryList.vue.js";
|
|
5
|
-
import "./MobileOverlay.vue.js";
|
|
6
|
-
import _sfc_main$1 from "./MobileOverlay.vue2.js";
|
|
7
|
-
import _sfc_main$2 from "../tree/StoryList.vue2.js";
|
|
8
|
-
"use strict";
|
|
9
|
-
const _hoisted_1 = { class: "poveste-breadcrumb" };
|
|
10
|
-
const _hoisted_2 = { class: "ptw-flex ptw-items-center ptw-gap-2" };
|
|
11
|
-
const _hoisted_3 = { class: "ptw-opacity-40 ptw-text-sm" };
|
|
12
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
13
|
-
__name: "Breadcrumb",
|
|
14
|
-
props: {
|
|
15
|
-
tree: {},
|
|
16
|
-
stories: {}
|
|
17
|
-
},
|
|
18
|
-
setup(__props) {
|
|
19
|
-
useCssVars((_ctx) => ({
|
|
20
|
-
"v3db71ace": story.value?.iconColor
|
|
21
|
-
}));
|
|
22
|
-
const storyStore = useStoryStore();
|
|
23
|
-
const story = computed(() => storyStore.currentStory);
|
|
24
|
-
const folders = computed(() => {
|
|
25
|
-
return story.value.file.path.slice(0, -1);
|
|
26
|
-
});
|
|
27
|
-
const isMenuOpened = ref(false);
|
|
28
|
-
function openMenu() {
|
|
29
|
-
isMenuOpened.value = true;
|
|
30
|
-
}
|
|
31
|
-
function closeMenu() {
|
|
32
|
-
isMenuOpened.value = false;
|
|
33
|
-
}
|
|
34
|
-
watch(story, () => {
|
|
35
|
-
isMenuOpened.value = false;
|
|
36
|
-
});
|
|
37
|
-
return (_ctx, _cache) => {
|
|
38
|
-
return openBlock(), createElementBlock(Fragment, null, [
|
|
39
|
-
createElementVNode("div", _hoisted_1, [
|
|
40
|
-
createElementVNode("a", {
|
|
41
|
-
class: "ptw-px-6 ptw-h-12 hover:ptw-text-primary-500 dark:hover:ptw-text-primary-400 ptw-cursor-pointer ptw-flex ptw-gap-2 ptw-flex-wrap ptw-w-full ptw-items-center",
|
|
42
|
-
onClick: openMenu
|
|
43
|
-
}, [
|
|
44
|
-
story.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
45
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(folders.value, (file, key) => {
|
|
46
|
-
return openBlock(), createElementBlock(Fragment, { key }, [
|
|
47
|
-
createElementVNode("span", null, toDisplayString(file), 1),
|
|
48
|
-
_cache[0] || (_cache[0] = createElementVNode("span", { class: "ptw-opacity-40" }, " / ", -1))
|
|
49
|
-
], 64);
|
|
50
|
-
}), 128)),
|
|
51
|
-
createElementVNode("span", _hoisted_2, [
|
|
52
|
-
createVNode(unref(Icon), {
|
|
53
|
-
icon: story.value.icon ?? "carbon:cube",
|
|
54
|
-
class: normalizeClass(["ptw-w-5 ptw-h-5 ptw-flex-none", {
|
|
55
|
-
"ptw-text-primary-500": !story.value.iconColor,
|
|
56
|
-
"bind-icon-color": story.value.iconColor
|
|
57
|
-
}])
|
|
58
|
-
}, null, 8, ["icon", "class"]),
|
|
59
|
-
createTextVNode(" " + toDisplayString(story.value.title) + " ", 1),
|
|
60
|
-
createElementVNode("span", _hoisted_3, toDisplayString(story.value.variants.length), 1)
|
|
61
|
-
])
|
|
62
|
-
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
63
|
-
createTextVNode(" Select a story... ")
|
|
64
|
-
], 64)),
|
|
65
|
-
createVNode(unref(Icon), {
|
|
66
|
-
icon: "carbon:chevron-sort",
|
|
67
|
-
class: "ptw-w-5 ptw-h-5 ptw-shrink-0 ptw-ml-auto"
|
|
68
|
-
})
|
|
69
|
-
])
|
|
70
|
-
]),
|
|
71
|
-
createVNode(_sfc_main$1, {
|
|
72
|
-
title: "Select a story",
|
|
73
|
-
opened: isMenuOpened.value,
|
|
74
|
-
onClose: closeMenu
|
|
75
|
-
}, {
|
|
76
|
-
default: withCtx(() => [
|
|
77
|
-
createVNode(_sfc_main$2, {
|
|
78
|
-
tree: __props.tree,
|
|
79
|
-
stories: __props.stories,
|
|
80
|
-
class: "ptw-flex-1 ptw-overflow-y-scroll"
|
|
81
|
-
}, null, 8, ["tree", "stories"])
|
|
82
|
-
]),
|
|
83
|
-
_: 1
|
|
84
|
-
}, 8, ["opened"])
|
|
85
|
-
], 64);
|
|
86
|
-
};
|
|
87
|
-
}
|
|
88
|
-
});
|
|
89
|
-
export {
|
|
90
|
-
_sfc_main as default
|
|
91
|
-
};
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { defineComponent, createElementBlock, openBlock, createVNode, createElementVNode, unref, toDisplayString } from "@poveste/vendors/vue";
|
|
2
|
-
import { Icon } from "@poveste/vendors/iconify";
|
|
3
|
-
"use strict";
|
|
4
|
-
const _hoisted_1 = { class: "ptw-p-2 ptw-flex ptw-items-center ptw-gap-x-2" };
|
|
5
|
-
const _hoisted_2 = { class: "ptw-flex ptw-flex-col ptw-leading-none" };
|
|
6
|
-
const _hoisted_3 = { class: "ptw-text-primary-500 ptw-min-w-[80px] ptw-font-bold" };
|
|
7
|
-
const _hoisted_4 = { class: "ptw-text-sm ptw-text-gray-900 dark:ptw-text-gray-100" };
|
|
8
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
|
-
__name: "HomeCounter",
|
|
10
|
-
props: {
|
|
11
|
-
icon: {
|
|
12
|
-
type: String,
|
|
13
|
-
default: "carbon:cube"
|
|
14
|
-
},
|
|
15
|
-
title: {
|
|
16
|
-
type: String,
|
|
17
|
-
default: ""
|
|
18
|
-
},
|
|
19
|
-
count: {
|
|
20
|
-
type: Number,
|
|
21
|
-
default: 0
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
setup(__props) {
|
|
25
|
-
const props = __props;
|
|
26
|
-
return (_ctx, _cache) => {
|
|
27
|
-
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
28
|
-
createVNode(unref(Icon), {
|
|
29
|
-
icon: props.icon,
|
|
30
|
-
class: "ptw-text-2xl ptw-text-gray-700 dark:ptw-text-gray-300 ptw-flex-none"
|
|
31
|
-
}, null, 8, ["icon"]),
|
|
32
|
-
createElementVNode("div", _hoisted_2, [
|
|
33
|
-
createElementVNode("span", _hoisted_3, toDisplayString(__props.count), 1),
|
|
34
|
-
createElementVNode("span", _hoisted_4, toDisplayString(__props.title), 1)
|
|
35
|
-
])
|
|
36
|
-
]);
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
});
|
|
40
|
-
export {
|
|
41
|
-
_sfc_main as default
|
|
42
|
-
};
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { defineComponent, reactive, createElementBlock, openBlock, createVNode, Transition, withCtx, createCommentVNode, normalizeStyle, Fragment, renderList, createElementVNode, normalizeClass } from "@poveste/vendors/vue";
|
|
2
|
-
"use strict";
|
|
3
|
-
const _hoisted_1 = { class: "poveste-initial-loading ptw-fixed ptw-inset-0 ptw-bg-white dark:ptw-bg-gray-700 ptw-flex ptw-flex-col ptw-gap-6 ptw-items-center ptw-justify-center" };
|
|
4
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
|
-
__name: "InitialLoading",
|
|
6
|
-
setup(__props) {
|
|
7
|
-
const progress = reactive({
|
|
8
|
-
loaded: 0,
|
|
9
|
-
total: 0
|
|
10
|
-
});
|
|
11
|
-
const maxCols = window.innerWidth / 20;
|
|
12
|
-
if (import.meta.hot) {
|
|
13
|
-
import.meta.hot.on("poveste:stories-loading-progress", (data) => {
|
|
14
|
-
progress.loaded = data.loadedFileCount;
|
|
15
|
-
progress.total = data.totalFileCount;
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
return (_ctx, _cache) => {
|
|
19
|
-
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
20
|
-
createVNode(Transition, { name: "__poveste-fade" }, {
|
|
21
|
-
default: withCtx(() => [
|
|
22
|
-
progress.total > 0 ? (openBlock(), createElementBlock("div", {
|
|
23
|
-
key: 0,
|
|
24
|
-
class: "ptw-grid ptw-gap-2",
|
|
25
|
-
style: normalizeStyle({
|
|
26
|
-
gridTemplateColumns: `repeat(${Math.min(Math.ceil(Math.sqrt(progress.total)), maxCols)}, minmax(0, 1fr))`
|
|
27
|
-
})
|
|
28
|
-
}, [
|
|
29
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(progress.total, (n) => {
|
|
30
|
-
return openBlock(), createElementBlock("div", {
|
|
31
|
-
key: n,
|
|
32
|
-
class: "ptw-bg-primary-500/10 ptw-rounded-full"
|
|
33
|
-
}, [
|
|
34
|
-
createElementVNode("div", {
|
|
35
|
-
class: normalizeClass(["ptw-w-3 ptw-h-3 ptw-bg-primary-500 ptw-rounded-full ptw-duration-150 ptw-ease-out", {
|
|
36
|
-
"ptw-transition-transform ptw-scale-0": n >= progress.loaded
|
|
37
|
-
}])
|
|
38
|
-
}, null, 2)
|
|
39
|
-
]);
|
|
40
|
-
}), 128))
|
|
41
|
-
], 4)) : createCommentVNode("", true)
|
|
42
|
-
]),
|
|
43
|
-
_: 1
|
|
44
|
-
})
|
|
45
|
-
]);
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
});
|
|
49
|
-
export {
|
|
50
|
-
_sfc_main as default
|
|
51
|
-
};
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { defineComponent, createBlock, openBlock, Transition, withCtx, createElementBlock, createCommentVNode, createElementVNode, renderSlot, toDisplayString, createVNode, unref } from "@poveste/vendors/vue";
|
|
2
|
-
import { Icon } from "@poveste/vendors/iconify";
|
|
3
|
-
"use strict";
|
|
4
|
-
const _hoisted_1 = {
|
|
5
|
-
key: 0,
|
|
6
|
-
class: "poveste-mobile-overlay ptw-absolute ptw-z-10 ptw-bg-white dark:ptw-bg-gray-700 ptw-w-screen ptw-h-screen ptw-inset-0 ptw-overflow-hidden ptw-flex ptw-flex-col"
|
|
7
|
-
};
|
|
8
|
-
const _hoisted_2 = { class: "ptw-p-4 ptw-h-16 ptw-flex ptw-border-b ptw-border-gray-100 dark:ptw-border-gray-800 ptw-items-center ptw-place-content-between" };
|
|
9
|
-
const _hoisted_3 = { class: "ptw-text-gray-500" };
|
|
10
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
11
|
-
__name: "MobileOverlay",
|
|
12
|
-
props: {
|
|
13
|
-
title: {},
|
|
14
|
-
opened: { type: Boolean }
|
|
15
|
-
},
|
|
16
|
-
emits: ["close"],
|
|
17
|
-
setup(__props, { emit: __emit }) {
|
|
18
|
-
const emit = __emit;
|
|
19
|
-
return (_ctx, _cache) => {
|
|
20
|
-
return openBlock(), createBlock(Transition, { name: "__poveste-fade-bottom" }, {
|
|
21
|
-
default: withCtx(() => [
|
|
22
|
-
__props.opened ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
23
|
-
createElementVNode("div", _hoisted_2, [
|
|
24
|
-
createElementVNode("span", _hoisted_3, toDisplayString(__props.title), 1),
|
|
25
|
-
createElementVNode("a", {
|
|
26
|
-
class: "ptw-p-1 hover:ptw-text-primary-500 dark:hover:ptw-text-primary-400 ptw-cursor-pointer",
|
|
27
|
-
onClick: _cache[0] || (_cache[0] = ($event) => emit("close"))
|
|
28
|
-
}, [
|
|
29
|
-
createVNode(unref(Icon), {
|
|
30
|
-
icon: "carbon:close",
|
|
31
|
-
class: "ptw-w-8 ptw-h-8 ptw-shrink-0"
|
|
32
|
-
})
|
|
33
|
-
])
|
|
34
|
-
]),
|
|
35
|
-
renderSlot(_ctx.$slots, "default")
|
|
36
|
-
])) : createCommentVNode("", true)
|
|
37
|
-
]),
|
|
38
|
-
_: 3
|
|
39
|
-
});
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
});
|
|
43
|
-
export {
|
|
44
|
-
_sfc_main as default
|
|
45
|
-
};
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { defineComponent, createElementBlock, openBlock, createVNode, createBlock, createCommentVNode, unref, withCtx } from "@poveste/vendors/vue";
|
|
2
|
-
import { useStoryStore } from "../../stores/story.js";
|
|
3
|
-
import "../toolbar/DevOnlyToolbarOpenInEditor.vue.js";
|
|
4
|
-
import ToolbarBackground from "../toolbar/ToolbarBackground.vue.js";
|
|
5
|
-
import "../toolbar/ToolbarNewTab.vue.js";
|
|
6
|
-
import "../toolbar/ToolbarResponsiveSize.vue.js";
|
|
7
|
-
import "../toolbar/ToolbarTextDirection.vue.js";
|
|
8
|
-
import ToolbarTitle from "../toolbar/ToolbarTitle.vue.js";
|
|
9
|
-
import "./AppActions.vue.js";
|
|
10
|
-
import TopBarChip from "./TopBarChip.vue.js";
|
|
11
|
-
import _sfc_main$1 from "./AppActions.vue2.js";
|
|
12
|
-
import _sfc_main$2 from "../toolbar/ToolbarResponsiveSize.vue2.js";
|
|
13
|
-
import _sfc_main$3 from "../toolbar/ToolbarTextDirection.vue2.js";
|
|
14
|
-
import _sfc_main$4 from "../toolbar/ToolbarNewTab.vue2.js";
|
|
15
|
-
import _sfc_main$5 from "../toolbar/DevOnlyToolbarOpenInEditor.vue2.js";
|
|
16
|
-
"use strict";
|
|
17
|
-
const _hoisted_1 = { class: "poveste-top-bar ptw-flex-none ptw-grid ptw-grid-cols-[1fr_auto_1fr] ptw-items-center ptw-h-14 ptw-px-4 ptw-gap-3" };
|
|
18
|
-
const _hoisted_2 = { key: 1 };
|
|
19
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
20
|
-
__name: "TopBar",
|
|
21
|
-
emits: {
|
|
22
|
-
search: () => true,
|
|
23
|
-
layout: () => true
|
|
24
|
-
},
|
|
25
|
-
setup(__props) {
|
|
26
|
-
const storyStore = useStoryStore();
|
|
27
|
-
return (_ctx, _cache) => {
|
|
28
|
-
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
29
|
-
createVNode(_sfc_main$1, {
|
|
30
|
-
class: "ptw-justify-self-start",
|
|
31
|
-
onLayout: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("layout")),
|
|
32
|
-
onSearch: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("search"))
|
|
33
|
-
}),
|
|
34
|
-
unref(storyStore).currentStory || unref(storyStore).currentVariant ? (openBlock(), createBlock(TopBarChip, {
|
|
35
|
-
key: 0,
|
|
36
|
-
class: "ptw-px-6 ptw-py-1.5 ptw-max-w-full"
|
|
37
|
-
}, {
|
|
38
|
-
default: withCtx(() => [
|
|
39
|
-
createVNode(ToolbarTitle, {
|
|
40
|
-
variant: unref(storyStore).currentVariant ?? void 0,
|
|
41
|
-
story: unref(storyStore).currentStory ?? void 0
|
|
42
|
-
}, null, 8, ["variant", "story"])
|
|
43
|
-
]),
|
|
44
|
-
_: 1
|
|
45
|
-
})) : (openBlock(), createElementBlock("span", _hoisted_2)),
|
|
46
|
-
unref(storyStore).currentStory && !unref(storyStore).currentStory.docsOnly ? (openBlock(), createBlock(TopBarChip, {
|
|
47
|
-
key: 2,
|
|
48
|
-
class: "ptw-justify-self-end"
|
|
49
|
-
}, {
|
|
50
|
-
default: withCtx(() => [
|
|
51
|
-
unref(storyStore).currentVariant && !unref(storyStore).currentVariant.responsiveDisabled ? (openBlock(), createBlock(_sfc_main$2, { key: 0 })) : createCommentVNode("", true),
|
|
52
|
-
createVNode(ToolbarBackground),
|
|
53
|
-
createVNode(_sfc_main$3),
|
|
54
|
-
unref(storyStore).currentVariant ? (openBlock(), createBlock(_sfc_main$4, {
|
|
55
|
-
key: 1,
|
|
56
|
-
variant: unref(storyStore).currentVariant,
|
|
57
|
-
story: unref(storyStore).currentStory
|
|
58
|
-
}, null, 8, ["variant", "story"])) : createCommentVNode("", true),
|
|
59
|
-
_ctx.__POVESTE_DEV__ ? (openBlock(), createBlock(_sfc_main$5, {
|
|
60
|
-
key: 2,
|
|
61
|
-
file: unref(storyStore).currentStory.file?.filePath,
|
|
62
|
-
tooltip: "Edit story in editor"
|
|
63
|
-
}, null, 8, ["file"])) : createCommentVNode("", true)
|
|
64
|
-
]),
|
|
65
|
-
_: 1
|
|
66
|
-
})) : createCommentVNode("", true)
|
|
67
|
-
]);
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
export {
|
|
72
|
-
_sfc_main as default
|
|
73
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { createElementBlock, openBlock, renderSlot } from "@poveste/vendors/vue";
|
|
2
|
-
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
const _sfc_main = {};
|
|
4
|
-
const _hoisted_1 = { class: "poveste-top-bar-chip ptw-flex ptw-items-center ptw-bg-gradient-to-b ptw-from-white/85 ptw-to-white/60 dark:ptw-from-gray-800/65 dark:ptw-to-gray-800/40 ptw-backdrop-blur-md ptw-border ptw-border-white/60 dark:ptw-border-white/15 ptw-rounded-lg ptw-overflow-hidden ptw-shadow-md" };
|
|
5
|
-
function _sfc_render(_ctx, _cache) {
|
|
6
|
-
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
7
|
-
renderSlot(_ctx.$slots, "default")
|
|
8
|
-
]);
|
|
9
|
-
}
|
|
10
|
-
const TopBarChip = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
11
|
-
export {
|
|
12
|
-
TopBarChip as default
|
|
13
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { createElementBlock, openBlock, renderSlot } from "@poveste/vendors/vue";
|
|
2
|
-
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
const _sfc_main = {};
|
|
4
|
-
const _hoisted_1 = { class: "poveste-top-bar-chip-item ptw-flex ptw-items-center ptw-gap-1 ptw-px-2.5 ptw-py-1.5 hover:ptw-bg-white/50 active:ptw-bg-white/70 dark:hover:ptw-bg-white/10 dark:active:ptw-bg-white/15 hover:ptw-text-primary-500 dark:hover:ptw-text-primary-400 ptw-cursor-pointer ptw-text-gray-900 dark:ptw-text-gray-100 ptw-transition-colors" };
|
|
5
|
-
function _sfc_render(_ctx, _cache) {
|
|
6
|
-
return openBlock(), createElementBlock("a", _hoisted_1, [
|
|
7
|
-
renderSlot(_ctx.$slots, "default")
|
|
8
|
-
]);
|
|
9
|
-
}
|
|
10
|
-
const TopBarChipItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
11
|
-
export {
|
|
12
|
-
TopBarChipItem as default
|
|
13
|
-
};
|
|
@@ -1,39 +0,0 @@
|
|
|
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(["poveste-base-button ptw-rounded ptw-cursor-pointer", {
|
|
25
|
-
"ptw-bg-primary-200 dark:ptw-bg-primary-800 hover:ptw-bg-primary-300 dark:hover:ptw-bg-primary-700": __props.color === "primary" || !__props.color,
|
|
26
|
-
"ptw-bg-grey-100 dark:ptw-bg-grey-900 hover:ptw-bg-grey-200 dark:hover:ptw-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
|
-
};
|
|
@@ -1,78 +0,0 @@
|
|
|
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: "ptw-text-white ptw-w-[16px] ptw-h-[16px] ptw-relative" };
|
|
4
|
-
const _hoisted_2 = {
|
|
5
|
-
width: "16",
|
|
6
|
-
height: "16",
|
|
7
|
-
viewBox: "0 0 24 24",
|
|
8
|
-
class: "ptw-relative ptw-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: "poveste-base-checkbox ptw-flex ptw-items-center ptw-gap-2 ptw-select-none ptw-px-4 ptw-py-3 ptw-cursor-pointer hover:ptw-bg-primary-100 dark:hover:ptw-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(["ptw-border group-active:ptw-bg-gray-500/20 ptw-rounded-sm ptw-box-border ptw-absolute ptw-inset-0 ptw-transition-border ptw-duration-150 ptw-ease-out", [
|
|
51
|
-
__props.modelValue ? "ptw-border-primary-500 ptw-border-8" : "ptw-border-black/25 dark:ptw-border-white/25 ptw-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(["ptw-stroke-white ptw-stroke-2 ptw-duration-200 ptw-ease-in-out", [
|
|
61
|
-
animationEnabled.value ? "ptw-transition-all" : "ptw-transition-none",
|
|
62
|
-
{
|
|
63
|
-
"ptw-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
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
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: "poveste-base-empty ptw-base-empty ptw-flex ptw-flex-col ptw-items-center ptw-justify-center ptw-space-y-4 ptw-py-12 ptw-h-full ptw-text-center ptw-text-gray-400 ptw-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-176506c5"]]);
|
|
12
|
-
export {
|
|
13
|
-
BaseEmpty as default
|
|
14
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
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-f632abed"]]);
|
|
6
|
-
export {
|
|
7
|
-
BaseIcon as default
|
|
8
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
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: "poveste-base-icon"
|
|
19
|
-
}, null, 8, _hoisted_1)) : (openBlock(), createBlock(unref(Icon), {
|
|
20
|
-
key: 1,
|
|
21
|
-
icon: __props.icon,
|
|
22
|
-
class: "poveste-base-icon"
|
|
23
|
-
}, null, 8, ["icon"]));
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
export {
|
|
28
|
-
_sfc_main as default
|
|
29
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
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: "poveste-base-keyboard-shortcut ptw-border ptw-border-current ptw-opacity-50 ptw-px-1 ptw-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
|
-
};
|
|
@@ -1,33 +0,0 @@
|
|
|
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(["poveste-base-list-item ptw-flex ptw-items-center ptw-gap-2 ptw-text-gray-900 dark:ptw-text-gray-100", [
|
|
17
|
-
_ctx.$attrs.class,
|
|
18
|
-
__props.isActive ? "active ptw-bg-primary-500 hover:ptw-bg-primary-600 ptw-text-white dark:ptw-text-black" : "hover:ptw-bg-primary-100 dark:hover:ptw-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
|
-
};
|