slidev-theme-tud 0.0.7 → 0.0.9

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/example.mdc CHANGED
@@ -58,8 +58,7 @@ layout: "section"
58
58
  ## Using `section` or `section-blue`
59
59
 
60
60
  ---
61
- layout: "section-n"
62
- variant: 1
61
+ layout: "section-1"
63
62
  ---
64
63
 
65
64
 
@@ -72,11 +71,10 @@ You can customize the colors within the TUD color set.
72
71
 
73
72
  ::detail::
74
73
 
75
- This slide uses `section-n` with `variant: 1`.
74
+ This slide uses the `section-1` layout.
76
75
 
77
76
  ---
78
- layout: "section-n"
79
- variant: 2
77
+ layout: "section-2"
80
78
  ---
81
79
 
82
80
 
@@ -88,12 +86,11 @@ contextual information.
88
86
 
89
87
  You can customize the colors within the TUD color set.
90
88
 
91
- This slide uses `section-n` with `variant: 2`.
89
+ This slide uses the `section-2` layout.
92
90
 
93
91
 
94
92
  ---
95
- layout: "section-n"
96
- variant: 3
93
+ layout: "section-3"
97
94
  ---
98
95
 
99
96
 
@@ -107,37 +104,34 @@ You can customize the colors within the TUD color set.
107
104
 
108
105
  ::detail::
109
106
 
110
- This slide uses `section-n` with `variant: 3`.
107
+ This slide uses the `section-3` layout.
111
108
 
112
109
  ---
113
- layout: "section-n"
114
- variant: 4
110
+ layout: "section-4"
115
111
  ---
116
112
 
117
113
 
118
114
  # Another section
119
115
 
120
- ## Using `section-n` with `variant: 4`
116
+ ## Using `section-4`
121
117
 
122
118
  ---
123
- layout: "section-n"
124
- variant: 5
119
+ layout: "section-5"
125
120
  ---
126
121
 
127
122
 
128
123
  # Another section
129
124
 
130
- ## Using `section-n` with `variant: 5`
125
+ ## Using `section-5`
131
126
 
132
127
  ---
133
- layout: "section-n"
134
- variant: 6
128
+ layout: "section-6"
135
129
  ---
136
130
 
137
131
 
138
132
  # Another section
139
133
 
140
- ## Using `section-n` with `variant: 6`
134
+ ## Using `section-6`
141
135
 
142
136
  ---
143
137
 
package/global-top.vue CHANGED
@@ -59,7 +59,9 @@ const progressProps = {
59
59
  emptyFirst: true,
60
60
  scale: 'clicks',
61
61
  disable: (layout: string) =>
62
- new Set(['cover', 'cover-blue', 'cover-white', 'section', 'section-blue', 'section-white', 'section-n']).has(layout),
62
+ new Set(['cover', 'cover-blue', 'cover-white', 'section', 'section-blue', 'section-white', 'section-n',
63
+ 'section-1', 'section-2', 'section-3', 'section-4', 'section-5', 'section-6',
64
+ ]).has(layout),
63
65
  }
64
66
  </script>
65
67
 
package/layouts/README.md CHANGED
@@ -1,2 +1,6 @@
1
1
  Note that `cover.vue` and `section.vue` are only symbolic links
2
2
  to the `cover-blue.vue` and `section-blue.vue` layouts, respectively.
3
+
4
+ `section-n.vue` is internal: it implements all six section compositions,
5
+ parameterized by its `variant` prop. Decks use the public `section-1.vue` …
6
+ `section-6.vue` layouts, which are thin aliases that preset that prop.
@@ -0,0 +1,13 @@
1
+ <!-- Alias: for the `section-n` layout with `variant: 1`. -->
2
+ <!-- Any other property (e.g. `colors`) falls through to `section-n`. -->
3
+ <template>
4
+ <SectionN :variant="1">
5
+ <template v-for="(_, name) in $slots" #[name]="slotProps">
6
+ <slot :name="name" v-bind="slotProps || {}" />
7
+ </template>
8
+ </SectionN>
9
+ </template>
10
+
11
+ <script setup lang="ts">
12
+ import SectionN from './section-n.vue'
13
+ </script>
@@ -0,0 +1,13 @@
1
+ <!-- Alias: for the `section-n` layout with `variant: 2`. -->
2
+ <!-- Any other property (e.g. `colors`) falls through to `section-n`. -->
3
+ <template>
4
+ <SectionN :variant="2">
5
+ <template v-for="(_, name) in $slots" #[name]="slotProps">
6
+ <slot :name="name" v-bind="slotProps || {}" />
7
+ </template>
8
+ </SectionN>
9
+ </template>
10
+
11
+ <script setup lang="ts">
12
+ import SectionN from './section-n.vue'
13
+ </script>
@@ -0,0 +1,13 @@
1
+ <!-- Alias: for the `section-n` layout with `variant: 3`. -->
2
+ <!-- Any other property (e.g. `colors`) falls through to `section-n`. -->
3
+ <template>
4
+ <SectionN :variant="3">
5
+ <template v-for="(_, name) in $slots" #[name]="slotProps">
6
+ <slot :name="name" v-bind="slotProps || {}" />
7
+ </template>
8
+ </SectionN>
9
+ </template>
10
+
11
+ <script setup lang="ts">
12
+ import SectionN from './section-n.vue'
13
+ </script>
@@ -0,0 +1,13 @@
1
+ <!-- Alias: for the `section-n` layout with `variant: 4`. -->
2
+ <!-- Any other property (e.g. `colors`) falls through to `section-n`. -->
3
+ <template>
4
+ <SectionN :variant="4">
5
+ <template v-for="(_, name) in $slots" #[name]="slotProps">
6
+ <slot :name="name" v-bind="slotProps || {}" />
7
+ </template>
8
+ </SectionN>
9
+ </template>
10
+
11
+ <script setup lang="ts">
12
+ import SectionN from './section-n.vue'
13
+ </script>
@@ -0,0 +1,13 @@
1
+ <!-- Alias: for the `section-n` layout with `variant: 5`. -->
2
+ <!-- Any other property (e.g. `colors`) falls through to `section-n`. -->
3
+ <template>
4
+ <SectionN :variant="5">
5
+ <template v-for="(_, name) in $slots" #[name]="slotProps">
6
+ <slot :name="name" v-bind="slotProps || {}" />
7
+ </template>
8
+ </SectionN>
9
+ </template>
10
+
11
+ <script setup lang="ts">
12
+ import SectionN from './section-n.vue'
13
+ </script>
@@ -0,0 +1,13 @@
1
+ <!-- Alias: for the `section-n` layout with `variant: 6`. -->
2
+ <!-- Any other property (e.g. `colors`) falls through to `section-n`. -->
3
+ <template>
4
+ <SectionN :variant="6">
5
+ <template v-for="(_, name) in $slots" #[name]="slotProps">
6
+ <slot :name="name" v-bind="slotProps || {}" />
7
+ </template>
8
+ </SectionN>
9
+ </template>
10
+
11
+ <script setup lang="ts">
12
+ import SectionN from './section-n.vue'
13
+ </script>
@@ -1,3 +1,5 @@
1
+ <!-- Internal: use the `section-1` … `section-6` layouts instead,
2
+ which alias this one with the matching `variant`. -->
1
3
  <template>
2
4
  <div class="h-full">
3
5
  <div class="slidev-layout section-n" :class="`section-${variant}`" :style="{ '--section-text': textCss }">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "slidev-theme-tud",
3
- "version": "0.0.7",
3
+ "version": "0.0.9",
4
4
  "type": "module",
5
5
  "description": "Corporate TUD theme for SliDev",
6
6
  "keywords": [