@humanspeak/svelte-motion 0.0.6 → 0.0.8
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/README.md +124 -0
- package/dist/html/A.svelte +12 -0
- package/dist/html/A.svelte.d.ts +4 -0
- package/dist/html/Area.svelte +8 -0
- package/dist/html/Area.svelte.d.ts +4 -0
- package/dist/html/Article.svelte +12 -0
- package/dist/html/Article.svelte.d.ts +4 -0
- package/dist/html/Aside.svelte +12 -0
- package/dist/html/Aside.svelte.d.ts +4 -0
- package/dist/html/Base.svelte +8 -0
- package/dist/html/Base.svelte.d.ts +4 -0
- package/dist/html/Blockquote.svelte +12 -0
- package/dist/html/Blockquote.svelte.d.ts +4 -0
- package/dist/html/Br.svelte +8 -0
- package/dist/html/Br.svelte.d.ts +4 -0
- package/dist/{svelte/html → html}/Button.svelte +3 -6
- package/dist/html/Button.svelte.d.ts +4 -0
- package/dist/html/Code.svelte +12 -0
- package/dist/html/Code.svelte.d.ts +4 -0
- package/dist/html/Col.svelte +8 -0
- package/dist/html/Col.svelte.d.ts +4 -0
- package/dist/html/Dd.svelte +12 -0
- package/dist/html/Dd.svelte.d.ts +4 -0
- package/dist/{svelte/html → html}/Div.svelte +3 -6
- package/dist/html/Div.svelte.d.ts +4 -0
- package/dist/html/Dl.svelte +12 -0
- package/dist/html/Dl.svelte.d.ts +4 -0
- package/dist/html/Dt.svelte +12 -0
- package/dist/html/Dt.svelte.d.ts +4 -0
- package/dist/html/Embed.svelte +8 -0
- package/dist/html/Embed.svelte.d.ts +4 -0
- package/dist/html/Fieldset.svelte +12 -0
- package/dist/html/Fieldset.svelte.d.ts +4 -0
- package/dist/html/Figcaption.svelte +12 -0
- package/dist/html/Figcaption.svelte.d.ts +4 -0
- package/dist/html/Figure.svelte +12 -0
- package/dist/html/Figure.svelte.d.ts +4 -0
- package/dist/html/Footer.svelte +12 -0
- package/dist/html/Footer.svelte.d.ts +4 -0
- package/dist/html/Form.svelte +12 -0
- package/dist/html/Form.svelte.d.ts +4 -0
- package/dist/html/H1.svelte +12 -0
- package/dist/html/H1.svelte.d.ts +4 -0
- package/dist/html/H2.svelte +12 -0
- package/dist/html/H2.svelte.d.ts +4 -0
- package/dist/html/H3.svelte +12 -0
- package/dist/html/H3.svelte.d.ts +4 -0
- package/dist/html/H4.svelte +12 -0
- package/dist/html/H4.svelte.d.ts +4 -0
- package/dist/html/H5.svelte +12 -0
- package/dist/html/H5.svelte.d.ts +4 -0
- package/dist/html/H6.svelte +12 -0
- package/dist/html/H6.svelte.d.ts +4 -0
- package/dist/html/Header.svelte +12 -0
- package/dist/html/Header.svelte.d.ts +4 -0
- package/dist/html/Hr.svelte +8 -0
- package/dist/html/Hr.svelte.d.ts +4 -0
- package/dist/html/Img.svelte +8 -0
- package/dist/html/Img.svelte.d.ts +4 -0
- package/dist/html/Input.svelte +8 -0
- package/dist/html/Input.svelte.d.ts +4 -0
- package/dist/html/Label.svelte +12 -0
- package/dist/html/Label.svelte.d.ts +4 -0
- package/dist/html/Legend.svelte +12 -0
- package/dist/html/Legend.svelte.d.ts +4 -0
- package/dist/html/Li.svelte +12 -0
- package/dist/html/Li.svelte.d.ts +4 -0
- package/dist/html/Main.svelte +12 -0
- package/dist/html/Main.svelte.d.ts +4 -0
- package/dist/html/Nav.svelte +12 -0
- package/dist/html/Nav.svelte.d.ts +4 -0
- package/dist/html/Ol.svelte +12 -0
- package/dist/html/Ol.svelte.d.ts +4 -0
- package/dist/html/Option.svelte +12 -0
- package/dist/html/Option.svelte.d.ts +4 -0
- package/dist/html/P.svelte +12 -0
- package/dist/html/P.svelte.d.ts +4 -0
- package/dist/html/Param.svelte +8 -0
- package/dist/html/Param.svelte.d.ts +4 -0
- package/dist/html/Pre.svelte +12 -0
- package/dist/html/Pre.svelte.d.ts +4 -0
- package/dist/html/Section.svelte +12 -0
- package/dist/html/Section.svelte.d.ts +4 -0
- package/dist/html/Select.svelte +12 -0
- package/dist/html/Select.svelte.d.ts +4 -0
- package/dist/html/Source.svelte +8 -0
- package/dist/html/Source.svelte.d.ts +4 -0
- package/dist/html/Span.svelte +12 -0
- package/dist/html/Span.svelte.d.ts +4 -0
- package/dist/html/Table.svelte +12 -0
- package/dist/html/Table.svelte.d.ts +4 -0
- package/dist/html/Tbody.svelte +12 -0
- package/dist/html/Tbody.svelte.d.ts +4 -0
- package/dist/html/Td.svelte +12 -0
- package/dist/html/Td.svelte.d.ts +4 -0
- package/dist/html/Textarea.svelte +12 -0
- package/dist/html/Textarea.svelte.d.ts +4 -0
- package/dist/html/Tfoot.svelte +12 -0
- package/dist/html/Tfoot.svelte.d.ts +4 -0
- package/dist/html/Th.svelte +12 -0
- package/dist/html/Th.svelte.d.ts +4 -0
- package/dist/html/Thead.svelte +12 -0
- package/dist/html/Thead.svelte.d.ts +4 -0
- package/dist/html/Tr.svelte +12 -0
- package/dist/html/Tr.svelte.d.ts +4 -0
- package/dist/html/Track.svelte +8 -0
- package/dist/html/Track.svelte.d.ts +4 -0
- package/dist/html/Ul.svelte +12 -0
- package/dist/html/Ul.svelte.d.ts +4 -0
- package/dist/html/Wbr.svelte +8 -0
- package/dist/html/Wbr.svelte.d.ts +4 -0
- package/dist/html/_template.template +12 -0
- package/dist/html/_template_void.template +8 -0
- package/dist/html/index.d.ts +56 -0
- package/dist/html/index.js +56 -0
- package/dist/index.d.ts +6 -1
- package/dist/index.js +3 -1
- package/dist/{svelte/types.d.ts → types.d.ts} +10 -0
- package/dist/utils/objects.d.ts +45 -0
- package/dist/utils/objects.js +54 -0
- package/package.json +10 -10
- package/dist/svelte/html/Button.svelte.d.ts +0 -8
- package/dist/svelte/html/Div.svelte.d.ts +0 -8
- package/dist/svelte/index.d.ts +0 -8
- package/dist/svelte/index.js +0 -7
- package/dist/svelte/utils/objects.d.ts +0 -4
- package/dist/svelte/utils/objects.js +0 -13
- /package/dist/{svelte/html → html}/_MotionContainer.svelte +0 -0
- /package/dist/{svelte/html → html}/_MotionContainer.svelte.d.ts +0 -0
- /package/dist/{svelte/types.js → types.js} +0 -0
package/README.md
CHANGED
|
@@ -16,6 +16,130 @@
|
|
|
16
16
|
|
|
17
17
|
Just a little wrapper for motion. I love their work! The typical this is a WIP, if you have issues please give me a react example working so that I can work to ensure its running properly 😍
|
|
18
18
|
|
|
19
|
+
## Supported Elements
|
|
20
|
+
|
|
21
|
+
### Regular Elements
|
|
22
|
+
|
|
23
|
+
- `motion.a`
|
|
24
|
+
- `motion.article`
|
|
25
|
+
- `motion.aside`
|
|
26
|
+
- `motion.blockquote`
|
|
27
|
+
- `motion.button`
|
|
28
|
+
- `motion.code`
|
|
29
|
+
- `motion.dd`
|
|
30
|
+
- `motion.div`
|
|
31
|
+
- `motion.dl`
|
|
32
|
+
- `motion.dt`
|
|
33
|
+
- `motion.fieldset`
|
|
34
|
+
- `motion.figcaption`
|
|
35
|
+
- `motion.figure`
|
|
36
|
+
- `motion.footer`
|
|
37
|
+
- `motion.form`
|
|
38
|
+
- `motion.h1`
|
|
39
|
+
- `motion.h2`
|
|
40
|
+
- `motion.h3`
|
|
41
|
+
- `motion.h4`
|
|
42
|
+
- `motion.h5`
|
|
43
|
+
- `motion.h6`
|
|
44
|
+
- `motion.header`
|
|
45
|
+
- `motion.label`
|
|
46
|
+
- `motion.legend`
|
|
47
|
+
- `motion.li`
|
|
48
|
+
- `motion.main`
|
|
49
|
+
- `motion.nav`
|
|
50
|
+
- `motion.ol`
|
|
51
|
+
- `motion.option`
|
|
52
|
+
- `motion.p`
|
|
53
|
+
- `motion.pre`
|
|
54
|
+
- `motion.section`
|
|
55
|
+
- `motion.select`
|
|
56
|
+
- `motion.span`
|
|
57
|
+
- `motion.table`
|
|
58
|
+
- `motion.tbody`
|
|
59
|
+
- `motion.td`
|
|
60
|
+
- `motion.textarea`
|
|
61
|
+
- `motion.tfoot`
|
|
62
|
+
- `motion.th`
|
|
63
|
+
- `motion.thead`
|
|
64
|
+
- `motion.tr`
|
|
65
|
+
- `motion.ul`
|
|
66
|
+
|
|
67
|
+
### Void Elements
|
|
68
|
+
|
|
69
|
+
- `motion.area`
|
|
70
|
+
- `motion.base`
|
|
71
|
+
- `motion.br`
|
|
72
|
+
- `motion.col`
|
|
73
|
+
- `motion.embed`
|
|
74
|
+
- `motion.hr`
|
|
75
|
+
- `motion.img`
|
|
76
|
+
- `motion.input`
|
|
77
|
+
- `motion.param`
|
|
78
|
+
- `motion.source`
|
|
79
|
+
- `motion.track`
|
|
80
|
+
- `motion.wbr`
|
|
81
|
+
|
|
82
|
+
### Regular Elements
|
|
83
|
+
|
|
84
|
+
- `motion.a`
|
|
85
|
+
- `motion.article`
|
|
86
|
+
- `motion.aside`
|
|
87
|
+
- `motion.blockquote`
|
|
88
|
+
- `motion.button`
|
|
89
|
+
- `motion.code`
|
|
90
|
+
- `motion.dd`
|
|
91
|
+
- `motion.div`
|
|
92
|
+
- `motion.dl`
|
|
93
|
+
- `motion.dt`
|
|
94
|
+
- `motion.fieldset`
|
|
95
|
+
- `motion.figcaption`
|
|
96
|
+
- `motion.figure`
|
|
97
|
+
- `motion.footer`
|
|
98
|
+
- `motion.form`
|
|
99
|
+
- `motion.h1`
|
|
100
|
+
- `motion.h2`
|
|
101
|
+
- `motion.h3`
|
|
102
|
+
- `motion.h4`
|
|
103
|
+
- `motion.h5`
|
|
104
|
+
- `motion.h6`
|
|
105
|
+
- `motion.header`
|
|
106
|
+
- `motion.label`
|
|
107
|
+
- `motion.legend`
|
|
108
|
+
- `motion.li`
|
|
109
|
+
- `motion.main`
|
|
110
|
+
- `motion.nav`
|
|
111
|
+
- `motion.ol`
|
|
112
|
+
- `motion.option`
|
|
113
|
+
- `motion.p`
|
|
114
|
+
- `motion.pre`
|
|
115
|
+
- `motion.section`
|
|
116
|
+
- `motion.select`
|
|
117
|
+
- `motion.span`
|
|
118
|
+
- `motion.table`
|
|
119
|
+
- `motion.tbody`
|
|
120
|
+
- `motion.td`
|
|
121
|
+
- `motion.textarea`
|
|
122
|
+
- `motion.tfoot`
|
|
123
|
+
- `motion.th`
|
|
124
|
+
- `motion.thead`
|
|
125
|
+
- `motion.tr`
|
|
126
|
+
- `motion.ul`
|
|
127
|
+
|
|
128
|
+
### Void Elements
|
|
129
|
+
|
|
130
|
+
- `motion.area`
|
|
131
|
+
- `motion.base`
|
|
132
|
+
- `motion.br`
|
|
133
|
+
- `motion.col`
|
|
134
|
+
- `motion.embed`
|
|
135
|
+
- `motion.hr`
|
|
136
|
+
- `motion.img`
|
|
137
|
+
- `motion.input`
|
|
138
|
+
- `motion.param`
|
|
139
|
+
- `motion.source`
|
|
140
|
+
- `motion.track`
|
|
141
|
+
- `motion.wbr`
|
|
142
|
+
|
|
19
143
|
## External Dependencies
|
|
20
144
|
|
|
21
145
|
This package carefully selects its dependencies to provide a robust and maintainable solution:
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import MotionContainer from './_MotionContainer.svelte'
|
|
3
|
+
import type { HTMLElementProps } from '../types.js'
|
|
4
|
+
|
|
5
|
+
type Props = HTMLElementProps
|
|
6
|
+
|
|
7
|
+
let { children, ...rest } = $props<HTMLElementProps>()
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<MotionContainer tag="a" {...rest}>
|
|
11
|
+
{@render children?.()}
|
|
12
|
+
</MotionContainer>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import MotionContainer from './_MotionContainer.svelte'
|
|
3
|
+
import type { HTMLElementProps } from '../types.js'
|
|
4
|
+
|
|
5
|
+
type Props = HTMLElementProps
|
|
6
|
+
|
|
7
|
+
let { children, ...rest } = $props<HTMLElementProps>()
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<MotionContainer tag="article" {...rest}>
|
|
11
|
+
{@render children?.()}
|
|
12
|
+
</MotionContainer>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import MotionContainer from './_MotionContainer.svelte'
|
|
3
|
+
import type { HTMLElementProps } from '../types.js'
|
|
4
|
+
|
|
5
|
+
type Props = HTMLElementProps
|
|
6
|
+
|
|
7
|
+
let { children, ...rest } = $props<HTMLElementProps>()
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<MotionContainer tag="aside" {...rest}>
|
|
11
|
+
{@render children?.()}
|
|
12
|
+
</MotionContainer>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import MotionContainer from './_MotionContainer.svelte'
|
|
3
|
+
import type { HTMLElementProps } from '../types.js'
|
|
4
|
+
|
|
5
|
+
type Props = HTMLElementProps
|
|
6
|
+
|
|
7
|
+
let { children, ...rest } = $props<HTMLElementProps>()
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<MotionContainer tag="blockquote" {...rest}>
|
|
11
|
+
{@render children?.()}
|
|
12
|
+
</MotionContainer>
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import MotionContainer from './_MotionContainer.svelte'
|
|
3
|
-
import type {
|
|
3
|
+
import type { HTMLElementProps } from '../types.js'
|
|
4
4
|
|
|
5
|
-
type Props =
|
|
6
|
-
children?: Snippet
|
|
7
|
-
[key: string]: unknown
|
|
8
|
-
}
|
|
5
|
+
type Props = HTMLElementProps
|
|
9
6
|
|
|
10
|
-
let { children, ...rest }
|
|
7
|
+
let { children, ...rest } = $props<HTMLElementProps>()
|
|
11
8
|
</script>
|
|
12
9
|
|
|
13
10
|
<MotionContainer tag="button" {...rest}>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import MotionContainer from './_MotionContainer.svelte'
|
|
3
|
+
import type { HTMLElementProps } from '../types.js'
|
|
4
|
+
|
|
5
|
+
type Props = HTMLElementProps
|
|
6
|
+
|
|
7
|
+
let { children, ...rest } = $props<HTMLElementProps>()
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<MotionContainer tag="code" {...rest}>
|
|
11
|
+
{@render children?.()}
|
|
12
|
+
</MotionContainer>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import MotionContainer from './_MotionContainer.svelte'
|
|
3
|
+
import type { HTMLElementProps } from '../types.js'
|
|
4
|
+
|
|
5
|
+
type Props = HTMLElementProps
|
|
6
|
+
|
|
7
|
+
let { children, ...rest } = $props<HTMLElementProps>()
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<MotionContainer tag="dd" {...rest}>
|
|
11
|
+
{@render children?.()}
|
|
12
|
+
</MotionContainer>
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import MotionContainer from './_MotionContainer.svelte'
|
|
3
|
-
import type {
|
|
3
|
+
import type { HTMLElementProps } from '../types.js'
|
|
4
4
|
|
|
5
|
-
type Props =
|
|
6
|
-
children?: Snippet
|
|
7
|
-
[key: string]: unknown
|
|
8
|
-
}
|
|
5
|
+
type Props = HTMLElementProps
|
|
9
6
|
|
|
10
|
-
let { children, ...rest }
|
|
7
|
+
let { children, ...rest } = $props<HTMLElementProps>()
|
|
11
8
|
</script>
|
|
12
9
|
|
|
13
10
|
<MotionContainer tag="div" {...rest}>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import MotionContainer from './_MotionContainer.svelte'
|
|
3
|
+
import type { HTMLElementProps } from '../types.js'
|
|
4
|
+
|
|
5
|
+
type Props = HTMLElementProps
|
|
6
|
+
|
|
7
|
+
let { children, ...rest } = $props<HTMLElementProps>()
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<MotionContainer tag="dl" {...rest}>
|
|
11
|
+
{@render children?.()}
|
|
12
|
+
</MotionContainer>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import MotionContainer from './_MotionContainer.svelte'
|
|
3
|
+
import type { HTMLElementProps } from '../types.js'
|
|
4
|
+
|
|
5
|
+
type Props = HTMLElementProps
|
|
6
|
+
|
|
7
|
+
let { children, ...rest } = $props<HTMLElementProps>()
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<MotionContainer tag="dt" {...rest}>
|
|
11
|
+
{@render children?.()}
|
|
12
|
+
</MotionContainer>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import MotionContainer from './_MotionContainer.svelte'
|
|
3
|
+
import type { HTMLElementProps } from '../types.js'
|
|
4
|
+
|
|
5
|
+
type Props = HTMLElementProps
|
|
6
|
+
|
|
7
|
+
let { children, ...rest } = $props<HTMLElementProps>()
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<MotionContainer tag="fieldset" {...rest}>
|
|
11
|
+
{@render children?.()}
|
|
12
|
+
</MotionContainer>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import MotionContainer from './_MotionContainer.svelte'
|
|
3
|
+
import type { HTMLElementProps } from '../types.js'
|
|
4
|
+
|
|
5
|
+
type Props = HTMLElementProps
|
|
6
|
+
|
|
7
|
+
let { children, ...rest } = $props<HTMLElementProps>()
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<MotionContainer tag="figcaption" {...rest}>
|
|
11
|
+
{@render children?.()}
|
|
12
|
+
</MotionContainer>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import MotionContainer from './_MotionContainer.svelte'
|
|
3
|
+
import type { HTMLElementProps } from '../types.js'
|
|
4
|
+
|
|
5
|
+
type Props = HTMLElementProps
|
|
6
|
+
|
|
7
|
+
let { children, ...rest } = $props<HTMLElementProps>()
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<MotionContainer tag="figure" {...rest}>
|
|
11
|
+
{@render children?.()}
|
|
12
|
+
</MotionContainer>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import MotionContainer from './_MotionContainer.svelte'
|
|
3
|
+
import type { HTMLElementProps } from '../types.js'
|
|
4
|
+
|
|
5
|
+
type Props = HTMLElementProps
|
|
6
|
+
|
|
7
|
+
let { children, ...rest } = $props<HTMLElementProps>()
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<MotionContainer tag="footer" {...rest}>
|
|
11
|
+
{@render children?.()}
|
|
12
|
+
</MotionContainer>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import MotionContainer from './_MotionContainer.svelte'
|
|
3
|
+
import type { HTMLElementProps } from '../types.js'
|
|
4
|
+
|
|
5
|
+
type Props = HTMLElementProps
|
|
6
|
+
|
|
7
|
+
let { children, ...rest } = $props<HTMLElementProps>()
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<MotionContainer tag="form" {...rest}>
|
|
11
|
+
{@render children?.()}
|
|
12
|
+
</MotionContainer>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import MotionContainer from './_MotionContainer.svelte'
|
|
3
|
+
import type { HTMLElementProps } from '../types.js'
|
|
4
|
+
|
|
5
|
+
type Props = HTMLElementProps
|
|
6
|
+
|
|
7
|
+
let { children, ...rest } = $props<HTMLElementProps>()
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<MotionContainer tag="h1" {...rest}>
|
|
11
|
+
{@render children?.()}
|
|
12
|
+
</MotionContainer>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import MotionContainer from './_MotionContainer.svelte'
|
|
3
|
+
import type { HTMLElementProps } from '../types.js'
|
|
4
|
+
|
|
5
|
+
type Props = HTMLElementProps
|
|
6
|
+
|
|
7
|
+
let { children, ...rest } = $props<HTMLElementProps>()
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<MotionContainer tag="h2" {...rest}>
|
|
11
|
+
{@render children?.()}
|
|
12
|
+
</MotionContainer>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import MotionContainer from './_MotionContainer.svelte'
|
|
3
|
+
import type { HTMLElementProps } from '../types.js'
|
|
4
|
+
|
|
5
|
+
type Props = HTMLElementProps
|
|
6
|
+
|
|
7
|
+
let { children, ...rest } = $props<HTMLElementProps>()
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<MotionContainer tag="h3" {...rest}>
|
|
11
|
+
{@render children?.()}
|
|
12
|
+
</MotionContainer>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import MotionContainer from './_MotionContainer.svelte'
|
|
3
|
+
import type { HTMLElementProps } from '../types.js'
|
|
4
|
+
|
|
5
|
+
type Props = HTMLElementProps
|
|
6
|
+
|
|
7
|
+
let { children, ...rest } = $props<HTMLElementProps>()
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<MotionContainer tag="h4" {...rest}>
|
|
11
|
+
{@render children?.()}
|
|
12
|
+
</MotionContainer>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import MotionContainer from './_MotionContainer.svelte'
|
|
3
|
+
import type { HTMLElementProps } from '../types.js'
|
|
4
|
+
|
|
5
|
+
type Props = HTMLElementProps
|
|
6
|
+
|
|
7
|
+
let { children, ...rest } = $props<HTMLElementProps>()
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<MotionContainer tag="h5" {...rest}>
|
|
11
|
+
{@render children?.()}
|
|
12
|
+
</MotionContainer>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import MotionContainer from './_MotionContainer.svelte'
|
|
3
|
+
import type { HTMLElementProps } from '../types.js'
|
|
4
|
+
|
|
5
|
+
type Props = HTMLElementProps
|
|
6
|
+
|
|
7
|
+
let { children, ...rest } = $props<HTMLElementProps>()
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<MotionContainer tag="h6" {...rest}>
|
|
11
|
+
{@render children?.()}
|
|
12
|
+
</MotionContainer>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import MotionContainer from './_MotionContainer.svelte'
|
|
3
|
+
import type { HTMLElementProps } from '../types.js'
|
|
4
|
+
|
|
5
|
+
type Props = HTMLElementProps
|
|
6
|
+
|
|
7
|
+
let { children, ...rest } = $props<HTMLElementProps>()
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<MotionContainer tag="header" {...rest}>
|
|
11
|
+
{@render children?.()}
|
|
12
|
+
</MotionContainer>
|