@poveste/app 0.2.0 → 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
|
@@ -5,18 +5,24 @@
|
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
.v-popper--theme-dropdown {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
/*
|
|
9
|
+
* Written with the `dark:` variant rather than a `.ptw-dark &` descendant
|
|
10
|
+
* rule. The chrome CSS is wrapped in `@scope`, and `.ptw-dark` sits on
|
|
11
|
+
* `<html>` — above the scope root — so a descendant rule keyed on it never
|
|
12
|
+
* matches and the dropdown silently falls back to floating-vue's stock light
|
|
13
|
+
* theme. `dark:` compiles to `&:where(.ptw-dark, .ptw-dark *)`, which puts the
|
|
14
|
+
* condition on the subject and survives the wrapper. See #101.
|
|
15
|
+
*/
|
|
16
|
+
.v-popper__inner {
|
|
17
|
+
@apply dark:bg-gray-700 dark:border-gray-850 dark:text-gray-100;
|
|
18
|
+
}
|
|
12
19
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
20
|
+
.v-popper__arrow-inner {
|
|
21
|
+
@apply dark:border-gray-700;
|
|
22
|
+
}
|
|
16
23
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
24
|
+
.v-popper__arrow-outer {
|
|
25
|
+
@apply dark:border-gray-850;
|
|
20
26
|
}
|
|
21
27
|
|
|
22
28
|
&.v-popper__popper--show-from .v-popper__wrapper {
|
package/dist/app/style/main.pcss
CHANGED
|
@@ -2,40 +2,115 @@
|
|
|
2
2
|
@import 'floating-vue/dist/style.css';
|
|
3
3
|
@import '@poveste/controls/dist/index.es.css';
|
|
4
4
|
|
|
5
|
-
@import 'floating.pcss';
|
|
6
|
-
@import 'transitions.pcss';
|
|
7
|
-
|
|
8
|
-
*,
|
|
9
|
-
::before,
|
|
10
|
-
::after {
|
|
11
|
-
box-sizing: border-box;
|
|
12
|
-
border-width: 0;
|
|
13
|
-
border-style: solid;
|
|
14
|
-
border-color: #e5e7eb;
|
|
15
|
-
}
|
|
5
|
+
@import './floating.pcss';
|
|
6
|
+
@import './transitions.pcss';
|
|
16
7
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
8
|
+
/*
|
|
9
|
+
* Tailwind v4. Preflight is intentionally omitted (was `corePlugins.preflight:
|
|
10
|
+
* false` in v3) — the manual reset below replaces it. The `ptw-` utility prefix
|
|
11
|
+
* is gone; chrome/story isolation is handled by @scope (postcss-scope-wrapper, #27).
|
|
12
|
+
*/
|
|
13
|
+
@layer theme, base, components, utilities;
|
|
14
|
+
@import 'tailwindcss/theme.css' layer(theme);
|
|
15
|
+
@import 'tailwindcss/utilities.css' layer(utilities);
|
|
22
16
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
17
|
+
/* v4 auto-detection only scans this package; the app renders controls, so their
|
|
18
|
+
utility classes must be generated here too (was a content glob in v3). */
|
|
19
|
+
@source "../../../../poveste-controls/src";
|
|
26
20
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
21
|
+
/* The markdown renderer builds the docs code-block chrome as an HTML string, so
|
|
22
|
+
its utility classes live in a package v4 never scans. */
|
|
23
|
+
@source "../../../../poveste/src/node/markdown.ts";
|
|
24
|
+
|
|
25
|
+
/* TODO(#36): port the v3 typography theme() customization to v4 CSS. */
|
|
26
|
+
@plugin '@tailwindcss/typography';
|
|
27
|
+
|
|
28
|
+
/* Chrome dark mode. Deliberately a distinct class from the story-side
|
|
29
|
+
`theme.darkClass` default (`dark`) so chrome and story themes stay independent —
|
|
30
|
+
in v3 the `ptw-` prefix applied to the dark class and kept them separate. */
|
|
31
|
+
@custom-variant dark (&:where(.ptw-dark, .ptw-dark *));
|
|
30
32
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
33
|
+
@theme {
|
|
34
|
+
/*
|
|
35
|
+
* primary + gray are themable at runtime: resolved-theme.ts injects
|
|
36
|
+
* --_poveste-color-<name>-<key> as space-separated RGB channels, and v4's
|
|
37
|
+
* native color-mix handles opacity (replacing the v3 withOpacityValue shim).
|
|
38
|
+
*/
|
|
39
|
+
--color-primary-50: rgb(var(--_poveste-color-primary-50));
|
|
40
|
+
--color-primary-100: rgb(var(--_poveste-color-primary-100));
|
|
41
|
+
--color-primary-200: rgb(var(--_poveste-color-primary-200));
|
|
42
|
+
--color-primary-300: rgb(var(--_poveste-color-primary-300));
|
|
43
|
+
--color-primary-400: rgb(var(--_poveste-color-primary-400));
|
|
44
|
+
--color-primary-500: rgb(var(--_poveste-color-primary-500));
|
|
45
|
+
--color-primary-600: rgb(var(--_poveste-color-primary-600));
|
|
46
|
+
--color-primary-700: rgb(var(--_poveste-color-primary-700));
|
|
47
|
+
--color-primary-800: rgb(var(--_poveste-color-primary-800));
|
|
48
|
+
--color-primary-900: rgb(var(--_poveste-color-primary-900));
|
|
49
|
+
|
|
50
|
+
--color-gray-50: rgb(var(--_poveste-color-gray-50));
|
|
51
|
+
--color-gray-100: rgb(var(--_poveste-color-gray-100));
|
|
52
|
+
--color-gray-200: rgb(var(--_poveste-color-gray-200));
|
|
53
|
+
--color-gray-300: rgb(var(--_poveste-color-gray-300));
|
|
54
|
+
--color-gray-400: rgb(var(--_poveste-color-gray-400));
|
|
55
|
+
--color-gray-500: rgb(var(--_poveste-color-gray-500));
|
|
56
|
+
--color-gray-600: rgb(var(--_poveste-color-gray-600));
|
|
57
|
+
--color-gray-700: rgb(var(--_poveste-color-gray-700));
|
|
58
|
+
--color-gray-750: rgb(var(--_poveste-color-gray-750));
|
|
59
|
+
--color-gray-800: rgb(var(--_poveste-color-gray-800));
|
|
60
|
+
--color-gray-850: rgb(var(--_poveste-color-gray-850));
|
|
61
|
+
--color-gray-900: rgb(var(--_poveste-color-gray-900));
|
|
62
|
+
--color-gray-950: rgb(var(--_poveste-color-gray-950));
|
|
63
|
+
|
|
64
|
+
/* border radius (ported from the root v3 config) */
|
|
65
|
+
--radius-sm: 0.25rem;
|
|
66
|
+
--radius: 0.375rem;
|
|
67
|
+
--radius-md: 0.5rem;
|
|
68
|
+
--radius-lg: 0.75rem;
|
|
69
|
+
--radius-xl: 1rem;
|
|
70
|
+
--radius-2xl: 1.5rem;
|
|
71
|
+
--radius-3xl: 2rem;
|
|
34
72
|
}
|
|
35
73
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
74
|
+
/*
|
|
75
|
+
* Manual reset — replaces Preflight, which is intentionally disabled.
|
|
76
|
+
*
|
|
77
|
+
* MUST stay inside `@layer base`. Unlayered rules beat *every* layered rule
|
|
78
|
+
* regardless of specificity, so an unlayered `* { border-width: 0 }` silently
|
|
79
|
+
* defeats `.border` in `@layer utilities` — every border in the app renders at
|
|
80
|
+
* zero width. In v3 this block was safe unlayered because `@tailwind utilities`
|
|
81
|
+
* emitted unlayered rules that won on specificity; v4 puts them in a real
|
|
82
|
+
* cascade layer, which inverts the outcome. Same trap for the `a`/`input`/
|
|
83
|
+
* `button` rules below vs. text-colour and font utilities.
|
|
84
|
+
*/
|
|
85
|
+
@layer base {
|
|
86
|
+
*,
|
|
87
|
+
::before,
|
|
88
|
+
::after {
|
|
89
|
+
box-sizing: border-box;
|
|
90
|
+
border-width: 0;
|
|
91
|
+
border-style: solid;
|
|
92
|
+
border-color: #e5e7eb;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
a,
|
|
96
|
+
input,
|
|
97
|
+
button {
|
|
98
|
+
color: inherit;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
a {
|
|
102
|
+
text-decoration: inherit;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
input, button {
|
|
106
|
+
font-family: inherit;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
a,
|
|
110
|
+
button {
|
|
111
|
+
user-select: none;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
39
114
|
|
|
40
115
|
@layer base {
|
|
41
116
|
body,
|
|
@@ -73,7 +148,7 @@ button {
|
|
|
73
148
|
background: transparent !important;
|
|
74
149
|
}
|
|
75
150
|
|
|
76
|
-
.
|
|
151
|
+
.prose {
|
|
77
152
|
h1, h2, h3, h4 {
|
|
78
153
|
&:not(:hover) {
|
|
79
154
|
.header-anchor[aria-hidden="true"] {
|
|
@@ -93,8 +168,93 @@ button {
|
|
|
93
168
|
background-repeat: no-repeat;
|
|
94
169
|
background-position: right;
|
|
95
170
|
|
|
96
|
-
|
|
171
|
+
/* Subject-side, not `.ptw-dark &` — see the note in floating.pcss. */
|
|
172
|
+
&:where(.ptw-dark, .ptw-dark *) {
|
|
97
173
|
background-image: linear-gradient(to left, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0));
|
|
98
174
|
}
|
|
99
175
|
}
|
|
100
176
|
}
|
|
177
|
+
|
|
178
|
+
/*
|
|
179
|
+
* Typography (@tailwindcss/typography) customization — ported from the v3
|
|
180
|
+
* `theme.extend.typography` JS config to CSS. Unlayered so it overrides the
|
|
181
|
+
* plugin's layered defaults. Needs a visual pass on the docs/markdown pages.
|
|
182
|
+
*/
|
|
183
|
+
.prose {
|
|
184
|
+
--tw-prose-invert-quote-borders: var(--color-gray-800);
|
|
185
|
+
--tw-prose-invert-hr: var(--color-gray-800);
|
|
186
|
+
--tw-prose-invert-bullets: var(--color-gray-500);
|
|
187
|
+
|
|
188
|
+
/*
|
|
189
|
+
* The guard repeats what the plugin puts on every rule it generates, so
|
|
190
|
+
* `not-prose` opts out of ours too. In v3 these lived in
|
|
191
|
+
* `theme.extend.typography` and the plugin added it for us; hand-written CSS
|
|
192
|
+
* gets nothing.
|
|
193
|
+
*
|
|
194
|
+
* `:where()` keeps the guard at zero specificity, so every selector below
|
|
195
|
+
* weighs exactly what its unguarded form did.
|
|
196
|
+
*/
|
|
197
|
+
& :not(:where([class~='not-prose'], [class~='not-prose'] *)) {
|
|
198
|
+
&:is(a) {
|
|
199
|
+
color: var(--color-primary-500);
|
|
200
|
+
text-decoration: none;
|
|
201
|
+
|
|
202
|
+
&:hover {
|
|
203
|
+
text-decoration: underline;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
&:is(h1, h2, h3, h4, th) {
|
|
208
|
+
margin-bottom: 0.75rem;
|
|
209
|
+
|
|
210
|
+
&:not(:first-child) {
|
|
211
|
+
margin-top: 1.25rem;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
&:is(blockquote) {
|
|
216
|
+
margin-left: 0;
|
|
217
|
+
margin-right: 0;
|
|
218
|
+
background-color: var(--color-gray-100);
|
|
219
|
+
padding: 0.25rem 0.375rem;
|
|
220
|
+
|
|
221
|
+
&:where(.ptw-dark, .ptw-dark *) {
|
|
222
|
+
background-color: var(--color-gray-750);
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
& p:first-child {
|
|
226
|
+
margin-top: 0;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
& p:last-child {
|
|
230
|
+
margin-bottom: 0;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
&:is(li) {
|
|
235
|
+
margin-top: 0.1rem;
|
|
236
|
+
margin-bottom: 0.1rem;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
/*
|
|
240
|
+
* Inline code only. markdown-it wraps the highlighted output in
|
|
241
|
+
* `<pre><code class="language-x">`, and that `code` is the parent of the
|
|
242
|
+
* `not-prose` island rather than part of it, so the guard above misses it —
|
|
243
|
+
* as does the island itself for shiki's own `code`, which sits in a `pre`
|
|
244
|
+
* too. The plugin's `pre code` reset would have handled both, but it lives
|
|
245
|
+
* in a cascade layer and this rule is unlayered: unlayered wins outright,
|
|
246
|
+
* the same inversion as #104.
|
|
247
|
+
*/
|
|
248
|
+
&:is(code):not(:where(pre *)) {
|
|
249
|
+
background-color: color-mix(in oklab, var(--color-gray-500) 20%, transparent);
|
|
250
|
+
font-weight: normal;
|
|
251
|
+
padding: 0.05rem 0.5rem;
|
|
252
|
+
border-radius: 0.25rem;
|
|
253
|
+
font-size: 0.8rem;
|
|
254
|
+
|
|
255
|
+
&::before, &::after {
|
|
256
|
+
display: none;
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
}
|
|
@@ -14,7 +14,9 @@ html {
|
|
|
14
14
|
font-family: 'Noto Sans Display', system-ui, sans-serif;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
.
|
|
17
|
+
/* Namespaced: sandbox.css is not @scope-wrapped, so this rule shares the
|
|
18
|
+
document with user story markup. */
|
|
19
|
+
.__poveste-sandbox-hidden {
|
|
18
20
|
display: none;
|
|
19
21
|
}
|
|
20
22
|
|
|
@@ -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
|
}
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
import { povesteConfig } from "./util/config.js";
|
|
2
|
+
import { toggleDark } from "./util/dark.js";
|
|
3
|
+
import { isMobile } from "./util/responsive.js";
|
|
4
|
+
import { onKeyboardShortcut } from "./util/keyboard.js";
|
|
5
|
+
import AppActions_default from "./components/app/AppActions.js";
|
|
6
|
+
import AppHeader_default from "./components/app/AppHeader.js";
|
|
7
|
+
import { useStoryStore } from "./stores/story.js";
|
|
8
|
+
import StoryList_default from "./components/tree/StoryList.js";
|
|
9
|
+
import Breadcrumb_default from "./components/app/Breadcrumb.js";
|
|
10
|
+
import InitialLoading_default from "./components/app/InitialLoading.js";
|
|
11
|
+
import TopBar_default from "./components/app/TopBar.js";
|
|
12
|
+
import BaseSplitPane_default from "./components/base/BaseSplitPane.js";
|
|
13
|
+
import { useCommandStore } from "./stores/command.js";
|
|
14
|
+
import CommandPromptsModal_default from "./components/command/CommandPromptsModal.js";
|
|
15
|
+
import { useLayoutStore } from "./stores/layout.js";
|
|
16
|
+
import LayoutModal_default from "./components/layout/LayoutModal.js";
|
|
17
|
+
import SearchModal_default from "./components/search/SearchModal.js";
|
|
18
|
+
import GenericMountStory_default from "./components/story/GenericMountStory.js";
|
|
19
|
+
import { mapFile } from "./util/mapping.js";
|
|
20
|
+
import { useTitle } from "@poveste/vendors/vue-use";
|
|
21
|
+
import { Transition, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, normalizeStyle, onMounted, openBlock, ref, resolveComponent, unref, watch, withCtx } from "@poveste/vendors/vue";
|
|
22
|
+
import { files, onUpdate, tree } from "virtual:$poveste-stories";
|
|
23
|
+
//#region src/app/App.vue?vue&type=script&setup=true&lang.ts
|
|
24
|
+
var _hoisted_1 = { class: "poveste-app-root h-full" };
|
|
25
|
+
var _hoisted_2 = {
|
|
26
|
+
key: 0,
|
|
27
|
+
class: "poveste-app hidden"
|
|
28
|
+
};
|
|
29
|
+
var _hoisted_3 = {
|
|
30
|
+
key: 0,
|
|
31
|
+
class: "h-full flex flex-col divide-y divide-gray-100 dark:divide-gray-800"
|
|
32
|
+
};
|
|
33
|
+
var _hoisted_4 = { class: "flex items-center gap-2 pr-4" };
|
|
34
|
+
var _hoisted_5 = { class: "flex flex-col h-full bg-gray-100 dark:bg-gray-750 __poveste-pane-shadow-from-right" };
|
|
35
|
+
var _hoisted_6 = { class: "flex flex-col h-full" };
|
|
36
|
+
var _hoisted_7 = {
|
|
37
|
+
key: 2,
|
|
38
|
+
class: "h-full flex flex-col"
|
|
39
|
+
};
|
|
40
|
+
var App_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
41
|
+
name: "PovesteApp",
|
|
42
|
+
setup(__props) {
|
|
43
|
+
const files$1 = ref(files.map((file) => mapFile(file)));
|
|
44
|
+
const tree$1 = ref(tree);
|
|
45
|
+
onUpdate((newFiles, newTree) => {
|
|
46
|
+
loading.value = false;
|
|
47
|
+
files$1.value = newFiles.map((file) => {
|
|
48
|
+
const existingFile = files$1.value.find((f) => f.id === file.id);
|
|
49
|
+
return mapFile(file, existingFile);
|
|
50
|
+
});
|
|
51
|
+
tree$1.value = newTree;
|
|
52
|
+
});
|
|
53
|
+
const stories = computed(() => files$1.value.reduce((acc, file) => {
|
|
54
|
+
acc.push(file.story);
|
|
55
|
+
return acc;
|
|
56
|
+
}, []));
|
|
57
|
+
const storyStore = useStoryStore();
|
|
58
|
+
watch(stories, (value) => {
|
|
59
|
+
storyStore.setStories(value);
|
|
60
|
+
}, { immediate: true });
|
|
61
|
+
useTitle(computed(() => {
|
|
62
|
+
if (storyStore.currentStory) {
|
|
63
|
+
let title = storyStore.currentStory.title;
|
|
64
|
+
if (storyStore.currentVariant) title += ` › ${storyStore.currentVariant.title}`;
|
|
65
|
+
return `${title} | ${povesteConfig.theme.title}`;
|
|
66
|
+
}
|
|
67
|
+
return povesteConfig.theme.title;
|
|
68
|
+
}));
|
|
69
|
+
const loadSearch = ref(false);
|
|
70
|
+
const isSearchOpen = ref(false);
|
|
71
|
+
const isLayoutOpen = ref(false);
|
|
72
|
+
watch(isSearchOpen, (value) => {
|
|
73
|
+
if (value) loadSearch.value = true;
|
|
74
|
+
});
|
|
75
|
+
onKeyboardShortcut(["ctrl+k", "meta+k"], (event) => {
|
|
76
|
+
isSearchOpen.value = true;
|
|
77
|
+
event.preventDefault();
|
|
78
|
+
});
|
|
79
|
+
onKeyboardShortcut(["ctrl+shift+l", "meta+shift+l"], (event) => {
|
|
80
|
+
isLayoutOpen.value = !isLayoutOpen.value;
|
|
81
|
+
event.preventDefault();
|
|
82
|
+
});
|
|
83
|
+
onKeyboardShortcut(["ctrl+shift+d", "meta+shift+d"], (event) => {
|
|
84
|
+
event.preventDefault();
|
|
85
|
+
toggleDark();
|
|
86
|
+
});
|
|
87
|
+
const loading = ref(false);
|
|
88
|
+
if (import.meta.hot && !files.length) {
|
|
89
|
+
loading.value = true;
|
|
90
|
+
import.meta.hot.on("poveste:all-stories-loaded", () => {
|
|
91
|
+
loading.value = false;
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
const mounted = ref(false);
|
|
95
|
+
onMounted(() => {
|
|
96
|
+
mounted.value = true;
|
|
97
|
+
});
|
|
98
|
+
const commandStore = useCommandStore();
|
|
99
|
+
const layoutStore = useLayoutStore();
|
|
100
|
+
return (_ctx, _cache) => {
|
|
101
|
+
const _component_RouterView = resolveComponent("RouterView");
|
|
102
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
103
|
+
unref(storyStore).currentStory ? (openBlock(), createElementBlock("div", _hoisted_2, [(openBlock(), createBlock(GenericMountStory_default, {
|
|
104
|
+
key: unref(storyStore).currentStory.id,
|
|
105
|
+
story: unref(storyStore).currentStory
|
|
106
|
+
}, null, 8, ["story"]))])) : createCommentVNode("", true),
|
|
107
|
+
createElementVNode("div", {
|
|
108
|
+
class: "h-screen bg-gray-100 dark:bg-gray-750 dark:text-gray-100",
|
|
109
|
+
style: normalizeStyle({ opacity: mounted.value ? 1 : 0 })
|
|
110
|
+
}, [
|
|
111
|
+
unref(isMobile) ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
112
|
+
createElementVNode("div", _hoisted_4, [createVNode(AppHeader_default, { class: "flex-1" }), createVNode(AppActions_default, {
|
|
113
|
+
class: "flex-none",
|
|
114
|
+
onLayout: _cache[0] || (_cache[0] = ($event) => isLayoutOpen.value = true),
|
|
115
|
+
onSearch: _cache[1] || (_cache[1] = ($event) => isSearchOpen.value = true)
|
|
116
|
+
})]),
|
|
117
|
+
createVNode(Breadcrumb_default, {
|
|
118
|
+
tree: tree$1.value,
|
|
119
|
+
stories: stories.value
|
|
120
|
+
}, null, 8, ["tree", "stories"]),
|
|
121
|
+
createVNode(_component_RouterView, { class: "grow" })
|
|
122
|
+
])) : unref(layoutStore).settings.storyListVisible ? (openBlock(), createBlock(BaseSplitPane_default, {
|
|
123
|
+
key: 1,
|
|
124
|
+
"save-id": "main-horiz",
|
|
125
|
+
min: 5,
|
|
126
|
+
max: 50,
|
|
127
|
+
"default-split": 15,
|
|
128
|
+
class: "h-full"
|
|
129
|
+
}, {
|
|
130
|
+
first: withCtx(() => [createElementVNode("div", _hoisted_5, [createVNode(AppHeader_default, { class: "flex-none" }), createVNode(StoryList_default, {
|
|
131
|
+
tree: tree$1.value,
|
|
132
|
+
stories: stories.value,
|
|
133
|
+
class: "flex-1"
|
|
134
|
+
}, null, 8, ["tree", "stories"])])]),
|
|
135
|
+
last: withCtx(() => [createElementVNode("div", _hoisted_6, [createVNode(TopBar_default, {
|
|
136
|
+
onLayout: _cache[2] || (_cache[2] = ($event) => isLayoutOpen.value = true),
|
|
137
|
+
onSearch: _cache[3] || (_cache[3] = ($event) => isSearchOpen.value = true)
|
|
138
|
+
}), createVNode(_component_RouterView, { class: "flex-1 min-h-0" })])]),
|
|
139
|
+
_: 1
|
|
140
|
+
})) : (openBlock(), createElementBlock("div", _hoisted_7, [createVNode(TopBar_default, {
|
|
141
|
+
onLayout: _cache[4] || (_cache[4] = ($event) => isLayoutOpen.value = true),
|
|
142
|
+
onSearch: _cache[5] || (_cache[5] = ($event) => isSearchOpen.value = true)
|
|
143
|
+
}), createVNode(_component_RouterView, { class: "flex-1 min-h-0" })])),
|
|
144
|
+
!unref(isMobile) ? (openBlock(), createBlock(LayoutModal_default, {
|
|
145
|
+
key: 3,
|
|
146
|
+
shown: isLayoutOpen.value,
|
|
147
|
+
onClose: _cache[6] || (_cache[6] = ($event) => isLayoutOpen.value = false)
|
|
148
|
+
}, null, 8, ["shown"])) : createCommentVNode("", true),
|
|
149
|
+
loadSearch.value ? (openBlock(), createBlock(SearchModal_default, {
|
|
150
|
+
key: 4,
|
|
151
|
+
shown: isSearchOpen.value,
|
|
152
|
+
onClose: _cache[7] || (_cache[7] = ($event) => isSearchOpen.value = false)
|
|
153
|
+
}, null, 8, ["shown"])) : createCommentVNode("", true),
|
|
154
|
+
_ctx.__POVESTE_DEV__ ? (openBlock(), createBlock(CommandPromptsModal_default, {
|
|
155
|
+
key: 5,
|
|
156
|
+
shown: unref(commandStore).showPromptsModal,
|
|
157
|
+
onClose: _cache[8] || (_cache[8] = ($event) => unref(commandStore).showPromptsModal = false)
|
|
158
|
+
}, null, 8, ["shown"])) : createCommentVNode("", true)
|
|
159
|
+
], 4),
|
|
160
|
+
createVNode(Transition, { name: "__poveste-fade" }, {
|
|
161
|
+
default: withCtx(() => [loading.value ? (openBlock(), createBlock(InitialLoading_default, { key: 0 })) : createCommentVNode("", true)]),
|
|
162
|
+
_: 1
|
|
163
|
+
})
|
|
164
|
+
]);
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
});
|
|
168
|
+
//#endregion
|
|
169
|
+
export { App_vue_vue_type_script_setup_true_lang_default as default };
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
return target;
|
|
7
|
-
};
|
|
8
|
-
export {
|
|
9
|
-
_export_sfc as default
|
|
1
|
+
//#region \0plugin-vue:export-helper
|
|
2
|
+
var _plugin_vue_export_helper_default = (sfc, props) => {
|
|
3
|
+
const target = sfc.__vccOpts || sfc;
|
|
4
|
+
for (const [key, val] of props) target[key] = val;
|
|
5
|
+
return target;
|
|
10
6
|
};
|
|
7
|
+
//#endregion
|
|
8
|
+
export { _plugin_vue_export_helper_default as default };
|
package/dist/bundled/api.js
CHANGED
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import { isDark as isDark$1 } from "./util/dark.js";
|
|
2
|
-
import { toggleDark } from "./util/dark.js";
|
|
1
|
+
import { isDark as isDark$1, toggleDark } from "./util/dark.js";
|
|
3
2
|
import { logEvent } from "./util/events.js";
|
|
4
|
-
|
|
3
|
+
//#region src/app/api.ts
|
|
5
4
|
function isDark() {
|
|
6
|
-
|
|
5
|
+
return isDark$1.value;
|
|
7
6
|
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
logEvent,
|
|
11
|
-
toggleDark
|
|
12
|
-
};
|
|
7
|
+
//#endregion
|
|
8
|
+
export { isDark, logEvent, toggleDark };
|