@poveste/app 0.1.3 → 0.2.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 +4 -4
- package/dist/app/style/main.pcss +2 -2
- package/dist/app/style/sandbox.css +1 -1
- package/dist/bundle-main.js +2 -0
- package/dist/bundled/App.vue2.js +81 -37
- package/dist/bundled/app.css +51 -46
- package/dist/bundled/components/HomeView.vue2.js +3 -3
- package/dist/bundled/components/app/AppActions.vue.js +5 -0
- package/dist/bundled/components/app/AppActions.vue2.js +76 -0
- package/dist/bundled/components/app/AppHeader.vue2.js +5 -47
- package/dist/bundled/components/app/Breadcrumb.vue.js +1 -1
- package/dist/bundled/components/app/Breadcrumb.vue2.js +9 -9
- package/dist/bundled/components/app/HomeCounter.vue2.js +5 -5
- package/dist/bundled/components/app/InitialLoading.vue2.js +5 -5
- package/dist/bundled/components/app/MobileOverlay.vue2.js +5 -5
- package/dist/bundled/components/app/TopBar.vue.js +5 -0
- package/dist/bundled/components/app/TopBar.vue2.js +73 -0
- package/dist/bundled/components/app/TopBarChip.vue.js +13 -0
- package/dist/bundled/components/app/TopBarChipItem.vue.js +13 -0
- package/dist/bundled/components/base/BaseButton.vue2.js +3 -3
- package/dist/bundled/components/base/BaseCheckbox.vue2.js +8 -8
- package/dist/bundled/components/base/BaseEmpty.vue.js +2 -2
- package/dist/bundled/components/base/BaseKeyboardShortcut.vue2.js +1 -1
- package/dist/bundled/components/base/BaseListItem.vue2.js +2 -2
- package/dist/bundled/components/base/BaseListItemLink.vue.js +2 -2
- package/dist/bundled/components/base/BaseOverflowMenu.vue2.js +4 -4
- package/dist/bundled/components/base/BaseOverflowTab.vue.js +3 -3
- package/dist/bundled/components/base/BaseSelect.vue2.js +6 -6
- package/dist/bundled/components/base/BaseSplitPane.vue.js +1 -1
- package/dist/bundled/components/base/BaseSplitPane.vue2.js +20 -16
- package/dist/bundled/components/base/BaseTab.vue.js +3 -3
- package/dist/bundled/components/base/BaseTag.vue.js +1 -1
- package/dist/bundled/components/command/CommandPrompts.vue2.js +5 -5
- package/dist/bundled/components/command/CommandPromptsModal.vue2.js +3 -3
- package/dist/bundled/components/command/PromptSelect.vue2.js +12 -12
- package/dist/bundled/components/command/PromptText.vue2.js +4 -4
- package/dist/bundled/components/layout/LayoutItem.vue.js +5 -0
- package/dist/bundled/components/layout/LayoutItem.vue2.js +44 -0
- package/dist/bundled/components/layout/LayoutItemGroup.vue.js +5 -0
- package/dist/bundled/components/layout/LayoutItemGroup.vue2.js +25 -0
- package/dist/bundled/components/layout/LayoutModal.vue.js +5 -0
- package/dist/bundled/components/layout/LayoutModal.vue2.js +68 -0
- package/dist/bundled/components/layout/LayoutPane.vue.js +5 -0
- package/dist/bundled/components/layout/LayoutPane.vue2.js +59 -0
- package/dist/bundled/components/panel/ControlsComponentPropItem.vue2.js +2 -2
- package/dist/bundled/components/panel/ControlsComponentProps.vue2.js +4 -4
- package/dist/bundled/components/panel/ControlsComponentState.vue2.js +2 -2
- package/dist/bundled/components/panel/PaneTabs.vue2.js +4 -4
- package/dist/bundled/components/panel/StatePresets.vue2.js +13 -13
- package/dist/bundled/components/panel/StoryControls.vue2.js +6 -6
- package/dist/bundled/components/panel/StoryDocs.vue2.js +4 -4
- package/dist/bundled/components/panel/StoryEvent.vue2.js +7 -7
- package/dist/bundled/components/panel/StoryEvents.vue2.js +1 -1
- package/dist/bundled/components/panel/StorySidePanel.vue2.js +58 -47
- package/dist/bundled/components/panel/StorySourceCode.vue.js +1 -1
- package/dist/bundled/components/panel/StorySourceCode.vue2.js +19 -19
- package/dist/bundled/components/search/SearchItem.vue.js +1 -1
- package/dist/bundled/components/search/SearchItem.vue2.js +3 -3
- package/dist/bundled/components/search/SearchItemContent.vue2.js +9 -9
- package/dist/bundled/components/search/SearchLoading.vue2.js +2 -2
- package/dist/bundled/components/search/SearchModal.vue2.js +3 -3
- package/dist/bundled/components/search/SearchPane.vue2.js +4 -4
- package/dist/bundled/components/story/StoryResponsivePreview.vue.js +1 -1
- package/dist/bundled/components/story/StoryResponsivePreview.vue2.js +21 -21
- package/dist/bundled/components/story/StoryVariantGrid.vue2.js +7 -26
- package/dist/bundled/components/story/StoryVariantGridItem.vue.js +1 -1
- package/dist/bundled/components/story/StoryVariantGridItem.vue2.js +36 -21
- package/dist/bundled/components/story/StoryVariantListItem.vue.js +1 -1
- package/dist/bundled/components/story/StoryVariantListItem.vue2.js +5 -5
- package/dist/bundled/components/story/StoryVariantSingle.vue.js +1 -1
- package/dist/bundled/components/story/StoryVariantSingle.vue2.js +10 -10
- package/dist/bundled/components/story/StoryVariantSinglePreviewNative.vue2.js +6 -5
- package/dist/bundled/components/story/StoryVariantSinglePreviewRemote.vue2.js +33 -8
- package/dist/bundled/components/story/StoryVariantSingleView.vue2.js +8 -39
- package/dist/bundled/components/story/StoryView.vue2.js +21 -11
- package/dist/bundled/components/story/StoryViewer.vue.js +1 -1
- package/dist/bundled/components/story/StoryViewer.vue2.js +2 -2
- package/dist/bundled/components/toolbar/DevOnlyToolbarOpenInEditor.vue2.js +13 -9
- package/dist/bundled/components/toolbar/ToolbarBackground.vue.js +1 -1
- package/dist/bundled/components/toolbar/ToolbarBackground.vue2.js +62 -33
- package/dist/bundled/components/toolbar/ToolbarNewTab.vue2.js +13 -10
- package/dist/bundled/components/toolbar/ToolbarResponsiveSize.vue2.js +14 -14
- package/dist/bundled/components/toolbar/ToolbarTextDirection.vue2.js +13 -9
- package/dist/bundled/components/toolbar/ToolbarTitle.vue.js +4 -1
- package/dist/bundled/components/toolbar/ToolbarTitle.vue2.js +30 -7
- package/dist/bundled/components/tree/StoryGroup.vue2.js +5 -5
- package/dist/bundled/components/tree/StoryList.vue2.js +1 -1
- package/dist/bundled/components/tree/StoryListFolder.vue.js +1 -1
- package/dist/bundled/components/tree/StoryListFolder.vue2.js +7 -7
- package/dist/bundled/components/tree/StoryListItem.vue.js +1 -1
- package/dist/bundled/components/tree/StoryListItem.vue2.js +8 -8
- package/dist/bundled/index.js +3 -0
- package/dist/bundled/sandbox.js +41 -15
- package/dist/bundled/stores/layout.js +16 -0
- package/dist/bundled/stores/preview-settings.js +19 -4
- package/dist/bundled/util/color-scheme.js +27 -0
- package/dist/bundled/util/const.js +2 -0
- package/dist/bundled/util/dark.js +3 -3
- package/dist/bundled/util/keyboard.js +60 -32
- package/dist/bundled/util/preview-settings.js +11 -0
- package/dist/bundled/util/tooltip.js +2 -2
- package/dist/style.css +644 -529
- package/package.json +8 -8
- package/src/app/App.vue +109 -66
- package/src/app/components/HomeView.vue +3 -3
- package/src/app/components/app/AppActions.vue +58 -0
- package/src/app/components/app/AppHeader.vue +4 -47
- 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 +60 -0
- package/src/app/components/app/TopBarChip.vue +5 -0
- package/src/app/components/app/TopBarChipItem.vue +7 -0
- 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 +21 -16
- 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 +3 -3
- 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 +36 -0
- package/src/app/components/layout/LayoutItemGroup.vue +18 -0
- package/src/app/components/layout/LayoutModal.vue +60 -0
- package/src/app/components/layout/LayoutPane.vue +45 -0
- 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 +13 -13
- package/src/app/components/panel/StoryControls.vue +6 -6
- package/src/app/components/panel/StoryDocs.vue +4 -4
- 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 +51 -41
- package/src/app/components/panel/StorySourceCode.vue +19 -19
- package/src/app/components/search/SearchItem.vue +2 -2
- 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 +3 -3
- package/src/app/components/search/SearchPane.vue +4 -4
- package/src/app/components/story/StoryResponsivePreview.vue +27 -27
- package/src/app/components/story/StoryVariantGrid.vue +5 -24
- package/src/app/components/story/StoryVariantGridItem.vue +36 -17
- 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 -5
- package/src/app/components/story/StoryVariantSinglePreviewRemote.vue +37 -7
- package/src/app/components/story/StoryVariantSingleView.vue +1 -34
- package/src/app/components/story/StoryView.vue +23 -8
- package/src/app/components/story/StoryViewer.vue +1 -1
- package/src/app/components/toolbar/DevOnlyToolbarOpenInEditor.vue +5 -4
- package/src/app/components/toolbar/ToolbarBackground.vue +62 -25
- package/src/app/components/toolbar/ToolbarNewTab.vue +5 -4
- package/src/app/components/toolbar/ToolbarResponsiveSize.vue +15 -15
- package/src/app/components/toolbar/ToolbarTextDirection.vue +5 -4
- package/src/app/components/toolbar/ToolbarTitle.vue +32 -8
- 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/index.ts +3 -0
- package/src/app/sandbox.ts +59 -15
- package/src/app/stores/layout.ts +22 -0
- package/src/app/stores/preview-settings.ts +26 -2
- package/src/app/style/floating.pcss +4 -4
- package/src/app/style/main.pcss +2 -2
- package/src/app/style/sandbox.css +1 -1
- package/src/app/types.ts +49 -0
- package/src/app/util/color-scheme.ts +36 -0
- package/src/app/util/const.ts +1 -0
- package/src/app/util/dark.ts +3 -3
- package/src/app/util/keyboard.ts +65 -32
- package/src/app/util/preview-settings.ts +16 -0
- package/src/app/util/tooltip.ts +2 -2
- package/src/bundle-main.js +2 -0
- package/src/shim.d.ts +2 -2
|
@@ -3,9 +3,9 @@ import { useCommandStore } from "../../stores/command.js";
|
|
|
3
3
|
"use strict";
|
|
4
4
|
const _hoisted_1 = {
|
|
5
5
|
key: 0,
|
|
6
|
-
class: "poveste-command-prompts-modal
|
|
6
|
+
class: "poveste-command-prompts-modal ptw-fixed ptw-inset-0 ptw-bg-white/80 dark:ptw-bg-gray-900/80 ptw-z-20"
|
|
7
7
|
};
|
|
8
|
-
const _hoisted_2 = { class: "
|
|
8
|
+
const _hoisted_2 = { class: "ptw-bg-white dark:ptw-bg-gray-900 md:ptw-mt-16 md:ptw-mx-auto ptw-w-screen ptw-max-w-[512px] ptw-max-h-[80vh] ptw-overflow-y-auto ptw-scroll-smooth ptw-shadow-xl ptw-border ptw-border-gray-200 dark:ptw-border-gray-750 ptw-rounded-lg ptw-relative ptw-divide-y ptw-divide-gray-200 dark:ptw-divide-gray-850" };
|
|
9
9
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
10
10
|
__name: "CommandPromptsModal",
|
|
11
11
|
props: {
|
|
@@ -27,7 +27,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
27
27
|
return (_ctx, _cache) => {
|
|
28
28
|
return __props.shown ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
29
29
|
createElementVNode("div", {
|
|
30
|
-
class: "
|
|
30
|
+
class: "ptw-absolute ptw-inset-0",
|
|
31
31
|
onClick: _cache[0] || (_cache[0] = ($event) => close())
|
|
32
32
|
}),
|
|
33
33
|
createElementVNode("div", _hoisted_2, [
|
|
@@ -4,18 +4,18 @@ import { useSelection } from "../../util/select.js";
|
|
|
4
4
|
import "../base/BaseKeyboardShortcut.vue.js";
|
|
5
5
|
import _sfc_main$1 from "../base/BaseKeyboardShortcut.vue2.js";
|
|
6
6
|
"use strict";
|
|
7
|
-
const _hoisted_1 = { class: "poveste-prompt-select
|
|
7
|
+
const _hoisted_1 = { class: "poveste-prompt-select ptw-relative ptw-group" };
|
|
8
8
|
const _hoisted_2 = ["required"];
|
|
9
|
-
const _hoisted_3 = { class: "
|
|
10
|
-
const _hoisted_4 = { class: "
|
|
9
|
+
const _hoisted_3 = { class: "ptw-flex ptw-flex-col ptw-gap-2 ptw-p-2" };
|
|
10
|
+
const _hoisted_4 = { class: "ptw-px-2 ptw-flex" };
|
|
11
11
|
const _hoisted_5 = {
|
|
12
12
|
key: 0,
|
|
13
|
-
class: "
|
|
13
|
+
class: "ptw-opacity-70"
|
|
14
14
|
};
|
|
15
|
-
const _hoisted_6 = { class: "
|
|
16
|
-
const _hoisted_7 = { class: "
|
|
15
|
+
const _hoisted_6 = { class: "ptw-opacity-40 ptw-text-sm ptw-ml-auto ptw-invisible group-focus-within:ptw-visible" };
|
|
16
|
+
const _hoisted_7 = { class: "ptw-overflow-auto max-h-[300px] ptw-mb-2" };
|
|
17
17
|
const _hoisted_8 = ["onClick"];
|
|
18
|
-
const _hoisted_9 = { class: "
|
|
18
|
+
const _hoisted_9 = { class: "ptw-flex-1" };
|
|
19
19
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
20
20
|
__name: "PromptSelect",
|
|
21
21
|
props: {
|
|
@@ -85,7 +85,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
85
85
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => model.value = $event),
|
|
86
86
|
required: __props.prompt.required,
|
|
87
87
|
tabindex: "-1",
|
|
88
|
-
class: "
|
|
88
|
+
class: "ptw-absolute ptw-inset-0 ptw-opacity-0 ptw-pointer-events-none"
|
|
89
89
|
}, null, 8, _hoisted_2), [
|
|
90
90
|
[vModelText, model.value]
|
|
91
91
|
]),
|
|
@@ -103,7 +103,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
103
103
|
ref_key: "input",
|
|
104
104
|
ref: input,
|
|
105
105
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => search.value = $event),
|
|
106
|
-
class: "
|
|
106
|
+
class: "ptw-bg-transparent ptw-w-full ptw-p-2 ptw-border ptw-border-gray-500/50 focus:ptw-border-primary-500/50 ptw-rounded ptw-outline-none",
|
|
107
107
|
onKeydown: [
|
|
108
108
|
_cache[2] || (_cache[2] = withKeys(withModifiers(($event) => unref(selectNext)(), ["prevent"]), ["down"])),
|
|
109
109
|
_cache[3] || (_cache[3] = withKeys(withModifiers(($event) => unref(selectPrevious)(), ["prevent"]), ["up"])),
|
|
@@ -120,15 +120,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
120
120
|
type: "button",
|
|
121
121
|
tabindex: "-1",
|
|
122
122
|
class: normalizeClass([[
|
|
123
|
-
model.value === option.value ? "
|
|
124
|
-
], "
|
|
123
|
+
model.value === option.value ? "ptw-bg-primary-500/20" : index === unref(selectedIndex) ? "ptw-bg-primary-500/10" : "ptw-bg-transparent"
|
|
124
|
+
], "ptw-w-full ptw-text-left ptw-px-4 ptw-py-2 hover:ptw-bg-primary-500/10 ptw-flex ptw-items-center"]),
|
|
125
125
|
onClick: ($event) => model.value = option.value
|
|
126
126
|
}, [
|
|
127
127
|
createElementVNode("span", _hoisted_9, toDisplayString(option.label), 1),
|
|
128
128
|
model.value === option.value ? (openBlock(), createBlock(unref(Icon), {
|
|
129
129
|
key: 0,
|
|
130
130
|
icon: "carbon:checkmark",
|
|
131
|
-
class: "
|
|
131
|
+
class: "ptw-w-4 ptw-h-4 ptw-text-primary-500"
|
|
132
132
|
})) : createCommentVNode("", true)
|
|
133
133
|
], 10, _hoisted_8);
|
|
134
134
|
}), 128))
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent, computed, ref, watch, createElementBlock, openBlock, createElementVNode, withDirectives, createCommentVNode, toDisplayString, vModelText } from "@poveste/vendors/vue";
|
|
2
2
|
"use strict";
|
|
3
3
|
const _hoisted_1 = { class: "poveste-prompt-text" };
|
|
4
|
-
const _hoisted_2 = { class: "
|
|
5
|
-
const _hoisted_3 = { class: "
|
|
4
|
+
const _hoisted_2 = { class: "ptw-flex ptw-flex-col ptw-gap-2 ptw-p-2" };
|
|
5
|
+
const _hoisted_3 = { class: "ptw-px-2" };
|
|
6
6
|
const _hoisted_4 = {
|
|
7
7
|
key: 0,
|
|
8
|
-
class: "
|
|
8
|
+
class: "ptw-opacity-70"
|
|
9
9
|
};
|
|
10
10
|
const _hoisted_5 = ["required"];
|
|
11
11
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -52,7 +52,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
52
52
|
ref_key: "input",
|
|
53
53
|
ref: input,
|
|
54
54
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => model.value = $event),
|
|
55
|
-
class: "
|
|
55
|
+
class: "ptw-bg-transparent ptw-w-full ptw-p-2 ptw-border ptw-border-gray-500/50 focus:ptw-border-primary-500/50 ptw-rounded ptw-outline-none",
|
|
56
56
|
required: __props.prompt.required
|
|
57
57
|
}, null, 8, _hoisted_5), [
|
|
58
58
|
[vModelText, model.value]
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { defineComponent, createBlock, openBlock, withCtx, createVNode, createElementVNode, createCommentVNode, unref, toDisplayString } from "@poveste/vendors/vue";
|
|
2
|
+
import { Icon } from "@poveste/vendors/iconify";
|
|
3
|
+
import "../base/BaseListItem.vue.js";
|
|
4
|
+
import _sfc_main$1 from "../base/BaseListItem.vue2.js";
|
|
5
|
+
"use strict";
|
|
6
|
+
const _hoisted_1 = { class: "ptw-flex-1" };
|
|
7
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
|
+
__name: "LayoutItem",
|
|
9
|
+
props: {
|
|
10
|
+
title: {},
|
|
11
|
+
icon: {},
|
|
12
|
+
stateIcon: {},
|
|
13
|
+
isActive: { type: Boolean }
|
|
14
|
+
},
|
|
15
|
+
emits: ["click"],
|
|
16
|
+
setup(__props) {
|
|
17
|
+
return (_ctx, _cache) => {
|
|
18
|
+
return openBlock(), createBlock(_sfc_main$1, {
|
|
19
|
+
"is-active": __props.isActive,
|
|
20
|
+
class: "ptw-px-6 ptw-py-4 ptw-gap-4",
|
|
21
|
+
onNavigate: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("click"))
|
|
22
|
+
}, {
|
|
23
|
+
default: withCtx(() => [
|
|
24
|
+
createVNode(unref(Icon), {
|
|
25
|
+
class: "ptw-w-4 ptw-h-4 ptw-flex-none",
|
|
26
|
+
icon: __props.icon,
|
|
27
|
+
"aria-hidden": "true"
|
|
28
|
+
}, null, 8, ["icon"]),
|
|
29
|
+
createElementVNode("span", _hoisted_1, toDisplayString(__props.title), 1),
|
|
30
|
+
__props.stateIcon ? (openBlock(), createBlock(unref(Icon), {
|
|
31
|
+
key: 0,
|
|
32
|
+
class: "ptw-w-4 ptw-h-4 ptw-flex-none ptw-opacity-70",
|
|
33
|
+
icon: __props.stateIcon,
|
|
34
|
+
"aria-hidden": "true"
|
|
35
|
+
}, null, 8, ["icon"])) : createCommentVNode("", true)
|
|
36
|
+
]),
|
|
37
|
+
_: 1
|
|
38
|
+
}, 8, ["is-active"]);
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
export {
|
|
43
|
+
_sfc_main as default
|
|
44
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, createElementVNode, renderSlot, toDisplayString } from "@poveste/vendors/vue";
|
|
2
|
+
"use strict";
|
|
3
|
+
const _hoisted_1 = { role: "group" };
|
|
4
|
+
const _hoisted_2 = {
|
|
5
|
+
role: "heading",
|
|
6
|
+
"aria-level": "3",
|
|
7
|
+
class: "ptw-px-6 ptw-pt-3 ptw-pb-1 ptw-text-xs ptw-uppercase ptw-tracking-wide ptw-opacity-50"
|
|
8
|
+
};
|
|
9
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
10
|
+
__name: "LayoutItemGroup",
|
|
11
|
+
props: {
|
|
12
|
+
title: {}
|
|
13
|
+
},
|
|
14
|
+
setup(__props) {
|
|
15
|
+
return (_ctx, _cache) => {
|
|
16
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
17
|
+
createElementVNode("div", _hoisted_2, toDisplayString(__props.title), 1),
|
|
18
|
+
renderSlot(_ctx.$slots, "default")
|
|
19
|
+
]);
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
export {
|
|
24
|
+
_sfc_main as default
|
|
25
|
+
};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { defineComponent, withDirectives, openBlock, createElementBlock, createElementVNode, createVNode, unref, vShow } from "@poveste/vendors/vue";
|
|
2
|
+
import { Icon } from "@poveste/vendors/iconify";
|
|
3
|
+
import { onKeyboardShortcut } from "../../util/keyboard.js";
|
|
4
|
+
import "./LayoutPane.vue.js";
|
|
5
|
+
import _sfc_main$1 from "./LayoutPane.vue2.js";
|
|
6
|
+
"use strict";
|
|
7
|
+
const _hoisted_1 = {
|
|
8
|
+
class: "poveste-layout-modal ptw-fixed ptw-inset-0 ptw-bg-white/80 dark:ptw-bg-gray-900/80 ptw-z-20",
|
|
9
|
+
"data-test-id": "layout-modal"
|
|
10
|
+
};
|
|
11
|
+
const _hoisted_2 = { class: "ptw-bg-white dark:ptw-bg-gray-900 md:ptw-mt-16 md:ptw-mx-auto ptw-w-screen ptw-max-w-[512px] ptw-shadow-xl ptw-border ptw-border-gray-200 dark:ptw-border-gray-750 ptw-rounded-lg ptw-relative ptw-divide-y ptw-divide-gray-200 dark:ptw-divide-gray-850" };
|
|
12
|
+
const _hoisted_3 = { class: "ptw-flex ptw-items-center ptw-px-6 ptw-py-3 ptw-text-gray-900 dark:ptw-text-gray-100" };
|
|
13
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
14
|
+
__name: "LayoutModal",
|
|
15
|
+
props: {
|
|
16
|
+
shown: {
|
|
17
|
+
type: Boolean,
|
|
18
|
+
default: false
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
emits: {
|
|
22
|
+
close: () => true
|
|
23
|
+
},
|
|
24
|
+
setup(__props, { emit: __emit }) {
|
|
25
|
+
const props = __props;
|
|
26
|
+
const emit = __emit;
|
|
27
|
+
function close() {
|
|
28
|
+
emit("close");
|
|
29
|
+
}
|
|
30
|
+
onKeyboardShortcut(["escape"], () => {
|
|
31
|
+
if (props.shown) {
|
|
32
|
+
close();
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
return (_ctx, _cache) => {
|
|
36
|
+
return withDirectives((openBlock(), createElementBlock("div", _hoisted_1, [
|
|
37
|
+
createElementVNode("div", {
|
|
38
|
+
class: "ptw-absolute ptw-inset-0",
|
|
39
|
+
onClick: _cache[0] || (_cache[0] = ($event) => close())
|
|
40
|
+
}),
|
|
41
|
+
createElementVNode("div", _hoisted_2, [
|
|
42
|
+
createElementVNode("div", _hoisted_3, [
|
|
43
|
+
_cache[2] || (_cache[2] = createElementVNode("h2", { class: "ptw-flex-1 ptw-text-sm ptw-font-medium ptw-m-0" }, " Customize Layout ", -1)),
|
|
44
|
+
createElementVNode("button", {
|
|
45
|
+
type: "button",
|
|
46
|
+
class: "ptw-flex ptw-items-center ptw-justify-center ptw-p-1 ptw-bg-transparent ptw-border-0 ptw-text-gray-500 dark:ptw-text-gray-400 hover:ptw-text-primary-500 dark:hover:ptw-text-primary-400 ptw-cursor-pointer",
|
|
47
|
+
"aria-label": "Close layout customization",
|
|
48
|
+
"data-test-id": "layout-modal-close",
|
|
49
|
+
onClick: _cache[1] || (_cache[1] = ($event) => close())
|
|
50
|
+
}, [
|
|
51
|
+
createVNode(unref(Icon), {
|
|
52
|
+
icon: "carbon:close",
|
|
53
|
+
class: "ptw-w-5 ptw-h-5",
|
|
54
|
+
"aria-hidden": "true"
|
|
55
|
+
})
|
|
56
|
+
])
|
|
57
|
+
]),
|
|
58
|
+
createVNode(_sfc_main$1)
|
|
59
|
+
])
|
|
60
|
+
], 512)), [
|
|
61
|
+
[vShow, __props.shown]
|
|
62
|
+
]);
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
export {
|
|
67
|
+
_sfc_main as default
|
|
68
|
+
};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, createVNode, withCtx, unref } from "@poveste/vendors/vue";
|
|
2
|
+
import { useLayoutStore } from "../../stores/layout.js";
|
|
3
|
+
import "./LayoutItem.vue.js";
|
|
4
|
+
import "./LayoutItemGroup.vue.js";
|
|
5
|
+
import _sfc_main$1 from "./LayoutItemGroup.vue2.js";
|
|
6
|
+
import _sfc_main$2 from "./LayoutItem.vue2.js";
|
|
7
|
+
"use strict";
|
|
8
|
+
const _hoisted_1 = { class: "ptw-py-2" };
|
|
9
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
10
|
+
__name: "LayoutPane",
|
|
11
|
+
setup(__props) {
|
|
12
|
+
const settings = useLayoutStore().settings;
|
|
13
|
+
return (_ctx, _cache) => {
|
|
14
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
15
|
+
createVNode(_sfc_main$1, { title: "Visibility" }, {
|
|
16
|
+
default: withCtx(() => [
|
|
17
|
+
createVNode(_sfc_main$2, {
|
|
18
|
+
title: "Story List",
|
|
19
|
+
icon: "carbon:open-panel-filled-left",
|
|
20
|
+
"state-icon": unref(settings).storyListVisible ? "carbon:view" : "carbon:view-off",
|
|
21
|
+
"data-test-id": "layout-toggle-story-list",
|
|
22
|
+
onClick: _cache[0] || (_cache[0] = ($event) => unref(settings).storyListVisible = !unref(settings).storyListVisible)
|
|
23
|
+
}, null, 8, ["state-icon"]),
|
|
24
|
+
createVNode(_sfc_main$2, {
|
|
25
|
+
title: "Story Options",
|
|
26
|
+
icon: "carbon:open-panel-filled-right",
|
|
27
|
+
"state-icon": unref(settings).storyOptionsVisible ? "carbon:view" : "carbon:view-off",
|
|
28
|
+
"data-test-id": "layout-toggle-story-options",
|
|
29
|
+
onClick: _cache[1] || (_cache[1] = ($event) => unref(settings).storyOptionsVisible = !unref(settings).storyOptionsVisible)
|
|
30
|
+
}, null, 8, ["state-icon"])
|
|
31
|
+
]),
|
|
32
|
+
_: 1
|
|
33
|
+
}),
|
|
34
|
+
createVNode(_sfc_main$1, { title: "Story Options Placement" }, {
|
|
35
|
+
default: withCtx(() => [
|
|
36
|
+
createVNode(_sfc_main$2, {
|
|
37
|
+
title: "Right",
|
|
38
|
+
icon: "carbon:open-panel-filled-right",
|
|
39
|
+
"is-active": unref(settings).storyOptionsPlacement === "right",
|
|
40
|
+
"data-test-id": "layout-placement-right",
|
|
41
|
+
onClick: _cache[2] || (_cache[2] = ($event) => unref(settings).storyOptionsPlacement = "right")
|
|
42
|
+
}, null, 8, ["is-active"]),
|
|
43
|
+
createVNode(_sfc_main$2, {
|
|
44
|
+
title: "Bottom",
|
|
45
|
+
icon: "carbon:open-panel-filled-bottom",
|
|
46
|
+
"is-active": unref(settings).storyOptionsPlacement === "bottom",
|
|
47
|
+
"data-test-id": "layout-placement-bottom",
|
|
48
|
+
onClick: _cache[3] || (_cache[3] = ($event) => unref(settings).storyOptionsPlacement = "bottom")
|
|
49
|
+
}, null, 8, ["is-active"])
|
|
50
|
+
]),
|
|
51
|
+
_: 1
|
|
52
|
+
})
|
|
53
|
+
]);
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
export {
|
|
58
|
+
_sfc_main as default
|
|
59
|
+
};
|
|
@@ -54,8 +54,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
54
54
|
actions: withCtx(() => [
|
|
55
55
|
withDirectives(createVNode(unref(Icon), {
|
|
56
56
|
icon: "carbon:erase",
|
|
57
|
-
class: normalizeClass(["
|
|
58
|
-
canReset.value ? "
|
|
57
|
+
class: normalizeClass(["ptw-cursor-pointer ptw-w-4 ptw-h-4 hover:ptw-text-primary-500 dark:hover:ptw-text-primary-400 ptw-text-gray-900 dark:ptw-text-gray-100", [
|
|
58
|
+
canReset.value ? "ptw-opacity-50 hover:ptw-opacity-100" : "ptw-opacity-25 ptw-pointer-events-none"
|
|
59
59
|
]]),
|
|
60
60
|
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => reset(), ["stop"]))
|
|
61
61
|
}, null, 8, ["class"]), [
|
|
@@ -4,7 +4,7 @@ import "./ControlsComponentPropItem.vue.js";
|
|
|
4
4
|
import _sfc_main$1 from "./ControlsComponentPropItem.vue2.js";
|
|
5
5
|
"use strict";
|
|
6
6
|
const _hoisted_1 = { class: "poveste-controls-component-props" };
|
|
7
|
-
const _hoisted_2 = { class: "
|
|
7
|
+
const _hoisted_2 = { class: "ptw-font-mono ptw-p-2 ptw-flex ptw-items-center ptw-gap-1" };
|
|
8
8
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
9
|
__name: "ControlsComponentProps",
|
|
10
10
|
props: {
|
|
@@ -18,14 +18,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
18
18
|
createElementVNode("div", _hoisted_2, [
|
|
19
19
|
withDirectives(createVNode(unref(Icon), {
|
|
20
20
|
icon: "carbon:flash",
|
|
21
|
-
class: "
|
|
21
|
+
class: "ptw-w-4 ptw-h-4 ptw-text-primary-500 ptw-flex-none"
|
|
22
22
|
}, null, 512), [
|
|
23
23
|
[_directive_tooltip, "Auto-detected props"]
|
|
24
24
|
]),
|
|
25
25
|
createElementVNode("div", null, [
|
|
26
|
-
_cache[0] || (_cache[0] = createElementVNode("span", { class: "
|
|
26
|
+
_cache[0] || (_cache[0] = createElementVNode("span", { class: "ptw-opacity-30" }, "<", -1)),
|
|
27
27
|
createTextVNode(toDisplayString(__props.definition.name), 1),
|
|
28
|
-
_cache[1] || (_cache[1] = createElementVNode("span", { class: "
|
|
28
|
+
_cache[1] || (_cache[1] = createElementVNode("span", { class: "ptw-opacity-30" }, ">", -1))
|
|
29
29
|
])
|
|
30
30
|
]),
|
|
31
31
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.definition.props, (prop) => {
|
|
@@ -4,7 +4,7 @@ import "./ControlsComponentStateItem.vue.js";
|
|
|
4
4
|
import _sfc_main$1 from "./ControlsComponentStateItem.vue2.js";
|
|
5
5
|
"use strict";
|
|
6
6
|
const _hoisted_1 = { class: "poveste-controls-component-init-state" };
|
|
7
|
-
const _hoisted_2 = { class: "
|
|
7
|
+
const _hoisted_2 = { class: "ptw-p-2 ptw-flex ptw-items-center ptw-gap-1" };
|
|
8
8
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
9
|
__name: "ControlsComponentState",
|
|
10
10
|
props: {
|
|
@@ -19,7 +19,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
19
19
|
createElementVNode("div", _hoisted_2, [
|
|
20
20
|
withDirectives(createVNode(unref(Icon), {
|
|
21
21
|
icon: "carbon:data-vis-1",
|
|
22
|
-
class: "
|
|
22
|
+
class: "ptw-w-4 ptw-h-4 ptw-text-primary-500 ptw-flex-none"
|
|
23
23
|
}, null, 512), [
|
|
24
24
|
[_directive_tooltip, "Auto-detected state"]
|
|
25
25
|
]),
|
|
@@ -21,7 +21,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
21
21
|
const eventsStore = useEventsStore();
|
|
22
22
|
const hasEvents = computed(() => eventsStore.events.length);
|
|
23
23
|
return (_ctx, _cache) => {
|
|
24
|
-
return openBlock(), createBlock(_sfc_main$1, { class: "poveste-pane-tabs
|
|
24
|
+
return openBlock(), createBlock(_sfc_main$1, { class: "poveste-pane-tabs ptw-h-10 ptw-flex-none ptw-border-b ptw-border-gray-100 dark:ptw-border-gray-750" }, {
|
|
25
25
|
overflow: withCtx(() => [
|
|
26
26
|
createVNode(BaseOverflowTab, {
|
|
27
27
|
to: { ..._ctx.$route, query: { ..._ctx.$route.query, tab: "" } },
|
|
@@ -48,7 +48,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
48
48
|
to: { ..._ctx.$route, query: { ..._ctx.$route.query, tab: "events" } },
|
|
49
49
|
matched: _ctx.$route.query.tab === "events",
|
|
50
50
|
class: normalizeClass({
|
|
51
|
-
"
|
|
51
|
+
"ptw-opacity-50": !hasEvents.value
|
|
52
52
|
})
|
|
53
53
|
}, {
|
|
54
54
|
default: withCtx(() => [
|
|
@@ -77,7 +77,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
77
77
|
to: { ..._ctx.$route, query: { ..._ctx.$route.query, tab: "docs" } },
|
|
78
78
|
matched: _ctx.$route.query.tab === "docs",
|
|
79
79
|
class: normalizeClass({
|
|
80
|
-
"
|
|
80
|
+
"ptw-opacity-50": !unref(renderedDoc)
|
|
81
81
|
})
|
|
82
82
|
}, {
|
|
83
83
|
default: withCtx(() => [..._cache[1] || (_cache[1] = [
|
|
@@ -89,7 +89,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
89
89
|
to: { ..._ctx.$route, query: { ..._ctx.$route.query, tab: "events" } },
|
|
90
90
|
matched: _ctx.$route.query.tab === "events",
|
|
91
91
|
class: normalizeClass({
|
|
92
|
-
"
|
|
92
|
+
"ptw-opacity-50": !hasEvents.value
|
|
93
93
|
})
|
|
94
94
|
}, {
|
|
95
95
|
default: withCtx(() => [
|
|
@@ -6,15 +6,15 @@ import { toRawDeep } from "../../util/state.js";
|
|
|
6
6
|
import "../base/BaseSelect.vue.js";
|
|
7
7
|
import _sfc_main$1 from "../base/BaseSelect.vue2.js";
|
|
8
8
|
"use strict";
|
|
9
|
-
const _hoisted_1 = { class: "poveste-state-presets
|
|
9
|
+
const _hoisted_1 = { class: "poveste-state-presets ptw-flex ptw-gap-2 ptw-w-full ptw-items-center" };
|
|
10
10
|
const _hoisted_2 = ["onUpdate:modelValue"];
|
|
11
11
|
const _hoisted_3 = {
|
|
12
12
|
key: 1,
|
|
13
|
-
class: "
|
|
13
|
+
class: "ptw-flex ptw-items-center ptw-gap-2"
|
|
14
14
|
};
|
|
15
|
-
const _hoisted_4 = { class: "
|
|
16
|
-
const _hoisted_5 = { class: "
|
|
17
|
-
const _hoisted_6 = { class: "
|
|
15
|
+
const _hoisted_4 = { class: "ptw-flex-1 ptw-truncate" };
|
|
16
|
+
const _hoisted_5 = { class: "ptw-flex ptw-gap-2 ptw-items-center" };
|
|
17
|
+
const _hoisted_6 = { class: "ptw-flex-1 ptw-truncate" };
|
|
18
18
|
const DEFAULT_ID = "default";
|
|
19
19
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
20
20
|
__name: "StatePresets",
|
|
@@ -108,7 +108,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
108
108
|
createElementVNode("div", {
|
|
109
109
|
ref_key: "select",
|
|
110
110
|
ref: select,
|
|
111
|
-
class: "
|
|
111
|
+
class: "ptw-flex-1 ptw-min-w-0"
|
|
112
112
|
}, [
|
|
113
113
|
createVNode(_sfc_main$1, {
|
|
114
114
|
modelValue: unref(selectedOption),
|
|
@@ -128,7 +128,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
128
128
|
ref: input,
|
|
129
129
|
"onUpdate:modelValue": ($event) => unref(presetStates).get(unref(selectedOption)).label = $event,
|
|
130
130
|
type: "text",
|
|
131
|
-
class: "
|
|
131
|
+
class: "ptw-text-inherit ptw-bg-transparent ptw-w-full ptw-h-full ptw-outline-none",
|
|
132
132
|
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
133
133
|
}, ["stop", "prevent"]))
|
|
134
134
|
}, null, 8, _hoisted_2)), [
|
|
@@ -138,7 +138,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
138
138
|
canEdit.value ? withDirectives((openBlock(), createBlock(unref(Icon), {
|
|
139
139
|
key: 0,
|
|
140
140
|
icon: "carbon:edit",
|
|
141
|
-
class: "
|
|
141
|
+
class: "ptw-flex-none ptw-cursor-pointer ptw-w-4 ptw-h-4 hover:ptw-text-primary-500 ptw-opacity-50 hover:ptw-opacity-100 dark:hover:ptw-text-primary-400 ptw-text-gray-900 dark:ptw-text-gray-100",
|
|
142
142
|
onClick: _cache[1] || (_cache[1] = withModifiers(($event) => startEditing(), ["stop"]))
|
|
143
143
|
}, null, 512)), [
|
|
144
144
|
[_directive_tooltip, "Rename this preset"]
|
|
@@ -151,7 +151,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
151
151
|
value !== DEFAULT_ID ? withDirectives((openBlock(), createBlock(unref(Icon), {
|
|
152
152
|
key: 0,
|
|
153
153
|
icon: "carbon:trash-can",
|
|
154
|
-
class: "
|
|
154
|
+
class: "ptw-flex-none ptw-cursor-pointer ptw-w-4 ptw-h-4 hover:ptw-text-primary-500 ptw-opacity-50 hover:ptw-opacity-100 dark:hover:ptw-text-primary-400 ptw-text-gray-900 dark:ptw-text-gray-100",
|
|
155
155
|
onClick: withModifiers(($event) => deletePreset(value), ["stop"])
|
|
156
156
|
}, null, 8, ["onClick"])), [
|
|
157
157
|
[_directive_tooltip, "Delete this preset"]
|
|
@@ -163,8 +163,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
163
163
|
], 512),
|
|
164
164
|
withDirectives(createVNode(unref(Icon), {
|
|
165
165
|
icon: savedNotif.value ? "carbon:checkmark" : "carbon:save",
|
|
166
|
-
class: normalizeClass(["
|
|
167
|
-
canEdit.value ? "
|
|
166
|
+
class: normalizeClass(["ptw-cursor-pointer ptw-w-4 ptw-h-4 hover:ptw-text-primary-500 dark:hover:ptw-text-primary-400 ptw-text-gray-900 dark:ptw-text-gray-100", [
|
|
167
|
+
canEdit.value ? "ptw-opacity-50 hover:ptw-opacity-100" : "ptw-opacity-25 ptw-pointer-events-none"
|
|
168
168
|
]]),
|
|
169
169
|
onClick: _cache[7] || (_cache[7] = ($event) => savePreset())
|
|
170
170
|
}, null, 8, ["icon", "class"]), [
|
|
@@ -172,14 +172,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
172
172
|
]),
|
|
173
173
|
withDirectives(createVNode(unref(Icon), {
|
|
174
174
|
icon: "carbon:add-alt",
|
|
175
|
-
class: "
|
|
175
|
+
class: "ptw-cursor-pointer ptw-w-4 ptw-h-4 hover:ptw-text-primary-500 ptw-opacity-50 hover:ptw-opacity-100 dark:hover:ptw-text-primary-400 ptw-text-gray-900 dark:ptw-text-gray-100",
|
|
176
176
|
onClick: _cache[8] || (_cache[8] = ($event) => createPreset())
|
|
177
177
|
}, null, 512), [
|
|
178
178
|
[_directive_tooltip, "Create new preset"]
|
|
179
179
|
]),
|
|
180
180
|
withDirectives(createVNode(unref(Icon), {
|
|
181
181
|
icon: "carbon:reset",
|
|
182
|
-
class: "
|
|
182
|
+
class: "ptw-cursor-pointer ptw-w-4 ptw-h-4 hover:ptw-text-primary-500 ptw-opacity-50 hover:ptw-opacity-100 dark:hover:ptw-text-primary-400 ptw-text-gray-900 dark:ptw-text-gray-100",
|
|
183
183
|
onClick: _cache[9] || (_cache[9] = ($event) => resetState())
|
|
184
184
|
}, null, 512), [
|
|
185
185
|
[_directive_tooltip, "Reset to initial state"]
|
|
@@ -12,9 +12,9 @@ import _sfc_main$4 from "./ControlsComponentProps.vue2.js";
|
|
|
12
12
|
"use strict";
|
|
13
13
|
const _hoisted_1 = {
|
|
14
14
|
"data-test-id": "story-controls",
|
|
15
|
-
class: "poveste-story-controls
|
|
15
|
+
class: "poveste-story-controls ptw-flex ptw-flex-col ptw-divide-y ptw-divide-gray-100 dark:ptw-divide-gray-750"
|
|
16
16
|
};
|
|
17
|
-
const _hoisted_2 = { class: "
|
|
17
|
+
const _hoisted_2 = { class: "ptw-h-9 ptw-flex-none ptw-px-2 ptw-flex ptw-items-center" };
|
|
18
18
|
const _hoisted_3 = { key: 1 };
|
|
19
19
|
const _hoisted_4 = { key: 3 };
|
|
20
20
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -51,18 +51,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
51
51
|
"slot-name": "controls",
|
|
52
52
|
variant: __props.variant,
|
|
53
53
|
story: __props.story,
|
|
54
|
-
class: "__poveste-render-custom-controls __histoire-render-custom-controls
|
|
54
|
+
class: "__poveste-render-custom-controls __histoire-render-custom-controls ptw-flex-none",
|
|
55
55
|
onReady: _cache[0] || (_cache[0] = ($event) => ready.value = true)
|
|
56
56
|
}, null, 8, ["variant", "story"])) : hasInitState.value ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
57
57
|
createVNode(_sfc_main$3, {
|
|
58
|
-
class: "
|
|
58
|
+
class: "ptw-flex-none ptw-my-2",
|
|
59
59
|
variant: __props.variant
|
|
60
60
|
}, null, 8, ["variant"])
|
|
61
61
|
])) : !__props.variant.state?._hPropDefs?.length ? (openBlock(), createBlock(BaseEmpty, { key: 2 }, {
|
|
62
62
|
default: withCtx(() => [
|
|
63
63
|
createVNode(unref(Icon), {
|
|
64
64
|
icon: "carbon:audio-console",
|
|
65
|
-
class: "
|
|
65
|
+
class: "ptw-w-8 ptw-h-8 ptw-opacity-50 ptw-mb-6"
|
|
66
66
|
}),
|
|
67
67
|
_cache[1] || (_cache[1] = createElementVNode("span", null, "No controls available for this story", -1))
|
|
68
68
|
]),
|
|
@@ -74,7 +74,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
74
74
|
key: index,
|
|
75
75
|
variant: __props.variant,
|
|
76
76
|
definition: def,
|
|
77
|
-
class: "
|
|
77
|
+
class: "ptw-flex-none ptw-my-2"
|
|
78
78
|
}, null, 8, ["variant", "definition"]);
|
|
79
79
|
}), 128))
|
|
80
80
|
])) : createCommentVNode("", true)
|
|
@@ -124,8 +124,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
124
124
|
}, [
|
|
125
125
|
_ctx.__POVESTE_DEV__ && unref(renderedDoc) && filePath.value ? (openBlock(), createElementBlock("div", {
|
|
126
126
|
key: 0,
|
|
127
|
-
class: normalizeClass(["
|
|
128
|
-
"
|
|
127
|
+
class: normalizeClass(["ptw-flex ptw-items-center ptw-gap-2 ptw-p-2", {
|
|
128
|
+
"ptw-pt-4": !__props.standalone
|
|
129
129
|
}])
|
|
130
130
|
}, [
|
|
131
131
|
filePath.value ? (openBlock(), createBlock(_sfc_main$1, {
|
|
@@ -138,7 +138,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
138
138
|
default: withCtx(() => [
|
|
139
139
|
createVNode(unref(Icon), {
|
|
140
140
|
icon: "carbon:document-unknown",
|
|
141
|
-
class: "
|
|
141
|
+
class: "ptw-w-8 ptw-h-8 ptw-opacity-50 ptw-mb-6"
|
|
142
142
|
}),
|
|
143
143
|
_cache[0] || (_cache[0] = createTextVNode(" No documentation available ", -1))
|
|
144
144
|
]),
|
|
@@ -147,7 +147,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
147
147
|
key: 2,
|
|
148
148
|
ref_key: "renderedEl",
|
|
149
149
|
ref: renderedEl,
|
|
150
|
-
class: "
|
|
150
|
+
class: "ptw-prose dark:ptw-prose-invert ptw-p-4 ptw-max-w-none",
|
|
151
151
|
"data-test-id": "story-docs",
|
|
152
152
|
innerHTML: unref(renderedDoc)
|
|
153
153
|
}, null, 8, _hoisted_1))
|
|
@@ -2,10 +2,10 @@ import { defineComponent, computed, resolveComponent, createBlock, openBlock, wi
|
|
|
2
2
|
"use strict";
|
|
3
3
|
const _hoisted_1 = {
|
|
4
4
|
key: 0,
|
|
5
|
-
class: "
|
|
5
|
+
class: "ptw-text-xs ptw-opacity-50 ptw-truncate"
|
|
6
6
|
};
|
|
7
|
-
const _hoisted_2 = { class: "
|
|
8
|
-
const _hoisted_3 = { class: "
|
|
7
|
+
const _hoisted_2 = { class: "ptw-overflow-auto ptw-max-w-[400px] ptw-max-h-[400px]" };
|
|
8
|
+
const _hoisted_3 = { class: "ptw-p-4" };
|
|
9
9
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
10
10
|
__name: "StoryEvent",
|
|
11
11
|
props: {
|
|
@@ -26,19 +26,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
26
26
|
return (_ctx, _cache) => {
|
|
27
27
|
const _component_VDropdown = resolveComponent("VDropdown");
|
|
28
28
|
return openBlock(), createBlock(_component_VDropdown, {
|
|
29
|
-
class: "poveste-story-event
|
|
29
|
+
class: "poveste-story-event ptw-group",
|
|
30
30
|
placement: "right",
|
|
31
31
|
"data-test-id": "event-item"
|
|
32
32
|
}, {
|
|
33
33
|
default: withCtx(({ shown }) => [
|
|
34
34
|
createElementVNode("div", {
|
|
35
|
-
class: normalizeClass(["group-hover:
|
|
36
|
-
shown ? "
|
|
35
|
+
class: normalizeClass(["group-hover:ptw-bg-primary-100 dark:group-hover:ptw-bg-primary-700 ptw-cursor-pointer ptw-py-2 ptw-px-4 ptw-flex ptw-items-baseline ptw-gap-1 ptw-leading-normal", [
|
|
36
|
+
shown ? "ptw-bg-primary-50 dark:ptw-bg-primary-600" : "group-odd:ptw-bg-gray-100/50 dark:group-odd:ptw-bg-gray-750/40"
|
|
37
37
|
]])
|
|
38
38
|
}, [
|
|
39
39
|
createElementVNode("span", {
|
|
40
40
|
class: normalizeClass({
|
|
41
|
-
"
|
|
41
|
+
"ptw-text-primary-500": shown
|
|
42
42
|
})
|
|
43
43
|
}, toDisplayString(__props.event.name), 3),
|
|
44
44
|
__props.event.argument ? (openBlock(), createElementBlock("span", _hoisted_1, toDisplayString(formattedArgument.value), 1)) : createCommentVNode("", true)
|