@histoire/app 0.12.1 → 0.12.3
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/bundled/components/tree/StoryGroup.vue2.js +1 -1
- package/dist/bundled/components/tree/StoryListFolder.vue.js +1 -1
- package/dist/bundled/components/tree/StoryListFolder.vue2.js +4 -4
- package/dist/bundled/components/tree/StoryListFolder.vue3.js +2 -2
- package/dist/bundled/style.css +27 -27
- package/package.json +4 -4
- package/src/app/components/tree/StoryGroup.vue +1 -1
- package/src/app/components/tree/StoryListFolder.vue +2 -2
|
@@ -42,7 +42,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
42
42
|
]
|
|
43
43
|
}, [
|
|
44
44
|
createVNode(unref(Icon), {
|
|
45
|
-
icon: unref(isFolderOpen) ? "
|
|
45
|
+
icon: unref(isFolderOpen) ? "ri:subtract-line" : "ri:add-line",
|
|
46
46
|
class: "htw-w-4 htw-h-4 htw-ml-4 htw-rounded-sm htw-border htw-border-gray-500/40"
|
|
47
47
|
}, null, 8, ["icon"]),
|
|
48
48
|
createElementVNode("span", _hoisted_4, toDisplayString(__props.group.title), 1)
|
|
@@ -2,7 +2,7 @@ import _sfc_main from "./StoryListFolder.vue2.js";
|
|
|
2
2
|
import "./StoryListFolder.vue3.js";
|
|
3
3
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
4
|
"use strict";
|
|
5
|
-
const StoryListFolder = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
5
|
+
const StoryListFolder = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-2d2e4786"]]);
|
|
6
6
|
export {
|
|
7
7
|
StoryListFolder as default
|
|
8
8
|
};
|
|
@@ -3,14 +3,14 @@ import StoryListItem from "./StoryListItem.vue.js";
|
|
|
3
3
|
import { Icon } from "@histoire/vendors/iconify";
|
|
4
4
|
import { useFolderStore } from "../../stores/folder.js";
|
|
5
5
|
"use strict";
|
|
6
|
-
const _withScopeId = (n) => (pushScopeId("data-v-
|
|
6
|
+
const _withScopeId = (n) => (pushScopeId("data-v-2d2e4786"), n = n(), popScopeId(), n);
|
|
7
7
|
const _hoisted_1 = {
|
|
8
8
|
"data-test-id": "story-list-folder",
|
|
9
9
|
class: "histoire-story-list-folder"
|
|
10
10
|
};
|
|
11
11
|
const _hoisted_2 = ["onKeyup"];
|
|
12
12
|
const _hoisted_3 = { class: "bind-tree-padding htw-flex htw-items-center htw-gap-2 htw-min-w-0" };
|
|
13
|
-
const _hoisted_4 = { class: "htw-flex htw-flex-none htw-items-center htw-opacity-30 [.histoire-story-list-folder-button:hover_&]:htw-opacity-100 htw-ml-4 htw-rounded-sm htw-border htw-border-gray-500/40" };
|
|
13
|
+
const _hoisted_4 = { class: "htw-flex htw-flex-none htw-items-center htw-opacity-30 [.histoire-story-list-folder-button:hover_&]:htw-opacity-100 htw-ml-4 htw-w-4 htw-h-4 htw-rounded-sm htw-border htw-border-gray-500/40" };
|
|
14
14
|
const _hoisted_5 = { class: "htw-truncate" };
|
|
15
15
|
const _hoisted_6 = { key: 0 };
|
|
16
16
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -24,7 +24,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
24
24
|
setup(__props) {
|
|
25
25
|
const props = __props;
|
|
26
26
|
useCssVars((_ctx) => ({
|
|
27
|
-
"
|
|
27
|
+
"6851b0a7": unref(folderPadding)
|
|
28
28
|
}));
|
|
29
29
|
const folderStore = useFolderStore();
|
|
30
30
|
const folderPath = computed(() => [...props.path, props.folder.title]);
|
|
@@ -52,7 +52,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
52
52
|
createElementVNode("span", _hoisted_4, [
|
|
53
53
|
createVNode(unref(Icon), {
|
|
54
54
|
icon: "carbon:caret-right",
|
|
55
|
-
class: normalizeClass(["htw-w-
|
|
55
|
+
class: normalizeClass(["htw-w-full htw-h-full htw-transition-transform htw-duration-150", {
|
|
56
56
|
"htw-rotate-90": unref(isFolderOpen)
|
|
57
57
|
}])
|
|
58
58
|
}, null, 8, ["class"])
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const StoryListFolder_vue_vue_type_style_index_0_scoped_2d2e4786_lang = "";
|
|
2
2
|
export {
|
|
3
|
-
|
|
3
|
+
StoryListFolder_vue_vue_type_style_index_0_scoped_2d2e4786_lang as default
|
|
4
4
|
};
|
package/dist/bundled/style.css
CHANGED
|
@@ -1,4 +1,16 @@
|
|
|
1
1
|
|
|
2
|
+
.htw-base-empty[data-v-c5ecfead]:not(.no-animation) {
|
|
3
|
+
animation: htw-base-empty-c5ecfead .15s .2s both;
|
|
4
|
+
}
|
|
5
|
+
@keyframes htw-base-empty-c5ecfead {
|
|
6
|
+
0% {
|
|
7
|
+
opacity: 0;
|
|
8
|
+
}
|
|
9
|
+
100% {
|
|
10
|
+
opacity: 1;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
2
14
|
.landscape > div > .dragger[data-v-ed925107] {
|
|
3
15
|
width: .625rem;
|
|
4
16
|
}
|
|
@@ -28,24 +40,21 @@
|
|
|
28
40
|
color: var(--5792748b);
|
|
29
41
|
}
|
|
30
42
|
|
|
31
|
-
.
|
|
32
|
-
|
|
33
|
-
}
|
|
34
|
-
@keyframes htw-base-empty-c5ecfead {
|
|
35
|
-
0% {
|
|
36
|
-
opacity: 0;
|
|
37
|
-
}
|
|
38
|
-
100% {
|
|
39
|
-
opacity: 1;
|
|
43
|
+
.bind-icon-color[data-v-6046525f] {
|
|
44
|
+
color: var(--663732b6);
|
|
40
45
|
}
|
|
46
|
+
|
|
47
|
+
.bind-icon-color[data-v-ddfc5b4f] {
|
|
48
|
+
color: var(--4d25d048);
|
|
41
49
|
}
|
|
42
50
|
|
|
43
|
-
.
|
|
44
|
-
color:
|
|
51
|
+
.__histoire-code-placeholder[data-v-f528bb1b] {
|
|
52
|
+
color: inherit;
|
|
53
|
+
font-size: inherit;
|
|
45
54
|
}
|
|
46
55
|
|
|
47
|
-
.bind-tree-padding[data-v-
|
|
48
|
-
padding-left: var(--
|
|
56
|
+
.bind-tree-padding[data-v-2d2e4786] {
|
|
57
|
+
padding-left: var(--6851b0a7);
|
|
49
58
|
}
|
|
50
59
|
|
|
51
60
|
.bind-tree-margin[data-v-19810958] {
|
|
@@ -59,17 +68,9 @@
|
|
|
59
68
|
color: var(--89126aaa);
|
|
60
69
|
}
|
|
61
70
|
|
|
62
|
-
.
|
|
63
|
-
color:
|
|
64
|
-
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.bind-icon-color[data-v-ddfc5b4f] {
|
|
68
|
-
color: var(--4d25d048);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.bind-icon-color[data-v-d95fcb03] {
|
|
72
|
-
color: var(--beebbd52);
|
|
71
|
+
.bind-preview-bg[data-v-c48fb2b2] {
|
|
72
|
+
background-color: var(--627bec82);
|
|
73
|
+
color: var(--35068428);
|
|
73
74
|
}
|
|
74
75
|
|
|
75
76
|
.bind-icon-color[data-v-f7c98176] {
|
|
@@ -79,9 +80,8 @@
|
|
|
79
80
|
background-color: var(--f4b27ac2);
|
|
80
81
|
}
|
|
81
82
|
|
|
82
|
-
.bind-
|
|
83
|
-
|
|
84
|
-
color: var(--35068428);
|
|
83
|
+
.bind-icon-color[data-v-d95fcb03] {
|
|
84
|
+
color: var(--beebbd52);
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
.bind-preview-bg[data-v-a83b1911] {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@histoire/app",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.3",
|
|
4
4
|
"description": "Pre-bundled UI for Histoire",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
},
|
|
25
25
|
"types": "./src/index.ts",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@histoire/controls": "^0.12.
|
|
28
|
-
"@histoire/shared": "^0.12.
|
|
29
|
-
"@histoire/vendors": "^0.12.
|
|
27
|
+
"@histoire/controls": "^0.12.3",
|
|
28
|
+
"@histoire/shared": "^0.12.3",
|
|
29
|
+
"@histoire/vendors": "^0.12.3",
|
|
30
30
|
"@types/flexsearch": "^0.7.3",
|
|
31
31
|
"flexsearch": "0.7.21",
|
|
32
32
|
"shiki-es": "^0.1.2"
|
|
@@ -40,7 +40,7 @@ function toggleOpen () {
|
|
|
40
40
|
@keyup.space="toggleOpen"
|
|
41
41
|
>
|
|
42
42
|
<Icon
|
|
43
|
-
:icon="isFolderOpen ? '
|
|
43
|
+
:icon="isFolderOpen ? 'ri:subtract-line' : 'ri:add-line'"
|
|
44
44
|
class="htw-w-4 htw-h-4 htw-ml-4 htw-rounded-sm htw-border htw-border-gray-500/40"
|
|
45
45
|
/>
|
|
46
46
|
<span class="htw-truncate">{{ group.title }}</span>
|
|
@@ -43,10 +43,10 @@ const folderPadding = computed(() => {
|
|
|
43
43
|
@keyup.space="toggleOpen"
|
|
44
44
|
>
|
|
45
45
|
<span class="bind-tree-padding htw-flex htw-items-center htw-gap-2 htw-min-w-0">
|
|
46
|
-
<span class="htw-flex htw-flex-none htw-items-center htw-opacity-30 [.histoire-story-list-folder-button:hover_&]:htw-opacity-100 htw-ml-4 htw-rounded-sm htw-border htw-border-gray-500/40">
|
|
46
|
+
<span class="htw-flex htw-flex-none htw-items-center htw-opacity-30 [.histoire-story-list-folder-button:hover_&]:htw-opacity-100 htw-ml-4 htw-w-4 htw-h-4 htw-rounded-sm htw-border htw-border-gray-500/40">
|
|
47
47
|
<Icon
|
|
48
48
|
icon="carbon:caret-right"
|
|
49
|
-
class="htw-w-
|
|
49
|
+
class="htw-w-full htw-h-full htw-transition-transform htw-duration-150"
|
|
50
50
|
:class="{
|
|
51
51
|
'htw-rotate-90': isFolderOpen,
|
|
52
52
|
}"
|