@histoire/app 0.17.15 → 0.17.16
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.
|
@@ -2,7 +2,7 @@ import _sfc_main from "./StoryResponsivePreview.vue2.js";
|
|
|
2
2
|
import "./StoryResponsivePreview.vue3.js";
|
|
3
3
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
4
|
"use strict";
|
|
5
|
-
const StoryResponsivePreview = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
5
|
+
const StoryResponsivePreview = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-a09bd522"]]);
|
|
6
6
|
export {
|
|
7
7
|
StoryResponsivePreview as default
|
|
8
8
|
};
|
|
@@ -6,7 +6,7 @@ import CheckerboardPattern from "../misc/CheckerboardPattern.vue.js";
|
|
|
6
6
|
import { usePreviewSettingsStore } from "../../stores/preview-settings.js";
|
|
7
7
|
import { VTooltip } from "@histoire/vendors/floating-vue";
|
|
8
8
|
"use strict";
|
|
9
|
-
const _withScopeId = (n) => (pushScopeId("data-v-
|
|
9
|
+
const _withScopeId = (n) => (pushScopeId("data-v-a09bd522"), n = n(), popScopeId(), n);
|
|
10
10
|
const _hoisted_1 = { class: "histoire-story-responsive-preview htw-w-full htw-h-full htw-flex-1 htw-rounded-lg htw-relative htw-overflow-hidden" };
|
|
11
11
|
const _hoisted_2 = {
|
|
12
12
|
key: 0,
|
|
@@ -19,7 +19,7 @@ const _hoisted_3 = {
|
|
|
19
19
|
const _hoisted_4 = { class: "htw-p-8 htw-h-full htw-relative" };
|
|
20
20
|
const _hoisted_5 = { class: "htw-w-full htw-h-full htw-relative" };
|
|
21
21
|
const _hoisted_6 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "htw-absolute htw-inset-0" }, null, -1));
|
|
22
|
-
const _hoisted_7 = /* @__PURE__ */ createStaticVNode('<div class="htw-absolute htw-top-5 htw-left-8 htw-h-2 htw-w-px htw-bg-gray-400/25" data-v-
|
|
22
|
+
const _hoisted_7 = /* @__PURE__ */ createStaticVNode('<div class="htw-absolute htw-top-5 htw-left-8 htw-h-2 htw-w-px htw-bg-gray-400/25" data-v-a09bd522></div><div class="htw-absolute htw-top-5 htw-right-8 htw-h-2 htw-w-px htw-bg-gray-400/25" data-v-a09bd522></div><div class="htw-absolute htw-bottom-5 htw-left-8 htw-h-2 htw-w-px htw-bg-gray-400/25" data-v-a09bd522></div><div class="htw-absolute htw-bottom-5 htw-right-8 htw-h-2 htw-w-px htw-bg-gray-400/25" data-v-a09bd522></div><div class="htw-absolute htw-left-5 htw-top-8 htw-w-2 htw-h-px htw-bg-gray-400/25" data-v-a09bd522></div><div class="htw-absolute htw-left-5 htw-bottom-8 htw-w-2 htw-h-px htw-bg-gray-400/25" data-v-a09bd522></div><div class="htw-absolute htw-right-5 htw-top-8 htw-w-2 htw-h-px htw-bg-gray-400/25" data-v-a09bd522></div><div class="htw-absolute htw-right-5 htw-bottom-8 htw-w-2 htw-h-px htw-bg-gray-400/25" data-v-a09bd522></div>', 8);
|
|
23
23
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
24
24
|
__name: "StoryResponsivePreview",
|
|
25
25
|
props: {
|
|
@@ -27,7 +27,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
27
27
|
},
|
|
28
28
|
setup(__props) {
|
|
29
29
|
useCssVars((_ctx) => ({
|
|
30
|
-
"
|
|
30
|
+
"09fda46e": unref(settings).backgroundColor
|
|
31
31
|
}));
|
|
32
32
|
const props = __props;
|
|
33
33
|
const settings = usePreviewSettingsStore().currentSettings;
|
|
@@ -129,8 +129,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
129
129
|
createElementVNode("div", {
|
|
130
130
|
class: normalizeClass(["htw-overflow-hidden htw-bg-white dark:htw-bg-gray-700 htw-rounded-lg htw-relative", isResponsiveEnabled.value ? {
|
|
131
131
|
"htw-w-fit": !!finalWidth.value,
|
|
132
|
-
"htw-h-fit": !!finalHeight.value
|
|
133
|
-
|
|
132
|
+
"htw-h-fit": !!finalHeight.value,
|
|
133
|
+
"htw-h-full": !finalHeight.value
|
|
134
|
+
} : "htw-h-full"])
|
|
134
135
|
}, [
|
|
135
136
|
createElementVNode("div", _hoisted_3, [
|
|
136
137
|
unref(settings).checkerboard ? (openBlock(), createBlock(CheckerboardPattern, {
|
package/dist/bundled/style.css
CHANGED
|
@@ -1,4 +1,20 @@
|
|
|
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
|
+
|
|
14
|
+
.bind-icon-color[data-v-36846ccf] {
|
|
15
|
+
color: var(--5792748b);
|
|
16
|
+
}
|
|
17
|
+
|
|
2
18
|
.landscape > div > .dragger[data-v-ed925107] {
|
|
3
19
|
width: .625rem;
|
|
4
20
|
}
|
|
@@ -24,24 +40,16 @@
|
|
|
24
40
|
bottom: -.625rem;
|
|
25
41
|
}
|
|
26
42
|
|
|
27
|
-
.bind-icon-color[data-v-
|
|
28
|
-
color: var(--
|
|
43
|
+
.bind-icon-color[data-v-6046525f] {
|
|
44
|
+
color: var(--663732b6);
|
|
29
45
|
}
|
|
30
46
|
|
|
31
|
-
.
|
|
32
|
-
|
|
33
|
-
}
|
|
34
|
-
@keyframes htw-base-empty-c5ecfead {
|
|
35
|
-
0% {
|
|
36
|
-
opacity: 0;
|
|
37
|
-
}
|
|
38
|
-
100% {
|
|
39
|
-
opacity: 1;
|
|
40
|
-
}
|
|
47
|
+
.bind-tree-padding[data-v-2d2e4786] {
|
|
48
|
+
padding-left: var(--6851b0a7);
|
|
41
49
|
}
|
|
42
50
|
|
|
43
|
-
.bind-icon-color[data-v-
|
|
44
|
-
color: var(--
|
|
51
|
+
.bind-icon-color[data-v-ddfc5b4f] {
|
|
52
|
+
color: var(--4d25d048);
|
|
45
53
|
}
|
|
46
54
|
|
|
47
55
|
.bind-tree-margin[data-v-19810958] {
|
|
@@ -51,27 +59,15 @@
|
|
|
51
59
|
color: var(--ae892164);
|
|
52
60
|
}
|
|
53
61
|
|
|
54
|
-
.bind-tree-padding[data-v-2d2e4786] {
|
|
55
|
-
padding-left: var(--6851b0a7);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
62
|
.bind-icon-color[data-v-ab890d9c] {
|
|
59
63
|
color: var(--89126aaa);
|
|
60
64
|
}
|
|
61
65
|
|
|
62
|
-
.bind-icon-color[data-v-ddfc5b4f] {
|
|
63
|
-
color: var(--4d25d048);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
66
|
.__histoire-code-placeholder[data-v-1bdf9905] {
|
|
67
67
|
color: inherit;
|
|
68
68
|
font-size: inherit;
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
-
.bind-icon-color[data-v-6c8e9661] {
|
|
72
|
-
color: var(--a8c1277e);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
71
|
.bind-icon-color[data-v-cf76cd68] {
|
|
76
72
|
color: var(--29d8c174);
|
|
77
73
|
}
|
|
@@ -84,12 +80,12 @@
|
|
|
84
80
|
color: var(--35068428);
|
|
85
81
|
}
|
|
86
82
|
|
|
87
|
-
|
|
88
|
-
|
|
83
|
+
.bind-icon-color[data-v-6c8e9661] {
|
|
84
|
+
color: var(--a8c1277e);
|
|
89
85
|
}
|
|
90
86
|
|
|
91
|
-
.bind-preview-bg[data-v-
|
|
92
|
-
background-color: var(--
|
|
87
|
+
.bind-preview-bg[data-v-a09bd522] {
|
|
88
|
+
background-color: var(--09fda46e);
|
|
93
89
|
}
|
|
94
90
|
|
|
95
91
|
.__histoire-hatched-pattern[data-v-91561117] {
|
|
@@ -99,3 +95,7 @@ img.colorize-black[data-v-74182813] {
|
|
|
99
95
|
currentColor 32px,
|
|
100
96
|
currentColor 64px);
|
|
101
97
|
}
|
|
98
|
+
|
|
99
|
+
img.colorize-black[data-v-74182813] {
|
|
100
|
+
filter: grayscale(100) brightness(0);
|
|
101
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@histoire/app",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.16",
|
|
4
4
|
"description": "Pre-bundled UI for Histoire",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
"@types/flexsearch": "^0.7.6",
|
|
28
28
|
"flexsearch": "0.7.21",
|
|
29
29
|
"shiki-es": "^0.2.0",
|
|
30
|
-
"@histoire/controls": "^0.17.
|
|
31
|
-
"@histoire/shared": "^0.17.
|
|
32
|
-
"@histoire/vendors": "^0.17.
|
|
30
|
+
"@histoire/controls": "^0.17.16",
|
|
31
|
+
"@histoire/shared": "^0.17.16",
|
|
32
|
+
"@histoire/vendors": "^0.17.16"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@tailwindcss/typography": "^0.5.10",
|
|
@@ -139,8 +139,9 @@ const sizeTooltip = computed(() => (responsiveWidth.value ?? 'Auto') + ' × ' +
|
|
|
139
139
|
class="htw-overflow-hidden htw-bg-white dark:htw-bg-gray-700 htw-rounded-lg htw-relative"
|
|
140
140
|
:class="isResponsiveEnabled ? {
|
|
141
141
|
'htw-w-fit': !!finalWidth,
|
|
142
|
-
'htw-h-fit': !!finalHeight
|
|
143
|
-
|
|
142
|
+
'htw-h-fit': !!finalHeight,
|
|
143
|
+
'htw-h-full': !finalHeight
|
|
144
|
+
} : 'htw-h-full'"
|
|
144
145
|
>
|
|
145
146
|
<div
|
|
146
147
|
class="bind-preview-bg htw-rounded-lg htw-h-full"
|