@code-coaching/vuetiful 0.16.3 → 0.16.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@code-coaching/vuetiful",
3
- "version": "0.16.3",
3
+ "version": "0.16.5",
4
4
  "license": "MIT",
5
5
  "scripts": {
6
6
  "dev": "onchange 'src/**/*.vue' 'src/**/*.ts' 'src/**/*.css' -- npm run build",
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { CssClasses, vClipboard, VButton } from "@/index";
2
+ import { CssClasses, VButton, vClipboard } from "@/index";
3
3
  import { useHighlight } from "@/services/highlight.service";
4
4
  import "highlight.js/styles/github-dark.css";
5
5
  import { ref } from "vue";
@@ -68,7 +68,9 @@ function onCopyClick() {
68
68
  </script>
69
69
 
70
70
  <template v-if="language && code">
71
- <div class="code-block bg-neutral-900/90 text-sm text-white shadow rounded-container-token">
71
+ <div
72
+ class="code-block max-w-full bg-neutral-900/90 text-sm text-white shadow rounded-container-token"
73
+ >
72
74
  <header
73
75
  :class="`code-block-header flex items-center justify-between p-2 pb-0 pl-4 text-xs uppercase text-white/50 ${headerClass}`"
74
76
  >
@@ -70,24 +70,4 @@ describe("VPreview", () => {
70
70
  expect(after.classes()).not.toContain("w-full");
71
71
  });
72
72
  })
73
- });
74
-
75
- // test("VPreview", () => {
76
- // const wrapper = mount(VPreview, {
77
- // slots: {
78
- // preview: "<div data-test='preview-slot'>Preview</div>",
79
- // source: "<div data-test='source-slot'>Source</div>",
80
- // },
81
- // });
82
-
83
- // const previewerPreview = wrapper.find("[data-test='previewer-preview']");
84
- // const previewSlot = previewerPreview.find("[data-test='preview-slot']");
85
-
86
- // console.log(wrapper.html());
87
- // const previewerSource = wrapper.find("[data-test='previewer-source']");
88
- // expect(previewerSource.exists()).toBe(false);
89
- // const sourceSlot = previewerSource.find("[data-test='source-slot']");
90
-
91
- // expect(previewSlot.exists()).toBe(true);
92
- // expect(sourceSlot.exists()).toBe(true);
93
- // })
73
+ });
@@ -4,8 +4,8 @@ import { ref } from "vue";
4
4
 
5
5
  const backgrounds: Record<string, string> = {
6
6
  "bg-transparent": "bg-transparent",
7
- neutral: "bg-white/25 dark:bg-black/25",
8
7
  "neutral-opaque": "bg-white/50 dark:bg-black/50",
8
+ neutral: "bg-surface-100-800-token",
9
9
 
10
10
  "variant-filled-surface": "variant-filled-surface",
11
11
  "variant-filled-primary": "variant-filled-primary",
@@ -197,7 +197,7 @@ const toggleSwatches = () => (swatches.value = !swatches.value);
197
197
  data-test="previewer-preview"
198
198
  :class="`vuetiful-previewer-preview mx-auto flex duration-300 ${
199
199
  radioSize === 'mobile'
200
- ? 'mobile-screen flex h-[812px] max-w-[375px] flex-col overflow-hidden rounded-3xl border-8 border-black/50 p-2 shadow-2xl dark:border-white/50'
200
+ ? 'mobile-screen flex h-[812px] max-w-[375px] flex-col overflow-hidden rounded-3xl border-8 border-black/50 p-2 shadow-2xl dark:border-white/50'
201
201
  : 'w-full items-center justify-center'
202
202
  } ${regionPreview}`"
203
203
  >
@@ -216,7 +216,7 @@ const toggleSwatches = () => (swatches.value = !swatches.value);
216
216
  <template v-if="tabView === 'code'">
217
217
  <div
218
218
  data-test="previewer-source"
219
- :class="`vuetiful-previewer-source space-y-4 p-4 bg-surface-200-700-token ${regionSource}`"
219
+ :class="`vuetiful-previewer-source p-4 ${backgrounds['neutral']} ${regionSource}`"
220
220
  >
221
221
  <slot name="source">(source)</slot>
222
222
  </div>