@histoire/app 1.0.0-alpha.4 → 1.0.0-beta.1
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/app.css +11 -11
- package/dist/bundled/components/app/Breadcrumb.vue2.js +2 -2
- package/dist/bundled/components/app/MobileOverlay.vue2.js +2 -2
- package/dist/bundled/components/base/BaseButton.vue2.js +2 -2
- package/dist/bundled/components/base/BaseIcon.vue2.js +3 -3
- package/dist/bundled/components/base/BaseListItem.vue2.js +1 -1
- package/dist/bundled/components/command/CommandPrompts.vue2.js +2 -2
- package/dist/bundled/components/command/PromptSelect.vue2.js +5 -5
- package/dist/bundled/components/command/PromptText.vue2.js +3 -3
- package/dist/bundled/components/misc/CheckerboardPattern.vue.js +2 -2
- 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 +1 -1
- package/dist/bundled/components/panel/PaneTabs.vue2.js +14 -14
- package/dist/bundled/components/panel/StoryDocs.vue2.js +1 -1
- package/dist/bundled/components/panel/StoryEvent.vue2.js +3 -3
- package/dist/bundled/components/panel/StoryEvents.vue2.js +1 -1
- package/dist/bundled/components/panel/StorySidePanel.vue2.js +4 -4
- package/dist/bundled/components/search/SearchItem.vue2.js +1 -1
- package/dist/bundled/components/search/SearchItemContent.vue2.js +10 -10
- package/dist/bundled/components/search/SearchLoading.vue2.js +1 -1
- package/dist/bundled/components/search/SearchPane.vue2.js +3 -3
- package/dist/bundled/components/story/GenericMountStory.vue2.js +1 -1
- package/dist/bundled/components/story/GenericRenderStory.vue2.js +1 -1
- package/dist/bundled/components/story/StoryResponsivePreview.vue2.js +1 -1
- package/dist/bundled/components/story/StoryVariantGridItem.vue2.js +2 -2
- package/dist/bundled/components/story/StoryVariantSingle.vue2.js +1 -1
- package/dist/bundled/components/story/StoryVariantSinglePreviewNative.vue2.js +4 -4
- package/dist/bundled/components/story/StoryVariantSinglePreviewRemote.vue2.js +1 -1
- package/dist/bundled/components/story/StoryVariantSingleView.vue2.js +10 -10
- package/dist/bundled/components/story/StoryViewer.vue2.js +1 -1
- package/dist/bundled/components/toolbar/DevOnlyToolbarOpenInEditor.vue2.js +2 -2
- package/dist/bundled/components/toolbar/ToolbarBackground.vue2.js +5 -5
- package/dist/bundled/components/toolbar/ToolbarResponsiveSize.vue2.js +3 -3
- package/dist/bundled/components/toolbar/ToolbarTitle.vue2.js +3 -3
- package/dist/bundled/components/tree/StoryGroup.vue2.js +5 -5
- package/dist/bundled/components/tree/StoryList.vue2.js +4 -4
- package/dist/bundled/components/tree/StoryListFolder.vue2.js +7 -7
- package/dist/bundled/components/tree/StoryListItem.vue2.js +8 -8
- package/dist/style.css +7 -3
- package/package.json +6 -6
package/dist/bundled/app.css
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
@scope (:root) to (.__histoire-render-story:not(.__histoire-render-custom-controls)) {
|
|
2
2
|
.bind-tree-margin[data-v-64c2458f] {
|
|
3
|
-
margin-left: var(--
|
|
3
|
+
margin-left: var(--v2562213a);
|
|
4
4
|
}
|
|
5
5
|
.bind-icon-color[data-v-64c2458f] {
|
|
6
|
-
color: var(--
|
|
6
|
+
color: var(--v1eff521f);
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
@scope (:root) to (.__histoire-render-story:not(.__histoire-render-custom-controls)) {
|
|
10
10
|
.bind-tree-padding[data-v-ee932a0c] {
|
|
11
|
-
padding-left: var(--
|
|
11
|
+
padding-left: var(--v5352bb71);
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
@scope (:root) to (.__histoire-render-story:not(.__histoire-render-custom-controls)) {
|
|
@@ -63,16 +63,16 @@
|
|
|
63
63
|
}
|
|
64
64
|
@scope (:root) to (.__histoire-render-story:not(.__histoire-render-custom-controls)) {
|
|
65
65
|
.bind-preview-bg[data-v-c48fb2b2] {
|
|
66
|
-
background-color: var(--
|
|
67
|
-
color: var(--
|
|
66
|
+
background-color: var(--v627bec82);
|
|
67
|
+
color: var(--v35068428);
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
@scope (:root) to (.__histoire-render-story:not(.__histoire-render-custom-controls)) {
|
|
71
71
|
.bind-icon-color[data-v-feff9239] {
|
|
72
|
-
color: var(--
|
|
72
|
+
color: var(--v60afaf4d);
|
|
73
73
|
}
|
|
74
74
|
.bind-preview-bg[data-v-feff9239] {
|
|
75
|
-
background-color: var(--
|
|
75
|
+
background-color: var(--v3bd99e7e);
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
@scope (:root) to (.__histoire-render-story:not(.__histoire-render-custom-controls)) {
|
|
@@ -91,17 +91,17 @@
|
|
|
91
91
|
}
|
|
92
92
|
@scope (:root) to (.__histoire-render-story:not(.__histoire-render-custom-controls)) {
|
|
93
93
|
.bind-preview-bg[data-v-18122333] {
|
|
94
|
-
background-color: var(--
|
|
94
|
+
background-color: var(--v5f6f4ee9);
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
@scope (:root) to (.__histoire-render-story:not(.__histoire-render-custom-controls)) {
|
|
98
98
|
.bind-icon-color[data-v-c2a43485] {
|
|
99
|
-
color: var(--
|
|
99
|
+
color: var(--v41c4d268);
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
102
|
@scope (:root) to (.__histoire-render-story:not(.__histoire-render-custom-controls)) {
|
|
103
103
|
.bind-icon-color[data-v-096f6d6e] {
|
|
104
|
-
color: var(--
|
|
104
|
+
color: var(--v0f021d3c);
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
107
|
@scope (:root) to (.__histoire-render-story:not(.__histoire-render-custom-controls)) {
|
|
@@ -111,6 +111,6 @@ img.colorize-black[data-v-2114f510] {
|
|
|
111
111
|
}
|
|
112
112
|
@scope (:root) to (.__histoire-render-story:not(.__histoire-render-custom-controls)) {
|
|
113
113
|
.bind-icon-color[data-v-9f94ad2b] {
|
|
114
|
-
color: var(--
|
|
114
|
+
color: var(--v1f9aa6ca);
|
|
115
115
|
}
|
|
116
116
|
}
|
|
@@ -75,8 +75,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
75
75
|
}, {
|
|
76
76
|
default: withCtx(() => [
|
|
77
77
|
createVNode(_sfc_main$2, {
|
|
78
|
-
tree:
|
|
79
|
-
stories:
|
|
78
|
+
tree: __props.tree,
|
|
79
|
+
stories: __props.stories,
|
|
80
80
|
class: "htw-flex-1 htw-overflow-y-scroll"
|
|
81
81
|
}, null, 8, ["tree", "stories"])
|
|
82
82
|
]),
|
|
@@ -19,9 +19,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
19
19
|
return (_ctx, _cache) => {
|
|
20
20
|
return openBlock(), createBlock(Transition, { name: "__histoire-fade-bottom" }, {
|
|
21
21
|
default: withCtx(() => [
|
|
22
|
-
|
|
22
|
+
__props.opened ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
23
23
|
createElementVNode("div", _hoisted_2, [
|
|
24
|
-
createElementVNode("span", _hoisted_3, toDisplayString(
|
|
24
|
+
createElementVNode("span", _hoisted_3, toDisplayString(__props.title), 1),
|
|
25
25
|
createElementVNode("a", {
|
|
26
26
|
class: "htw-p-1 hover:htw-text-primary-500 dark:hover:htw-text-primary-400 htw-cursor-pointer",
|
|
27
27
|
onClick: _cache[0] || (_cache[0] = ($event) => emit("close"))
|
|
@@ -22,8 +22,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
22
22
|
return (_ctx, _cache) => {
|
|
23
23
|
return openBlock(), createBlock(resolveDynamicComponent(comp.value), {
|
|
24
24
|
class: normalizeClass(["histoire-base-button htw-rounded htw-cursor-pointer", {
|
|
25
|
-
"htw-bg-primary-200 dark:htw-bg-primary-800 hover:htw-bg-primary-300 dark:hover:htw-bg-primary-700":
|
|
26
|
-
"htw-bg-grey-100 dark:htw-bg-grey-900 hover:htw-bg-grey-200 dark:hover:htw-bg-grey-800":
|
|
25
|
+
"htw-bg-primary-200 dark:htw-bg-primary-800 hover:htw-bg-primary-300 dark:hover:htw-bg-primary-700": __props.color === "primary" || !__props.color,
|
|
26
|
+
"htw-bg-grey-100 dark:htw-bg-grey-900 hover:htw-bg-grey-200 dark:hover:htw-bg-grey-800": __props.color === "grey"
|
|
27
27
|
}])
|
|
28
28
|
}, {
|
|
29
29
|
default: withCtx(() => [
|
|
@@ -13,12 +13,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
13
13
|
return (_ctx, _cache) => {
|
|
14
14
|
return isUrl.value ? (openBlock(), createElementBlock("img", {
|
|
15
15
|
key: 0,
|
|
16
|
-
src:
|
|
17
|
-
alt:
|
|
16
|
+
src: __props.icon,
|
|
17
|
+
alt: __props.icon,
|
|
18
18
|
class: "histoire-base-icon"
|
|
19
19
|
}, null, 8, _hoisted_1)) : (openBlock(), createBlock(unref(Icon), {
|
|
20
20
|
key: 1,
|
|
21
|
-
icon:
|
|
21
|
+
icon: __props.icon,
|
|
22
22
|
class: "histoire-base-icon"
|
|
23
23
|
}, null, 8, ["icon"]));
|
|
24
24
|
};
|
|
@@ -15,7 +15,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
15
15
|
return openBlock(), createElementBlock("a", {
|
|
16
16
|
class: normalizeClass(["istoire-base-list-ite htw-flex htw-items-center htw-gap-2 htw-text-gray-900 dark:htw-text-gray-100", [
|
|
17
17
|
_ctx.$attrs.class,
|
|
18
|
-
|
|
18
|
+
__props.isActive ? "active htw-bg-primary-500 hover:htw-bg-primary-600 htw-text-white dark:htw-text-black" : "hover:htw-bg-primary-100 dark:hover:htw-bg-primary-900"
|
|
19
19
|
]]),
|
|
20
20
|
onClick: _cache[0] || (_cache[0] = ($event) => handleNavigate()),
|
|
21
21
|
onKeyup: [
|
|
@@ -54,8 +54,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
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
|
}, [
|
|
57
|
-
createElementVNode("div", _hoisted_1, toDisplayString(
|
|
58
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(
|
|
57
|
+
createElementVNode("div", _hoisted_1, toDisplayString(__props.command.label), 1),
|
|
58
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.command.prompts, (prompt, index) => {
|
|
59
59
|
return openBlock(), createBlock(resolveDynamicComponent(promptTypes[prompt.type]), {
|
|
60
60
|
key: prompt.field,
|
|
61
61
|
ref_for: true,
|
|
@@ -83,7 +83,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
83
83
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
84
84
|
withDirectives(createElementVNode("input", {
|
|
85
85
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => model.value = $event),
|
|
86
|
-
required:
|
|
86
|
+
required: __props.prompt.required,
|
|
87
87
|
tabindex: "-1",
|
|
88
88
|
class: "htw-absolute htw-inset-0 htw-opacity-0 htw-pointer-events-none"
|
|
89
89
|
}, null, 8, _hoisted_2), [
|
|
@@ -91,12 +91,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
91
91
|
]),
|
|
92
92
|
createElementVNode("label", _hoisted_3, [
|
|
93
93
|
createElementVNode("span", _hoisted_4, [
|
|
94
|
-
createElementVNode("span", null, toDisplayString(
|
|
95
|
-
|
|
94
|
+
createElementVNode("span", null, toDisplayString(__props.prompt.label), 1),
|
|
95
|
+
__props.prompt.required ? (openBlock(), createElementBlock("span", _hoisted_5, "*")) : createCommentVNode("", true),
|
|
96
96
|
createElementVNode("span", _hoisted_6, [
|
|
97
|
-
_cache[5] || (_cache[5] = createTextVNode(" Press ")),
|
|
97
|
+
_cache[5] || (_cache[5] = createTextVNode(" Press ", -1)),
|
|
98
98
|
createVNode(_sfc_main$1, { shortcut: "Space" }),
|
|
99
|
-
_cache[6] || (_cache[6] = createTextVNode(" to select "))
|
|
99
|
+
_cache[6] || (_cache[6] = createTextVNode(" to select ", -1))
|
|
100
100
|
])
|
|
101
101
|
]),
|
|
102
102
|
withDirectives(createElementVNode("input", {
|
|
@@ -45,15 +45,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
45
45
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
46
46
|
createElementVNode("label", _hoisted_2, [
|
|
47
47
|
createElementVNode("span", _hoisted_3, [
|
|
48
|
-
createElementVNode("span", null, toDisplayString(
|
|
49
|
-
|
|
48
|
+
createElementVNode("span", null, toDisplayString(__props.prompt.label), 1),
|
|
49
|
+
__props.prompt.required ? (openBlock(), createElementBlock("span", _hoisted_4, "*")) : createCommentVNode("", true)
|
|
50
50
|
]),
|
|
51
51
|
withDirectives(createElementVNode("input", {
|
|
52
52
|
ref_key: "input",
|
|
53
53
|
ref: input,
|
|
54
54
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => model.value = $event),
|
|
55
55
|
class: "htw-bg-transparent htw-w-full htw-p-2 htw-border htw-border-gray-500/50 focus:htw-border-primary-500/50 htw-rounded htw-outline-none",
|
|
56
|
-
required:
|
|
56
|
+
required: __props.prompt.required
|
|
57
57
|
}, null, 8, _hoisted_5), [
|
|
58
58
|
[vModelText, model.value]
|
|
59
59
|
])
|
|
@@ -3,7 +3,7 @@ import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
|
3
3
|
const _sfc_main = {};
|
|
4
4
|
const _hoisted_1 = { fill: "none" };
|
|
5
5
|
function _sfc_render(_ctx, _cache) {
|
|
6
|
-
return openBlock(), createElementBlock("svg", _hoisted_1, _cache[0] || (_cache[0] = [
|
|
6
|
+
return openBlock(), createElementBlock("svg", _hoisted_1, [..._cache[0] || (_cache[0] = [
|
|
7
7
|
createElementVNode("pattern", {
|
|
8
8
|
id: "checkerboard",
|
|
9
9
|
width: "64",
|
|
@@ -32,7 +32,7 @@ function _sfc_render(_ctx, _cache) {
|
|
|
32
32
|
height: "100%",
|
|
33
33
|
fill: "url(#checkerboard)"
|
|
34
34
|
}, null, -1)
|
|
35
|
-
]));
|
|
35
|
+
])]);
|
|
36
36
|
}
|
|
37
37
|
const CheckerboardPattern = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
38
38
|
export {
|
|
@@ -47,9 +47,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
47
47
|
key: 0,
|
|
48
48
|
modelValue: model.value,
|
|
49
49
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => model.value = $event),
|
|
50
|
-
placeholder: model.value === void 0 ?
|
|
50
|
+
placeholder: model.value === void 0 ? __props.definition?.default : null,
|
|
51
51
|
class: "histoire-controls-component-prop-item",
|
|
52
|
-
title: `${
|
|
52
|
+
title: `${__props.definition.name}${canReset.value ? " *" : ""}`
|
|
53
53
|
}, {
|
|
54
54
|
actions: withCtx(() => [
|
|
55
55
|
withDirectives(createVNode(unref(Icon), {
|
|
@@ -24,15 +24,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
24
24
|
]),
|
|
25
25
|
createElementVNode("div", null, [
|
|
26
26
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "htw-opacity-30" }, "<", -1)),
|
|
27
|
-
createTextVNode(toDisplayString(
|
|
27
|
+
createTextVNode(toDisplayString(__props.definition.name), 1),
|
|
28
28
|
_cache[1] || (_cache[1] = createElementVNode("span", { class: "htw-opacity-30" }, ">", -1))
|
|
29
29
|
])
|
|
30
30
|
]),
|
|
31
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(
|
|
31
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.definition.props, (prop) => {
|
|
32
32
|
return openBlock(), createBlock(_sfc_main$1, {
|
|
33
33
|
key: prop.name,
|
|
34
|
-
variant:
|
|
35
|
-
component:
|
|
34
|
+
variant: __props.variant,
|
|
35
|
+
component: __props.definition,
|
|
36
36
|
definition: prop
|
|
37
37
|
}, null, 8, ["variant", "component", "definition"]);
|
|
38
38
|
}), 128))
|
|
@@ -27,9 +27,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
27
27
|
to: { ..._ctx.$route, query: { ..._ctx.$route.query, tab: "" } },
|
|
28
28
|
matched: !_ctx.$route.query.tab
|
|
29
29
|
}, {
|
|
30
|
-
default: withCtx(() => _cache[3] || (_cache[3] = [
|
|
31
|
-
createTextVNode(" Controls ")
|
|
32
|
-
])),
|
|
30
|
+
default: withCtx(() => [..._cache[3] || (_cache[3] = [
|
|
31
|
+
createTextVNode(" Controls ", -1)
|
|
32
|
+
])]),
|
|
33
33
|
_: 1
|
|
34
34
|
}, 8, ["to", "matched"]),
|
|
35
35
|
createVNode(BaseOverflowTab, {
|
|
@@ -39,9 +39,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
39
39
|
"opacity-50": !unref(renderedDoc)
|
|
40
40
|
})
|
|
41
41
|
}, {
|
|
42
|
-
default: withCtx(() => _cache[4] || (_cache[4] = [
|
|
43
|
-
createTextVNode(" Docs ")
|
|
44
|
-
])),
|
|
42
|
+
default: withCtx(() => [..._cache[4] || (_cache[4] = [
|
|
43
|
+
createTextVNode(" Docs ", -1)
|
|
44
|
+
])]),
|
|
45
45
|
_: 1
|
|
46
46
|
}, 8, ["to", "matched", "class"]),
|
|
47
47
|
createVNode(BaseOverflowTab, {
|
|
@@ -52,7 +52,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
52
52
|
})
|
|
53
53
|
}, {
|
|
54
54
|
default: withCtx(() => [
|
|
55
|
-
_cache[5] || (_cache[5] = createTextVNode(" Events ")),
|
|
55
|
+
_cache[5] || (_cache[5] = createTextVNode(" Events ", -1)),
|
|
56
56
|
unref(eventsStore).unseen ? (openBlock(), createBlock(BaseTag, { key: 0 }, {
|
|
57
57
|
default: withCtx(() => [
|
|
58
58
|
createTextVNode(toDisplayString(unref(eventsStore).unseen <= 99 ? unref(eventsStore).unseen : "99+"), 1)
|
|
@@ -68,9 +68,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
68
68
|
to: { ..._ctx.$route, query: { ..._ctx.$route.query, tab: "" } },
|
|
69
69
|
matched: !_ctx.$route.query.tab
|
|
70
70
|
}, {
|
|
71
|
-
default: withCtx(() => _cache[0] || (_cache[0] = [
|
|
72
|
-
createTextVNode(" Controls ")
|
|
73
|
-
])),
|
|
71
|
+
default: withCtx(() => [..._cache[0] || (_cache[0] = [
|
|
72
|
+
createTextVNode(" Controls ", -1)
|
|
73
|
+
])]),
|
|
74
74
|
_: 1
|
|
75
75
|
}, 8, ["to", "matched"]),
|
|
76
76
|
createVNode(BaseTab, {
|
|
@@ -80,9 +80,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
80
80
|
"htw-opacity-50": !unref(renderedDoc)
|
|
81
81
|
})
|
|
82
82
|
}, {
|
|
83
|
-
default: withCtx(() => _cache[1] || (_cache[1] = [
|
|
84
|
-
createTextVNode(" Docs ")
|
|
85
|
-
])),
|
|
83
|
+
default: withCtx(() => [..._cache[1] || (_cache[1] = [
|
|
84
|
+
createTextVNode(" Docs ", -1)
|
|
85
|
+
])]),
|
|
86
86
|
_: 1
|
|
87
87
|
}, 8, ["to", "matched", "class"]),
|
|
88
88
|
createVNode(BaseTab, {
|
|
@@ -93,7 +93,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
93
93
|
})
|
|
94
94
|
}, {
|
|
95
95
|
default: withCtx(() => [
|
|
96
|
-
_cache[2] || (_cache[2] = createTextVNode(" Events ")),
|
|
96
|
+
_cache[2] || (_cache[2] = createTextVNode(" Events ", -1)),
|
|
97
97
|
unref(eventsStore).unseen ? (openBlock(), createBlock(BaseTag, { key: 0 }, {
|
|
98
98
|
default: withCtx(() => [
|
|
99
99
|
createTextVNode(toDisplayString(unref(eventsStore).unseen <= 99 ? unref(eventsStore).unseen : "99+"), 1)
|
|
@@ -140,7 +140,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
140
140
|
icon: "carbon:document-unknown",
|
|
141
141
|
class: "htw-w-8 htw-h-8 htw-opacity-50 htw-mb-6"
|
|
142
142
|
}),
|
|
143
|
-
_cache[0] || (_cache[0] = createTextVNode(" No documentation available "))
|
|
143
|
+
_cache[0] || (_cache[0] = createTextVNode(" No documentation available ", -1))
|
|
144
144
|
]),
|
|
145
145
|
_: 1
|
|
146
146
|
})) : (openBlock(), createElementBlock("div", {
|
|
@@ -40,13 +40,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
40
40
|
class: normalizeClass({
|
|
41
41
|
"htw-text-primary-500": shown
|
|
42
42
|
})
|
|
43
|
-
}, toDisplayString(
|
|
44
|
-
|
|
43
|
+
}, toDisplayString(__props.event.name), 3),
|
|
44
|
+
__props.event.argument ? (openBlock(), createElementBlock("span", _hoisted_1, toDisplayString(formattedArgument.value), 1)) : createCommentVNode("", true)
|
|
45
45
|
], 2)
|
|
46
46
|
]),
|
|
47
47
|
popper: withCtx(() => [
|
|
48
48
|
createElementVNode("div", _hoisted_2, [
|
|
49
|
-
createElementVNode("pre", _hoisted_3, toDisplayString(
|
|
49
|
+
createElementVNode("pre", _hoisted_3, toDisplayString(__props.event.argument), 1)
|
|
50
50
|
])
|
|
51
51
|
]),
|
|
52
52
|
_: 1
|
|
@@ -33,7 +33,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
33
33
|
icon: "carbon:event-schedule",
|
|
34
34
|
class: "htw-w-8 htw-h-8 htw-opacity-50 htw-mb-6"
|
|
35
35
|
}),
|
|
36
|
-
_cache[0] || (_cache[0] = createTextVNode(" No event fired "))
|
|
36
|
+
_cache[0] || (_cache[0] = createTextVNode(" No event fired ", -1))
|
|
37
37
|
]),
|
|
38
38
|
_: 1
|
|
39
39
|
})) : (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
@@ -34,17 +34,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
34
34
|
key: 0,
|
|
35
35
|
class: "histoire-story-side-panel histoire-selection"
|
|
36
36
|
}, {
|
|
37
|
-
default: withCtx(() => _cache[0] || (_cache[0] = [
|
|
37
|
+
default: withCtx(() => [..._cache[0] || (_cache[0] = [
|
|
38
38
|
createElementVNode("span", null, "Select a variant", -1)
|
|
39
|
-
])),
|
|
39
|
+
])]),
|
|
40
40
|
_: 1
|
|
41
41
|
})) : !unref(storyStore).currentVariant.configReady || !unref(storyStore).currentVariant.previewReady ? (openBlock(), createBlock(BaseEmpty, {
|
|
42
42
|
key: 1,
|
|
43
43
|
class: "histoire-story-side-panel histoire-loading"
|
|
44
44
|
}, {
|
|
45
|
-
default: withCtx(() => _cache[1] || (_cache[1] = [
|
|
45
|
+
default: withCtx(() => [..._cache[1] || (_cache[1] = [
|
|
46
46
|
createElementVNode("span", null, "Loading...", -1)
|
|
47
|
-
])),
|
|
47
|
+
])]),
|
|
48
48
|
_: 1
|
|
49
49
|
})) : (openBlock(), createBlock(BaseSplitPane, {
|
|
50
50
|
key: 2,
|
|
@@ -26,7 +26,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
26
26
|
},
|
|
27
27
|
setup(__props, { emit: __emit }) {
|
|
28
28
|
useCssVars((_ctx) => ({
|
|
29
|
-
"
|
|
29
|
+
"v1f9aa6ca": __props.result.iconColor
|
|
30
30
|
}));
|
|
31
31
|
const props = __props;
|
|
32
32
|
const emit = __emit;
|
|
@@ -28,26 +28,26 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
28
28
|
return (_ctx, _cache) => {
|
|
29
29
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
30
30
|
createVNode(BaseIcon, {
|
|
31
|
-
icon:
|
|
31
|
+
icon: __props.result.icon ?? defaultIcons[__props.result.kind],
|
|
32
32
|
class: normalizeClass(["htw-w-4 htw-h-4", [
|
|
33
|
-
!
|
|
34
|
-
|
|
35
|
-
"htw-text-primary-500":
|
|
36
|
-
"htw-text-gray-500":
|
|
33
|
+
!__props.selected ? [
|
|
34
|
+
__props.result.iconColor ? "bind-icon-color" : {
|
|
35
|
+
"htw-text-primary-500": __props.result.kind === "story",
|
|
36
|
+
"htw-text-gray-500": __props.result.kind === "variant"
|
|
37
37
|
}
|
|
38
38
|
] : [],
|
|
39
39
|
{
|
|
40
|
-
"colorize-black":
|
|
40
|
+
"colorize-black": __props.selected
|
|
41
41
|
}
|
|
42
42
|
]])
|
|
43
43
|
}, null, 8, ["icon", "class"]),
|
|
44
44
|
createElementVNode("div", _hoisted_1, [
|
|
45
45
|
createElementVNode("div", _hoisted_2, [
|
|
46
|
-
createTextVNode(toDisplayString(
|
|
47
|
-
createElementVNode("span", _hoisted_3, toDisplayString(kindLabels[
|
|
46
|
+
createTextVNode(toDisplayString(__props.result.title) + " ", 1),
|
|
47
|
+
createElementVNode("span", _hoisted_3, toDisplayString(kindLabels[__props.result.kind]), 1)
|
|
48
48
|
]),
|
|
49
|
-
|
|
50
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(
|
|
49
|
+
__props.result.path?.length ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
50
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.result.path, (p, index) => {
|
|
51
51
|
return openBlock(), createElementBlock("div", {
|
|
52
52
|
key: index,
|
|
53
53
|
class: "htw-flex htw-items-center htw-gap-0.5"
|
|
@@ -11,7 +11,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
11
11
|
icon: "carbon:search",
|
|
12
12
|
class: "flex-none htw-w-4 htw-h-4"
|
|
13
13
|
}),
|
|
14
|
-
_cache[0] || (_cache[0] = createTextVNode(" Loading... "))
|
|
14
|
+
_cache[0] || (_cache[0] = createTextVNode(" Loading... ", -1))
|
|
15
15
|
]);
|
|
16
16
|
};
|
|
17
17
|
}
|
|
@@ -249,9 +249,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
249
249
|
key: 0,
|
|
250
250
|
class: "no-animation"
|
|
251
251
|
}, {
|
|
252
|
-
default: withCtx(() => _cache[6] || (_cache[6] = [
|
|
253
|
-
createTextVNode(" No results ")
|
|
254
|
-
])),
|
|
252
|
+
default: withCtx(() => [..._cache[6] || (_cache[6] = [
|
|
253
|
+
createTextVNode(" No results ", -1)
|
|
254
|
+
])]),
|
|
255
255
|
_: 1
|
|
256
256
|
})) : results.value.length ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
257
257
|
(openBlock(true), createElementBlock(Fragment, null, renderList(results.value, (result, index) => {
|
|
@@ -24,7 +24,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
24
24
|
return mountComponent.value ? (openBlock(), createBlock(resolveDynamicComponent(mountComponent.value), mergeProps({
|
|
25
25
|
key: 0,
|
|
26
26
|
class: "histoire-generic-mount-story",
|
|
27
|
-
story:
|
|
27
|
+
story: __props.story
|
|
28
28
|
}, _ctx.$attrs), null, 16, ["story"])) : createCommentVNode("", true);
|
|
29
29
|
};
|
|
30
30
|
}
|
|
@@ -29,7 +29,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
29
29
|
return mountComponent.value ? (openBlock(), createBlock(resolveDynamicComponent(mountComponent.value), mergeProps({
|
|
30
30
|
key: 0,
|
|
31
31
|
class: "histoire-generic-render-story __histoire-render-story",
|
|
32
|
-
story:
|
|
32
|
+
story: __props.story
|
|
33
33
|
}, _ctx.$attrs), null, 16, ["story"])) : createCommentVNode("", true);
|
|
34
34
|
};
|
|
35
35
|
}
|
|
@@ -24,7 +24,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
24
24
|
},
|
|
25
25
|
setup(__props) {
|
|
26
26
|
useCssVars((_ctx) => ({
|
|
27
|
-
"
|
|
27
|
+
"v5f6f4ee9": unref(settings).backgroundColor
|
|
28
28
|
}));
|
|
29
29
|
const props = __props;
|
|
30
30
|
const settings = usePreviewSettingsStore().currentSettings;
|
|
@@ -36,8 +36,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
36
36
|
},
|
|
37
37
|
setup(__props, { emit: __emit }) {
|
|
38
38
|
useCssVars((_ctx) => ({
|
|
39
|
-
"
|
|
40
|
-
"
|
|
39
|
+
"v60afaf4d": unref(variant).iconColor,
|
|
40
|
+
"v3bd99e7e": unref(settings).backgroundColor
|
|
41
41
|
}));
|
|
42
42
|
const props = __props;
|
|
43
43
|
const emit = __emit;
|
|
@@ -31,7 +31,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
31
31
|
},
|
|
32
32
|
setup(__props) {
|
|
33
33
|
useCssVars((_ctx) => ({
|
|
34
|
-
"
|
|
34
|
+
"v41c4d268": variant.value?.iconColor
|
|
35
35
|
}));
|
|
36
36
|
const storyStore = useStoryStore();
|
|
37
37
|
const hasSingleVariant = computed(() => storyStore.currentStory?.variants.length === 1);
|
|
@@ -29,7 +29,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
29
29
|
return (_ctx, _cache) => {
|
|
30
30
|
return openBlock(), createBlock(StoryResponsivePreview, {
|
|
31
31
|
class: "histoire-story-variant-single-preview-native",
|
|
32
|
-
variant:
|
|
32
|
+
variant: __props.variant
|
|
33
33
|
}, {
|
|
34
34
|
default: withCtx(({ isResponsiveEnabled, finalWidth, finalHeight }) => [
|
|
35
35
|
createElementVNode("div", {
|
|
@@ -47,9 +47,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
47
47
|
"data-test-id": "sandbox-render"
|
|
48
48
|
}, [
|
|
49
49
|
(openBlock(), createBlock(_sfc_main$1, {
|
|
50
|
-
key: `${
|
|
51
|
-
variant:
|
|
52
|
-
story:
|
|
50
|
+
key: `${__props.story.id}-${__props.variant.id}`,
|
|
51
|
+
variant: __props.variant,
|
|
52
|
+
story: __props.story,
|
|
53
53
|
class: normalizeClass(["htw-h-full", {
|
|
54
54
|
[unref(histoireConfig).sandboxDarkClass]: unref(isDark),
|
|
55
55
|
// @TODO remove
|
|
@@ -99,7 +99,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
99
99
|
return (_ctx, _cache) => {
|
|
100
100
|
return openBlock(), createBlock(StoryResponsivePreview, {
|
|
101
101
|
class: "histoire-story-variant-single-preview-remote",
|
|
102
|
-
variant:
|
|
102
|
+
variant: __props.variant
|
|
103
103
|
}, {
|
|
104
104
|
default: withCtx(({ isResponsiveEnabled, finalWidth, finalHeight, resizing }) => [
|
|
105
105
|
createElementVNode("iframe", {
|
|
@@ -34,28 +34,28 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
34
34
|
return (_ctx, _cache) => {
|
|
35
35
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
36
36
|
!unref(isMobile) ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
37
|
-
createVNode(_sfc_main$1, { variant:
|
|
38
|
-
!
|
|
37
|
+
createVNode(_sfc_main$1, { variant: __props.variant }, null, 8, ["variant"]),
|
|
38
|
+
!__props.variant.responsiveDisabled ? (openBlock(), createBlock(_sfc_main$2, { key: 0 })) : createCommentVNode("", true),
|
|
39
39
|
createVNode(ToolbarBackground),
|
|
40
40
|
createVNode(_sfc_main$3),
|
|
41
41
|
createVNode(_sfc_main$4, {
|
|
42
|
-
variant:
|
|
43
|
-
story:
|
|
42
|
+
variant: __props.variant,
|
|
43
|
+
story: __props.story
|
|
44
44
|
}, null, 8, ["variant", "story"]),
|
|
45
45
|
_ctx.__HISTOIRE_DEV__ ? (openBlock(), createBlock(_sfc_main$5, {
|
|
46
46
|
key: 1,
|
|
47
|
-
file:
|
|
47
|
+
file: __props.story.file?.filePath,
|
|
48
48
|
tooltip: "Edit story in editor"
|
|
49
49
|
}, null, 8, ["file"])) : createCommentVNode("", true)
|
|
50
50
|
])) : createCommentVNode("", true),
|
|
51
|
-
|
|
51
|
+
__props.story.layout?.iframe === false ? (openBlock(), createBlock(_sfc_main$6, {
|
|
52
52
|
key: 1,
|
|
53
|
-
story:
|
|
54
|
-
variant:
|
|
53
|
+
story: __props.story,
|
|
54
|
+
variant: __props.variant
|
|
55
55
|
}, null, 8, ["story", "variant"])) : (openBlock(), createBlock(_sfc_main$7, {
|
|
56
56
|
key: 2,
|
|
57
|
-
story:
|
|
58
|
-
variant:
|
|
57
|
+
story: __props.story,
|
|
58
|
+
variant: __props.variant
|
|
59
59
|
}, null, 8, ["story", "variant"]))
|
|
60
60
|
]);
|
|
61
61
|
};
|
|
@@ -12,7 +12,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
12
12
|
__name: "StoryViewer",
|
|
13
13
|
setup(__props) {
|
|
14
14
|
useCssVars((_ctx) => ({
|
|
15
|
-
"
|
|
15
|
+
"v0f021d3c": variant.value?.iconColor
|
|
16
16
|
}));
|
|
17
17
|
const storyStore = useStoryStore();
|
|
18
18
|
const variant = computed(() => storyStore.currentVariant);
|
|
@@ -14,14 +14,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
14
14
|
return withDirectives((openBlock(), createElementBlock("a", {
|
|
15
15
|
target: "_blank",
|
|
16
16
|
class: "histoire-toolbar-open-in-editor htw-flex htw-items-center htw-gap-1 htw-h-full htw-px-2 hover:htw-text-primary-500 htw-opacity-50 hover:htw-opacity-100 dark:hover:htw-text-primary-400 htw-text-gray-900 dark:htw-text-gray-100",
|
|
17
|
-
onClick: _cache[0] || (_cache[0] = ($event) => unref(openInEditor)(
|
|
17
|
+
onClick: _cache[0] || (_cache[0] = ($event) => unref(openInEditor)(__props.file))
|
|
18
18
|
}, [
|
|
19
19
|
createVNode(unref(Icon), {
|
|
20
20
|
icon: "carbon:script-reference",
|
|
21
21
|
class: "htw-w-4 htw-h-4"
|
|
22
22
|
})
|
|
23
23
|
])), [
|
|
24
|
-
[_directive_tooltip,
|
|
24
|
+
[_directive_tooltip, __props.tooltip]
|
|
25
25
|
]);
|
|
26
26
|
};
|
|
27
27
|
}
|
|
@@ -21,8 +21,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
21
21
|
__name: "ToolbarBackground",
|
|
22
22
|
setup(__props) {
|
|
23
23
|
useCssVars((_ctx) => ({
|
|
24
|
-
"
|
|
25
|
-
"
|
|
24
|
+
"v627bec82": unref(settings).backgroundColor,
|
|
25
|
+
"v35068428": contrastColor.value
|
|
26
26
|
}));
|
|
27
27
|
const settings = usePreviewSettingsStore().currentSettings;
|
|
28
28
|
const contrastColor = computed(() => getContrastColor(settings));
|
|
@@ -42,9 +42,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
42
42
|
modelValue: unref(settings).checkerboard,
|
|
43
43
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(settings).checkerboard = $event)
|
|
44
44
|
}, {
|
|
45
|
-
default: withCtx(() => _cache[1] || (_cache[1] = [
|
|
46
|
-
createTextVNode(" Checkerboard ")
|
|
47
|
-
])),
|
|
45
|
+
default: withCtx(() => [..._cache[1] || (_cache[1] = [
|
|
46
|
+
createTextVNode(" Checkerboard ", -1)
|
|
47
|
+
])]),
|
|
48
48
|
_: 1
|
|
49
49
|
}, 8, ["modelValue"]),
|
|
50
50
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(histoireConfig).backgroundPresets, (option, index) => {
|
|
@@ -33,9 +33,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
33
33
|
modelValue: unref(settings).rotate,
|
|
34
34
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(settings).rotate = $event)
|
|
35
35
|
}, {
|
|
36
|
-
default: withCtx(() => _cache[3] || (_cache[3] = [
|
|
37
|
-
createTextVNode(" Rotate ")
|
|
38
|
-
])),
|
|
36
|
+
default: withCtx(() => [..._cache[3] || (_cache[3] = [
|
|
37
|
+
createTextVNode(" Rotate ", -1)
|
|
38
|
+
])]),
|
|
39
39
|
_: 1
|
|
40
40
|
}, 8, ["modelValue"]),
|
|
41
41
|
createElementVNode("div", _hoisted_2, [
|
|
@@ -11,12 +11,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
11
11
|
return (_ctx, _cache) => {
|
|
12
12
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
13
13
|
createVNode(unref(Icon), {
|
|
14
|
-
icon:
|
|
14
|
+
icon: __props.variant.icon ?? "carbon:cube",
|
|
15
15
|
class: normalizeClass(["htw-w-4 htw-h-4 htw-opacity-50", [
|
|
16
|
-
|
|
16
|
+
__props.variant.iconColor ? "bind-icon-color" : "htw-text-gray-500"
|
|
17
17
|
]])
|
|
18
18
|
}, null, 8, ["icon", "class"]),
|
|
19
|
-
createElementVNode("span", null, toDisplayString(
|
|
19
|
+
createElementVNode("span", null, toDisplayString(__props.variant.title), 1)
|
|
20
20
|
]);
|
|
21
21
|
};
|
|
22
22
|
}
|
|
@@ -27,7 +27,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
27
27
|
}
|
|
28
28
|
return (_ctx, _cache) => {
|
|
29
29
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
30
|
-
|
|
30
|
+
__props.group.title ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
31
31
|
_cache[0] || (_cache[0] = createElementVNode("div", { class: "htw-h-[1px] htw-bg-gray-500/10 htw-mx-6 htw-mb-2 group-first:htw-hidden" }, null, -1)),
|
|
32
32
|
createElementVNode("div", {
|
|
33
33
|
role: "button",
|
|
@@ -43,11 +43,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
43
43
|
icon: isFolderOpen.value ? "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
|
}, null, 8, ["icon"]),
|
|
46
|
-
createElementVNode("span", _hoisted_2, toDisplayString(
|
|
46
|
+
createElementVNode("span", _hoisted_2, toDisplayString(__props.group.title), 1)
|
|
47
47
|
], 32)
|
|
48
48
|
], 64)) : createCommentVNode("", true),
|
|
49
49
|
isFolderOpen.value ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
50
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(
|
|
50
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.group.children, (element) => {
|
|
51
51
|
return openBlock(), createElementBlock(Fragment, {
|
|
52
52
|
key: element.title
|
|
53
53
|
}, [
|
|
@@ -55,11 +55,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
55
55
|
key: 0,
|
|
56
56
|
path: folderPath.value,
|
|
57
57
|
folder: element,
|
|
58
|
-
stories:
|
|
58
|
+
stories: __props.stories,
|
|
59
59
|
depth: 0
|
|
60
60
|
}, null, 8, ["path", "folder", "stories"])) : (openBlock(), createBlock(StoryListItem, {
|
|
61
61
|
key: 1,
|
|
62
|
-
story:
|
|
62
|
+
story: __props.stories[element.index],
|
|
63
63
|
depth: 0
|
|
64
64
|
}, null, 8, ["story"]))
|
|
65
65
|
], 64);
|
|
@@ -14,21 +14,21 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
14
14
|
setup(__props) {
|
|
15
15
|
return (_ctx, _cache) => {
|
|
16
16
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
17
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(
|
|
17
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.tree, (element) => {
|
|
18
18
|
return openBlock(), createElementBlock(Fragment, {
|
|
19
19
|
key: element.title
|
|
20
20
|
}, [
|
|
21
21
|
element.group ? (openBlock(), createBlock(_sfc_main$1, {
|
|
22
22
|
key: 0,
|
|
23
23
|
group: element,
|
|
24
|
-
stories:
|
|
24
|
+
stories: __props.stories
|
|
25
25
|
}, null, 8, ["group", "stories"])) : element.children ? (openBlock(), createBlock(StoryListFolder, {
|
|
26
26
|
key: 1,
|
|
27
27
|
folder: element,
|
|
28
|
-
stories:
|
|
28
|
+
stories: __props.stories
|
|
29
29
|
}, null, 8, ["folder", "stories"])) : (openBlock(), createBlock(StoryListItem, {
|
|
30
30
|
key: 2,
|
|
31
|
-
story:
|
|
31
|
+
story: __props.stories[element.index]
|
|
32
32
|
}, null, 8, ["story"]))
|
|
33
33
|
], 64);
|
|
34
34
|
}), 128))
|
|
@@ -21,7 +21,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
21
21
|
},
|
|
22
22
|
setup(__props) {
|
|
23
23
|
useCssVars((_ctx) => ({
|
|
24
|
-
"
|
|
24
|
+
"v5352bb71": folderPadding.value
|
|
25
25
|
}));
|
|
26
26
|
const props = __props;
|
|
27
27
|
const folderStore = useFolderStore();
|
|
@@ -55,11 +55,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
55
55
|
}])
|
|
56
56
|
}, null, 8, ["class"])
|
|
57
57
|
]),
|
|
58
|
-
createElementVNode("span", _hoisted_4, toDisplayString(
|
|
58
|
+
createElementVNode("span", _hoisted_4, toDisplayString(__props.folder.title), 1)
|
|
59
59
|
])
|
|
60
60
|
], 32),
|
|
61
61
|
isFolderOpen.value ? (openBlock(), createElementBlock("div", _hoisted_5, [
|
|
62
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(
|
|
62
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.folder.children, (element) => {
|
|
63
63
|
return openBlock(), createElementBlock(Fragment, {
|
|
64
64
|
key: element.title
|
|
65
65
|
}, [
|
|
@@ -67,12 +67,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
67
67
|
key: 0,
|
|
68
68
|
path: folderPath.value,
|
|
69
69
|
folder: element,
|
|
70
|
-
stories:
|
|
71
|
-
depth:
|
|
70
|
+
stories: __props.stories,
|
|
71
|
+
depth: __props.depth + 1
|
|
72
72
|
}, null, 8, ["path", "folder", "stories", "depth"])) : (openBlock(), createBlock(StoryListItem, {
|
|
73
73
|
key: 1,
|
|
74
|
-
story:
|
|
75
|
-
depth:
|
|
74
|
+
story: __props.stories[element.index],
|
|
75
|
+
depth: __props.depth + 1
|
|
76
76
|
}, null, 8, ["story", "depth"]))
|
|
77
77
|
], 64);
|
|
78
78
|
}), 128))
|
|
@@ -18,8 +18,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
18
18
|
},
|
|
19
19
|
setup(__props) {
|
|
20
20
|
useCssVars((_ctx) => ({
|
|
21
|
-
"
|
|
22
|
-
"
|
|
21
|
+
"v2562213a": filePadding.value,
|
|
22
|
+
"v1eff521f": _ctx.story.iconColor
|
|
23
23
|
}));
|
|
24
24
|
const props = __props;
|
|
25
25
|
const filePadding = computed(() => {
|
|
@@ -40,7 +40,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
40
40
|
to: {
|
|
41
41
|
name: "story",
|
|
42
42
|
params: {
|
|
43
|
-
storyId:
|
|
43
|
+
storyId: __props.story.id
|
|
44
44
|
}
|
|
45
45
|
},
|
|
46
46
|
class: "htw-pl-0.5 htw-pr-2 htw-py-2 md:htw-py-1.5 htw-mx-1 htw-rounded-sm"
|
|
@@ -48,15 +48,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
48
48
|
default: withCtx(({ active }) => [
|
|
49
49
|
createElementVNode("span", _hoisted_1, [
|
|
50
50
|
createVNode(unref(Icon), {
|
|
51
|
-
icon:
|
|
51
|
+
icon: __props.story.icon ?? "carbon:cube",
|
|
52
52
|
class: normalizeClass(["htw-w-5 htw-h-5 sm:htw-w-4 sm:htw-h-4 htw-flex-none", {
|
|
53
|
-
"htw-text-primary-500": !active && !
|
|
54
|
-
"bind-icon-color": !active &&
|
|
53
|
+
"htw-text-primary-500": !active && !__props.story.iconColor,
|
|
54
|
+
"bind-icon-color": !active && __props.story.iconColor
|
|
55
55
|
}])
|
|
56
56
|
}, null, 8, ["icon", "class"]),
|
|
57
|
-
createElementVNode("span", _hoisted_2, toDisplayString(
|
|
57
|
+
createElementVNode("span", _hoisted_2, toDisplayString(__props.story.title), 1)
|
|
58
58
|
]),
|
|
59
|
-
!
|
|
59
|
+
!__props.story.docsOnly ? (openBlock(), createElementBlock("span", _hoisted_3, toDisplayString(__props.story.variants.length), 1)) : createCommentVNode("", true)
|
|
60
60
|
]),
|
|
61
61
|
_: 1
|
|
62
62
|
}, 8, ["to"])
|
package/dist/style.css
CHANGED
|
@@ -806,7 +806,7 @@ body {
|
|
|
806
806
|
font-weight:500;
|
|
807
807
|
font-family:inherit;
|
|
808
808
|
color:var(--tw-prose-kbd);
|
|
809
|
-
box-shadow:0 0 0 1px
|
|
809
|
+
box-shadow:0 0 0 1px var(--tw-prose-kbd-shadows), 0 3px 0 var(--tw-prose-kbd-shadows);
|
|
810
810
|
font-size:0.875em;
|
|
811
811
|
border-radius:0.3125rem;
|
|
812
812
|
padding-top:0.1875em;
|
|
@@ -976,7 +976,7 @@ body {
|
|
|
976
976
|
--tw-prose-quote-borders:#e5e7eb;
|
|
977
977
|
--tw-prose-captions:#6b7280;
|
|
978
978
|
--tw-prose-kbd:#111827;
|
|
979
|
-
--tw-prose-kbd-shadows:17 24 39;
|
|
979
|
+
--tw-prose-kbd-shadows:rgb(17 24 39 / 10%);
|
|
980
980
|
--tw-prose-code:#111827;
|
|
981
981
|
--tw-prose-pre-code:#e5e7eb;
|
|
982
982
|
--tw-prose-pre-bg:#1f2937;
|
|
@@ -994,7 +994,7 @@ body {
|
|
|
994
994
|
--tw-prose-invert-quote-borders:rgb(var(--_histoire-color-gray-800));
|
|
995
995
|
--tw-prose-invert-captions:#9ca3af;
|
|
996
996
|
--tw-prose-invert-kbd:#fff;
|
|
997
|
-
--tw-prose-invert-kbd-shadows:255 255 255;
|
|
997
|
+
--tw-prose-invert-kbd-shadows:rgb(255 255 255 / 10%);
|
|
998
998
|
--tw-prose-invert-code:#fff;
|
|
999
999
|
--tw-prose-invert-pre-code:#d1d5db;
|
|
1000
1000
|
--tw-prose-invert-pre-bg:rgb(0 0 0 / 50%);
|
|
@@ -1898,6 +1898,10 @@ body {
|
|
|
1898
1898
|
border-style:solid
|
|
1899
1899
|
}
|
|
1900
1900
|
|
|
1901
|
+
.htw-border-none{
|
|
1902
|
+
border-style:none
|
|
1903
|
+
}
|
|
1904
|
+
|
|
1901
1905
|
.htw-border-black\/20{
|
|
1902
1906
|
border-color:rgb(0 0 0 / 0.2)
|
|
1903
1907
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@histoire/app",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.0-
|
|
4
|
+
"version": "1.0.0-beta.1",
|
|
5
5
|
"description": "Pre-bundled UI for Histoire",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Guillaume Chau"
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"fuse.js": "^7.0.0",
|
|
28
28
|
"shiki": "^3.0.0",
|
|
29
|
-
"@histoire/
|
|
30
|
-
"@histoire/
|
|
31
|
-
"@histoire/shared": "^1.0.0-
|
|
29
|
+
"@histoire/vendors": "^1.0.0-beta.1",
|
|
30
|
+
"@histoire/controls": "^1.0.0-beta.1",
|
|
31
|
+
"@histoire/shared": "^1.0.0-beta.1"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@tailwindcss/typography": "^0.5.15",
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"postcss-import": "^16.1.0",
|
|
46
46
|
"tailwindcss": "^3.4.16",
|
|
47
47
|
"typescript": "5.6.3",
|
|
48
|
-
"vite": "^7.
|
|
49
|
-
"vue": "^3.5.
|
|
48
|
+
"vite": "^7.3.0",
|
|
49
|
+
"vue": "^3.5.26"
|
|
50
50
|
},
|
|
51
51
|
"scripts": {
|
|
52
52
|
"build": "rimraf dist && vite build && pnpm run build:css && node ./scripts/copy.mjs",
|