@poveste/app 0.1.2 → 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
|
@@ -7,8 +7,8 @@ import _sfc_main$1 from "./MobileOverlay.vue2.js";
|
|
|
7
7
|
import _sfc_main$2 from "../tree/StoryList.vue2.js";
|
|
8
8
|
"use strict";
|
|
9
9
|
const _hoisted_1 = { class: "poveste-breadcrumb" };
|
|
10
|
-
const _hoisted_2 = { class: "
|
|
11
|
-
const _hoisted_3 = { class: "
|
|
10
|
+
const _hoisted_2 = { class: "ptw-flex ptw-items-center ptw-gap-2" };
|
|
11
|
+
const _hoisted_3 = { class: "ptw-opacity-40 ptw-text-sm" };
|
|
12
12
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
13
13
|
__name: "Breadcrumb",
|
|
14
14
|
props: {
|
|
@@ -17,7 +17,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
17
17
|
},
|
|
18
18
|
setup(__props) {
|
|
19
19
|
useCssVars((_ctx) => ({
|
|
20
|
-
"
|
|
20
|
+
"v3db71ace": story.value?.iconColor
|
|
21
21
|
}));
|
|
22
22
|
const storyStore = useStoryStore();
|
|
23
23
|
const story = computed(() => storyStore.currentStory);
|
|
@@ -38,21 +38,21 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
38
38
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
39
39
|
createElementVNode("div", _hoisted_1, [
|
|
40
40
|
createElementVNode("a", {
|
|
41
|
-
class: "
|
|
41
|
+
class: "ptw-px-6 ptw-h-12 hover:ptw-text-primary-500 dark:hover:ptw-text-primary-400 ptw-cursor-pointer ptw-flex ptw-gap-2 ptw-flex-wrap ptw-w-full ptw-items-center",
|
|
42
42
|
onClick: openMenu
|
|
43
43
|
}, [
|
|
44
44
|
story.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
45
45
|
(openBlock(true), createElementBlock(Fragment, null, renderList(folders.value, (file, key) => {
|
|
46
46
|
return openBlock(), createElementBlock(Fragment, { key }, [
|
|
47
47
|
createElementVNode("span", null, toDisplayString(file), 1),
|
|
48
|
-
_cache[0] || (_cache[0] = createElementVNode("span", { class: "
|
|
48
|
+
_cache[0] || (_cache[0] = createElementVNode("span", { class: "ptw-opacity-40" }, " / ", -1))
|
|
49
49
|
], 64);
|
|
50
50
|
}), 128)),
|
|
51
51
|
createElementVNode("span", _hoisted_2, [
|
|
52
52
|
createVNode(unref(Icon), {
|
|
53
53
|
icon: story.value.icon ?? "carbon:cube",
|
|
54
|
-
class: normalizeClass(["
|
|
55
|
-
"
|
|
54
|
+
class: normalizeClass(["ptw-w-5 ptw-h-5 ptw-flex-none", {
|
|
55
|
+
"ptw-text-primary-500": !story.value.iconColor,
|
|
56
56
|
"bind-icon-color": story.value.iconColor
|
|
57
57
|
}])
|
|
58
58
|
}, null, 8, ["icon", "class"]),
|
|
@@ -64,7 +64,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
64
64
|
], 64)),
|
|
65
65
|
createVNode(unref(Icon), {
|
|
66
66
|
icon: "carbon:chevron-sort",
|
|
67
|
-
class: "
|
|
67
|
+
class: "ptw-w-5 ptw-h-5 ptw-shrink-0 ptw-ml-auto"
|
|
68
68
|
})
|
|
69
69
|
])
|
|
70
70
|
]),
|
|
@@ -77,7 +77,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
77
77
|
createVNode(_sfc_main$2, {
|
|
78
78
|
tree: __props.tree,
|
|
79
79
|
stories: __props.stories,
|
|
80
|
-
class: "
|
|
80
|
+
class: "ptw-flex-1 ptw-overflow-y-scroll"
|
|
81
81
|
}, null, 8, ["tree", "stories"])
|
|
82
82
|
]),
|
|
83
83
|
_: 1
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent, createElementBlock, openBlock, createVNode, createElementVNode, unref, toDisplayString } from "@poveste/vendors/vue";
|
|
2
2
|
import { Icon } from "@poveste/vendors/iconify";
|
|
3
3
|
"use strict";
|
|
4
|
-
const _hoisted_1 = { class: "
|
|
5
|
-
const _hoisted_2 = { class: "
|
|
6
|
-
const _hoisted_3 = { class: "
|
|
7
|
-
const _hoisted_4 = { class: "
|
|
4
|
+
const _hoisted_1 = { class: "ptw-p-2 ptw-flex ptw-items-center ptw-gap-x-2" };
|
|
5
|
+
const _hoisted_2 = { class: "ptw-flex ptw-flex-col ptw-leading-none" };
|
|
6
|
+
const _hoisted_3 = { class: "ptw-text-primary-500 ptw-min-w-[80px] ptw-font-bold" };
|
|
7
|
+
const _hoisted_4 = { class: "ptw-text-sm ptw-text-gray-900 dark:ptw-text-gray-100" };
|
|
8
8
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
9
|
__name: "HomeCounter",
|
|
10
10
|
props: {
|
|
@@ -27,7 +27,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
27
27
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
28
28
|
createVNode(unref(Icon), {
|
|
29
29
|
icon: props.icon,
|
|
30
|
-
class: "
|
|
30
|
+
class: "ptw-text-2xl ptw-text-gray-700 dark:ptw-text-gray-300 ptw-flex-none"
|
|
31
31
|
}, null, 8, ["icon"]),
|
|
32
32
|
createElementVNode("div", _hoisted_2, [
|
|
33
33
|
createElementVNode("span", _hoisted_3, toDisplayString(__props.count), 1),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, reactive, createElementBlock, openBlock, createVNode, Transition, withCtx, createCommentVNode, normalizeStyle, Fragment, renderList, createElementVNode, normalizeClass } from "@poveste/vendors/vue";
|
|
2
2
|
"use strict";
|
|
3
|
-
const _hoisted_1 = { class: "poveste-initial-loading
|
|
3
|
+
const _hoisted_1 = { class: "poveste-initial-loading ptw-fixed ptw-inset-0 ptw-bg-white dark:ptw-bg-gray-700 ptw-flex ptw-flex-col ptw-gap-6 ptw-items-center ptw-justify-center" };
|
|
4
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
5
|
__name: "InitialLoading",
|
|
6
6
|
setup(__props) {
|
|
@@ -21,7 +21,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
21
21
|
default: withCtx(() => [
|
|
22
22
|
progress.total > 0 ? (openBlock(), createElementBlock("div", {
|
|
23
23
|
key: 0,
|
|
24
|
-
class: "
|
|
24
|
+
class: "ptw-grid ptw-gap-2",
|
|
25
25
|
style: normalizeStyle({
|
|
26
26
|
gridTemplateColumns: `repeat(${Math.min(Math.ceil(Math.sqrt(progress.total)), maxCols)}, minmax(0, 1fr))`
|
|
27
27
|
})
|
|
@@ -29,11 +29,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
29
29
|
(openBlock(true), createElementBlock(Fragment, null, renderList(progress.total, (n) => {
|
|
30
30
|
return openBlock(), createElementBlock("div", {
|
|
31
31
|
key: n,
|
|
32
|
-
class: "
|
|
32
|
+
class: "ptw-bg-primary-500/10 ptw-rounded-full"
|
|
33
33
|
}, [
|
|
34
34
|
createElementVNode("div", {
|
|
35
|
-
class: normalizeClass(["
|
|
36
|
-
"
|
|
35
|
+
class: normalizeClass(["ptw-w-3 ptw-h-3 ptw-bg-primary-500 ptw-rounded-full ptw-duration-150 ptw-ease-out", {
|
|
36
|
+
"ptw-transition-transform ptw-scale-0": n >= progress.loaded
|
|
37
37
|
}])
|
|
38
38
|
}, null, 2)
|
|
39
39
|
]);
|
|
@@ -3,10 +3,10 @@ import { Icon } from "@poveste/vendors/iconify";
|
|
|
3
3
|
"use strict";
|
|
4
4
|
const _hoisted_1 = {
|
|
5
5
|
key: 0,
|
|
6
|
-
class: "poveste-mobile-overlay
|
|
6
|
+
class: "poveste-mobile-overlay ptw-absolute ptw-z-10 ptw-bg-white dark:ptw-bg-gray-700 ptw-w-screen ptw-h-screen ptw-inset-0 ptw-overflow-hidden ptw-flex ptw-flex-col"
|
|
7
7
|
};
|
|
8
|
-
const _hoisted_2 = { class: "
|
|
9
|
-
const _hoisted_3 = { class: "
|
|
8
|
+
const _hoisted_2 = { class: "ptw-p-4 ptw-h-16 ptw-flex ptw-border-b ptw-border-gray-100 dark:ptw-border-gray-800 ptw-items-center ptw-place-content-between" };
|
|
9
|
+
const _hoisted_3 = { class: "ptw-text-gray-500" };
|
|
10
10
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
11
11
|
__name: "MobileOverlay",
|
|
12
12
|
props: {
|
|
@@ -23,12 +23,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
23
23
|
createElementVNode("div", _hoisted_2, [
|
|
24
24
|
createElementVNode("span", _hoisted_3, toDisplayString(__props.title), 1),
|
|
25
25
|
createElementVNode("a", {
|
|
26
|
-
class: "
|
|
26
|
+
class: "ptw-p-1 hover:ptw-text-primary-500 dark:hover:ptw-text-primary-400 ptw-cursor-pointer",
|
|
27
27
|
onClick: _cache[0] || (_cache[0] = ($event) => emit("close"))
|
|
28
28
|
}, [
|
|
29
29
|
createVNode(unref(Icon), {
|
|
30
30
|
icon: "carbon:close",
|
|
31
|
-
class: "
|
|
31
|
+
class: "ptw-w-8 ptw-h-8 ptw-shrink-0"
|
|
32
32
|
})
|
|
33
33
|
])
|
|
34
34
|
]),
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, createVNode, createBlock, createCommentVNode, unref, withCtx } from "@poveste/vendors/vue";
|
|
2
|
+
import { useStoryStore } from "../../stores/story.js";
|
|
3
|
+
import "../toolbar/DevOnlyToolbarOpenInEditor.vue.js";
|
|
4
|
+
import ToolbarBackground from "../toolbar/ToolbarBackground.vue.js";
|
|
5
|
+
import "../toolbar/ToolbarNewTab.vue.js";
|
|
6
|
+
import "../toolbar/ToolbarResponsiveSize.vue.js";
|
|
7
|
+
import "../toolbar/ToolbarTextDirection.vue.js";
|
|
8
|
+
import ToolbarTitle from "../toolbar/ToolbarTitle.vue.js";
|
|
9
|
+
import "./AppActions.vue.js";
|
|
10
|
+
import TopBarChip from "./TopBarChip.vue.js";
|
|
11
|
+
import _sfc_main$1 from "./AppActions.vue2.js";
|
|
12
|
+
import _sfc_main$2 from "../toolbar/ToolbarResponsiveSize.vue2.js";
|
|
13
|
+
import _sfc_main$3 from "../toolbar/ToolbarTextDirection.vue2.js";
|
|
14
|
+
import _sfc_main$4 from "../toolbar/ToolbarNewTab.vue2.js";
|
|
15
|
+
import _sfc_main$5 from "../toolbar/DevOnlyToolbarOpenInEditor.vue2.js";
|
|
16
|
+
"use strict";
|
|
17
|
+
const _hoisted_1 = { class: "poveste-top-bar ptw-flex-none ptw-grid ptw-grid-cols-[1fr_auto_1fr] ptw-items-center ptw-h-14 ptw-px-4 ptw-gap-3" };
|
|
18
|
+
const _hoisted_2 = { key: 1 };
|
|
19
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
20
|
+
__name: "TopBar",
|
|
21
|
+
emits: {
|
|
22
|
+
search: () => true,
|
|
23
|
+
layout: () => true
|
|
24
|
+
},
|
|
25
|
+
setup(__props) {
|
|
26
|
+
const storyStore = useStoryStore();
|
|
27
|
+
return (_ctx, _cache) => {
|
|
28
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
29
|
+
createVNode(_sfc_main$1, {
|
|
30
|
+
class: "ptw-justify-self-start",
|
|
31
|
+
onLayout: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("layout")),
|
|
32
|
+
onSearch: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("search"))
|
|
33
|
+
}),
|
|
34
|
+
unref(storyStore).currentStory || unref(storyStore).currentVariant ? (openBlock(), createBlock(TopBarChip, {
|
|
35
|
+
key: 0,
|
|
36
|
+
class: "ptw-px-6 ptw-py-1.5 ptw-max-w-full"
|
|
37
|
+
}, {
|
|
38
|
+
default: withCtx(() => [
|
|
39
|
+
createVNode(ToolbarTitle, {
|
|
40
|
+
variant: unref(storyStore).currentVariant ?? void 0,
|
|
41
|
+
story: unref(storyStore).currentStory ?? void 0
|
|
42
|
+
}, null, 8, ["variant", "story"])
|
|
43
|
+
]),
|
|
44
|
+
_: 1
|
|
45
|
+
})) : (openBlock(), createElementBlock("span", _hoisted_2)),
|
|
46
|
+
unref(storyStore).currentStory && !unref(storyStore).currentStory.docsOnly ? (openBlock(), createBlock(TopBarChip, {
|
|
47
|
+
key: 2,
|
|
48
|
+
class: "ptw-justify-self-end"
|
|
49
|
+
}, {
|
|
50
|
+
default: withCtx(() => [
|
|
51
|
+
unref(storyStore).currentVariant && !unref(storyStore).currentVariant.responsiveDisabled ? (openBlock(), createBlock(_sfc_main$2, { key: 0 })) : createCommentVNode("", true),
|
|
52
|
+
createVNode(ToolbarBackground),
|
|
53
|
+
createVNode(_sfc_main$3),
|
|
54
|
+
unref(storyStore).currentVariant ? (openBlock(), createBlock(_sfc_main$4, {
|
|
55
|
+
key: 1,
|
|
56
|
+
variant: unref(storyStore).currentVariant,
|
|
57
|
+
story: unref(storyStore).currentStory
|
|
58
|
+
}, null, 8, ["variant", "story"])) : createCommentVNode("", true),
|
|
59
|
+
_ctx.__POVESTE_DEV__ ? (openBlock(), createBlock(_sfc_main$5, {
|
|
60
|
+
key: 2,
|
|
61
|
+
file: unref(storyStore).currentStory.file?.filePath,
|
|
62
|
+
tooltip: "Edit story in editor"
|
|
63
|
+
}, null, 8, ["file"])) : createCommentVNode("", true)
|
|
64
|
+
]),
|
|
65
|
+
_: 1
|
|
66
|
+
})) : createCommentVNode("", true)
|
|
67
|
+
]);
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
export {
|
|
72
|
+
_sfc_main as default
|
|
73
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { createElementBlock, openBlock, renderSlot } from "@poveste/vendors/vue";
|
|
2
|
+
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
const _sfc_main = {};
|
|
4
|
+
const _hoisted_1 = { class: "poveste-top-bar-chip ptw-flex ptw-items-center ptw-bg-gradient-to-b ptw-from-white/85 ptw-to-white/60 dark:ptw-from-gray-800/65 dark:ptw-to-gray-800/40 ptw-backdrop-blur-md ptw-border ptw-border-white/60 dark:ptw-border-white/15 ptw-rounded-lg ptw-overflow-hidden ptw-shadow-md" };
|
|
5
|
+
function _sfc_render(_ctx, _cache) {
|
|
6
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
7
|
+
renderSlot(_ctx.$slots, "default")
|
|
8
|
+
]);
|
|
9
|
+
}
|
|
10
|
+
const TopBarChip = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
11
|
+
export {
|
|
12
|
+
TopBarChip as default
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { createElementBlock, openBlock, renderSlot } from "@poveste/vendors/vue";
|
|
2
|
+
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
const _sfc_main = {};
|
|
4
|
+
const _hoisted_1 = { class: "poveste-top-bar-chip-item ptw-flex ptw-items-center ptw-gap-1 ptw-px-2.5 ptw-py-1.5 hover:ptw-bg-white/50 active:ptw-bg-white/70 dark:hover:ptw-bg-white/10 dark:active:ptw-bg-white/15 hover:ptw-text-primary-500 dark:hover:ptw-text-primary-400 ptw-cursor-pointer ptw-text-gray-900 dark:ptw-text-gray-100 ptw-transition-colors" };
|
|
5
|
+
function _sfc_render(_ctx, _cache) {
|
|
6
|
+
return openBlock(), createElementBlock("a", _hoisted_1, [
|
|
7
|
+
renderSlot(_ctx.$slots, "default")
|
|
8
|
+
]);
|
|
9
|
+
}
|
|
10
|
+
const TopBarChipItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
11
|
+
export {
|
|
12
|
+
TopBarChipItem as default
|
|
13
|
+
};
|
|
@@ -21,9 +21,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
21
21
|
});
|
|
22
22
|
return (_ctx, _cache) => {
|
|
23
23
|
return openBlock(), createBlock(resolveDynamicComponent(comp.value), {
|
|
24
|
-
class: normalizeClass(["poveste-base-button
|
|
25
|
-
"
|
|
26
|
-
"
|
|
24
|
+
class: normalizeClass(["poveste-base-button ptw-rounded ptw-cursor-pointer", {
|
|
25
|
+
"ptw-bg-primary-200 dark:ptw-bg-primary-800 hover:ptw-bg-primary-300 dark:hover:ptw-bg-primary-700": __props.color === "primary" || !__props.color,
|
|
26
|
+
"ptw-bg-grey-100 dark:ptw-bg-grey-900 hover:ptw-bg-grey-200 dark:hover:ptw-bg-grey-800": __props.color === "grey"
|
|
27
27
|
}])
|
|
28
28
|
}, {
|
|
29
29
|
default: withCtx(() => [
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, watch, createElementBlock, openBlock, withKeys, withModifiers, createElementVNode, renderSlot, normalizeClass } from "@poveste/vendors/vue";
|
|
2
2
|
"use strict";
|
|
3
|
-
const _hoisted_1 = { class: "
|
|
3
|
+
const _hoisted_1 = { class: "ptw-text-white ptw-w-[16px] ptw-h-[16px] ptw-relative" };
|
|
4
4
|
const _hoisted_2 = {
|
|
5
5
|
width: "16",
|
|
6
6
|
height: "16",
|
|
7
7
|
viewBox: "0 0 24 24",
|
|
8
|
-
class: "
|
|
8
|
+
class: "ptw-relative ptw-z-10"
|
|
9
9
|
};
|
|
10
10
|
const _hoisted_3 = ["stroke-dasharray", "stroke-dashoffset"];
|
|
11
11
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -38,7 +38,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
38
38
|
return openBlock(), createElementBlock("div", {
|
|
39
39
|
role: "checkbox",
|
|
40
40
|
tabindex: "0",
|
|
41
|
-
class: "poveste-base-checkbox
|
|
41
|
+
class: "poveste-base-checkbox ptw-flex ptw-items-center ptw-gap-2 ptw-select-none ptw-px-4 ptw-py-3 ptw-cursor-pointer hover:ptw-bg-primary-100 dark:hover:ptw-bg-primary-700",
|
|
42
42
|
onClick: _cache[0] || (_cache[0] = ($event) => toggle()),
|
|
43
43
|
onKeydown: [
|
|
44
44
|
_cache[1] || (_cache[1] = withKeys(withModifiers(($event) => toggle(), ["prevent"]), ["enter"])),
|
|
@@ -47,8 +47,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
47
47
|
}, [
|
|
48
48
|
createElementVNode("div", _hoisted_1, [
|
|
49
49
|
createElementVNode("div", {
|
|
50
|
-
class: normalizeClass(["
|
|
51
|
-
__props.modelValue ? "
|
|
50
|
+
class: normalizeClass(["ptw-border group-active:ptw-bg-gray-500/20 ptw-rounded-sm ptw-box-border ptw-absolute ptw-inset-0 ptw-transition-border ptw-duration-150 ptw-ease-out", [
|
|
51
|
+
__props.modelValue ? "ptw-border-primary-500 ptw-border-8" : "ptw-border-black/25 dark:ptw-border-white/25 ptw-delay-150"
|
|
52
52
|
]])
|
|
53
53
|
}, null, 2),
|
|
54
54
|
(openBlock(), createElementBlock("svg", _hoisted_2, [
|
|
@@ -57,10 +57,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
57
57
|
ref: path,
|
|
58
58
|
d: "m 4 12 l 5 5 l 10 -10",
|
|
59
59
|
fill: "none",
|
|
60
|
-
class: normalizeClass(["
|
|
61
|
-
animationEnabled.value ? "
|
|
60
|
+
class: normalizeClass(["ptw-stroke-white ptw-stroke-2 ptw-duration-200 ptw-ease-in-out", [
|
|
61
|
+
animationEnabled.value ? "ptw-transition-all" : "ptw-transition-none",
|
|
62
62
|
{
|
|
63
|
-
"
|
|
63
|
+
"ptw-delay-150": __props.modelValue
|
|
64
64
|
}
|
|
65
65
|
]]),
|
|
66
66
|
"stroke-dasharray": dasharray.value,
|
|
@@ -2,13 +2,13 @@ import { createElementBlock, openBlock, renderSlot } from "@poveste/vendors/vue"
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
4
|
const _sfc_main = {};
|
|
5
|
-
const _hoisted_1 = { class: "poveste-base-empty
|
|
5
|
+
const _hoisted_1 = { class: "poveste-base-empty ptw-base-empty ptw-flex ptw-flex-col ptw-items-center ptw-justify-center ptw-space-y-4 ptw-py-12 ptw-h-full ptw-text-center ptw-text-gray-400 ptw-text-lg" };
|
|
6
6
|
function _sfc_render(_ctx, _cache) {
|
|
7
7
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
8
8
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
9
9
|
]);
|
|
10
10
|
}
|
|
11
|
-
const BaseEmpty = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
11
|
+
const BaseEmpty = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-176506c5"]]);
|
|
12
12
|
export {
|
|
13
13
|
BaseEmpty as default
|
|
14
14
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, computed, createElementBlock, openBlock, toDisplayString } from "@poveste/vendors/vue";
|
|
2
2
|
import { formatKey } from "../../util/keyboard.js";
|
|
3
3
|
"use strict";
|
|
4
|
-
const _hoisted_1 = { class: "poveste-base-keyboard-shortcut
|
|
4
|
+
const _hoisted_1 = { class: "poveste-base-keyboard-shortcut ptw-border ptw-border-current ptw-opacity-50 ptw-px-1 ptw-rounded-sm" };
|
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
6
|
__name: "BaseKeyboardShortcut",
|
|
7
7
|
props: {
|
|
@@ -13,9 +13,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
13
13
|
}
|
|
14
14
|
return (_ctx, _cache) => {
|
|
15
15
|
return openBlock(), createElementBlock("a", {
|
|
16
|
-
class: normalizeClass(["
|
|
16
|
+
class: normalizeClass(["poveste-base-list-item ptw-flex ptw-items-center ptw-gap-2 ptw-text-gray-900 dark:ptw-text-gray-100", [
|
|
17
17
|
_ctx.$attrs.class,
|
|
18
|
-
__props.isActive ? "active
|
|
18
|
+
__props.isActive ? "active ptw-bg-primary-500 hover:ptw-bg-primary-600 ptw-text-white dark:ptw-text-black" : "hover:ptw-bg-primary-100 dark:hover:ptw-bg-primary-900"
|
|
19
19
|
]]),
|
|
20
20
|
onClick: _cache[0] || (_cache[0] = ($event) => handleNavigate()),
|
|
21
21
|
onKeyup: [
|
|
@@ -9,9 +9,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9
9
|
default: withCtx(({ isActive: linkIsActive, href, navigate }) => [
|
|
10
10
|
createElementVNode("a", {
|
|
11
11
|
href,
|
|
12
|
-
class: normalizeClass(["
|
|
12
|
+
class: normalizeClass(["ptw-flex ptw-items-center ptw-gap-2 ptw-text-gray-900 dark:ptw-text-gray-100", [
|
|
13
13
|
_ctx.$attrs.class,
|
|
14
|
-
(_ctx.isActive != null ? _ctx.isActive : linkIsActive) ? "active
|
|
14
|
+
(_ctx.isActive != null ? _ctx.isActive : linkIsActive) ? "active ptw-bg-primary-500 hover:ptw-bg-primary-600 ptw-text-white dark:ptw-text-black" : "hover:ptw-bg-primary-100 dark:hover:ptw-bg-primary-900"
|
|
15
15
|
]]),
|
|
16
16
|
onClick: ($event) => _ctx.handleNavigate($event, navigate),
|
|
17
17
|
onKeyup: [
|
|
@@ -4,9 +4,9 @@ import { useResizeObserver } from "@poveste/vendors/vue-use";
|
|
|
4
4
|
"use strict";
|
|
5
5
|
const _hoisted_1 = {
|
|
6
6
|
role: "button",
|
|
7
|
-
class: "
|
|
7
|
+
class: "ptw-cursor-pointer hover:ptw-bg-primary-50 dark:hover:ptw-bg-primary-900 ptw-w-8 ptw-h-full ptw-flex ptw-items-center ptw-justify-center ptw-absolute ptw-top-0 ptw-right-0"
|
|
8
8
|
};
|
|
9
|
-
const _hoisted_2 = { class: "
|
|
9
|
+
const _hoisted_2 = { class: "ptw-flex ptw-flex-col ptw-items-stretch" };
|
|
10
10
|
const overflowButtonWidth = 32;
|
|
11
11
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
12
12
|
__name: "BaseOverflowMenu",
|
|
@@ -62,7 +62,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
62
62
|
return openBlock(), createElementBlock("div", {
|
|
63
63
|
ref_key: "el",
|
|
64
64
|
ref: el,
|
|
65
|
-
class: "poveste-base-overflow-menu
|
|
65
|
+
class: "poveste-base-overflow-menu ptw-flex ptw-overflow-hidden ptw-relative"
|
|
66
66
|
}, [
|
|
67
67
|
createVNode(ChildrenRender, null, {
|
|
68
68
|
default: withCtx(() => [
|
|
@@ -85,7 +85,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
85
85
|
createElementVNode("div", _hoisted_1, [
|
|
86
86
|
createVNode(unref(Icon), {
|
|
87
87
|
icon: "carbon:caret-down",
|
|
88
|
-
class: "
|
|
88
|
+
class: "ptw-w-4 ptw-h-4 ptw-opacity-50 group-hover:ptw-opacity-100"
|
|
89
89
|
})
|
|
90
90
|
])
|
|
91
91
|
]),
|
|
@@ -5,7 +5,7 @@ import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
|
5
5
|
const _hoisted_1 = ["href", "onClick"];
|
|
6
6
|
const _hoisted_2 = {
|
|
7
7
|
key: 0,
|
|
8
|
-
class: "
|
|
8
|
+
class: "ptw-absolute ptw-top-0 ptw-left-0 ptw-h-full ptw-w-[2px] ptw-bg-primary-500 dark:ptw-bg-primary-400"
|
|
9
9
|
};
|
|
10
10
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11
11
|
const _component_router_link = resolveComponent("router-link");
|
|
@@ -13,8 +13,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
13
13
|
default: withCtx(({ isActive, isExactActive, href, navigate }) => [
|
|
14
14
|
createElementVNode("a", mergeProps(_ctx.$attrs, {
|
|
15
15
|
href,
|
|
16
|
-
class: ["
|
|
17
|
-
"
|
|
16
|
+
class: ["ptw-px-4 ptw-h-10 ptw-min-w-[150px] ptw-inline-flex ptw-items-center hover:ptw-bg-primary-50 dark:hover:ptw-bg-primary-900 ptw-relative ptw-text-gray-900 dark:ptw-text-gray-100", {
|
|
17
|
+
"ptw-text-primary-500 dark:ptw-text-primary-400": _ctx.matched != null ? _ctx.matched : _ctx.exact && isExactActive || !_ctx.exact && isActive
|
|
18
18
|
}],
|
|
19
19
|
onClick: navigate
|
|
20
20
|
}), [
|
|
@@ -2,9 +2,9 @@ import { defineComponent, computed, createBlock, openBlock, unref, withCtx, crea
|
|
|
2
2
|
import { Icon } from "@poveste/vendors/iconify";
|
|
3
3
|
import { Dropdown } from "@poveste/vendors/floating-vue";
|
|
4
4
|
"use strict";
|
|
5
|
-
const _hoisted_1 = { class: "
|
|
6
|
-
const _hoisted_2 = { class: "
|
|
7
|
-
const _hoisted_3 = { class: "
|
|
5
|
+
const _hoisted_1 = { class: "ptw-cursor-pointer ptw-w-full ptw-outline-none ptw-px-2 ptw-h-[27px] -ptw-my-1 ptw-border ptw-border-solid ptw-border-black/25 dark:ptw-border-white/25 hover:ptw-border-primary-500 dark:hover:ptw-border-primary-500 ptw-rounded-sm ptw-flex ptw-gap-2 ptw-items-center ptw-leading-normal" };
|
|
6
|
+
const _hoisted_2 = { class: "ptw-flex-1 ptw-truncate" };
|
|
7
|
+
const _hoisted_3 = { class: "ptw-flex ptw-flex-col ptw-bg-gray-50 dark:ptw-bg-gray-700" };
|
|
8
8
|
const _hoisted_4 = ["onClick"];
|
|
9
9
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
10
10
|
__name: "BaseSelect",
|
|
@@ -39,8 +39,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
39
39
|
(openBlock(true), createElementBlock(Fragment, null, renderList(formattedOptions.value, (label, value) => {
|
|
40
40
|
return openBlock(), createElementBlock("div", mergeProps({ ref_for: true }, { ..._ctx.$attrs, class: null, style: null }, {
|
|
41
41
|
key: label,
|
|
42
|
-
class: ["
|
|
43
|
-
"
|
|
42
|
+
class: ["ptw-px-2 ptw-py-1 ptw-cursor-pointer hover:ptw-bg-primary-100 dark:hover:ptw-bg-primary-700", {
|
|
43
|
+
"ptw-bg-primary-200 dark:ptw-bg-primary-800": props.modelValue === value
|
|
44
44
|
}],
|
|
45
45
|
onClick: ($event) => selectValue(value, hide)
|
|
46
46
|
}), [
|
|
@@ -63,7 +63,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
63
63
|
]),
|
|
64
64
|
createVNode(unref(Icon), {
|
|
65
65
|
icon: "carbon:chevron-sort",
|
|
66
|
-
class: "
|
|
66
|
+
class: "ptw-w-4 ptw-h-4 ptw-flex-none ptw-ml-auto"
|
|
67
67
|
})
|
|
68
68
|
])
|
|
69
69
|
]),
|
|
@@ -2,7 +2,7 @@ import _sfc_main from "./BaseSplitPane.vue2.js";
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
4
|
"use strict";
|
|
5
|
-
const BaseSplitPane = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
5
|
+
const BaseSplitPane = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-02634f87"]]);
|
|
6
6
|
export {
|
|
7
7
|
BaseSplitPane as default
|
|
8
8
|
};
|
|
@@ -37,6 +37,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
37
37
|
fixed: {
|
|
38
38
|
type: Boolean,
|
|
39
39
|
default: false
|
|
40
|
+
},
|
|
41
|
+
showDivider: {
|
|
42
|
+
type: Boolean,
|
|
43
|
+
default: true
|
|
40
44
|
}
|
|
41
45
|
},
|
|
42
46
|
emits: {
|
|
@@ -138,37 +142,37 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
138
142
|
return openBlock(), createElementBlock("div", {
|
|
139
143
|
ref_key: "el",
|
|
140
144
|
ref: el,
|
|
141
|
-
class: normalizeClass(["poveste-base-split-pane
|
|
142
|
-
"
|
|
143
|
-
"
|
|
144
|
-
"
|
|
145
|
+
class: normalizeClass(["poveste-base-split-pane ptw-flex ptw-h-full ptw-isolate ptw-overflow-auto", {
|
|
146
|
+
"ptw-flex-col": __props.orientation === "portrait",
|
|
147
|
+
"ptw-cursor-ew-resize": dragging.value && __props.orientation === "landscape",
|
|
148
|
+
"ptw-cursor-ns-resize": dragging.value && __props.orientation === "portrait",
|
|
145
149
|
[__props.orientation]: true
|
|
146
150
|
}])
|
|
147
151
|
}, [
|
|
148
152
|
createElementVNode("div", {
|
|
149
|
-
class: normalizeClass(["
|
|
150
|
-
"
|
|
151
|
-
"
|
|
152
|
-
"
|
|
153
|
+
class: normalizeClass(["ptw-relative ptw-top-0 ptw-left-0 ptw-z-20", {
|
|
154
|
+
"ptw-pointer-events-none": dragging.value,
|
|
155
|
+
"ptw-border-r ptw-border-gray-300/30 dark:ptw-border-gray-800": __props.orientation === "landscape" && __props.showDivider,
|
|
156
|
+
"ptw-flex-none": __props.fixed
|
|
153
157
|
}]),
|
|
154
158
|
style: normalizeStyle(leftStyle.value)
|
|
155
159
|
}, [
|
|
156
160
|
renderSlot(_ctx.$slots, "first", {}, void 0, true),
|
|
157
161
|
createElementVNode("div", {
|
|
158
|
-
class: normalizeClass(["dragger
|
|
159
|
-
"
|
|
160
|
-
"
|
|
162
|
+
class: normalizeClass(["dragger ptw-absolute ptw-z-100 hover:ptw-bg-primary-500/50 ptw-transition-colors ptw-duration-150 ptw-delay-150", {
|
|
163
|
+
"ptw-top-0 ptw-bottom-0 ptw-cursor-ew-resize": __props.orientation === "landscape",
|
|
164
|
+
"ptw-left-0 ptw-right-0 ptw-cursor-ns-resize": __props.orientation === "portrait",
|
|
161
165
|
[`dragger-offset-${__props.draggerOffset}`]: true,
|
|
162
|
-
"
|
|
166
|
+
"ptw-bg-primary-500/25": dragging.value
|
|
163
167
|
}]),
|
|
164
168
|
onMousedown: withModifiers(dragStart, ["prevent"])
|
|
165
169
|
}, null, 34)
|
|
166
170
|
], 6),
|
|
167
171
|
createElementVNode("div", {
|
|
168
|
-
class: normalizeClass(["
|
|
169
|
-
"
|
|
170
|
-
"
|
|
171
|
-
"
|
|
172
|
+
class: normalizeClass(["ptw-relative ptw-bottom-0 ptw-right-0", {
|
|
173
|
+
"ptw-pointer-events-none": dragging.value,
|
|
174
|
+
"ptw-border-t ptw-border-gray-300/30 dark:ptw-border-gray-800": __props.orientation === "portrait" && __props.showDivider,
|
|
175
|
+
"ptw-flex-1": __props.fixed
|
|
172
176
|
}]),
|
|
173
177
|
style: normalizeStyle(rightStyle.value)
|
|
174
178
|
}, [
|
|
@@ -5,7 +5,7 @@ import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
|
5
5
|
const _hoisted_1 = ["href", "onClick"];
|
|
6
6
|
const _hoisted_2 = {
|
|
7
7
|
key: 0,
|
|
8
|
-
class: "
|
|
8
|
+
class: "ptw-absolute ptw-bottom-0 ptw-left-0 ptw-w-full ptw-h-[2px] ptw-bg-primary-500 dark:ptw-bg-primary-400"
|
|
9
9
|
};
|
|
10
10
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11
11
|
const _component_router_link = resolveComponent("router-link");
|
|
@@ -13,8 +13,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
13
13
|
default: withCtx(({ isActive, isExactActive, href, navigate }) => [
|
|
14
14
|
createElementVNode("a", mergeProps(_ctx.$attrs, {
|
|
15
15
|
href,
|
|
16
|
-
class: ["
|
|
17
|
-
"
|
|
16
|
+
class: ["ptw-px-4 ptw-h-full ptw-inline-flex ptw-items-center hover:ptw-bg-primary-50 dark:hover:ptw-bg-primary-900 ptw-relative ptw-text-gray-900 dark:ptw-text-gray-100", {
|
|
17
|
+
"ptw-text-primary-500 dark:ptw-text-primary-400": _ctx.matched != null ? _ctx.matched : _ctx.exact && isExactActive || !_ctx.exact && isActive
|
|
18
18
|
}],
|
|
19
19
|
onClick: navigate
|
|
20
20
|
}), [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createElementBlock, openBlock, renderSlot } from "@poveste/vendors/vue";
|
|
2
2
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
3
|
const _sfc_main = {};
|
|
4
|
-
const _hoisted_1 = { class: "poveste-base-tag
|
|
4
|
+
const _hoisted_1 = { class: "poveste-base-tag ptw-text-center ptw-text-xs ptw-mx-1 ptw-px-0.5 ptw-h-4 ptw-uppercase ptw-min-w-4 ptw-rounded-full ptw-bg-primary-500 ptw-text-white dark:ptw-text-black" };
|
|
5
5
|
function _sfc_render(_ctx, _cache) {
|
|
6
6
|
return openBlock(), createElementBlock("span", _hoisted_1, [
|
|
7
7
|
renderSlot(_ctx.$slots, "default")
|
|
@@ -9,8 +9,8 @@ import _sfc_main$2 from "./PromptText.vue2.js";
|
|
|
9
9
|
import _sfc_main$3 from "../base/BaseButton.vue2.js";
|
|
10
10
|
import _sfc_main$4 from "../base/BaseKeyboardShortcut.vue2.js";
|
|
11
11
|
"use strict";
|
|
12
|
-
const _hoisted_1 = { class: "
|
|
13
|
-
const _hoisted_2 = { class: "
|
|
12
|
+
const _hoisted_1 = { class: "ptw-p-4 ptw-opacity-70" };
|
|
13
|
+
const _hoisted_2 = { class: "ptw-flex ptw-justify-end ptw-gap-2 ptw-p-2" };
|
|
14
14
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
15
15
|
__name: "CommandPrompts",
|
|
16
16
|
props: {
|
|
@@ -50,7 +50,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
50
50
|
});
|
|
51
51
|
return (_ctx, _cache) => {
|
|
52
52
|
return openBlock(), createElementBlock("form", {
|
|
53
|
-
class: "poveste-command-prompts
|
|
53
|
+
class: "poveste-command-prompts ptw-flex ptw-flex-col",
|
|
54
54
|
onSubmit: _cache[0] || (_cache[0] = withModifiers(($event) => submit(), ["prevent"])),
|
|
55
55
|
onKeyup: _cache[1] || (_cache[1] = withKeys(($event) => _ctx.$emit("close"), ["escape"]))
|
|
56
56
|
}, [
|
|
@@ -66,14 +66,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
66
66
|
prompt,
|
|
67
67
|
answers,
|
|
68
68
|
index,
|
|
69
|
-
class: "hover:
|
|
69
|
+
class: "hover:ptw-bg-gray-500/10 focus-within:ptw-bg-gray-500/5",
|
|
70
70
|
onNext: ($event) => focusPrompt(index + 1)
|
|
71
71
|
}, null, 40, ["modelValue", "onUpdate:modelValue", "prompt", "answers", "index", "onNext"]);
|
|
72
72
|
}), 128)),
|
|
73
73
|
createElementVNode("div", _hoisted_2, [
|
|
74
74
|
createVNode(_sfc_main$3, {
|
|
75
75
|
type: "submit",
|
|
76
|
-
class: "
|
|
76
|
+
class: "ptw-px-4 ptw-py-2 ptw-flex ptw-items-start ptw-gap-2"
|
|
77
77
|
}, {
|
|
78
78
|
default: withCtx(() => [
|
|
79
79
|
createVNode(_sfc_main$4, { shortcut: "Enter" }),
|