slidev-theme-neversink 0.3.0 → 0.3.2

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.
@@ -18,18 +18,7 @@ const colorscheme = computed(() => {
18
18
  </script>
19
19
 
20
20
  <template>
21
- <svg
22
- version="1.1"
23
- id="Layer_1"
24
- xmlns="http://www.w3.org/2000/svg"
25
- xmlns:xlink="http://www.w3.org/1999/xlink"
26
- x="0px"
27
- y="0px"
28
- viewBox="0 0 196 73"
29
- style="enable-background: new 0 0 196 73"
30
- xml:space="preserve"
31
- :width="width"
32
- >
21
+ <svg viewBox="0 0 196 73" :width="width">
33
22
  <path
34
23
  class="st0"
35
24
  :class="colorscheme"
@@ -16,14 +16,7 @@ const colorscheme = computed(() => {
16
16
  })
17
17
  </script>
18
18
  <template>
19
- <svg
20
- id="Layer_1"
21
- data-name="Layer 1"
22
- xmlns="http://www.w3.org/2000/svg"
23
- version="1.1"
24
- viewBox="0 0 356 204"
25
- :width="width"
26
- >
19
+ <svg viewBox="0 0 356 204" :width="width">
27
20
  <path
28
21
  class="cls-1"
29
22
  :class="colorscheme"
@@ -1,10 +1,9 @@
1
1
  <script setup>
2
2
  import { computed } from 'vue'
3
- import { resolveColor } from '../layoutHelper'
4
3
  const props = defineProps({
5
4
  shape: {
6
5
  type: String,
7
- default: 's-s-2-100',
6
+ default: 's-s-2-10',
8
7
  },
9
8
  color: {
10
9
  type: String,
@@ -29,13 +29,7 @@ const thumbRotation = computed(() => {
29
29
  </script>
30
30
 
31
31
  <template>
32
- <svg
33
- xmlns="http://www.w3.org/2000/svg"
34
- version="1.1"
35
- viewBox="0 0 800 800"
36
- :width="width"
37
- :style="{ transform: thumbRotation }"
38
- >
32
+ <svg viewBox="0 0 800 800" :width="width" :style="{ transform: thumbRotation }">
39
33
  <defs></defs>
40
34
  <g id="bg">
41
35
  <polygon
package/example.md CHANGED
@@ -1292,7 +1292,7 @@ title: Lines
1292
1292
 
1293
1293
  # Lines
1294
1294
 
1295
- <Line :x1=0 :y1=0 :x2=200 :y2=200 :width=2 color='red-400' v-drag="[326,136,250,250]" />
1295
+ <Line :x1=0 :y1=0 :x2=200 :y2=200 :width=2 color='red' v-drag="[326,136,250,250]" />
1296
1296
 
1297
1297
  ---
1298
1298
  layout: side-title
@@ -1,9 +1,7 @@
1
- <script setup lang="ts">
2
- import { computed, useSlots } from 'vue'
1
+ <script setup lang="js">
2
+ import { computed } from 'vue'
3
3
  import { compute_alignment, compute_column_size } from '../layoutHelper'
4
4
 
5
- const slots = useSlots()
6
-
7
5
  const props = defineProps({
8
6
  side: {
9
7
  default: 'l',
@@ -55,15 +53,15 @@ const colorscheme = computed(() => {
55
53
  <p>
56
54
  There are three parameters: <code>color</code>, <code>columns</code> and <code>align</code>. Currently:
57
55
  <code>color: {{ props.color }}</code
58
- >, <code>columns: {{ props.columns }}</code> and <code>align: {{ props.align }}</code
56
+ >, <code>columns: {{ props.titlewidth }}</code> and <code>align: {{ props.align }}</code
59
57
  >.
60
58
  </p>
61
59
  <p>The "slots" of the page are default and <code>:: content ::</code></p>
62
60
  <p>
63
- Options for <code>columns</code> are divided into 12 column units. So with <code>columns: is-1-11</code> the left
64
- column is 1/12 wide and the the right columns is 11/12 wide. The component admits a short had of only specifying
65
- the left column (<code>columns: is-1</code> does the same thing). In addition there are short hands like
66
- <code>columns: is-one-quarter</code> which resolves to <code>is-3-9</code>, etc...
61
+ Options for <code>titlewidth</code> are divided into 12 column units. So with <code>titlewidth: is-1-11</code> the
62
+ left column is 1/12 wide and the the right columns is 11/12 wide. The component admits a short had of only
63
+ specifying the left column (<code>titlewidth: is-1</code> does the same thing). In addition there are short hands
64
+ like <code>titlewidth: is-one-quarter</code> which resolves to <code>is-3-9</code>, etc...
67
65
  </p>
68
66
  <p>
69
67
  Here are a bunch of examples:
@@ -1,9 +1,7 @@
1
- <script setup lang="ts">
2
- import { computed, useSlots } from 'vue'
1
+ <script setup lang="js">
2
+ import { computed } from 'vue'
3
3
  import { compute_alignment, compute_column_size } from '../layoutHelper'
4
4
 
5
- const slots = useSlots()
6
-
7
5
  const props = defineProps({
8
6
  columns: {
9
7
  default: 'is-one-half',
@@ -59,7 +57,7 @@ const colorscheme = computed(() => {
59
57
 
60
58
  <p>The <code>color</code> parameter determines color of the title.</p>
61
59
  </div>
62
- <template v-else>
60
+ <div v-else>
63
61
  <div class="flex flex-col h-full w-full">
64
62
  <div class="w-full h-fit min-h-13 pt-2 pb-2 slidecolor" :class="colorscheme">
65
63
  <div class="slidev-layout toptitle title p-0 ml-6 mr-6 mt-auto mb-auto" :class="alignment.t">
@@ -80,7 +78,7 @@ const colorscheme = computed(() => {
80
78
  <slot name="default" />
81
79
  </div>
82
80
  </div>
83
- </template>
81
+ </div>
84
82
  </template>
85
83
 
86
84
  <style>
@@ -1,8 +1,6 @@
1
- <script setup lang="ts">
2
- import { computed, useSlots } from 'vue'
3
- import { compute_alignment, compute_column_size } from '../layoutHelper'
4
-
5
- const slots = useSlots()
1
+ <script setup lang="js">
2
+ import { computed } from 'vue'
3
+ import { compute_alignment } from '../layoutHelper'
6
4
 
7
5
  const props = defineProps({
8
6
  color: {
@@ -41,7 +39,7 @@ const colorscheme = computed(() => {
41
39
 
42
40
  <p>The <code>color</code> parameter determines color of the title.</p>
43
41
  </div>
44
- <template v-else>
42
+ <div v-else>
45
43
  <div class="flex flex-col h-full w-full">
46
44
  <div class="w-full h-fit min-h-13 pt-2 pb-2 slidecolor" :class="colorscheme">
47
45
  <div class="slidev-layout toptitle title p-0 pt-0 ml-6 mr-6 mt-auto mb-auto" :class="alignment">
@@ -55,7 +53,7 @@ const colorscheme = computed(() => {
55
53
  <slot name="default" />
56
54
  </div>
57
55
  </div>
58
- </template>
56
+ </div>
59
57
  </template>
60
58
 
61
59
  <style>
@@ -1,4 +1,4 @@
1
- <script setup lang="ts">
1
+ <script setup lang="js">
2
2
  import { computed, useSlots } from 'vue'
3
3
  import { compute_alignment, compute_column_size } from '../layoutHelper'
4
4
 
@@ -1,9 +1,7 @@
1
- <script setup lang="ts">
2
- import { computed, useSlots } from 'vue'
1
+ <script setup lang="js">
2
+ import { computed } from 'vue'
3
3
  import { compute_alignment, compute_column_size } from '../layoutHelper'
4
4
 
5
- const slots = useSlots()
6
-
7
5
  const props = defineProps({
8
6
  columns: {
9
7
  default: 'is-one-half',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "slidev-theme-neversink",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
4
4
  "author": "gureckis",
5
5
  "type": "module",
6
6
  "keywords": [