@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
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@poveste/app",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.3.0",
|
|
5
5
|
"description": "Pre-bundled UI for Poveste",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Sorin Gitlan"
|
|
@@ -30,31 +30,34 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"fuse.js": "^7.0.0",
|
|
32
32
|
"shiki": "^3.0.0",
|
|
33
|
-
"@poveste/controls": "^0.
|
|
34
|
-
"@poveste/shared": "^0.
|
|
35
|
-
"@poveste/vendors": "^0.
|
|
33
|
+
"@poveste/controls": "^0.3.0",
|
|
34
|
+
"@poveste/shared": "^0.3.0",
|
|
35
|
+
"@poveste/vendors": "^0.3.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
+
"@tailwindcss/postcss": "^4.3.3",
|
|
38
39
|
"@tailwindcss/typography": "^0.5.15",
|
|
39
40
|
"@types/fs-extra": "^11.0.4",
|
|
40
41
|
"@types/node": "^22.10.1",
|
|
41
42
|
"@vitejs/plugin-vue": "^5.2.1",
|
|
42
|
-
"autoprefixer": "^10.4.20",
|
|
43
43
|
"chokidar": "^4.0.1",
|
|
44
44
|
"concurrently": "^9.1.0",
|
|
45
45
|
"fs-extra": "^11.2.0",
|
|
46
46
|
"globby": "^14.0.2",
|
|
47
47
|
"pathe": "^1.1.2",
|
|
48
48
|
"postcss": "^8.4.49",
|
|
49
|
-
"postcss-
|
|
50
|
-
"tailwindcss": "^3.
|
|
49
|
+
"postcss-cli": "^11.0.1",
|
|
50
|
+
"tailwindcss": "^4.3.3",
|
|
51
51
|
"typescript": "5.6.3",
|
|
52
|
-
"vite": "^
|
|
52
|
+
"vite": "^8.2.0",
|
|
53
|
+
"vitest": "^4.1.10",
|
|
53
54
|
"vue": "^3.5.26"
|
|
54
55
|
},
|
|
55
56
|
"scripts": {
|
|
56
57
|
"build": "rimraf dist && vite build && pnpm run build:css && node ./scripts/copy.mjs",
|
|
57
|
-
"build:css": "
|
|
58
|
+
"build:css": "postcss src/app/style/main.pcss -o ./dist/style.css",
|
|
59
|
+
"test": "vitest run",
|
|
60
|
+
"test:dev": "vitest",
|
|
58
61
|
"watch": "concurrently \"vite build --watch\" \"pnpm run build:css --watch\" \"node ./scripts/watchAndCopy.mjs\""
|
|
59
62
|
}
|
|
60
63
|
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import postcss from 'postcss'
|
|
2
|
+
import { describe, expect, it } from 'vitest'
|
|
3
|
+
// @ts-expect-error — plain CJS postcss plugin, no types.
|
|
4
|
+
import scopeWrapper from '../../postcss-scope-wrapper.cjs'
|
|
5
|
+
|
|
6
|
+
const OPTS = { from: ':root', to: '.__poveste-render-story:not(.__poveste-render-custom-controls)' }
|
|
7
|
+
|
|
8
|
+
function run(css: string) {
|
|
9
|
+
return postcss([scopeWrapper(OPTS)]).process(css, { from: undefined }).css
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
describe('postcss-scope-wrapper', () => {
|
|
13
|
+
it('wraps the stylesheet in the configured scope', () => {
|
|
14
|
+
expect(run('.a { color: red }')).toContain('@scope (:root) to (.__poveste-render-story:not(.__poveste-render-custom-controls))')
|
|
15
|
+
})
|
|
16
|
+
|
|
17
|
+
it('leaves @import at the top level', () => {
|
|
18
|
+
// @import is only valid before other rules; moving it inside @scope drops it.
|
|
19
|
+
const out = run('@import "x.css";\n.a { color: red }')
|
|
20
|
+
|
|
21
|
+
expect(out.indexOf('@import')).toBeLessThan(out.indexOf('@scope'))
|
|
22
|
+
})
|
|
23
|
+
|
|
24
|
+
/*
|
|
25
|
+
* The three selectors below all mean "the app's root container" once this
|
|
26
|
+
* stylesheet is wrapped. `body` is included for the same reason as `html`:
|
|
27
|
+
* poveste re-wraps the output a second time rooted at `.poveste-app-root`, so
|
|
28
|
+
* both sit above the effective scoping root and can never be matched. Leaving
|
|
29
|
+
* `body` out is #102 — the whole UI rendered one size too large.
|
|
30
|
+
*/
|
|
31
|
+
it.each(['html', ':root', 'body'])('rewrites a root-ish `%s` selector to :scope', (selector) => {
|
|
32
|
+
expect(run(`${selector} { font-size: .875rem }`)).toContain(':scope {')
|
|
33
|
+
})
|
|
34
|
+
|
|
35
|
+
it('rewrites root-ish selectors inside a selector list, leaving the rest alone', () => {
|
|
36
|
+
const out = run('html, body, #app { height: 100% }')
|
|
37
|
+
|
|
38
|
+
expect(out).toContain(':scope,')
|
|
39
|
+
expect(out).toContain('#app')
|
|
40
|
+
expect(out).not.toMatch(/(?<![\w.\-#])body\s*[,{]/)
|
|
41
|
+
})
|
|
42
|
+
|
|
43
|
+
it('rewrites nested rules, not just top-level ones', () => {
|
|
44
|
+
// Tailwind v4 emits `@layer base { … }` as a real cascade layer, so the
|
|
45
|
+
// rules that style the scoping root sit one level down.
|
|
46
|
+
const out = run('@layer base { body { font-size: .875rem } }')
|
|
47
|
+
|
|
48
|
+
expect(out).toContain(':scope {')
|
|
49
|
+
expect(out).not.toMatch(/(?<![\w.\-#])body\s*\{/)
|
|
50
|
+
})
|
|
51
|
+
|
|
52
|
+
it('rewrites root-ish selectors inside media queries', () => {
|
|
53
|
+
// The 640px override is where #102 actually bit.
|
|
54
|
+
const out = run('@media (min-width: 640px) { body { font-size: .875rem } }')
|
|
55
|
+
|
|
56
|
+
expect(out).toContain(':scope {')
|
|
57
|
+
})
|
|
58
|
+
|
|
59
|
+
it('leaves ordinary selectors untouched', () => {
|
|
60
|
+
const out = run('.poveste-story-list { color: red }')
|
|
61
|
+
|
|
62
|
+
expect(out).toContain('.poveste-story-list')
|
|
63
|
+
expect(out).not.toContain(':scope {')
|
|
64
|
+
})
|
|
65
|
+
})
|
package/src/app/App.vue
CHANGED
|
@@ -110,10 +110,10 @@ const layoutStore = useLayoutStore()
|
|
|
110
110
|
</script>
|
|
111
111
|
|
|
112
112
|
<template>
|
|
113
|
-
<div class="poveste-app-root
|
|
113
|
+
<div class="poveste-app-root h-full">
|
|
114
114
|
<div
|
|
115
115
|
v-if="storyStore.currentStory"
|
|
116
|
-
class="poveste-app
|
|
116
|
+
class="poveste-app hidden"
|
|
117
117
|
>
|
|
118
118
|
<GenericMountStory
|
|
119
119
|
:key="storyStore.currentStory.id"
|
|
@@ -122,7 +122,7 @@ const layoutStore = useLayoutStore()
|
|
|
122
122
|
</div>
|
|
123
123
|
|
|
124
124
|
<div
|
|
125
|
-
class="
|
|
125
|
+
class="h-screen bg-gray-100 dark:bg-gray-750 dark:text-gray-100"
|
|
126
126
|
:style="{
|
|
127
127
|
// Prevent flash of content
|
|
128
128
|
opacity: mounted ? 1 : 0,
|
|
@@ -130,12 +130,12 @@ const layoutStore = useLayoutStore()
|
|
|
130
130
|
>
|
|
131
131
|
<div
|
|
132
132
|
v-if="isMobile"
|
|
133
|
-
class="
|
|
133
|
+
class="h-full flex flex-col divide-y divide-gray-100 dark:divide-gray-800"
|
|
134
134
|
>
|
|
135
|
-
<div class="
|
|
136
|
-
<AppHeader class="
|
|
135
|
+
<div class="flex items-center gap-2 pr-4">
|
|
136
|
+
<AppHeader class="flex-1" />
|
|
137
137
|
<AppActions
|
|
138
|
-
class="
|
|
138
|
+
class="flex-none"
|
|
139
139
|
@layout="isLayoutOpen = true"
|
|
140
140
|
@search="isSearchOpen = true"
|
|
141
141
|
/>
|
|
@@ -144,7 +144,7 @@ const layoutStore = useLayoutStore()
|
|
|
144
144
|
:tree="tree"
|
|
145
145
|
:stories="stories"
|
|
146
146
|
/>
|
|
147
|
-
<RouterView class="
|
|
147
|
+
<RouterView class="grow" />
|
|
148
148
|
</div>
|
|
149
149
|
|
|
150
150
|
<BaseSplitPane
|
|
@@ -153,38 +153,38 @@ const layoutStore = useLayoutStore()
|
|
|
153
153
|
:min="5"
|
|
154
154
|
:max="50"
|
|
155
155
|
:default-split="15"
|
|
156
|
-
class="
|
|
156
|
+
class="h-full"
|
|
157
157
|
>
|
|
158
158
|
<template #first>
|
|
159
|
-
<div class="
|
|
160
|
-
<AppHeader class="
|
|
159
|
+
<div class="flex flex-col h-full bg-gray-100 dark:bg-gray-750 __poveste-pane-shadow-from-right">
|
|
160
|
+
<AppHeader class="flex-none" />
|
|
161
161
|
<StoryList
|
|
162
162
|
:tree="tree"
|
|
163
163
|
:stories="stories"
|
|
164
|
-
class="
|
|
164
|
+
class="flex-1"
|
|
165
165
|
/>
|
|
166
166
|
</div>
|
|
167
167
|
</template>
|
|
168
168
|
|
|
169
169
|
<template #last>
|
|
170
|
-
<div class="
|
|
170
|
+
<div class="flex flex-col h-full">
|
|
171
171
|
<TopBar
|
|
172
172
|
@layout="isLayoutOpen = true"
|
|
173
173
|
@search="isSearchOpen = true"
|
|
174
174
|
/>
|
|
175
|
-
<RouterView class="
|
|
175
|
+
<RouterView class="flex-1 min-h-0" />
|
|
176
176
|
</div>
|
|
177
177
|
</template>
|
|
178
178
|
</BaseSplitPane>
|
|
179
179
|
<div
|
|
180
180
|
v-else
|
|
181
|
-
class="
|
|
181
|
+
class="h-full flex flex-col"
|
|
182
182
|
>
|
|
183
183
|
<TopBar
|
|
184
184
|
@layout="isLayoutOpen = true"
|
|
185
185
|
@search="isSearchOpen = true"
|
|
186
186
|
/>
|
|
187
|
-
<RouterView class="
|
|
187
|
+
<RouterView class="flex-1 min-h-0" />
|
|
188
188
|
</div>
|
|
189
189
|
|
|
190
190
|
<LayoutModal
|
|
@@ -34,13 +34,13 @@ const stats = computed(() => {
|
|
|
34
34
|
</script>
|
|
35
35
|
|
|
36
36
|
<template>
|
|
37
|
-
<div class="poveste-home-view
|
|
37
|
+
<div class="poveste-home-view flex md:flex-col gap-12 items-center justify-center h-full">
|
|
38
38
|
<img
|
|
39
39
|
:src="logoUrl"
|
|
40
40
|
alt="Logo"
|
|
41
|
-
class="
|
|
41
|
+
class="w-64 h-64 opacity-25 mb-8 hidden md:block"
|
|
42
42
|
>
|
|
43
|
-
<div class="
|
|
43
|
+
<div class="flex !md:flex-col flex-wrap justify-evenly gap-2 px-4 py-2 bg-gray-100 dark:bg-gray-750 rounded border border-gray-500/30">
|
|
44
44
|
<HomeCounter
|
|
45
45
|
title="Stories"
|
|
46
46
|
icon="carbon:cube"
|
|
@@ -29,7 +29,7 @@ const themeIcon = computed(() => {
|
|
|
29
29
|
>
|
|
30
30
|
<Icon
|
|
31
31
|
icon="carbon:panel-expansion"
|
|
32
|
-
class="
|
|
32
|
+
class="w-4 h-4"
|
|
33
33
|
/>
|
|
34
34
|
</TopBarChipItem>
|
|
35
35
|
|
|
@@ -40,7 +40,7 @@ const themeIcon = computed(() => {
|
|
|
40
40
|
>
|
|
41
41
|
<Icon
|
|
42
42
|
icon="carbon:search"
|
|
43
|
-
class="
|
|
43
|
+
class="w-4 h-4"
|
|
44
44
|
/>
|
|
45
45
|
</TopBarChipItem>
|
|
46
46
|
|
|
@@ -51,7 +51,7 @@ const themeIcon = computed(() => {
|
|
|
51
51
|
>
|
|
52
52
|
<Icon
|
|
53
53
|
:icon="themeIcon"
|
|
54
|
-
class="
|
|
54
|
+
class="w-4 h-4"
|
|
55
55
|
/>
|
|
56
56
|
</TopBarChipItem>
|
|
57
57
|
</TopBarChip>
|
|
@@ -5,16 +5,16 @@ import AppLogo from './AppLogo.vue'
|
|
|
5
5
|
|
|
6
6
|
<template>
|
|
7
7
|
<div
|
|
8
|
-
class="poveste-app-header
|
|
8
|
+
class="poveste-app-header px-4 h-14 flex items-center gap-2"
|
|
9
9
|
>
|
|
10
|
-
<div class="
|
|
10
|
+
<div class="py-3 sm:py-4 flex-1 h-full flex items-center pr-2">
|
|
11
11
|
<a
|
|
12
12
|
:href="povesteConfig.theme?.logoHref"
|
|
13
13
|
target="_blank"
|
|
14
|
-
class="
|
|
14
|
+
class="w-full h-full flex items-center"
|
|
15
15
|
>
|
|
16
16
|
<AppLogo
|
|
17
|
-
class="
|
|
17
|
+
class="max-w-full max-h-full"
|
|
18
18
|
/>
|
|
19
19
|
</a>
|
|
20
20
|
</div>
|
|
@@ -37,7 +37,7 @@ watch(story, () => {
|
|
|
37
37
|
<template>
|
|
38
38
|
<div class="poveste-breadcrumb">
|
|
39
39
|
<a
|
|
40
|
-
class="
|
|
40
|
+
class="px-6 h-12 hover:text-primary-500 dark:hover:text-primary-400 cursor-pointer flex gap-2 flex-wrap w-full items-center"
|
|
41
41
|
@click="openMenu"
|
|
42
42
|
>
|
|
43
43
|
<template v-if="story">
|
|
@@ -48,21 +48,21 @@ watch(story, () => {
|
|
|
48
48
|
<span>
|
|
49
49
|
{{ file }}
|
|
50
50
|
</span>
|
|
51
|
-
<span class="
|
|
51
|
+
<span class="opacity-40">
|
|
52
52
|
/
|
|
53
53
|
</span>
|
|
54
54
|
</template>
|
|
55
|
-
<span class="
|
|
55
|
+
<span class="flex items-center gap-2">
|
|
56
56
|
<Icon
|
|
57
57
|
:icon="story.icon ?? 'carbon:cube'"
|
|
58
|
-
class="
|
|
58
|
+
class="w-5 h-5 flex-none"
|
|
59
59
|
:class="{
|
|
60
|
-
'
|
|
60
|
+
'text-primary-500': !story.iconColor,
|
|
61
61
|
'bind-icon-color': story.iconColor,
|
|
62
62
|
}"
|
|
63
63
|
/>
|
|
64
64
|
{{ story.title }}
|
|
65
|
-
<span class="
|
|
65
|
+
<span class="opacity-40 text-sm">
|
|
66
66
|
{{ story.variants.length }}
|
|
67
67
|
</span>
|
|
68
68
|
</span>
|
|
@@ -73,7 +73,7 @@ watch(story, () => {
|
|
|
73
73
|
|
|
74
74
|
<Icon
|
|
75
75
|
icon="carbon:chevron-sort"
|
|
76
|
-
class="
|
|
76
|
+
class="w-5 h-5 shrink-0 ml-auto"
|
|
77
77
|
/>
|
|
78
78
|
</a>
|
|
79
79
|
</div>
|
|
@@ -86,7 +86,7 @@ watch(story, () => {
|
|
|
86
86
|
<StoryList
|
|
87
87
|
:tree="tree"
|
|
88
88
|
:stories="stories"
|
|
89
|
-
class="
|
|
89
|
+
class="flex-1 overflow-y-scroll"
|
|
90
90
|
/>
|
|
91
91
|
</MobileOverlay>
|
|
92
92
|
</template>
|
|
@@ -18,19 +18,19 @@ const props = defineProps({
|
|
|
18
18
|
</script>
|
|
19
19
|
|
|
20
20
|
<template>
|
|
21
|
-
<div class="
|
|
21
|
+
<div class="p-2 flex items-center gap-x-2">
|
|
22
22
|
<Icon
|
|
23
23
|
:icon="props.icon"
|
|
24
|
-
class="
|
|
24
|
+
class="text-2xl text-gray-700 dark:text-gray-300 flex-none"
|
|
25
25
|
/>
|
|
26
|
-
<div class="
|
|
26
|
+
<div class="flex flex-col leading-none">
|
|
27
27
|
<span
|
|
28
|
-
class="
|
|
28
|
+
class="text-primary-500 min-w-[80px] font-bold"
|
|
29
29
|
>
|
|
30
30
|
{{ count }}
|
|
31
31
|
</span>
|
|
32
32
|
<span
|
|
33
|
-
class="
|
|
33
|
+
class="text-sm text-gray-900 dark:text-gray-100"
|
|
34
34
|
>
|
|
35
35
|
{{ title }}
|
|
36
36
|
</span>
|
|
@@ -17,11 +17,11 @@ if (import.meta.hot) {
|
|
|
17
17
|
</script>
|
|
18
18
|
|
|
19
19
|
<template>
|
|
20
|
-
<div class="poveste-initial-loading
|
|
20
|
+
<div class="poveste-initial-loading fixed inset-0 bg-white dark:bg-gray-700 flex flex-col gap-6 items-center justify-center">
|
|
21
21
|
<transition name="__poveste-fade">
|
|
22
22
|
<div
|
|
23
23
|
v-if="progress.total > 0"
|
|
24
|
-
class="
|
|
24
|
+
class="grid gap-2"
|
|
25
25
|
:style="{
|
|
26
26
|
gridTemplateColumns: `repeat(${Math.min(Math.ceil(Math.sqrt(progress.total)), maxCols)}, minmax(0, 1fr))`,
|
|
27
27
|
}"
|
|
@@ -29,12 +29,12 @@ if (import.meta.hot) {
|
|
|
29
29
|
<div
|
|
30
30
|
v-for="n in progress.total"
|
|
31
31
|
:key="n"
|
|
32
|
-
class="
|
|
32
|
+
class="bg-primary-500/10 rounded-full"
|
|
33
33
|
>
|
|
34
34
|
<div
|
|
35
|
-
class="
|
|
35
|
+
class="w-3 h-3 bg-primary-500 rounded-full duration-150 ease-out"
|
|
36
36
|
:class="{
|
|
37
|
-
'
|
|
37
|
+
'transition-transform scale-0': n >= progress.loaded,
|
|
38
38
|
}"
|
|
39
39
|
/>
|
|
40
40
|
</div>
|
|
@@ -13,17 +13,17 @@ const emit = defineEmits<{ (e: 'close'): void }>()
|
|
|
13
13
|
<transition name="__poveste-fade-bottom">
|
|
14
14
|
<div
|
|
15
15
|
v-if="opened"
|
|
16
|
-
class="poveste-mobile-overlay
|
|
16
|
+
class="poveste-mobile-overlay absolute z-10 bg-white dark:bg-gray-700 w-screen h-screen inset-0 overflow-hidden flex flex-col"
|
|
17
17
|
>
|
|
18
|
-
<div class="
|
|
19
|
-
<span class="
|
|
18
|
+
<div class="p-4 h-16 flex border-b border-gray-100 dark:border-gray-800 items-center place-content-between">
|
|
19
|
+
<span class="text-gray-500">{{ title }}</span>
|
|
20
20
|
<a
|
|
21
|
-
class="
|
|
21
|
+
class="p-1 hover:text-primary-500 dark:hover:text-primary-400 cursor-pointer"
|
|
22
22
|
@click="emit('close')"
|
|
23
23
|
>
|
|
24
24
|
<Icon
|
|
25
25
|
icon="carbon:close"
|
|
26
|
-
class="
|
|
26
|
+
class="w-8 h-8 shrink-0"
|
|
27
27
|
/>
|
|
28
28
|
</a>
|
|
29
29
|
</div>
|
|
@@ -18,16 +18,16 @@ const storyStore = useStoryStore()
|
|
|
18
18
|
</script>
|
|
19
19
|
|
|
20
20
|
<template>
|
|
21
|
-
<div class="poveste-top-bar
|
|
21
|
+
<div class="poveste-top-bar flex-none grid grid-cols-[1fr_auto_1fr] items-center h-14 px-4 gap-3">
|
|
22
22
|
<AppActions
|
|
23
|
-
class="
|
|
23
|
+
class="justify-self-start"
|
|
24
24
|
@layout="$emit('layout')"
|
|
25
25
|
@search="$emit('search')"
|
|
26
26
|
/>
|
|
27
27
|
|
|
28
28
|
<TopBarChip
|
|
29
29
|
v-if="storyStore.currentStory || storyStore.currentVariant"
|
|
30
|
-
class="
|
|
30
|
+
class="px-6 py-1.5 max-w-full"
|
|
31
31
|
>
|
|
32
32
|
<ToolbarTitle
|
|
33
33
|
:variant="storyStore.currentVariant ?? undefined"
|
|
@@ -38,7 +38,7 @@ const storyStore = useStoryStore()
|
|
|
38
38
|
|
|
39
39
|
<TopBarChip
|
|
40
40
|
v-if="storyStore.currentStory && !storyStore.currentStory.docsOnly"
|
|
41
|
-
class="
|
|
41
|
+
class="justify-self-end"
|
|
42
42
|
>
|
|
43
43
|
<ToolbarResponsiveSize
|
|
44
44
|
v-if="storyStore.currentVariant && !storyStore.currentVariant.responsiveDisabled"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="poveste-top-bar-chip
|
|
2
|
+
<div class="poveste-top-bar-chip flex items-center bg-gradient-to-b from-white/85 to-white/60 dark:from-gray-800/65 dark:to-gray-800/40 backdrop-blur-md border border-white/60 dark:border-white/15 rounded-lg overflow-hidden shadow-md">
|
|
3
3
|
<slot />
|
|
4
4
|
</div>
|
|
5
5
|
</template>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<a
|
|
3
|
-
class="poveste-top-bar-chip-item
|
|
3
|
+
class="poveste-top-bar-chip-item flex items-center gap-1 px-2.5 py-1.5 hover:bg-white/50 active:bg-white/70 dark:hover:bg-white/10 dark:active:bg-white/15 hover:text-primary-500 dark:hover:text-primary-400 cursor-pointer text-gray-900 dark:text-gray-100 transition-colors"
|
|
4
4
|
>
|
|
5
5
|
<slot />
|
|
6
6
|
</a>
|
|
@@ -22,10 +22,10 @@ const comp = computed(() => {
|
|
|
22
22
|
<template>
|
|
23
23
|
<component
|
|
24
24
|
:is="comp"
|
|
25
|
-
class="poveste-base-button
|
|
25
|
+
class="poveste-base-button rounded cursor-pointer"
|
|
26
26
|
:class="{
|
|
27
|
-
'
|
|
28
|
-
'
|
|
27
|
+
'bg-primary-200 dark:bg-primary-800 hover:bg-primary-300 dark:hover:bg-primary-700': color === 'primary' || !color,
|
|
28
|
+
'bg-grey-100 dark:bg-grey-900 hover:bg-grey-200 dark:hover:bg-grey-800': color === 'grey',
|
|
29
29
|
}"
|
|
30
30
|
>
|
|
31
31
|
<slot />
|
|
@@ -34,35 +34,35 @@ watch(path, () => {
|
|
|
34
34
|
<div
|
|
35
35
|
role="checkbox"
|
|
36
36
|
tabindex="0"
|
|
37
|
-
class="poveste-base-checkbox
|
|
37
|
+
class="poveste-base-checkbox flex items-center gap-2 select-none px-4 py-3 cursor-pointer hover:bg-primary-100 dark:hover:bg-primary-700"
|
|
38
38
|
@click="toggle()"
|
|
39
39
|
@keydown.enter.prevent="toggle()"
|
|
40
40
|
@keydown.space.prevent="toggle()"
|
|
41
41
|
>
|
|
42
|
-
<div class="
|
|
42
|
+
<div class="text-white w-[16px] h-[16px] relative">
|
|
43
43
|
<div
|
|
44
|
-
class="
|
|
44
|
+
class="border group-active:bg-gray-500/20 rounded-sm box-border absolute inset-0 transition-border duration-150 ease-out"
|
|
45
45
|
:class="[
|
|
46
46
|
modelValue
|
|
47
|
-
? '
|
|
48
|
-
: '
|
|
47
|
+
? 'border-primary-500 border-8'
|
|
48
|
+
: 'border-black/25 dark:border-white/25 delay-150',
|
|
49
49
|
]"
|
|
50
50
|
/>
|
|
51
51
|
<svg
|
|
52
52
|
width="16"
|
|
53
53
|
height="16"
|
|
54
54
|
viewBox="0 0 24 24"
|
|
55
|
-
class="
|
|
55
|
+
class="relative z-10"
|
|
56
56
|
>
|
|
57
57
|
<path
|
|
58
58
|
ref="path"
|
|
59
59
|
d="m 4 12 l 5 5 l 10 -10"
|
|
60
60
|
fill="none"
|
|
61
|
-
class="
|
|
61
|
+
class="stroke-white stroke-2 duration-200 ease-in-out"
|
|
62
62
|
:class="[
|
|
63
|
-
animationEnabled ? '
|
|
63
|
+
animationEnabled ? 'transition-all' : 'transition-none',
|
|
64
64
|
{
|
|
65
|
-
'
|
|
65
|
+
'delay-150': modelValue,
|
|
66
66
|
},
|
|
67
67
|
]"
|
|
68
68
|
:stroke-dasharray="dasharray"
|
|
@@ -28,7 +28,7 @@ const action = () => copy(props.content)
|
|
|
28
28
|
delay: 0,
|
|
29
29
|
}"
|
|
30
30
|
icon="carbon:copy-file"
|
|
31
|
-
class="poveste-base-copy-icon
|
|
31
|
+
class="poveste-base-copy-icon w-4 h-4 opacity-50 hover:opacity-100 hover:text-primary-500 cursor-pointer"
|
|
32
32
|
@click="action()"
|
|
33
33
|
/>
|
|
34
34
|
</template>
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="poveste-base-empty
|
|
2
|
+
<div class="poveste-base-empty base-empty flex flex-col items-center justify-center space-y-4 py-12 h-full text-center text-gray-400 text-lg">
|
|
3
3
|
<slot />
|
|
4
4
|
</div>
|
|
5
5
|
</template>
|
|
6
6
|
|
|
7
7
|
<style scoped>
|
|
8
|
-
.
|
|
9
|
-
animation:
|
|
8
|
+
.base-empty:not(.no-animation) {
|
|
9
|
+
animation: base-empty .15s .2s both;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
@keyframes
|
|
12
|
+
@keyframes base-empty {
|
|
13
13
|
0% {
|
|
14
14
|
opacity: 0;
|
|
15
15
|
}
|
|
@@ -10,7 +10,7 @@ const formatted = computed(() => props.shortcut.split('+').map(k => formatKey(k.
|
|
|
10
10
|
</script>
|
|
11
11
|
|
|
12
12
|
<template>
|
|
13
|
-
<span class="poveste-base-keyboard-shortcut
|
|
13
|
+
<span class="poveste-base-keyboard-shortcut border border-current opacity-50 px-1 rounded-sm">
|
|
14
14
|
{{ formatted }}
|
|
15
15
|
</span>
|
|
16
16
|
</template>
|
|
@@ -14,12 +14,12 @@ function handleNavigate() {
|
|
|
14
14
|
|
|
15
15
|
<template>
|
|
16
16
|
<a
|
|
17
|
-
class="poveste-base-list-item
|
|
17
|
+
class="poveste-base-list-item flex items-center gap-2 text-gray-900 dark:text-gray-100"
|
|
18
18
|
:class="[
|
|
19
19
|
$attrs.class,
|
|
20
20
|
isActive
|
|
21
|
-
? 'active
|
|
22
|
-
: 'hover:
|
|
21
|
+
? 'active bg-primary-500 hover:bg-primary-600 text-white dark:text-black'
|
|
22
|
+
: 'hover:bg-primary-100 dark:hover:bg-primary-900',
|
|
23
23
|
]"
|
|
24
24
|
@click="handleNavigate()"
|
|
25
25
|
@keyup.enter="handleNavigate()"
|
|
@@ -37,12 +37,12 @@ export default defineComponent({
|
|
|
37
37
|
>
|
|
38
38
|
<a
|
|
39
39
|
:href="href"
|
|
40
|
-
class="
|
|
40
|
+
class="flex items-center gap-2 text-gray-900 dark:text-gray-100"
|
|
41
41
|
:class="[
|
|
42
42
|
$attrs.class,
|
|
43
43
|
(isActive != null ? isActive : linkIsActive)
|
|
44
|
-
? 'active
|
|
45
|
-
: 'hover:
|
|
44
|
+
? 'active bg-primary-500 hover:bg-primary-600 text-white dark:text-black'
|
|
45
|
+
: 'hover:bg-primary-100 dark:hover:bg-primary-900',
|
|
46
46
|
]"
|
|
47
47
|
@click="handleNavigate($event, navigate)"
|
|
48
48
|
@keyup.enter="handleNavigate($event, navigate)"
|
|
@@ -86,7 +86,7 @@ function ChildrenSlice(props, { slots }) {
|
|
|
86
86
|
<template>
|
|
87
87
|
<div
|
|
88
88
|
ref="el"
|
|
89
|
-
class="poveste-base-overflow-menu
|
|
89
|
+
class="poveste-base-overflow-menu flex overflow-hidden relative"
|
|
90
90
|
>
|
|
91
91
|
<ChildrenRender>
|
|
92
92
|
<slot />
|
|
@@ -97,16 +97,16 @@ function ChildrenSlice(props, { slots }) {
|
|
|
97
97
|
>
|
|
98
98
|
<div
|
|
99
99
|
role="button"
|
|
100
|
-
class="
|
|
100
|
+
class="cursor-pointer hover:bg-primary-50 dark:hover:bg-primary-900 w-8 h-full flex items-center justify-center absolute top-0 right-0"
|
|
101
101
|
>
|
|
102
102
|
<Icon
|
|
103
103
|
icon="carbon:caret-down"
|
|
104
|
-
class="
|
|
104
|
+
class="w-4 h-4 opacity-50 group-hover:opacity-100"
|
|
105
105
|
/>
|
|
106
106
|
</div>
|
|
107
107
|
|
|
108
108
|
<template #popper>
|
|
109
|
-
<div class="
|
|
109
|
+
<div class="flex flex-col items-stretch">
|
|
110
110
|
<ChildrenSlice
|
|
111
111
|
:start="visibleChildrenCount"
|
|
112
112
|
>
|