@histoire/app 0.11.5 → 0.11.6
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-vue.pcss → floating.pcss} +0 -0
- package/dist/app/style/main.pcss +46 -44
- package/dist/app/style/sandbox.css +1 -1
- package/dist/bundle-main-dev.js +4 -0
- package/dist/bundle-sandbox-dev.js +2 -0
- package/dist/bundled/App.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/bundled/components/HomeView.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/bundled/components/app/AppHeader.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/bundled/components/app/AppLogo.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/bundled/components/app/Breadcrumb.js +2 -2
- package/dist/bundled/components/app/Breadcrumb.vue_vue_type_script_setup_true_lang.js +10 -9
- package/dist/bundled/components/app/Breadcrumb.vue_vue_type_style_index_0_scoped_36846ccf_lang.js +4 -0
- package/dist/bundled/components/app/InitialLoading.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/bundled/components/app/MobileOverlay.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/bundled/components/base/BaseCheckbox.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/bundled/components/base/BaseEmpty.js +4 -4
- package/dist/bundled/components/base/BaseEmpty.vue_vue_type_style_index_0_scoped_c5ecfead_lang.js +4 -0
- package/dist/bundled/components/base/BaseListItemLink.js +1 -1
- package/dist/bundled/components/base/BaseOverflowMenu.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/bundled/components/base/BaseOverflowTab.js +1 -1
- package/dist/bundled/components/base/BaseSelect.vue_vue_type_script_setup_true_lang.js +4 -1
- package/dist/bundled/components/base/BaseSplitPane.js +2 -2
- package/dist/bundled/components/base/BaseSplitPane.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/bundled/components/base/BaseSplitPane.vue_vue_type_style_index_0_scoped_ed925107_lang.js +4 -0
- package/dist/bundled/components/base/BaseTab.js +1 -1
- package/dist/bundled/components/base/BaseTag.js +13 -0
- package/dist/bundled/components/panel/ControlsComponentPropItem.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/bundled/components/panel/ControlsComponentProps.vue_vue_type_script_setup_true_lang.js +8 -7
- package/dist/bundled/components/panel/PaneTabs.vue_vue_type_script_setup_true_lang.js +15 -12
- package/dist/bundled/components/panel/StatePresets.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/bundled/components/panel/StoryControls.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/bundled/components/panel/StoryDocs.vue_vue_type_script_setup_true_lang.js +17 -2
- package/dist/bundled/components/panel/StoryEvent.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/bundled/components/panel/StoryEvents.vue_vue_type_script_setup_true_lang.js +2 -1
- package/dist/bundled/components/panel/StorySidePanel.vue_vue_type_script_setup_true_lang.js +9 -3
- package/dist/bundled/components/panel/StorySourceCode.js +2 -2
- package/dist/bundled/components/panel/StorySourceCode.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/bundled/components/panel/StorySourceCode.vue_vue_type_style_index_0_scoped_36810e45_lang.js +4 -0
- package/dist/bundled/components/search/SearchItem.js +2 -2
- package/dist/bundled/components/search/SearchItem.vue_vue_type_script_setup_true_lang.js +3 -2
- package/dist/bundled/components/search/SearchItem.vue_vue_type_style_index_0_scoped_d95fcb03_lang.js +4 -0
- package/dist/bundled/components/search/SearchLoading.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/bundled/components/search/SearchModal.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/bundled/components/search/SearchPane.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/bundled/components/story/GenericMountStory.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/bundled/components/story/GenericRenderStory.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/bundled/components/story/StoryResponsivePreview.js +2 -2
- package/dist/bundled/components/story/StoryResponsivePreview.vue_vue_type_script_setup_true_lang.js +41 -12
- package/dist/bundled/components/story/StoryResponsivePreview.vue_vue_type_style_index_0_scoped_a83b1911_lang.js +4 -0
- package/dist/bundled/components/story/StoryVariantGrid.vue_vue_type_script_setup_true_lang.js +4 -1
- package/dist/bundled/components/story/StoryVariantGridItem.js +2 -2
- package/dist/bundled/components/story/StoryVariantGridItem.vue_vue_type_script_setup_true_lang.js +21 -9
- package/dist/bundled/components/story/StoryVariantGridItem.vue_vue_type_style_index_0_scoped_f7c98176_lang.js +4 -0
- package/dist/bundled/components/story/StoryVariantListItem.js +2 -2
- package/dist/bundled/components/story/StoryVariantListItem.vue_vue_type_script_setup_true_lang.js +3 -2
- package/dist/bundled/components/story/StoryVariantListItem.vue_vue_type_style_index_0_scoped_ab890d9c_lang.js +4 -0
- package/dist/bundled/components/story/StoryVariantSingle.js +2 -2
- package/dist/bundled/components/story/StoryVariantSingle.vue_vue_type_script_setup_true_lang.js +3 -3
- package/dist/bundled/components/story/StoryVariantSingle.vue_vue_type_style_index_0_scoped_ddfc5b4f_lang.js +4 -0
- package/dist/bundled/components/story/StoryVariantSinglePreviewNative.vue_vue_type_script_setup_true_lang.js +19 -7
- package/dist/bundled/components/story/StoryVariantSinglePreviewRemote.vue_vue_type_script_setup_true_lang.js +4 -1
- package/dist/bundled/components/story/StoryVariantSingleView.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/bundled/components/story/StoryView.vue_vue_type_script_setup_true_lang.js +5 -2
- package/dist/bundled/components/story/StoryViewer.js +2 -2
- package/dist/bundled/components/story/StoryViewer.vue_vue_type_script_setup_true_lang.js +3 -3
- package/dist/bundled/components/story/StoryViewer.vue_vue_type_style_index_0_scoped_6046525f_lang.js +4 -0
- package/dist/bundled/components/toolbar/ToolbarBackground.js +2 -2
- package/dist/bundled/components/toolbar/ToolbarBackground.vue_vue_type_script_setup_true_lang.js +32 -18
- package/dist/bundled/components/toolbar/ToolbarBackground.vue_vue_type_style_index_0_scoped_c48fb2b2_lang.js +4 -0
- package/dist/bundled/components/toolbar/ToolbarNewTab.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/bundled/components/toolbar/ToolbarResponsiveSize.vue_vue_type_script_setup_true_lang.js +3 -3
- package/dist/bundled/components/toolbar/ToolbarTextDirection.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/bundled/components/toolbar/ToolbarTitle.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/bundled/components/tree/StoryGroup.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/bundled/components/tree/StoryList.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/bundled/components/tree/StoryListFolder.js +2 -2
- package/dist/bundled/components/tree/StoryListFolder.vue_vue_type_script_setup_true_lang.js +6 -3
- package/dist/bundled/components/tree/StoryListFolder.vue_vue_type_style_index_0_scoped_2fedbe45_lang.js +4 -0
- package/dist/bundled/components/tree/StoryListItem.js +2 -2
- package/dist/bundled/components/tree/StoryListItem.vue_vue_type_script_setup_true_lang.js +5 -4
- package/dist/bundled/components/tree/StoryListItem.vue_vue_type_style_index_0_scoped_19810958_lang.js +4 -0
- package/dist/bundled/style.css +48 -47
- package/dist/bundled/util/preview-settings.js +11 -0
- package/dist/style.css +55 -55
- package/package.json +4 -4
- package/src/app/App.vue +1 -1
- package/src/app/components/HomeView.vue +1 -1
- package/src/app/components/app/AppHeader.vue +1 -1
- package/src/app/components/app/AppLogo.vue +1 -0
- package/src/app/components/app/Breadcrumb.vue +1 -1
- package/src/app/components/app/InitialLoading.vue +1 -1
- package/src/app/components/app/MobileOverlay.vue +1 -1
- package/src/app/components/base/BaseCheckbox.vue +1 -1
- package/src/app/components/base/BaseCopyIcon.vue +1 -1
- package/src/app/components/base/BaseEmpty.vue +1 -1
- package/src/app/components/base/BaseListItemLink.vue +1 -0
- package/src/app/components/base/BaseOverflowMenu.vue +1 -1
- package/src/app/components/base/BaseOverflowTab.vue +1 -0
- package/src/app/components/base/BaseSelect.vue +1 -0
- package/src/app/components/base/BaseSplitPane.vue +1 -1
- package/src/app/components/base/BaseTab.vue +1 -0
- package/src/app/components/base/BaseTag.vue +5 -0
- package/src/app/components/panel/ControlsComponentPropItem.vue +1 -0
- package/src/app/components/panel/ControlsComponentProps.vue +1 -1
- package/src/app/components/panel/PaneTabs.vue +7 -12
- package/src/app/components/panel/StatePresets.vue +1 -1
- package/src/app/components/panel/StoryControls.vue +1 -1
- package/src/app/components/panel/StoryDocs.vue +30 -1
- package/src/app/components/panel/StoryEvent.vue +1 -1
- package/src/app/components/panel/StoryEvents.vue +4 -1
- package/src/app/components/panel/StorySidePanel.vue +9 -3
- package/src/app/components/panel/StorySourceCode.vue +1 -1
- package/src/app/components/search/SearchItem.vue +1 -0
- package/src/app/components/search/SearchLoading.vue +1 -1
- package/src/app/components/search/SearchModal.vue +1 -1
- package/src/app/components/search/SearchPane.vue +1 -1
- package/src/app/components/story/GenericMountStory.vue +1 -0
- package/src/app/components/story/GenericRenderStory.vue +1 -0
- package/src/app/components/story/StoryResponsivePreview.vue +11 -2
- package/src/app/components/story/StoryVariantGrid.vue +5 -1
- package/src/app/components/story/StoryVariantGridItem.vue +18 -4
- package/src/app/components/story/StoryVariantListItem.vue +1 -0
- package/src/app/components/story/StoryVariantSingle.vue +1 -1
- package/src/app/components/story/StoryVariantSinglePreviewNative.vue +17 -5
- package/src/app/components/story/StoryVariantSinglePreviewRemote.vue +1 -0
- package/src/app/components/story/StoryVariantSingleView.vue +1 -1
- package/src/app/components/story/StoryView.vue +5 -2
- package/src/app/components/story/StoryViewer.vue +1 -1
- package/src/app/components/toolbar/ToolbarBackground.vue +21 -7
- package/src/app/components/toolbar/ToolbarNewTab.vue +1 -1
- package/src/app/components/toolbar/ToolbarResponsiveSize.vue +3 -3
- package/src/app/components/toolbar/ToolbarTextDirection.vue +1 -1
- package/src/app/components/toolbar/ToolbarTitle.vue +1 -1
- package/src/app/components/tree/StoryGroup.vue +1 -1
- package/src/app/components/tree/StoryList.vue +1 -1
- package/src/app/components/tree/StoryListFolder.vue +4 -1
- package/src/app/components/tree/StoryListItem.vue +1 -0
- package/src/app/style/{floating-vue.pcss → floating.pcss} +0 -0
- package/src/app/style/main.pcss +46 -44
- package/src/app/style/sandbox.css +1 -1
- package/src/app/util/preview-settings.ts +13 -0
- package/src/bundle-main-dev.js +4 -0
- package/src/bundle-sandbox-dev.js +2 -0
- package/tailwind.config.cjs +1 -1
- package/dist/bundled/components/app/Breadcrumb.vue_vue_type_style_index_0_scoped_3c779b73_lang.js +0 -4
- package/dist/bundled/components/base/BaseEmpty.vue_vue_type_style_index_0_scoped_af3328a6_lang.js +0 -4
- package/dist/bundled/components/base/BaseSplitPane.vue_vue_type_style_index_0_scoped_bb6c600c_lang.js +0 -4
- package/dist/bundled/components/panel/StorySourceCode.vue_vue_type_style_index_0_scoped_0d096b10_lang.js +0 -4
- package/dist/bundled/components/search/SearchItem.vue_vue_type_style_index_0_scoped_b819ed97_lang.js +0 -4
- package/dist/bundled/components/story/StoryResponsivePreview.vue_vue_type_style_index_0_scoped_1375d05a_lang.js +0 -4
- package/dist/bundled/components/story/StoryVariantGridItem.vue_vue_type_style_index_0_scoped_601cc357_lang.js +0 -4
- package/dist/bundled/components/story/StoryVariantListItem.vue_vue_type_style_index_0_scoped_02816158_lang.js +0 -4
- package/dist/bundled/components/story/StoryVariantSingle.vue_vue_type_style_index_0_scoped_89489ae4_lang.js +0 -4
- package/dist/bundled/components/story/StoryViewer.vue_vue_type_style_index_0_scoped_54d5a557_lang.js +0 -4
- package/dist/bundled/components/toolbar/ToolbarBackground.vue_vue_type_style_index_0_scoped_8d0cb17e_lang.js +0 -4
- package/dist/bundled/components/tree/StoryListFolder.vue_vue_type_style_index_0_scoped_41fb5f7e_lang.js +0 -4
- package/dist/bundled/components/tree/StoryListItem.vue_vue_type_style_index_0_scoped_d1a05247_lang.js +0 -4
package/dist/bundled/components/toolbar/ToolbarBackground.vue_vue_type_script_setup_true_lang.js
CHANGED
|
@@ -1,23 +1,31 @@
|
|
|
1
|
-
import { defineComponent, useCssVars, unref, resolveComponent, resolveDirective, openBlock, createBlock, withCtx, createElementVNode, createVNode, createTextVNode, createElementBlock, Fragment, renderList, normalizeClass, toDisplayString, normalizeStyle, createCommentVNode, withDirectives, pushScopeId, popScopeId } from "@histoire/vendors/vue";
|
|
1
|
+
import { defineComponent, useCssVars, unref, computed, resolveComponent, resolveDirective, openBlock, createBlock, withCtx, createElementVNode, createVNode, createTextVNode, createElementBlock, Fragment, renderList, normalizeClass, toDisplayString, normalizeStyle, createCommentVNode, withDirectives, pushScopeId, popScopeId } from "@histoire/vendors/vue";
|
|
2
2
|
import { Icon } from "@histoire/vendors/iconify";
|
|
3
3
|
import { usePreviewSettingsStore } from "../../stores/preview-settings.js";
|
|
4
4
|
import { histoireConfig } from "../../util/config.js";
|
|
5
|
+
import { getContrastColor } from "../../util/preview-settings.js";
|
|
5
6
|
import "../base/BaseCheckbox.js";
|
|
6
7
|
import _sfc_main$1 from "../base/BaseCheckbox.vue_vue_type_script_setup_true_lang.js";
|
|
7
|
-
const _withScopeId = (n) => (pushScopeId("data-v-
|
|
8
|
+
const _withScopeId = (n) => (pushScopeId("data-v-c48fb2b2"), n = n(), popScopeId(), n);
|
|
8
9
|
const _hoisted_1 = { class: "htw-cursor-pointer hover:htw-text-primary-500 htw-flex htw-items-center htw-gap-1 htw-h-full htw-px-2 htw-group" };
|
|
9
|
-
const _hoisted_2 =
|
|
10
|
-
const _hoisted_3 = {
|
|
11
|
-
const _hoisted_4 =
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
const _hoisted_2 = { class: "bind-preview-bg htw-w-4 htw-h-4 htw-rounded-full htw-border htw-border-black/50 dark:htw-border-white/50 htw-flex htw-items-center htw-justify-center htw-text-xs" };
|
|
11
|
+
const _hoisted_3 = { key: 0 };
|
|
12
|
+
const _hoisted_4 = {
|
|
13
|
+
class: "htw-flex htw-flex-col htw-items-stretch",
|
|
14
|
+
"data-test-id": "background-popper"
|
|
15
|
+
};
|
|
16
|
+
const _hoisted_5 = ["onClick"];
|
|
17
|
+
const _hoisted_6 = { class: "htw-mr-auto" };
|
|
18
|
+
const _hoisted_7 = { class: "htw-ml-auto htw-opacity-70" };
|
|
19
|
+
const _hoisted_8 = { key: 0 };
|
|
14
20
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
15
21
|
__name: "ToolbarBackground",
|
|
16
22
|
setup(__props) {
|
|
17
23
|
useCssVars((_ctx) => ({
|
|
18
|
-
"
|
|
24
|
+
"627bec82": unref(settings).backgroundColor,
|
|
25
|
+
"35068428": unref(contrastColor)
|
|
19
26
|
}));
|
|
20
27
|
const settings = usePreviewSettingsStore().currentSettings;
|
|
28
|
+
const contrastColor = computed(() => getContrastColor(settings));
|
|
21
29
|
return (_ctx, _cache) => {
|
|
22
30
|
const _component_VDropdown = resolveComponent("VDropdown");
|
|
23
31
|
const _directive_tooltip = resolveDirective("tooltip");
|
|
@@ -25,10 +33,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
25
33
|
key: 0,
|
|
26
34
|
placement: "bottom-end",
|
|
27
35
|
skidding: 6,
|
|
28
|
-
class: "htw-h-full htw-flex-none"
|
|
36
|
+
class: "histoire-toolbar-background htw-h-full htw-flex-none",
|
|
37
|
+
"data-test-id": "toolbar-background"
|
|
29
38
|
}, {
|
|
30
39
|
popper: withCtx(({ hide }) => [
|
|
31
|
-
createElementVNode("div",
|
|
40
|
+
createElementVNode("div", _hoisted_4, [
|
|
32
41
|
createVNode(_sfc_main$1, {
|
|
33
42
|
modelValue: unref(settings).checkerboard,
|
|
34
43
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(settings).checkerboard = $event)
|
|
@@ -41,7 +50,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
41
50
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(histoireConfig).backgroundPresets, (option, index) => {
|
|
42
51
|
return openBlock(), createElementBlock("button", {
|
|
43
52
|
key: index,
|
|
44
|
-
class: normalizeClass(["htw-px-4 htw-py-3 htw-cursor-pointer htw-text-left htw-flex htw-gap-4", [
|
|
53
|
+
class: normalizeClass(["htw-px-4 htw-py-3 htw-cursor-pointer htw-text-left htw-flex htw-items-baseline htw-gap-4", [
|
|
45
54
|
unref(settings).backgroundColor === option.color ? "htw-bg-primary-500 hover:htw-bg-primary-600 htw-text-white dark:htw-text-black" : "htw-bg-transparent hover:htw-bg-primary-100 dark:hover:htw-bg-primary-700"
|
|
46
55
|
]]),
|
|
47
56
|
onClick: ($event) => {
|
|
@@ -49,23 +58,28 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
49
58
|
hide();
|
|
50
59
|
}
|
|
51
60
|
}, [
|
|
52
|
-
createElementVNode("span",
|
|
61
|
+
createElementVNode("span", _hoisted_6, toDisplayString(option.label), 1),
|
|
53
62
|
option.color !== "$checkerboard" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
54
|
-
createElementVNode("span",
|
|
63
|
+
createElementVNode("span", _hoisted_7, toDisplayString(option.color), 1),
|
|
55
64
|
createElementVNode("div", {
|
|
56
|
-
class: "htw-w-4 htw-h-4 htw-rounded-full htw-border htw-border-black/20 dark:htw-border-white/20",
|
|
65
|
+
class: "htw-w-4 htw-h-4 htw-rounded-full htw-border htw-border-black/20 dark:htw-border-white/20 htw-flex htw-items-center htw-justify-center htw-text-xs",
|
|
57
66
|
style: normalizeStyle({
|
|
58
|
-
backgroundColor: option.color
|
|
67
|
+
backgroundColor: option.color,
|
|
68
|
+
color: option.contrastColor
|
|
59
69
|
})
|
|
60
|
-
},
|
|
70
|
+
}, [
|
|
71
|
+
option.contrastColor ? (openBlock(), createElementBlock("span", _hoisted_8, "a")) : createCommentVNode("", true)
|
|
72
|
+
], 4)
|
|
61
73
|
], 64)) : createCommentVNode("", true)
|
|
62
|
-
], 10,
|
|
74
|
+
], 10, _hoisted_5);
|
|
63
75
|
}), 128))
|
|
64
76
|
])
|
|
65
77
|
]),
|
|
66
78
|
default: withCtx(() => [
|
|
67
79
|
withDirectives((openBlock(), createElementBlock("div", _hoisted_1, [
|
|
68
|
-
_hoisted_2,
|
|
80
|
+
createElementVNode("div", _hoisted_2, [
|
|
81
|
+
unref(contrastColor) ? (openBlock(), createElementBlock("span", _hoisted_3, "a")) : createCommentVNode("", true)
|
|
82
|
+
]),
|
|
69
83
|
createVNode(unref(Icon), {
|
|
70
84
|
icon: "carbon:caret-down",
|
|
71
85
|
class: "htw-w-4 htw-h-4 htw-opacity-50 group-hover:htw-opacity-100"
|
package/dist/bundled/components/toolbar/ToolbarNewTab.vue_vue_type_script_setup_true_lang.js
CHANGED
|
@@ -18,7 +18,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
18
18
|
return withDirectives((openBlock(), createElementBlock("a", {
|
|
19
19
|
href: unref(sandboxUrl),
|
|
20
20
|
target: "_blank",
|
|
21
|
-
class: "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"
|
|
21
|
+
class: "histoire-toolbar-new-tab 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"
|
|
22
22
|
}, [
|
|
23
23
|
createVNode(unref(Icon), {
|
|
24
24
|
icon: "carbon:launch",
|
package/dist/bundled/components/toolbar/ToolbarResponsiveSize.vue_vue_type_script_setup_true_lang.js
CHANGED
|
@@ -5,8 +5,8 @@ import { histoireConfig } from "../../util/config.js";
|
|
|
5
5
|
import "../base/BaseCheckbox.js";
|
|
6
6
|
import _sfc_main$1 from "../base/BaseCheckbox.vue_vue_type_script_setup_true_lang.js";
|
|
7
7
|
const _hoisted_1 = { class: "htw-flex htw-flex-col htw-items-stretch" };
|
|
8
|
-
const _hoisted_2 = { class: "htw-flex htw-gap-2 htw-px-4 htw-py-3" };
|
|
9
|
-
const _hoisted_3 = /* @__PURE__ */ createElementVNode("span", { class: "htw-opacity-50" }, "
|
|
8
|
+
const _hoisted_2 = { class: "htw-flex htw-items-center htw-gap-2 htw-px-4 htw-py-3" };
|
|
9
|
+
const _hoisted_3 = /* @__PURE__ */ createElementVNode("span", { class: "htw-opacity-50" }, "\xD7", -1);
|
|
10
10
|
const _hoisted_4 = ["onClick"];
|
|
11
11
|
const _hoisted_5 = { class: "htw-ml-auto htw-opacity-70 htw-flex htw-gap-1" };
|
|
12
12
|
const _hoisted_6 = { key: 0 };
|
|
@@ -26,7 +26,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
26
26
|
placement: "bottom-end",
|
|
27
27
|
skidding: 6,
|
|
28
28
|
disabled: !((_a = unref(histoireConfig).responsivePresets) == null ? void 0 : _a.length),
|
|
29
|
-
class: "htw-h-full htw-flex-none"
|
|
29
|
+
class: "histoire-toolbar-responsive-size htw-h-full htw-flex-none"
|
|
30
30
|
}, {
|
|
31
31
|
popper: withCtx(({ hide }) => [
|
|
32
32
|
createElementVNode("div", _hoisted_1, [
|
package/dist/bundled/components/toolbar/ToolbarTextDirection.vue_vue_type_script_setup_true_lang.js
CHANGED
|
@@ -8,7 +8,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
8
8
|
return (_ctx, _cache) => {
|
|
9
9
|
const _directive_tooltip = resolveDirective("tooltip");
|
|
10
10
|
return withDirectives((openBlock(), createElementBlock("a", {
|
|
11
|
-
class: "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",
|
|
11
|
+
class: "histoire-toolbar-text-direction 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",
|
|
12
12
|
onClick: _cache[0] || (_cache[0] = ($event) => unref(settings).textDirection = unref(settings).textDirection === "ltr" ? "rtl" : "ltr")
|
|
13
13
|
}, [
|
|
14
14
|
createVNode(unref(Icon), {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, openBlock, createElementBlock, createVNode, unref, normalizeClass, createElementVNode, toDisplayString } from "@histoire/vendors/vue";
|
|
2
2
|
import { Icon } from "@histoire/vendors/iconify";
|
|
3
|
-
const _hoisted_1 = { class: "htw-flex htw-items-center htw-gap-1 htw-text-gray-500 htw-flex-1 htw-truncate htw-min-w-0" };
|
|
3
|
+
const _hoisted_1 = { class: "histoire-toolbar-title htw-flex htw-items-center htw-gap-1 htw-text-gray-500 htw-flex-1 htw-truncate htw-min-w-0" };
|
|
4
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
5
|
__name: "ToolbarTitle",
|
|
6
6
|
props: {
|
|
@@ -5,7 +5,7 @@ import { Icon } from "@histoire/vendors/iconify";
|
|
|
5
5
|
import { useFolderStore } from "../../stores/folder.js";
|
|
6
6
|
const _hoisted_1 = {
|
|
7
7
|
"data-test-id": "story-group",
|
|
8
|
-
class: "htw-my-2 first:htw-mt-0 last:htw-mb-0"
|
|
8
|
+
class: "histoire-story-group htw-my-2 first:htw-mt-0 last:htw-mb-0"
|
|
9
9
|
};
|
|
10
10
|
const _hoisted_2 = ["onKeyup"];
|
|
11
11
|
const _hoisted_3 = { class: "htw-truncate htw-opacity-50" };
|
|
@@ -3,7 +3,7 @@ import StoryListItem from "./StoryListItem.js";
|
|
|
3
3
|
import StoryListFolder from "./StoryListFolder.js";
|
|
4
4
|
import "./StoryGroup.js";
|
|
5
5
|
import _sfc_main$1 from "./StoryGroup.vue_vue_type_script_setup_true_lang.js";
|
|
6
|
-
const _hoisted_1 = { class: "htw-overflow-y-auto" };
|
|
6
|
+
const _hoisted_1 = { class: "histoire-story-list htw-overflow-y-auto" };
|
|
7
7
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
8
|
__name: "StoryList",
|
|
9
9
|
props: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./StoryListFolder.vue_vue_type_script_setup_true_lang.js";
|
|
2
|
-
import "./StoryListFolder.
|
|
2
|
+
import "./StoryListFolder.vue_vue_type_style_index_0_scoped_2fedbe45_lang.js";
|
|
3
3
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const StoryListFolder = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const StoryListFolder = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-2fedbe45"]]);
|
|
5
5
|
export {
|
|
6
6
|
StoryListFolder as default
|
|
7
7
|
};
|
|
@@ -2,8 +2,11 @@ import { pushScopeId, popScopeId, defineComponent, useCssVars, unref, computed,
|
|
|
2
2
|
import StoryListItem from "./StoryListItem.js";
|
|
3
3
|
import { Icon } from "@histoire/vendors/iconify";
|
|
4
4
|
import { useFolderStore } from "../../stores/folder.js";
|
|
5
|
-
const _withScopeId = (n) => (pushScopeId("data-v-
|
|
6
|
-
const _hoisted_1 = {
|
|
5
|
+
const _withScopeId = (n) => (pushScopeId("data-v-2fedbe45"), n = n(), popScopeId(), n);
|
|
6
|
+
const _hoisted_1 = {
|
|
7
|
+
"data-test-id": "story-list-folder",
|
|
8
|
+
class: "histoire-story-list-folder"
|
|
9
|
+
};
|
|
7
10
|
const _hoisted_2 = ["onKeyup"];
|
|
8
11
|
const _hoisted_3 = { class: "bind-tree-padding htw-flex htw-items-center htw-gap-2 htw-min-w-0" };
|
|
9
12
|
const _hoisted_4 = { class: "htw-flex htw-flex-none htw-items-center" };
|
|
@@ -20,7 +23,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
20
23
|
setup(__props) {
|
|
21
24
|
const props = __props;
|
|
22
25
|
useCssVars((_ctx) => ({
|
|
23
|
-
"
|
|
26
|
+
"29654456": unref(folderPadding)
|
|
24
27
|
}));
|
|
25
28
|
const folderStore = useFolderStore();
|
|
26
29
|
const folderPath = computed(() => [...props.path, props.folder.title]);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./StoryListItem.vue_vue_type_script_setup_true_lang.js";
|
|
2
|
-
import "./StoryListItem.
|
|
2
|
+
import "./StoryListItem.vue_vue_type_style_index_0_scoped_19810958_lang.js";
|
|
3
3
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const StoryListItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const StoryListItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-19810958"]]);
|
|
5
5
|
export {
|
|
6
6
|
StoryListItem as default
|
|
7
7
|
};
|
|
@@ -3,7 +3,7 @@ import BaseListItemLink from "../base/BaseListItemLink.js";
|
|
|
3
3
|
import { Icon } from "@histoire/vendors/iconify";
|
|
4
4
|
import { useRoute } from "@histoire/vendors/vue-router";
|
|
5
5
|
import { useScrollOnActive } from "../../util/scroll.js";
|
|
6
|
-
const _withScopeId = (n) => (pushScopeId("data-v-
|
|
6
|
+
const _withScopeId = (n) => (pushScopeId("data-v-19810958"), n = n(), popScopeId(), n);
|
|
7
7
|
const _hoisted_1 = { class: "bind-tree-margin htw-flex htw-items-center htw-gap-2 htw-pl-4 htw-min-w-0" };
|
|
8
8
|
const _hoisted_2 = { class: "htw-truncate" };
|
|
9
9
|
const _hoisted_3 = {
|
|
@@ -19,8 +19,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
19
19
|
setup(__props) {
|
|
20
20
|
const props = __props;
|
|
21
21
|
useCssVars((_ctx) => ({
|
|
22
|
-
"
|
|
23
|
-
"
|
|
22
|
+
"444efc12": unref(filePadding),
|
|
23
|
+
"ae892164": __props.story.iconColor
|
|
24
24
|
}));
|
|
25
25
|
const filePadding = computed(() => {
|
|
26
26
|
return props.depth * 12 + "px";
|
|
@@ -33,7 +33,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
33
33
|
return openBlock(), createElementBlock("div", {
|
|
34
34
|
ref_key: "el",
|
|
35
35
|
ref: el,
|
|
36
|
-
"data-test-id": "story-list-item"
|
|
36
|
+
"data-test-id": "story-list-item",
|
|
37
|
+
class: "histoire-story-list-item"
|
|
37
38
|
}, [
|
|
38
39
|
createVNode(BaseListItemLink, {
|
|
39
40
|
to: {
|
package/dist/bundled/style.css
CHANGED
|
@@ -1,90 +1,91 @@
|
|
|
1
1
|
|
|
2
|
-
.
|
|
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
|
+
|
|
14
|
+
.landscape > div > .dragger[data-v-ed925107] {
|
|
3
15
|
width: .625rem;
|
|
4
16
|
}
|
|
5
|
-
.portrait > div > .dragger[data-v-
|
|
17
|
+
.portrait > div > .dragger[data-v-ed925107] {
|
|
6
18
|
height: .625rem;
|
|
7
19
|
}
|
|
8
|
-
.landscape > div > .dragger.dragger-offset-before[data-v-
|
|
20
|
+
.landscape > div > .dragger.dragger-offset-before[data-v-ed925107] {
|
|
9
21
|
right: 0;
|
|
10
22
|
}
|
|
11
|
-
.portrait > div > .dragger.dragger-offset-before[data-v-
|
|
23
|
+
.portrait > div > .dragger.dragger-offset-before[data-v-ed925107] {
|
|
12
24
|
bottom: 0;
|
|
13
25
|
}
|
|
14
|
-
.landscape > div > .dragger.dragger-offset-center[data-v-
|
|
26
|
+
.landscape > div > .dragger.dragger-offset-center[data-v-ed925107] {
|
|
15
27
|
right: -.3125rem;
|
|
16
28
|
}
|
|
17
|
-
.portrait > div > .dragger.dragger-offset-center[data-v-
|
|
29
|
+
.portrait > div > .dragger.dragger-offset-center[data-v-ed925107] {
|
|
18
30
|
bottom: -.3125rem;
|
|
19
31
|
}
|
|
20
|
-
.landscape > div > .dragger.dragger-offset-after[data-v-
|
|
32
|
+
.landscape > div > .dragger.dragger-offset-after[data-v-ed925107] {
|
|
21
33
|
right: -.625rem;
|
|
22
34
|
}
|
|
23
|
-
.portrait > div > .dragger.dragger-offset-after[data-v-
|
|
35
|
+
.portrait > div > .dragger.dragger-offset-after[data-v-ed925107] {
|
|
24
36
|
bottom: -.625rem;
|
|
25
37
|
}
|
|
26
38
|
|
|
27
|
-
.bind-icon-color[data-v-
|
|
28
|
-
color: var(--
|
|
39
|
+
.bind-icon-color[data-v-36846ccf] {
|
|
40
|
+
color: var(--5792748b);
|
|
29
41
|
}
|
|
30
42
|
|
|
31
|
-
.
|
|
32
|
-
|
|
33
|
-
}
|
|
34
|
-
@keyframes htw-base-empty-af3328a6 {
|
|
35
|
-
0% {
|
|
36
|
-
opacity: 0;
|
|
37
|
-
}
|
|
38
|
-
100% {
|
|
39
|
-
opacity: 1;
|
|
40
|
-
}
|
|
43
|
+
.bind-icon-color[data-v-6046525f] {
|
|
44
|
+
color: var(--663732b6);
|
|
41
45
|
}
|
|
42
46
|
|
|
43
|
-
.bind-
|
|
44
|
-
|
|
47
|
+
.bind-tree-padding[data-v-2fedbe45] {
|
|
48
|
+
padding-left: var(--29654456);
|
|
45
49
|
}
|
|
46
50
|
|
|
47
|
-
.bind-tree-margin[data-v-
|
|
48
|
-
margin-left: var(--
|
|
51
|
+
.bind-tree-margin[data-v-19810958] {
|
|
52
|
+
margin-left: var(--444efc12);
|
|
49
53
|
}
|
|
50
|
-
.bind-icon-color[data-v-
|
|
51
|
-
color: var(--
|
|
54
|
+
.bind-icon-color[data-v-19810958] {
|
|
55
|
+
color: var(--ae892164);
|
|
52
56
|
}
|
|
53
57
|
|
|
54
|
-
.
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
.bind-icon-color[data-v-02816158] {
|
|
59
|
-
color: var(--36260edc);
|
|
58
|
+
.__histoire-code-placeholder[data-v-36810e45] {
|
|
59
|
+
color: inherit;
|
|
60
|
+
font-size: inherit;
|
|
60
61
|
}
|
|
61
62
|
|
|
62
|
-
.bind-icon-color[data-v-
|
|
63
|
-
color: var(--
|
|
63
|
+
.bind-icon-color[data-v-ab890d9c] {
|
|
64
|
+
color: var(--89126aaa);
|
|
64
65
|
}
|
|
65
66
|
|
|
66
|
-
.
|
|
67
|
-
color:
|
|
68
|
-
font-size: inherit;
|
|
67
|
+
.bind-icon-color[data-v-ddfc5b4f] {
|
|
68
|
+
color: var(--4d25d048);
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
-
.bind-
|
|
72
|
-
color: var(--
|
|
71
|
+
.bind-preview-bg[data-v-c48fb2b2] {
|
|
72
|
+
background-color: var(--627bec82);
|
|
73
|
+
color: var(--35068428);
|
|
73
74
|
}
|
|
74
75
|
|
|
75
|
-
.bind-icon-color[data-v-
|
|
76
|
-
color: var(--
|
|
76
|
+
.bind-icon-color[data-v-f7c98176] {
|
|
77
|
+
color: var(--edeb0368);
|
|
77
78
|
}
|
|
78
|
-
.bind-preview-bg[data-v-
|
|
79
|
-
background-color: var(--
|
|
79
|
+
.bind-preview-bg[data-v-f7c98176] {
|
|
80
|
+
background-color: var(--f4b27ac2);
|
|
80
81
|
}
|
|
81
82
|
|
|
82
|
-
.bind-
|
|
83
|
-
|
|
83
|
+
.bind-icon-color[data-v-d95fcb03] {
|
|
84
|
+
color: var(--beebbd52);
|
|
84
85
|
}
|
|
85
86
|
|
|
86
|
-
.bind-preview-bg[data-v-
|
|
87
|
-
background-color: var(--
|
|
87
|
+
.bind-preview-bg[data-v-a83b1911] {
|
|
88
|
+
background-color: var(--03d1950e);
|
|
88
89
|
}
|
|
89
90
|
|
|
90
91
|
.__histoire-hatched-pattern[data-v-91561117] {
|
|
@@ -1,10 +1,21 @@
|
|
|
1
1
|
import { reactive } from "@histoire/vendors/vue";
|
|
2
|
+
import { histoireConfig } from "./config.js";
|
|
2
3
|
const receivedSettings = reactive({});
|
|
3
4
|
function applyPreviewSettings(settings) {
|
|
4
5
|
Object.assign(receivedSettings, settings);
|
|
5
6
|
document.documentElement.setAttribute("dir", settings.textDirection);
|
|
7
|
+
const contrastColor = getContrastColor(settings);
|
|
8
|
+
document.documentElement.style.setProperty("--histoire-contrast-color", contrastColor);
|
|
9
|
+
if (histoireConfig.autoApplyContrastColor) {
|
|
10
|
+
document.documentElement.style.color = contrastColor;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
function getContrastColor(setting) {
|
|
14
|
+
var _a, _b;
|
|
15
|
+
return (_b = (_a = histoireConfig.backgroundPresets.find((preset) => preset.color === setting.backgroundColor)) == null ? void 0 : _a.contrastColor) != null ? _b : "unset";
|
|
6
16
|
}
|
|
7
17
|
export {
|
|
8
18
|
applyPreviewSettings,
|
|
19
|
+
getContrastColor,
|
|
9
20
|
receivedSettings
|
|
10
21
|
};
|
package/dist/style.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@import url('https://fonts.googleapis.com/css2?family=
|
|
1
|
+
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Display&display=swap');
|
|
2
2
|
|
|
3
3
|
.resize-observer[data-v-b329ee4c]{
|
|
4
4
|
position:absolute;
|
|
@@ -297,7 +297,7 @@
|
|
|
297
297
|
grid-template-columns:repeat(auto-fill,minmax(var(--histoire-col-size),1fr))
|
|
298
298
|
}
|
|
299
299
|
|
|
300
|
-
.__histoire-json-code[data-v-
|
|
300
|
+
.__histoire-json-code[data-v-7e04a5c8] .cm-editor{
|
|
301
301
|
height:100%;
|
|
302
302
|
min-width:280px
|
|
303
303
|
}
|
|
@@ -414,6 +414,55 @@ button {
|
|
|
414
414
|
user-select: none;
|
|
415
415
|
}
|
|
416
416
|
|
|
417
|
+
body,
|
|
418
|
+
pre {
|
|
419
|
+
margin: 0;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
html,
|
|
423
|
+
body,
|
|
424
|
+
#app {
|
|
425
|
+
height: 100%;
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
html {
|
|
429
|
+
font-family: 'Noto Sans Display', system-ui, sans-serif;
|
|
430
|
+
font-size: 1rem;
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
body {
|
|
434
|
+
font-size: 1.125rem;
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
@media (min-width: 640px) {
|
|
438
|
+
body {
|
|
439
|
+
font-size: .875rem;
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
.__histoire-code .shiki {
|
|
444
|
+
background: transparent !important;
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
.htw-prose h1:not(:hover) .header-anchor[aria-hidden="true"], .htw-prose h2:not(:hover) .header-anchor[aria-hidden="true"], .htw-prose h3:not(:hover) .header-anchor[aria-hidden="true"], .htw-prose h4:not(:hover) .header-anchor[aria-hidden="true"] {
|
|
448
|
+
visibility: hidden;
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
.htw-prose hr {
|
|
452
|
+
margin: 1rem 0;
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
.__histoire-pane-shadow-from-right {
|
|
456
|
+
background-image: linear-gradient(to left, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0));
|
|
457
|
+
background-size: 24px;
|
|
458
|
+
background-repeat: no-repeat;
|
|
459
|
+
background-position: right;
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
.htw-dark .__histoire-pane-shadow-from-right {
|
|
463
|
+
background-image: linear-gradient(to left, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0));
|
|
464
|
+
}
|
|
465
|
+
|
|
417
466
|
*, ::before, ::after{
|
|
418
467
|
--tw-border-spacing-x:0;
|
|
419
468
|
--tw-border-spacing-y:0;
|
|
@@ -2199,6 +2248,10 @@ button {
|
|
|
2199
2248
|
line-height:1
|
|
2200
2249
|
}
|
|
2201
2250
|
|
|
2251
|
+
.htw-uppercase{
|
|
2252
|
+
text-transform:uppercase
|
|
2253
|
+
}
|
|
2254
|
+
|
|
2202
2255
|
.htw-leading-normal{
|
|
2203
2256
|
line-height:1.5
|
|
2204
2257
|
}
|
|
@@ -2374,59 +2427,6 @@ button {
|
|
|
2374
2427
|
will-change:transform
|
|
2375
2428
|
}
|
|
2376
2429
|
|
|
2377
|
-
body,
|
|
2378
|
-
pre {
|
|
2379
|
-
margin: 0;
|
|
2380
|
-
}
|
|
2381
|
-
|
|
2382
|
-
html,
|
|
2383
|
-
body,
|
|
2384
|
-
#app {
|
|
2385
|
-
height: 100%;
|
|
2386
|
-
}
|
|
2387
|
-
|
|
2388
|
-
html {
|
|
2389
|
-
font-family: 'Lato', sans-serif;
|
|
2390
|
-
font-size: 1rem;
|
|
2391
|
-
}
|
|
2392
|
-
|
|
2393
|
-
body {
|
|
2394
|
-
font-size: 1.125rem;
|
|
2395
|
-
}
|
|
2396
|
-
|
|
2397
|
-
@media (min-width: 640px) {
|
|
2398
|
-
body {
|
|
2399
|
-
font-size: .875rem;
|
|
2400
|
-
}
|
|
2401
|
-
}
|
|
2402
|
-
|
|
2403
|
-
.__histoire-sandbox {
|
|
2404
|
-
contain: content;
|
|
2405
|
-
}
|
|
2406
|
-
|
|
2407
|
-
.__histoire-code .shiki {
|
|
2408
|
-
background: transparent !important;
|
|
2409
|
-
}
|
|
2410
|
-
|
|
2411
|
-
.htw-prose h1:not(:hover) .header-anchor[aria-hidden="true"], .htw-prose h2:not(:hover) .header-anchor[aria-hidden="true"], .htw-prose h3:not(:hover) .header-anchor[aria-hidden="true"], .htw-prose h4:not(:hover) .header-anchor[aria-hidden="true"] {
|
|
2412
|
-
visibility: hidden;
|
|
2413
|
-
}
|
|
2414
|
-
|
|
2415
|
-
.htw-prose hr {
|
|
2416
|
-
margin: 1rem 0;
|
|
2417
|
-
}
|
|
2418
|
-
|
|
2419
|
-
.__histoire-pane-shadow-from-right {
|
|
2420
|
-
background-image: linear-gradient(to left, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0));
|
|
2421
|
-
background-size: 24px;
|
|
2422
|
-
background-repeat: no-repeat;
|
|
2423
|
-
background-position: right;
|
|
2424
|
-
}
|
|
2425
|
-
|
|
2426
|
-
.htw-dark .__histoire-pane-shadow-from-right {
|
|
2427
|
-
background-image: linear-gradient(to left, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0));
|
|
2428
|
-
}
|
|
2429
|
-
|
|
2430
2430
|
.first\:htw-mt-0:first-child{
|
|
2431
2431
|
margin-top:0px
|
|
2432
2432
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@histoire/app",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.6",
|
|
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.11.
|
|
28
|
-
"@histoire/shared": "^0.11.
|
|
29
|
-
"@histoire/vendors": "^0.11.
|
|
27
|
+
"@histoire/controls": "^0.11.6",
|
|
28
|
+
"@histoire/shared": "^0.11.6",
|
|
29
|
+
"@histoire/vendors": "^0.11.6",
|
|
30
30
|
"@types/flexsearch": "^0.7.3",
|
|
31
31
|
"flexsearch": "0.7.21",
|
|
32
32
|
"shiki": "0.10.1"
|
package/src/app/App.vue
CHANGED
|
@@ -7,7 +7,7 @@ const logoUrl = computed(() => histoireConfig.theme?.logo?.square ? customLogos.
|
|
|
7
7
|
</script>
|
|
8
8
|
|
|
9
9
|
<template>
|
|
10
|
-
<div class="htw-flex htw-items-center htw-justify-center htw-h-full">
|
|
10
|
+
<div class="histoire-home-view htw-flex htw-items-center htw-justify-center htw-h-full">
|
|
11
11
|
<img
|
|
12
12
|
:src="logoUrl"
|
|
13
13
|
alt="Logo"
|
|
@@ -23,7 +23,7 @@ onKeyboardShortcut(['ctrl+shift+d', 'meta+shift+d'], (event) => {
|
|
|
23
23
|
|
|
24
24
|
<template>
|
|
25
25
|
<div
|
|
26
|
-
class="htw-px-4 htw-h-16 htw-flex htw-items-center htw-gap-2"
|
|
26
|
+
class="histoire-app-header htw-px-4 htw-h-16 htw-flex htw-items-center htw-gap-2"
|
|
27
27
|
>
|
|
28
28
|
<div class="htw-py-3 sm:htw-py-4 htw-flex-1 htw-h-full htw-flex htw-items-center htw-pr-2">
|
|
29
29
|
<a
|
|
@@ -35,7 +35,7 @@ watch(story, () => {
|
|
|
35
35
|
</script>
|
|
36
36
|
|
|
37
37
|
<template>
|
|
38
|
-
<div>
|
|
38
|
+
<div class="histoire-breadcrumb">
|
|
39
39
|
<a
|
|
40
40
|
class="htw-px-6 htw-h-12 hover:htw-text-primary-500 dark:hover:htw-text-primary-400 htw-cursor-pointer htw-flex htw-gap-2 htw-flex-wrap htw-w-full htw-items-center"
|
|
41
41
|
@click="openMenu"
|
|
@@ -17,7 +17,7 @@ if (import.meta.hot) {
|
|
|
17
17
|
</script>
|
|
18
18
|
|
|
19
19
|
<template>
|
|
20
|
-
<div class="htw-fixed htw-inset-0 htw-bg-white dark:htw-bg-gray-700 htw-flex htw-flex-col htw-gap-6 htw-items-center htw-justify-center">
|
|
20
|
+
<div class="histoire-initial-loading htw-fixed htw-inset-0 htw-bg-white dark:htw-bg-gray-700 htw-flex htw-flex-col htw-gap-6 htw-items-center htw-justify-center">
|
|
21
21
|
<transition name="__histoire-fade">
|
|
22
22
|
<div
|
|
23
23
|
v-if="progress.total > 0"
|