AI-native design editor. Open-source Figma alternative.
refactor(app): theme editor navigation states
Danila Poyarkov51fccb74d358
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 4f5afad1a..36d938a05 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -18,6 +18,7 @@- Add mixed-selection stroke cap, join, and miter-limit controls with CanvasKit rendering and `.fig` roundtrip support.- Add a mixed-selection corner-smoothing percentage control with live preview, per-node undo restoration, and `.fig` roundtrip coverage.- Model imported fill, stroke, text, effect, and grid styles with reusable SDK/app selectors, automatic detach-on-edit, undo, and `.fig` definition roundtrips.+- Standardize Pages, Layers/Assets navigation, and document tab states across light and dark themes.- Standardize Vue SDK and app override type names on the `UI` acronym, including `FontPickerUI`.- Add a headless Vue SDK NumberField with pointer scrubbing, keyboard stepping, safe arithmetic expressions, and mixed/bound states; remove the superseded ScrubInput API.- Add provider-driven BindableValue primitives for variable and token binding, including detach-on-edit, read-only, edit-variable, mixed-value, and undo-batched interactions.diff --git a/src/components/LayersPanel.vue b/src/components/LayersPanel.vueindex f104e30b4..fc2400d80 100644--- a/src/components/LayersPanel.vue+++ b/src/components/LayersPanel.vue@@ -1,16 +1,28 @@<script setup lang="ts">-import { ref } from 'vue'+import { computed, ref } from 'vue'import { SplitterGroup, SplitterPanel, SplitterResizeHandle } from 'reka-ui'import { useI18n } from '@open-pencil/vue'import AppMenu from '@/components/Shell/AppMenu.vue'+import SegmentedControl from '@/components/ui/SegmentedControl.vue'import AssetsPanel from './AssetsPanel.vue'import LayerTree from './LayerTree/LayerTree.vue'import PagesPanel from './PagesPanel.vue'const { menu, panels } = useI18n()const activePanel = ref<'file' | 'assets'>('file')+const panelModel = computed({+ get: () => activePanel.value,+ set: (value: string) => {+ if (value === 'file' || value === 'assets') activePanel.value = value+ }+})+const panelOptions = computed(() => [+ { value: 'file', label: menu.value.file },+ { value: 'assets', label: panels.value.assets }+])+const panelTabsUI = { root: 'w-full' }</script><template>@@ -20,25 +32,24 @@ const activePanel = ref<'file' | 'assets'>('file')style="contain: paint layout style"><AppMenu />- <div class="flex shrink-0 gap-1 border-b border-border px-2 py-1.5">- <button- data-test-id="left-panel-layers-tab"- class="flex-1 rounded px-2 py-1 text-xs transition-colors"- :class="activePanel === 'file' ? 'bg-hover text-surface' : 'text-muted hover:text-surface'"- @click="activePanel = 'file'"+ <div class="shrink-0 border-b border-border px-2 py-1.5">+ <SegmentedControl+ v-model="panelModel"+ :options="panelOptions"+ :label="panels.layers"+ :ui="panelTabsUI">- {{ menu.file }}- </button>- <button- data-test-id="left-panel-assets-tab"- class="flex-1 rounded px-2 py-1 text-xs transition-colors"- :class="- activePanel === 'assets' ? 'bg-hover text-surface' : 'text-muted hover:text-surface'- "- @click="activePanel = 'assets'"- >- {{ panels.assets }}- </button>+ <template #option="{ option }">+ <span+ :data-test-id="+ option.value === 'file' ? 'left-panel-layers-tab' : 'left-panel-assets-tab'+ "+ class="truncate"+ >+ {{ option.label }}+ </span>+ </template>+ </SegmentedControl></div><AssetsPanel v-if="activePanel === 'assets'" /><SplitterGroupdiff --git a/src/components/PagesPanel.vue b/src/components/PagesPanel.vueindex 2007c13b6..9897e0207 100644--- a/src/components/PagesPanel.vue+++ b/src/components/PagesPanel.vue@@ -1,6 +1,7 @@<script setup lang="ts">import { ref, watch, type ComponentPublicInstance } from 'vue'import { templateRef } from '@vueuse/core'+import { tv } from 'tailwind-variants'import {ContextMenuContent,ContextMenuItem,@@ -14,6 +15,7 @@ import { PageListRoot, useFlatReorderDrag, useI18n, useInlineRename } from '@opeimport Tip from '@/components/ui/Tip.vue'import { useMenuUI } from '@/components/ui/menu'+import pageListTheme from '@/theme/page-list'type PageItem = Pick<SceneNode, 'id' | 'name' | 'childIds'>@@ -27,6 +29,8 @@ const pageInput = templateRef<HTMLInputElement>('pageInput')const rename = useInlineRename((id, name) => pageActions.value?.rename(id, name))const { panels, pages: pageMessages } = useI18n()const menuCls = useMenuUI({ content: 'min-w-36 shadow-[0_8px_30px_rgb(0_0_0/0.4)]' })+const pageListStyles = tv(pageListTheme)+const baseStyles = pageListStyles()const pageActions = ref<Pick<PageActions, 'rename'> | null>(null)const currentPages = ref<readonly PageItem[]>([])@@ -49,11 +53,19 @@ function startRename(pg: PageItem, renamePage: (pageId: string, name: string) =>rename.start(pg.id, pg.name)}-function isDraggingTarget(pg: PageItem, operation: 'reorder-before' | 'reorder-after') {- return (- pageReorder.instructionTargetId.value === pg.id &&- pageReorder.instruction.value?.operation === operation- )+function pageDropPosition(pg: PageItem): 'before' | 'after' | undefined {+ if (pageReorder.instructionTargetId.value !== pg.id) return undefined+ if (pageReorder.instruction.value?.operation === 'reorder-before') return 'before'+ if (pageReorder.instruction.value?.operation === 'reorder-after') return 'after'+ return undefined+}++function pageStyles(pg: PageItem, currentPageId: string) {+ return pageListStyles({+ active: pg.id === currentPageId,+ dragging: pageReorder.draggingId.value === pg.id,+ dropPosition: pageDropPosition(pg)+ })}function setupPageRowRef(@@ -70,49 +82,42 @@ function setupPageRowRef(<template><PageListRoot v-slot="{ pages, currentPageId, isDivider, actions }">- <div data-test-id="pages-panel" class="flex min-h-0 flex-1 flex-col">- <div class="flex shrink-0 items-center justify-between px-3 py-1.5">- <span data-test-id="pages-header" class="text-[11px] tracking-wider text-muted uppercase">{{- panels.pages- }}</span>+ <div data-test-id="pages-panel" :class="baseStyles.panel()">+ <div :class="baseStyles.header()">+ <span data-test-id="pages-header" :class="baseStyles.title()">{{ panels.pages }}</span><Tip :label="panels.addPage">- <button- data-test-id="pages-add"- class="cursor-pointer rounded border-none bg-transparent px-1 text-base leading-none text-muted hover:bg-hover hover:text-surface"- @click="actions.add()"- >+ <button data-test-id="pages-add" :class="baseStyles.add()" @click="actions.add()">+</button></Tip></div>- <div class="min-h-0 flex-1 overflow-hidden">- <div- data-test-id="pages-scroll"- class="scrollbar-thin h-full overflow-x-hidden overflow-y-auto px-1 pb-1"- >+ <div :class="baseStyles.body()">+ <div data-test-id="pages-scroll" :class="baseStyles.viewport()"><ContextMenuRoot v-for="pg in pages" :key="pg.id" :modal="false"><ContextMenuTrigger as-child><divdata-test-id="pages-row":ref="(value) => setupPageRowRef(value, pg, pages, actions.move)"- class="relative cursor-grab active:cursor-grabbing"- :class="pageReorder.draggingId.value === pg.id ? 'opacity-60' : ''"+ :class="pageStyles(pg, currentPageId).row()":data-page-id="pg.id"+ :data-active="pg.id === currentPageId || undefined"+ :data-dragging="pageReorder.draggingId.value === pg.id || undefined"+ :data-drop-position="pageDropPosition(pg)"><div- v-if="isDraggingTarget(pg, 'reorder-before')"+ v-if="pageDropPosition(pg) === 'before'"data-test-id="pages-drop-indicator"- class="pointer-events-none absolute inset-x-1 top-0 z-10 h-0.5 rounded-full bg-accent"+ :class="pageStyles(pg, currentPageId).dropIndicator()"/><divv-if="rename.editingId.value === pg.id"- class="flex w-full items-center gap-1.5 rounded px-2 py-1"+ :class="pageStyles(pg, currentPageId).renameRow()">- <icon-lucide-file class="size-3 shrink-0 opacity-70" />+ <icon-lucide-file :class="pageStyles(pg, currentPageId).icon()" /><inputref="pageInput"data-test-id="pages-item-input"- class="min-w-0 flex-1 rounded border border-accent bg-input px-1 py-0 text-xs text-surface outline-none"+ :class="pageStyles(pg, currentPageId).renameInput()":value="pg.name"@blur="rename.commit(pg.id, $event)"@keydown.stop="rename.onKeydown"@@ -121,30 +126,25 @@ function setupPageRowRef(<divv-else-if="isDivider(pg)"data-test-id="pages-divider"- class="my-1 flex cursor-pointer items-center px-2"+ :class="pageStyles(pg, currentPageId).divider()"@dblclick="startRename(pg, actions.rename)">- <div class="h-px flex-1 bg-border" />+ <div :class="pageStyles(pg, currentPageId).dividerLine()" /></div><buttonv-elsedata-test-id="pages-item"- class="flex w-full cursor-pointer items-center gap-1.5 rounded border-none px-2 py-1 text-left text-xs"- :class="- pg.id === currentPageId- ? 'bg-hover text-surface'- : 'bg-transparent text-muted hover:bg-hover hover:text-surface'- "+ :class="pageStyles(pg, currentPageId).item()"@click="actions.switch(pg.id)"@dblclick="startRename(pg, actions.rename)">- <icon-lucide-file class="size-3 shrink-0" />- <span class="truncate">{{ pg.name }}</span>+ <icon-lucide-file :class="pageStyles(pg, currentPageId).icon()" />+ <span :class="pageStyles(pg, currentPageId).label()">{{ pg.name }}</span></button><div- v-if="isDraggingTarget(pg, 'reorder-after')"+ v-if="pageDropPosition(pg) === 'after'"data-test-id="pages-drop-indicator"- class="pointer-events-none absolute inset-x-1 bottom-0 z-10 h-0.5 rounded-full bg-accent"+ :class="pageStyles(pg, currentPageId).dropIndicator()"/></div></ContextMenuTrigger>diff --git a/src/components/TabBar.vue b/src/components/TabBar.vueindex e0c9836df..7e42f0713 100644--- a/src/components/TabBar.vue+++ b/src/components/TabBar.vue@@ -1,14 +1,18 @@<script setup lang="ts">import { computed } from 'vue'import { TabsList, TabsRoot, TabsTrigger } from 'reka-ui'+import { tv } from 'tailwind-variants'import Tip from '@/components/ui/Tip.vue'+import tabBarTheme from '@/theme/tab-bar'import { useTabsStore, createTab } from '@/app/tabs'import { useI18n } from '@open-pencil/vue'const { dialogs } = useI18n()const { tabs, activeTabId, switchTab, closeTab } = useTabsStore()+const tabBarStyles = tv(tabBarTheme)+const baseStyles = tabBarStyles()const modelValue = computed({get: () => activeTabId.value,@@ -33,29 +37,30 @@ function onClose(e: MouseEvent, tabId: string) {v-if="tabs.length > 1"v-model="modelValue"activation-mode="automatic"- class="scrollbar-none flex h-9 shrink-0 items-end overflow-x-auto border-b border-border bg-canvas"+ :class="baseStyles.root()">- <TabsList class="flex h-full items-end">+ <TabsList :class="baseStyles.list()"><TabsTriggerv-for="tab in tabs":key="tab.id":value="tab.id"data-test-id="tabbar-tab"- class="group/tab flex h-full max-w-48 min-w-0 cursor-pointer items-center gap-1.5 border-r border-border px-3 text-xs transition-colors outline-none select-none focus-visible:ring-1 focus-visible:ring-accent data-[state=active]:bg-panel data-[state=active]:text-surface data-[state=inactive]:text-muted data-[state=inactive]:hover:text-surface"+ :class="tabBarStyles({ active: tab.isActive }).trigger()"+ :data-active="tab.isActive || undefined"@mousedown="onMiddleClick($event, tab.id)">- <icon-lucide-file class="size-3 shrink-0 opacity-50" />- <span class="min-w-0 flex-1 truncate">{{ tab.name }}</span>+ <icon-lucide-file :class="baseStyles.icon()" />+ <span :class="baseStyles.label()">{{ tab.name }}</span><Tip :label="dialogs.closeTab({ name: tab.name })"><buttondata-test-id="tabbar-close"- class="flex size-4 shrink-0 cursor-pointer items-center justify-center rounded opacity-0 transition-opacity group-hover/tab:opacity-100 hover:bg-hover data-[state=active]:opacity-100"- :class="tab.isActive ? 'opacity-100' : ''"+ :class="tabBarStyles({ active: tab.isActive }).close()"+ :data-active="tab.isActive || undefined":aria-label="dialogs.closeTab({ name: tab.name })"tabindex="-1"@click="onClose($event, tab.id)">- <icon-lucide-x class="size-3" />+ <icon-lucide-x :class="baseStyles.closeIcon()" /></button></Tip></TabsTrigger>@@ -63,11 +68,11 @@ function onClose(e: MouseEvent, tabId: string) {<Tip :label="dialogs.newTab"><buttondata-test-id="tabbar-new"- class="flex size-9 shrink-0 cursor-pointer items-center justify-center text-muted transition-colors hover:text-surface"+ :class="baseStyles.newAction()":aria-label="dialogs.newTab"@click="createTab()">- <icon-lucide-plus class="size-3.5" />+ <icon-lucide-plus :class="baseStyles.newIcon()" /></button></Tip></TabsRoot>diff --git a/src/components/navigation/NavigationTheme.stories.ts b/src/components/navigation/NavigationTheme.stories.tsnew file mode 100644index 000000000..09b371381--- /dev/null+++ b/src/components/navigation/NavigationTheme.stories.ts@@ -0,0 +1,38 @@+import type { Meta, StoryObj } from '@storybook/vue3-vite'+import { expect, within } from 'storybook/test'++import NavigationThemeDemo from './demo/NavigationThemeDemo.vue'++const meta = {+ title: 'Design System/Editor/Navigation',+ component: NavigationThemeDemo,+ tags: ['autodocs'],+ parameters: {+ docs: {+ description: {+ component: 'Page list, Layers/Assets segmented tabs, and document TabBar theme states.'+ }+ }+ }+} satisfies Meta<typeof NavigationThemeDemo>++export default meta+type Story = StoryObj<typeof meta>++export const Dark: Story = {+ globals: { theme: 'dark' },+ play: async ({ canvasElement }) => {+ const canvas = within(canvasElement)+ await expect(canvas.getByLabelText('Active')).toHaveAttribute('data-active')+ await expect(canvas.getByLabelText('Dragging')).toHaveAttribute('data-dragging')+ await expect(canvas.getByLabelText('Drop before')).toHaveAttribute(+ 'data-drop-position',+ 'before'+ )+ await expect(canvas.getByLabelText('Active tab')).toHaveAttribute('data-active')+ }+}++export const Light: Story = {+ globals: { theme: 'light' }+}diff --git a/src/components/navigation/demo/NavigationThemeDemo.vue b/src/components/navigation/demo/NavigationThemeDemo.vuenew file mode 100644index 000000000..c0544813d--- /dev/null+++ b/src/components/navigation/demo/NavigationThemeDemo.vue@@ -0,0 +1,94 @@+<script setup lang="ts">+import { tv } from 'tailwind-variants'++import SegmentedControl from '@/components/ui/SegmentedControl.vue'+import pageListTheme from '@/theme/page-list'+import tabBarTheme from '@/theme/tab-bar'++const pageStyles = tv(pageListTheme)+const tabStyles = tv(tabBarTheme)+const panelTabsUI = { root: 'w-full' }+const panelOptions = [+ { value: 'file', label: 'File' },+ { value: 'assets', label: 'Assets' }+]+const pageStates = [+ { label: 'Normal', active: false, dragging: false },+ { label: 'Active', active: true, dragging: false },+ { label: 'Dragging', active: false, dragging: true },+ { label: 'Drop before', active: false, dragging: false, dropPosition: 'before' as const },+ { label: 'Drop after', active: false, dragging: false, dropPosition: 'after' as const }+]+</script>++<template>+ <div class="grid max-w-3xl grid-cols-2 gap-6">+ <section class="rounded-lg border border-border bg-panel p-3 shadow-lg">+ <h2 class="mb-3 text-[11px] font-semibold tracking-wider text-muted uppercase">+ Page and panel states+ </h2>+ <SegmentedControl+ model-value="file"+ :options="panelOptions"+ label="Panel"+ :ui="panelTabsUI"+ />+ <div class="mt-3 space-y-1">+ <div+ v-for="state in pageStates"+ :key="state.label"+ :aria-label="state.label"+ :class="+ pageStyles({+ active: state.active,+ dragging: state.dragging,+ dropPosition: state.dropPosition+ }).row()+ "+ :data-active="state.active || undefined"+ :data-dragging="state.dragging || undefined"+ :data-drop-position="state.dropPosition"+ >+ <div+ v-if="state.dropPosition"+ :class="pageStyles({ dropPosition: state.dropPosition }).dropIndicator()"+ />+ <button :class="pageStyles({ active: state.active }).item()">+ <icon-lucide-file :class="pageStyles().icon()" />+ <span :class="pageStyles().label()">{{ state.label }}</span>+ </button>+ </div>+ <div aria-label="Rename" :class="pageStyles().renameRow()">+ <icon-lucide-file :class="pageStyles().icon()" />+ <input :class="pageStyles().renameInput()" value="Rename page" />+ </div>+ </div>+ </section>++ <section class="rounded-lg border border-border bg-canvas p-3 shadow-lg">+ <h2 class="mb-3 text-[11px] font-semibold tracking-wider text-muted uppercase">Tab states</h2>+ <div :class="tabStyles().root()">+ <div :class="tabStyles().list()">+ <button+ aria-label="Active tab"+ :class="tabStyles({ active: true }).trigger()"+ data-active+ >+ <icon-lucide-file :class="tabStyles().icon()" />+ <span :class="tabStyles().label()">Active</span>+ <span :class="tabStyles({ active: true }).close()" data-active>+ <icon-lucide-x :class="tabStyles().closeIcon()" />+ </span>+ </button>+ <button aria-label="Inactive tab" :class="tabStyles({ active: false }).trigger()">+ <icon-lucide-file :class="tabStyles().icon()" />+ <span :class="tabStyles().label()">Inactive</span>+ <span :class="tabStyles({ active: false }).close()">+ <icon-lucide-x :class="tabStyles().closeIcon()" />+ </span>+ </button>+ </div>+ </div>+ </section>+ </div>+</template>diff --git a/src/theme/page-list.ts b/src/theme/page-list.tsnew file mode 100644index 000000000..3a9ddfecd--- /dev/null+++ b/src/theme/page-list.ts@@ -0,0 +1,41 @@+const pageListTheme = {+ slots: {+ panel: 'flex min-h-0 flex-1 flex-col',+ header: 'flex shrink-0 items-center justify-between px-3 py-1.5',+ title: 'text-[11px] tracking-wider text-muted uppercase',+ add: 'cursor-pointer rounded border-none bg-transparent px-1 text-base leading-none text-muted hover:bg-hover hover:text-surface focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-panel-focus',+ body: 'min-h-0 flex-1 overflow-hidden',+ viewport: 'scrollbar-thin h-full overflow-x-hidden overflow-y-auto px-1 pb-1',+ row: 'relative cursor-grab active:cursor-grabbing',+ dropIndicator: 'pointer-events-none absolute inset-x-1 z-10 h-0.5 rounded-full bg-accent',+ renameRow: 'flex w-full items-center gap-1.5 rounded px-2 py-1',+ icon: 'size-3 shrink-0 opacity-70',+ renameInput:+ 'min-w-0 flex-1 rounded border border-accent bg-input px-1 py-0 text-xs text-surface outline-none',+ divider: 'my-1 flex cursor-pointer items-center px-2',+ dividerLine: 'h-px flex-1 bg-border',+ item: 'flex w-full cursor-pointer items-center gap-1.5 rounded border-none px-2 py-1 text-left text-xs outline-none focus-visible:ring-1 focus-visible:ring-panel-focus',+ label: 'truncate'+ },+ variants: {+ active: {+ true: { item: 'bg-hover text-surface' },+ false: { item: 'bg-transparent text-muted hover:bg-hover hover:text-surface' }+ },+ dragging: {+ true: { row: 'opacity-60' },+ false: {}+ },+ dropPosition: {+ before: { dropIndicator: 'top-0' },+ after: { dropIndicator: 'bottom-0' }+ }+ },+ defaultVariants: {+ active: false,+ dragging: false+ }+}++export type PageListTheme = typeof pageListTheme+export default pageListThemediff --git a/src/theme/tab-bar.ts b/src/theme/tab-bar.tsnew file mode 100644index 000000000..1633ac9d4--- /dev/null+++ b/src/theme/tab-bar.ts@@ -0,0 +1,34 @@+const tabBarTheme = {+ slots: {+ root: 'scrollbar-none flex h-9 shrink-0 items-end overflow-x-auto border-b border-border bg-canvas',+ list: 'flex h-full items-end',+ trigger:+ 'group/tab flex h-full max-w-48 min-w-0 cursor-pointer items-center gap-1.5 border-r border-border px-3 text-xs transition-colors outline-none select-none focus-visible:ring-1 focus-visible:ring-accent',+ icon: 'size-3 shrink-0 opacity-50',+ label: 'min-w-0 flex-1 truncate',+ close:+ 'flex size-4 shrink-0 cursor-pointer items-center justify-center rounded transition-opacity group-hover/tab:opacity-100 hover:bg-hover focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-panel-focus',+ closeIcon: 'size-3',+ newAction:+ 'flex size-9 shrink-0 cursor-pointer items-center justify-center text-muted transition-colors hover:text-surface focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-panel-focus',+ newIcon: 'size-3.5'+ },+ variants: {+ active: {+ true: {+ trigger: 'bg-panel text-surface',+ close: 'opacity-100'+ },+ false: {+ trigger: 'text-muted hover:text-surface',+ close: 'opacity-0'+ }+ }+ },+ defaultVariants: {+ active: false+ }+}++export type TabBarTheme = typeof tabBarTheme+export default tabBarThemediff --git a/tools/architecture/src/steiger-rules/dynamic-tailwind-classes.ts b/tools/architecture/src/steiger-rules/dynamic-tailwind-classes.tsindex 0e54dc921..088582ccc 100644--- a/tools/architecture/src/steiger-rules/dynamic-tailwind-classes.ts+++ b/tools/architecture/src/steiger-rules/dynamic-tailwind-classes.ts@@ -7,12 +7,7 @@ const VUE_DIRECTIVE_NODE = 7const DYNAMIC_CLASS_ALLOWLIST = new Set(['src/components/CollabPanel/CollabAvatarStack.vue:37','src/components/CollabPanel/CollabSharePopover.vue:20',- 'src/components/LayersPanel.vue:27',- 'src/components/LayersPanel.vue:35','src/components/MobileHud/MobilePresencePopover.vue:52',- 'src/components/PagesPanel.vue:99',- 'src/components/PagesPanel.vue:133',- 'src/components/TabBar.vue:53','src/components/Toolbar/MobileToolbar.vue:79','src/components/Toolbar/MobileToolbar.vue:171','src/components/Toolbar/ToolButton.vue:20',diff --git a/tools/architecture/tests/dynamic-classes.test.ts b/tools/architecture/tests/dynamic-classes.test.tsindex fd355360d..7cdf97df3 100644--- a/tools/architecture/tests/dynamic-classes.test.ts+++ b/tools/architecture/tests/dynamic-classes.test.ts@@ -24,8 +24,8 @@ describe('dynamic Tailwind state classes', () => {})test('allows only audited locations inside legacy files', () => {- const audited = `<template>${'\n'.repeat(26)}<button :class="active ? 'bg-hover' : 'text-muted'" /></template>`- expect(dynamicClassDiagnostics('src/components/LayersPanel.vue', audited)).toEqual([])+ const audited = `<template>${'\n'.repeat(19)}<button :class="active ? 'bg-hover' : 'text-muted'" /></template>`+ expect(dynamicClassDiagnostics('src/components/Toolbar/ToolButton.vue', audited)).toEqual([])expect(dynamicClassDiagnostics('src/components/LayersPanel.vue',