slidev-theme-one-purple-unicorn-pro 0.2.0 → 0.3.0

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.
@@ -0,0 +1,32 @@
1
+ <template>
2
+ <div v-if="!isHidden" class="slide-indicator">
3
+ {{ $nav.currentPage }} / {{ $nav.total }}
4
+ </div>
5
+ </template>
6
+
7
+ <script setup>
8
+ import { computed } from 'vue'
9
+ import { useNav } from '@slidev/client'
10
+
11
+ const { currentLayout } = useNav()
12
+
13
+ const hiddenLayouts = ['cover', 'section', 'intro', 'end']
14
+
15
+ const isHidden = computed(() => hiddenLayouts.includes(currentLayout.value))
16
+ </script>
17
+
18
+ <style scoped>
19
+ .slide-indicator {
20
+ position: fixed;
21
+ right: 2rem;
22
+ bottom: 1.5rem;
23
+ font-family: var(--slidev-theme-font-mono, 'JetBrains Mono', monospace);
24
+ font-size: 0.75rem;
25
+ color: var(--text-muted, #5c6370);
26
+ letter-spacing: 0.05em;
27
+ opacity: 0.7;
28
+ z-index: 10;
29
+ pointer-events: none;
30
+ transition: opacity var(--transition-fast, 150ms ease);
31
+ }
32
+ </style>
package/global-top.vue ADDED
@@ -0,0 +1,8 @@
1
+ <template>
2
+ <!-- Global Top Component for One Dark Unicorn Pro Theme -->
3
+ </template>
4
+
5
+ <script setup>
6
+ // Theme-specific global configurations
7
+ // Minimal configuration - let Slidev handle its own functionality
8
+ </script>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "slidev-theme-one-purple-unicorn-pro",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "type": "module",
5
5
  "description": "One Purple Unicorn Pro theme for Slidev - Purple/Indigo focused theme with clean macOS style",
6
6
  "keywords": [
@@ -23,6 +23,8 @@
23
23
  "styles/**/*",
24
24
  "setup/**/*",
25
25
  "uno.config.ts",
26
+ "global-top.vue",
27
+ "global-bottom.vue",
26
28
  "styles.css",
27
29
  "README.md"
28
30
  ],