@histoire/app 0.17.14 → 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-a83b1911"]]);
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-a83b1911"), n = n(), popScopeId(), n);
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-a83b1911></div><div class="htw-absolute htw-top-5 htw-right-8 htw-h-2 htw-w-px htw-bg-gray-400/25" data-v-a83b1911></div><div class="htw-absolute htw-bottom-5 htw-left-8 htw-h-2 htw-w-px htw-bg-gray-400/25" data-v-a83b1911></div><div class="htw-absolute htw-bottom-5 htw-right-8 htw-h-2 htw-w-px htw-bg-gray-400/25" data-v-a83b1911></div><div class="htw-absolute htw-left-5 htw-top-8 htw-w-2 htw-h-px htw-bg-gray-400/25" data-v-a83b1911></div><div class="htw-absolute htw-left-5 htw-bottom-8 htw-w-2 htw-h-px htw-bg-gray-400/25" data-v-a83b1911></div><div class="htw-absolute htw-right-5 htw-top-8 htw-w-2 htw-h-px htw-bg-gray-400/25" data-v-a83b1911></div><div class="htw-absolute htw-right-5 htw-bottom-8 htw-w-2 htw-h-px htw-bg-gray-400/25" data-v-a83b1911></div>', 8);
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
- "03d1950e": unref(settings).backgroundColor
30
+ "09fda46e": unref(settings).backgroundColor
31
31
  }));
32
32
  const props = __props;
33
33
  const settings = usePreviewSettingsStore().currentSettings;
@@ -127,10 +127,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
127
127
  class: "htw-h-full htw-overflow-auto htw-relative"
128
128
  }, [
129
129
  createElementVNode("div", {
130
- class: normalizeClass(["htw-h-full htw-overflow-hidden htw-bg-white dark:htw-bg-gray-700 htw-rounded-lg htw-relative", isResponsiveEnabled.value ? {
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
- } : void 0])
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, {
@@ -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
  .bind-icon-color[data-v-36846ccf] {
3
15
  color: var(--5792748b);
4
16
  }
@@ -28,29 +40,10 @@
28
40
  bottom: -.625rem;
29
41
  }
30
42
 
31
- .htw-base-empty[data-v-c5ecfead]:not(.no-animation) {
32
- animation: htw-base-empty-c5ecfead .15s .2s both;
33
- }
34
- @keyframes htw-base-empty-c5ecfead {
35
- 0% {
36
- opacity: 0;
37
- }
38
- 100% {
39
- opacity: 1;
40
- }
41
- }
42
-
43
43
  .bind-icon-color[data-v-6046525f] {
44
44
  color: var(--663732b6);
45
45
  }
46
46
 
47
- .bind-tree-margin[data-v-19810958] {
48
- margin-left: var(--444efc12);
49
- }
50
- .bind-icon-color[data-v-19810958] {
51
- color: var(--ae892164);
52
- }
53
-
54
47
  .bind-tree-padding[data-v-2d2e4786] {
55
48
  padding-left: var(--6851b0a7);
56
49
  }
@@ -59,6 +52,13 @@
59
52
  color: var(--4d25d048);
60
53
  }
61
54
 
55
+ .bind-tree-margin[data-v-19810958] {
56
+ margin-left: var(--444efc12);
57
+ }
58
+ .bind-icon-color[data-v-19810958] {
59
+ color: var(--ae892164);
60
+ }
61
+
62
62
  .bind-icon-color[data-v-ab890d9c] {
63
63
  color: var(--89126aaa);
64
64
  }
@@ -68,11 +68,6 @@
68
68
  font-size: inherit;
69
69
  }
70
70
 
71
- .bind-preview-bg[data-v-c48fb2b2] {
72
- background-color: var(--627bec82);
73
- color: var(--35068428);
74
- }
75
-
76
71
  .bind-icon-color[data-v-cf76cd68] {
77
72
  color: var(--29d8c174);
78
73
  }
@@ -80,16 +75,17 @@
80
75
  background-color: var(--0eff7465);
81
76
  }
82
77
 
83
- .bind-icon-color[data-v-6c8e9661] {
84
- color: var(--a8c1277e);
78
+ .bind-preview-bg[data-v-c48fb2b2] {
79
+ background-color: var(--627bec82);
80
+ color: var(--35068428);
85
81
  }
86
82
 
87
- .bind-preview-bg[data-v-a83b1911] {
88
- background-color: var(--03d1950e);
83
+ .bind-icon-color[data-v-6c8e9661] {
84
+ color: var(--a8c1277e);
89
85
  }
90
86
 
91
- img.colorize-black[data-v-74182813] {
92
- filter: grayscale(100) brightness(0);
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.14",
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.14",
31
- "@histoire/shared": "^0.17.14",
32
- "@histoire/vendors": "^0.17.14"
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",
@@ -136,11 +136,12 @@ const sizeTooltip = computed(() => (responsiveWidth.value ?? 'Auto') + ' × ' +
136
136
  class="htw-h-full htw-overflow-auto htw-relative"
137
137
  >
138
138
  <div
139
- class="htw-h-full htw-overflow-hidden htw-bg-white dark:htw-bg-gray-700 htw-rounded-lg htw-relative"
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
- } : undefined"
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"