@humanspeak/svelte-motion 0.0.8 → 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/README.md +0 -61
- package/dist/html/A.svelte +1 -3
- package/dist/html/Area.svelte +1 -1
- package/dist/html/Article.svelte +1 -3
- package/dist/html/Aside.svelte +1 -3
- package/dist/html/Base.svelte +1 -1
- package/dist/html/Blockquote.svelte +1 -3
- package/dist/html/Br.svelte +1 -1
- package/dist/html/Button.svelte +1 -3
- package/dist/html/Code.svelte +1 -3
- package/dist/html/Col.svelte +1 -1
- package/dist/html/Dd.svelte +1 -3
- package/dist/html/Div.svelte +1 -3
- package/dist/html/Dl.svelte +1 -3
- package/dist/html/Dt.svelte +1 -3
- package/dist/html/Embed.svelte +1 -1
- package/dist/html/Fieldset.svelte +1 -3
- package/dist/html/Figcaption.svelte +1 -3
- package/dist/html/Figure.svelte +1 -3
- package/dist/html/Footer.svelte +1 -3
- package/dist/html/Form.svelte +1 -3
- package/dist/html/H1.svelte +1 -3
- package/dist/html/H2.svelte +1 -3
- package/dist/html/H3.svelte +1 -3
- package/dist/html/H4.svelte +1 -3
- package/dist/html/H5.svelte +1 -3
- package/dist/html/H6.svelte +1 -3
- package/dist/html/Header.svelte +1 -3
- package/dist/html/Hr.svelte +1 -1
- package/dist/html/Img.svelte +1 -1
- package/dist/html/Input.svelte +1 -1
- package/dist/html/Label.svelte +1 -3
- package/dist/html/Legend.svelte +1 -3
- package/dist/html/Li.svelte +1 -3
- package/dist/html/Main.svelte +1 -3
- package/dist/html/Nav.svelte +1 -3
- package/dist/html/Ol.svelte +1 -3
- package/dist/html/Option.svelte +1 -3
- package/dist/html/P.svelte +1 -3
- package/dist/html/Param.svelte +1 -1
- package/dist/html/Pre.svelte +1 -3
- package/dist/html/Section.svelte +1 -3
- package/dist/html/Select.svelte +1 -3
- package/dist/html/Source.svelte +1 -1
- package/dist/html/Span.svelte +1 -3
- package/dist/html/Table.svelte +1 -3
- package/dist/html/Tbody.svelte +1 -3
- package/dist/html/Td.svelte +1 -3
- package/dist/html/Textarea.svelte +1 -3
- package/dist/html/Tfoot.svelte +1 -3
- package/dist/html/Th.svelte +1 -3
- package/dist/html/Thead.svelte +1 -3
- package/dist/html/Tr.svelte +1 -3
- package/dist/html/Track.svelte +1 -1
- package/dist/html/Ul.svelte +1 -3
- package/dist/html/Wbr.svelte +1 -1
- package/dist/html/_MotionContainer.svelte +2 -13
- package/dist/html/_MotionContainer.svelte.d.ts +2 -8
- package/dist/html/_template.template +1 -3
- package/dist/html/_template_void.template +1 -1
- package/dist/html/index.d.ts +57 -0
- package/dist/index.d.ts +1 -4
- package/dist/types.d.ts +10 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -79,67 +79,6 @@ Just a little wrapper for motion. I love their work! The typical this is a WIP,
|
|
|
79
79
|
- `motion.track`
|
|
80
80
|
- `motion.wbr`
|
|
81
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
|
-
|
|
143
82
|
## External Dependencies
|
|
144
83
|
|
|
145
84
|
This package carefully selects its dependencies to provide a robust and maintainable solution:
|
package/dist/html/A.svelte
CHANGED
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
import MotionContainer from './_MotionContainer.svelte'
|
|
3
3
|
import type { HTMLElementProps } from '../types.js'
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
let { children, ...rest } = $props<HTMLElementProps>()
|
|
5
|
+
let { children, ...rest }: HTMLElementProps = $props()
|
|
8
6
|
</script>
|
|
9
7
|
|
|
10
8
|
<MotionContainer tag="a" {...rest}>
|
package/dist/html/Area.svelte
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import MotionContainer from './_MotionContainer.svelte'
|
|
3
3
|
import type { HTMLVoidElementProps } from '../types.js'
|
|
4
4
|
|
|
5
|
-
let { ...rest } = $props
|
|
5
|
+
let { ...rest }: HTMLVoidElementProps = $props()
|
|
6
6
|
</script>
|
|
7
7
|
|
|
8
8
|
<MotionContainer tag="area" {...rest} />
|
package/dist/html/Article.svelte
CHANGED
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
import MotionContainer from './_MotionContainer.svelte'
|
|
3
3
|
import type { HTMLElementProps } from '../types.js'
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
let { children, ...rest } = $props<HTMLElementProps>()
|
|
5
|
+
let { children, ...rest }: HTMLElementProps = $props()
|
|
8
6
|
</script>
|
|
9
7
|
|
|
10
8
|
<MotionContainer tag="article" {...rest}>
|
package/dist/html/Aside.svelte
CHANGED
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
import MotionContainer from './_MotionContainer.svelte'
|
|
3
3
|
import type { HTMLElementProps } from '../types.js'
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
let { children, ...rest } = $props<HTMLElementProps>()
|
|
5
|
+
let { children, ...rest }: HTMLElementProps = $props()
|
|
8
6
|
</script>
|
|
9
7
|
|
|
10
8
|
<MotionContainer tag="aside" {...rest}>
|
package/dist/html/Base.svelte
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import MotionContainer from './_MotionContainer.svelte'
|
|
3
3
|
import type { HTMLVoidElementProps } from '../types.js'
|
|
4
4
|
|
|
5
|
-
let { ...rest } = $props
|
|
5
|
+
let { ...rest }: HTMLVoidElementProps = $props()
|
|
6
6
|
</script>
|
|
7
7
|
|
|
8
8
|
<MotionContainer tag="base" {...rest} />
|
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
import MotionContainer from './_MotionContainer.svelte'
|
|
3
3
|
import type { HTMLElementProps } from '../types.js'
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
let { children, ...rest } = $props<HTMLElementProps>()
|
|
5
|
+
let { children, ...rest }: HTMLElementProps = $props()
|
|
8
6
|
</script>
|
|
9
7
|
|
|
10
8
|
<MotionContainer tag="blockquote" {...rest}>
|
package/dist/html/Br.svelte
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import MotionContainer from './_MotionContainer.svelte'
|
|
3
3
|
import type { HTMLVoidElementProps } from '../types.js'
|
|
4
4
|
|
|
5
|
-
let { ...rest } = $props
|
|
5
|
+
let { ...rest }: HTMLVoidElementProps = $props()
|
|
6
6
|
</script>
|
|
7
7
|
|
|
8
8
|
<MotionContainer tag="br" {...rest} />
|
package/dist/html/Button.svelte
CHANGED
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
import MotionContainer from './_MotionContainer.svelte'
|
|
3
3
|
import type { HTMLElementProps } from '../types.js'
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
let { children, ...rest } = $props<HTMLElementProps>()
|
|
5
|
+
let { children, ...rest }: HTMLElementProps = $props()
|
|
8
6
|
</script>
|
|
9
7
|
|
|
10
8
|
<MotionContainer tag="button" {...rest}>
|
package/dist/html/Code.svelte
CHANGED
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
import MotionContainer from './_MotionContainer.svelte'
|
|
3
3
|
import type { HTMLElementProps } from '../types.js'
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
let { children, ...rest } = $props<HTMLElementProps>()
|
|
5
|
+
let { children, ...rest }: HTMLElementProps = $props()
|
|
8
6
|
</script>
|
|
9
7
|
|
|
10
8
|
<MotionContainer tag="code" {...rest}>
|
package/dist/html/Col.svelte
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import MotionContainer from './_MotionContainer.svelte'
|
|
3
3
|
import type { HTMLVoidElementProps } from '../types.js'
|
|
4
4
|
|
|
5
|
-
let { ...rest } = $props
|
|
5
|
+
let { ...rest }: HTMLVoidElementProps = $props()
|
|
6
6
|
</script>
|
|
7
7
|
|
|
8
8
|
<MotionContainer tag="col" {...rest} />
|
package/dist/html/Dd.svelte
CHANGED
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
import MotionContainer from './_MotionContainer.svelte'
|
|
3
3
|
import type { HTMLElementProps } from '../types.js'
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
let { children, ...rest } = $props<HTMLElementProps>()
|
|
5
|
+
let { children, ...rest }: HTMLElementProps = $props()
|
|
8
6
|
</script>
|
|
9
7
|
|
|
10
8
|
<MotionContainer tag="dd" {...rest}>
|
package/dist/html/Div.svelte
CHANGED
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
import MotionContainer from './_MotionContainer.svelte'
|
|
3
3
|
import type { HTMLElementProps } from '../types.js'
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
let { children, ...rest } = $props<HTMLElementProps>()
|
|
5
|
+
let { children, ...rest }: HTMLElementProps = $props()
|
|
8
6
|
</script>
|
|
9
7
|
|
|
10
8
|
<MotionContainer tag="div" {...rest}>
|
package/dist/html/Dl.svelte
CHANGED
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
import MotionContainer from './_MotionContainer.svelte'
|
|
3
3
|
import type { HTMLElementProps } from '../types.js'
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
let { children, ...rest } = $props<HTMLElementProps>()
|
|
5
|
+
let { children, ...rest }: HTMLElementProps = $props()
|
|
8
6
|
</script>
|
|
9
7
|
|
|
10
8
|
<MotionContainer tag="dl" {...rest}>
|
package/dist/html/Dt.svelte
CHANGED
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
import MotionContainer from './_MotionContainer.svelte'
|
|
3
3
|
import type { HTMLElementProps } from '../types.js'
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
let { children, ...rest } = $props<HTMLElementProps>()
|
|
5
|
+
let { children, ...rest }: HTMLElementProps = $props()
|
|
8
6
|
</script>
|
|
9
7
|
|
|
10
8
|
<MotionContainer tag="dt" {...rest}>
|
package/dist/html/Embed.svelte
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import MotionContainer from './_MotionContainer.svelte'
|
|
3
3
|
import type { HTMLVoidElementProps } from '../types.js'
|
|
4
4
|
|
|
5
|
-
let { ...rest } = $props
|
|
5
|
+
let { ...rest }: HTMLVoidElementProps = $props()
|
|
6
6
|
</script>
|
|
7
7
|
|
|
8
8
|
<MotionContainer tag="embed" {...rest} />
|
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
import MotionContainer from './_MotionContainer.svelte'
|
|
3
3
|
import type { HTMLElementProps } from '../types.js'
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
let { children, ...rest } = $props<HTMLElementProps>()
|
|
5
|
+
let { children, ...rest }: HTMLElementProps = $props()
|
|
8
6
|
</script>
|
|
9
7
|
|
|
10
8
|
<MotionContainer tag="fieldset" {...rest}>
|
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
import MotionContainer from './_MotionContainer.svelte'
|
|
3
3
|
import type { HTMLElementProps } from '../types.js'
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
let { children, ...rest } = $props<HTMLElementProps>()
|
|
5
|
+
let { children, ...rest }: HTMLElementProps = $props()
|
|
8
6
|
</script>
|
|
9
7
|
|
|
10
8
|
<MotionContainer tag="figcaption" {...rest}>
|
package/dist/html/Figure.svelte
CHANGED
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
import MotionContainer from './_MotionContainer.svelte'
|
|
3
3
|
import type { HTMLElementProps } from '../types.js'
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
let { children, ...rest } = $props<HTMLElementProps>()
|
|
5
|
+
let { children, ...rest }: HTMLElementProps = $props()
|
|
8
6
|
</script>
|
|
9
7
|
|
|
10
8
|
<MotionContainer tag="figure" {...rest}>
|
package/dist/html/Footer.svelte
CHANGED
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
import MotionContainer from './_MotionContainer.svelte'
|
|
3
3
|
import type { HTMLElementProps } from '../types.js'
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
let { children, ...rest } = $props<HTMLElementProps>()
|
|
5
|
+
let { children, ...rest }: HTMLElementProps = $props()
|
|
8
6
|
</script>
|
|
9
7
|
|
|
10
8
|
<MotionContainer tag="footer" {...rest}>
|
package/dist/html/Form.svelte
CHANGED
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
import MotionContainer from './_MotionContainer.svelte'
|
|
3
3
|
import type { HTMLElementProps } from '../types.js'
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
let { children, ...rest } = $props<HTMLElementProps>()
|
|
5
|
+
let { children, ...rest }: HTMLElementProps = $props()
|
|
8
6
|
</script>
|
|
9
7
|
|
|
10
8
|
<MotionContainer tag="form" {...rest}>
|
package/dist/html/H1.svelte
CHANGED
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
import MotionContainer from './_MotionContainer.svelte'
|
|
3
3
|
import type { HTMLElementProps } from '../types.js'
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
let { children, ...rest } = $props<HTMLElementProps>()
|
|
5
|
+
let { children, ...rest }: HTMLElementProps = $props()
|
|
8
6
|
</script>
|
|
9
7
|
|
|
10
8
|
<MotionContainer tag="h1" {...rest}>
|
package/dist/html/H2.svelte
CHANGED
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
import MotionContainer from './_MotionContainer.svelte'
|
|
3
3
|
import type { HTMLElementProps } from '../types.js'
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
let { children, ...rest } = $props<HTMLElementProps>()
|
|
5
|
+
let { children, ...rest }: HTMLElementProps = $props()
|
|
8
6
|
</script>
|
|
9
7
|
|
|
10
8
|
<MotionContainer tag="h2" {...rest}>
|
package/dist/html/H3.svelte
CHANGED
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
import MotionContainer from './_MotionContainer.svelte'
|
|
3
3
|
import type { HTMLElementProps } from '../types.js'
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
let { children, ...rest } = $props<HTMLElementProps>()
|
|
5
|
+
let { children, ...rest }: HTMLElementProps = $props()
|
|
8
6
|
</script>
|
|
9
7
|
|
|
10
8
|
<MotionContainer tag="h3" {...rest}>
|
package/dist/html/H4.svelte
CHANGED
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
import MotionContainer from './_MotionContainer.svelte'
|
|
3
3
|
import type { HTMLElementProps } from '../types.js'
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
let { children, ...rest } = $props<HTMLElementProps>()
|
|
5
|
+
let { children, ...rest }: HTMLElementProps = $props()
|
|
8
6
|
</script>
|
|
9
7
|
|
|
10
8
|
<MotionContainer tag="h4" {...rest}>
|
package/dist/html/H5.svelte
CHANGED
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
import MotionContainer from './_MotionContainer.svelte'
|
|
3
3
|
import type { HTMLElementProps } from '../types.js'
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
let { children, ...rest } = $props<HTMLElementProps>()
|
|
5
|
+
let { children, ...rest }: HTMLElementProps = $props()
|
|
8
6
|
</script>
|
|
9
7
|
|
|
10
8
|
<MotionContainer tag="h5" {...rest}>
|
package/dist/html/H6.svelte
CHANGED
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
import MotionContainer from './_MotionContainer.svelte'
|
|
3
3
|
import type { HTMLElementProps } from '../types.js'
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
let { children, ...rest } = $props<HTMLElementProps>()
|
|
5
|
+
let { children, ...rest }: HTMLElementProps = $props()
|
|
8
6
|
</script>
|
|
9
7
|
|
|
10
8
|
<MotionContainer tag="h6" {...rest}>
|
package/dist/html/Header.svelte
CHANGED
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
import MotionContainer from './_MotionContainer.svelte'
|
|
3
3
|
import type { HTMLElementProps } from '../types.js'
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
let { children, ...rest } = $props<HTMLElementProps>()
|
|
5
|
+
let { children, ...rest }: HTMLElementProps = $props()
|
|
8
6
|
</script>
|
|
9
7
|
|
|
10
8
|
<MotionContainer tag="header" {...rest}>
|
package/dist/html/Hr.svelte
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import MotionContainer from './_MotionContainer.svelte'
|
|
3
3
|
import type { HTMLVoidElementProps } from '../types.js'
|
|
4
4
|
|
|
5
|
-
let { ...rest } = $props
|
|
5
|
+
let { ...rest }: HTMLVoidElementProps = $props()
|
|
6
6
|
</script>
|
|
7
7
|
|
|
8
8
|
<MotionContainer tag="hr" {...rest} />
|
package/dist/html/Img.svelte
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import MotionContainer from './_MotionContainer.svelte'
|
|
3
3
|
import type { HTMLVoidElementProps } from '../types.js'
|
|
4
4
|
|
|
5
|
-
let { ...rest } = $props
|
|
5
|
+
let { ...rest }: HTMLVoidElementProps = $props()
|
|
6
6
|
</script>
|
|
7
7
|
|
|
8
8
|
<MotionContainer tag="img" {...rest} />
|
package/dist/html/Input.svelte
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import MotionContainer from './_MotionContainer.svelte'
|
|
3
3
|
import type { HTMLVoidElementProps } from '../types.js'
|
|
4
4
|
|
|
5
|
-
let { ...rest } = $props
|
|
5
|
+
let { ...rest }: HTMLVoidElementProps = $props()
|
|
6
6
|
</script>
|
|
7
7
|
|
|
8
8
|
<MotionContainer tag="input" {...rest} />
|
package/dist/html/Label.svelte
CHANGED
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
import MotionContainer from './_MotionContainer.svelte'
|
|
3
3
|
import type { HTMLElementProps } from '../types.js'
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
let { children, ...rest } = $props<HTMLElementProps>()
|
|
5
|
+
let { children, ...rest }: HTMLElementProps = $props()
|
|
8
6
|
</script>
|
|
9
7
|
|
|
10
8
|
<MotionContainer tag="label" {...rest}>
|
package/dist/html/Legend.svelte
CHANGED
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
import MotionContainer from './_MotionContainer.svelte'
|
|
3
3
|
import type { HTMLElementProps } from '../types.js'
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
let { children, ...rest } = $props<HTMLElementProps>()
|
|
5
|
+
let { children, ...rest }: HTMLElementProps = $props()
|
|
8
6
|
</script>
|
|
9
7
|
|
|
10
8
|
<MotionContainer tag="legend" {...rest}>
|
package/dist/html/Li.svelte
CHANGED
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
import MotionContainer from './_MotionContainer.svelte'
|
|
3
3
|
import type { HTMLElementProps } from '../types.js'
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
let { children, ...rest } = $props<HTMLElementProps>()
|
|
5
|
+
let { children, ...rest }: HTMLElementProps = $props()
|
|
8
6
|
</script>
|
|
9
7
|
|
|
10
8
|
<MotionContainer tag="li" {...rest}>
|
package/dist/html/Main.svelte
CHANGED
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
import MotionContainer from './_MotionContainer.svelte'
|
|
3
3
|
import type { HTMLElementProps } from '../types.js'
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
let { children, ...rest } = $props<HTMLElementProps>()
|
|
5
|
+
let { children, ...rest }: HTMLElementProps = $props()
|
|
8
6
|
</script>
|
|
9
7
|
|
|
10
8
|
<MotionContainer tag="main" {...rest}>
|
package/dist/html/Nav.svelte
CHANGED
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
import MotionContainer from './_MotionContainer.svelte'
|
|
3
3
|
import type { HTMLElementProps } from '../types.js'
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
let { children, ...rest } = $props<HTMLElementProps>()
|
|
5
|
+
let { children, ...rest }: HTMLElementProps = $props()
|
|
8
6
|
</script>
|
|
9
7
|
|
|
10
8
|
<MotionContainer tag="nav" {...rest}>
|
package/dist/html/Ol.svelte
CHANGED
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
import MotionContainer from './_MotionContainer.svelte'
|
|
3
3
|
import type { HTMLElementProps } from '../types.js'
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
let { children, ...rest } = $props<HTMLElementProps>()
|
|
5
|
+
let { children, ...rest }: HTMLElementProps = $props()
|
|
8
6
|
</script>
|
|
9
7
|
|
|
10
8
|
<MotionContainer tag="ol" {...rest}>
|
package/dist/html/Option.svelte
CHANGED
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
import MotionContainer from './_MotionContainer.svelte'
|
|
3
3
|
import type { HTMLElementProps } from '../types.js'
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
let { children, ...rest } = $props<HTMLElementProps>()
|
|
5
|
+
let { children, ...rest }: HTMLElementProps = $props()
|
|
8
6
|
</script>
|
|
9
7
|
|
|
10
8
|
<MotionContainer tag="option" {...rest}>
|
package/dist/html/P.svelte
CHANGED
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
import MotionContainer from './_MotionContainer.svelte'
|
|
3
3
|
import type { HTMLElementProps } from '../types.js'
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
let { children, ...rest } = $props<HTMLElementProps>()
|
|
5
|
+
let { children, ...rest }: HTMLElementProps = $props()
|
|
8
6
|
</script>
|
|
9
7
|
|
|
10
8
|
<MotionContainer tag="p" {...rest}>
|
package/dist/html/Param.svelte
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import MotionContainer from './_MotionContainer.svelte'
|
|
3
3
|
import type { HTMLVoidElementProps } from '../types.js'
|
|
4
4
|
|
|
5
|
-
let { ...rest } = $props
|
|
5
|
+
let { ...rest }: HTMLVoidElementProps = $props()
|
|
6
6
|
</script>
|
|
7
7
|
|
|
8
8
|
<MotionContainer tag="param" {...rest} />
|
package/dist/html/Pre.svelte
CHANGED
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
import MotionContainer from './_MotionContainer.svelte'
|
|
3
3
|
import type { HTMLElementProps } from '../types.js'
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
let { children, ...rest } = $props<HTMLElementProps>()
|
|
5
|
+
let { children, ...rest }: HTMLElementProps = $props()
|
|
8
6
|
</script>
|
|
9
7
|
|
|
10
8
|
<MotionContainer tag="pre" {...rest}>
|
package/dist/html/Section.svelte
CHANGED
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
import MotionContainer from './_MotionContainer.svelte'
|
|
3
3
|
import type { HTMLElementProps } from '../types.js'
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
let { children, ...rest } = $props<HTMLElementProps>()
|
|
5
|
+
let { children, ...rest }: HTMLElementProps = $props()
|
|
8
6
|
</script>
|
|
9
7
|
|
|
10
8
|
<MotionContainer tag="section" {...rest}>
|
package/dist/html/Select.svelte
CHANGED
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
import MotionContainer from './_MotionContainer.svelte'
|
|
3
3
|
import type { HTMLElementProps } from '../types.js'
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
let { children, ...rest } = $props<HTMLElementProps>()
|
|
5
|
+
let { children, ...rest }: HTMLElementProps = $props()
|
|
8
6
|
</script>
|
|
9
7
|
|
|
10
8
|
<MotionContainer tag="select" {...rest}>
|
package/dist/html/Source.svelte
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import MotionContainer from './_MotionContainer.svelte'
|
|
3
3
|
import type { HTMLVoidElementProps } from '../types.js'
|
|
4
4
|
|
|
5
|
-
let { ...rest } = $props
|
|
5
|
+
let { ...rest }: HTMLVoidElementProps = $props()
|
|
6
6
|
</script>
|
|
7
7
|
|
|
8
8
|
<MotionContainer tag="source" {...rest} />
|
package/dist/html/Span.svelte
CHANGED
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
import MotionContainer from './_MotionContainer.svelte'
|
|
3
3
|
import type { HTMLElementProps } from '../types.js'
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
let { children, ...rest } = $props<HTMLElementProps>()
|
|
5
|
+
let { children, ...rest }: HTMLElementProps = $props()
|
|
8
6
|
</script>
|
|
9
7
|
|
|
10
8
|
<MotionContainer tag="span" {...rest}>
|
package/dist/html/Table.svelte
CHANGED
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
import MotionContainer from './_MotionContainer.svelte'
|
|
3
3
|
import type { HTMLElementProps } from '../types.js'
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
let { children, ...rest } = $props<HTMLElementProps>()
|
|
5
|
+
let { children, ...rest }: HTMLElementProps = $props()
|
|
8
6
|
</script>
|
|
9
7
|
|
|
10
8
|
<MotionContainer tag="table" {...rest}>
|
package/dist/html/Tbody.svelte
CHANGED
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
import MotionContainer from './_MotionContainer.svelte'
|
|
3
3
|
import type { HTMLElementProps } from '../types.js'
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
let { children, ...rest } = $props<HTMLElementProps>()
|
|
5
|
+
let { children, ...rest }: HTMLElementProps = $props()
|
|
8
6
|
</script>
|
|
9
7
|
|
|
10
8
|
<MotionContainer tag="tbody" {...rest}>
|
package/dist/html/Td.svelte
CHANGED
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
import MotionContainer from './_MotionContainer.svelte'
|
|
3
3
|
import type { HTMLElementProps } from '../types.js'
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
let { children, ...rest } = $props<HTMLElementProps>()
|
|
5
|
+
let { children, ...rest }: HTMLElementProps = $props()
|
|
8
6
|
</script>
|
|
9
7
|
|
|
10
8
|
<MotionContainer tag="td" {...rest}>
|
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
import MotionContainer from './_MotionContainer.svelte'
|
|
3
3
|
import type { HTMLElementProps } from '../types.js'
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
let { children, ...rest } = $props<HTMLElementProps>()
|
|
5
|
+
let { children, ...rest }: HTMLElementProps = $props()
|
|
8
6
|
</script>
|
|
9
7
|
|
|
10
8
|
<MotionContainer tag="textarea" {...rest}>
|
package/dist/html/Tfoot.svelte
CHANGED
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
import MotionContainer from './_MotionContainer.svelte'
|
|
3
3
|
import type { HTMLElementProps } from '../types.js'
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
let { children, ...rest } = $props<HTMLElementProps>()
|
|
5
|
+
let { children, ...rest }: HTMLElementProps = $props()
|
|
8
6
|
</script>
|
|
9
7
|
|
|
10
8
|
<MotionContainer tag="tfoot" {...rest}>
|
package/dist/html/Th.svelte
CHANGED
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
import MotionContainer from './_MotionContainer.svelte'
|
|
3
3
|
import type { HTMLElementProps } from '../types.js'
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
let { children, ...rest } = $props<HTMLElementProps>()
|
|
5
|
+
let { children, ...rest }: HTMLElementProps = $props()
|
|
8
6
|
</script>
|
|
9
7
|
|
|
10
8
|
<MotionContainer tag="th" {...rest}>
|
package/dist/html/Thead.svelte
CHANGED
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
import MotionContainer from './_MotionContainer.svelte'
|
|
3
3
|
import type { HTMLElementProps } from '../types.js'
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
let { children, ...rest } = $props<HTMLElementProps>()
|
|
5
|
+
let { children, ...rest }: HTMLElementProps = $props()
|
|
8
6
|
</script>
|
|
9
7
|
|
|
10
8
|
<MotionContainer tag="thead" {...rest}>
|
package/dist/html/Tr.svelte
CHANGED
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
import MotionContainer from './_MotionContainer.svelte'
|
|
3
3
|
import type { HTMLElementProps } from '../types.js'
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
let { children, ...rest } = $props<HTMLElementProps>()
|
|
5
|
+
let { children, ...rest }: HTMLElementProps = $props()
|
|
8
6
|
</script>
|
|
9
7
|
|
|
10
8
|
<MotionContainer tag="tr" {...rest}>
|
package/dist/html/Track.svelte
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import MotionContainer from './_MotionContainer.svelte'
|
|
3
3
|
import type { HTMLVoidElementProps } from '../types.js'
|
|
4
4
|
|
|
5
|
-
let { ...rest } = $props
|
|
5
|
+
let { ...rest }: HTMLVoidElementProps = $props()
|
|
6
6
|
</script>
|
|
7
7
|
|
|
8
8
|
<MotionContainer tag="track" {...rest} />
|
package/dist/html/Ul.svelte
CHANGED
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
import MotionContainer from './_MotionContainer.svelte'
|
|
3
3
|
import type { HTMLElementProps } from '../types.js'
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
let { children, ...rest } = $props<HTMLElementProps>()
|
|
5
|
+
let { children, ...rest }: HTMLElementProps = $props()
|
|
8
6
|
</script>
|
|
9
7
|
|
|
10
8
|
<MotionContainer tag="ul" {...rest}>
|
package/dist/html/Wbr.svelte
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import MotionContainer from './_MotionContainer.svelte'
|
|
3
3
|
import type { HTMLVoidElementProps } from '../types.js'
|
|
4
4
|
|
|
5
|
-
let { ...rest } = $props
|
|
5
|
+
let { ...rest }: HTMLVoidElementProps = $props()
|
|
6
6
|
</script>
|
|
7
7
|
|
|
8
8
|
<MotionContainer tag="wbr" {...rest} />
|
|
@@ -1,24 +1,13 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { type Snippet } from 'svelte'
|
|
3
3
|
import type { SvelteHTMLElements } from 'svelte/elements'
|
|
4
|
-
import type {
|
|
5
|
-
MotionInitial,
|
|
6
|
-
MotionAnimate,
|
|
7
|
-
MotionTransition,
|
|
8
|
-
MotionWhileTap
|
|
9
|
-
} from '../types.js'
|
|
4
|
+
import type { MotionProps } from '../types.js'
|
|
10
5
|
import { animate, press } from 'motion'
|
|
11
6
|
import { isNotEmpty, getCommonKeys } from '../utils/objects.js'
|
|
12
7
|
|
|
13
|
-
type Props = {
|
|
8
|
+
type Props = MotionProps & {
|
|
14
9
|
children?: Snippet
|
|
15
10
|
tag: keyof SvelteHTMLElements
|
|
16
|
-
initial?: MotionInitial
|
|
17
|
-
animate?: MotionAnimate
|
|
18
|
-
whileTap?: MotionWhileTap
|
|
19
|
-
transition?: MotionTransition
|
|
20
|
-
style?: string
|
|
21
|
-
class?: string
|
|
22
11
|
[key: string]: unknown
|
|
23
12
|
}
|
|
24
13
|
|
|
@@ -1,15 +1,9 @@
|
|
|
1
1
|
import { type Snippet } from 'svelte';
|
|
2
2
|
import type { SvelteHTMLElements } from 'svelte/elements';
|
|
3
|
-
import type {
|
|
4
|
-
type Props = {
|
|
3
|
+
import type { MotionProps } from '../types.js';
|
|
4
|
+
type Props = MotionProps & {
|
|
5
5
|
children?: Snippet;
|
|
6
6
|
tag: keyof SvelteHTMLElements;
|
|
7
|
-
initial?: MotionInitial;
|
|
8
|
-
animate?: MotionAnimate;
|
|
9
|
-
whileTap?: MotionWhileTap;
|
|
10
|
-
transition?: MotionTransition;
|
|
11
|
-
style?: string;
|
|
12
|
-
class?: string;
|
|
13
7
|
[key: string]: unknown;
|
|
14
8
|
};
|
|
15
9
|
declare const MotionContainer: import("svelte").Component<Props, {}, "">;
|
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
import MotionContainer from './_MotionContainer.svelte'
|
|
3
3
|
import type { HTMLElementProps } from '../types.js'
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
let { children, ...rest } = $props<HTMLElementProps>()
|
|
5
|
+
let { children, ...rest }: HTMLElementProps = $props()
|
|
8
6
|
</script>
|
|
9
7
|
|
|
10
8
|
<MotionContainer tag="{{tag}}" {...rest}>
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import MotionContainer from './_MotionContainer.svelte'
|
|
3
3
|
import type { HTMLVoidElementProps } from '../types.js'
|
|
4
4
|
|
|
5
|
-
let { ...rest } = $props
|
|
5
|
+
let { ...rest }: HTMLVoidElementProps = $props()
|
|
6
6
|
</script>
|
|
7
7
|
|
|
8
8
|
<MotionContainer tag="{{tag}}" {...rest} />
|
package/dist/html/index.d.ts
CHANGED
|
@@ -54,3 +54,60 @@ import Track from './Track.svelte';
|
|
|
54
54
|
import Ul from './Ul.svelte';
|
|
55
55
|
import Wbr from './Wbr.svelte';
|
|
56
56
|
export { A, Area, Article, Aside, Base, Blockquote, Br, Button, Code, Col, Dd, Div, Dl, Dt, Embed, Fieldset, Figcaption, Figure, Footer, Form, H1, H2, H3, H4, H5, H6, Header, Hr, Img, Input, Label, Legend, Li, Main, Nav, Ol, Option, P, Param, Pre, Section, Select, Source, Span, Table, Tbody, Td, Textarea, Tfoot, Th, Thead, Tr, Track, Ul, Wbr };
|
|
57
|
+
export type MotionComponents = {
|
|
58
|
+
a: typeof A;
|
|
59
|
+
article: typeof Article;
|
|
60
|
+
aside: typeof Aside;
|
|
61
|
+
blockquote: typeof Blockquote;
|
|
62
|
+
button: typeof Button;
|
|
63
|
+
code: typeof Code;
|
|
64
|
+
dd: typeof Dd;
|
|
65
|
+
div: typeof Div;
|
|
66
|
+
dl: typeof Dl;
|
|
67
|
+
dt: typeof Dt;
|
|
68
|
+
fieldset: typeof Fieldset;
|
|
69
|
+
figcaption: typeof Figcaption;
|
|
70
|
+
figure: typeof Figure;
|
|
71
|
+
footer: typeof Footer;
|
|
72
|
+
form: typeof Form;
|
|
73
|
+
h1: typeof H1;
|
|
74
|
+
h2: typeof H2;
|
|
75
|
+
h3: typeof H3;
|
|
76
|
+
h4: typeof H4;
|
|
77
|
+
h5: typeof H5;
|
|
78
|
+
h6: typeof H6;
|
|
79
|
+
header: typeof Header;
|
|
80
|
+
label: typeof Label;
|
|
81
|
+
legend: typeof Legend;
|
|
82
|
+
li: typeof Li;
|
|
83
|
+
main: typeof Main;
|
|
84
|
+
nav: typeof Nav;
|
|
85
|
+
ol: typeof Ol;
|
|
86
|
+
option: typeof Option;
|
|
87
|
+
p: typeof P;
|
|
88
|
+
pre: typeof Pre;
|
|
89
|
+
section: typeof Section;
|
|
90
|
+
select: typeof Select;
|
|
91
|
+
span: typeof Span;
|
|
92
|
+
table: typeof Table;
|
|
93
|
+
tbody: typeof Tbody;
|
|
94
|
+
td: typeof Td;
|
|
95
|
+
textarea: typeof Textarea;
|
|
96
|
+
tfoot: typeof Tfoot;
|
|
97
|
+
th: typeof Th;
|
|
98
|
+
thead: typeof Thead;
|
|
99
|
+
tr: typeof Tr;
|
|
100
|
+
ul: typeof Ul;
|
|
101
|
+
area: typeof Area;
|
|
102
|
+
base: typeof Base;
|
|
103
|
+
br: typeof Br;
|
|
104
|
+
col: typeof Col;
|
|
105
|
+
embed: typeof Embed;
|
|
106
|
+
hr: typeof Hr;
|
|
107
|
+
img: typeof Img;
|
|
108
|
+
input: typeof Input;
|
|
109
|
+
param: typeof Param;
|
|
110
|
+
source: typeof Source;
|
|
111
|
+
track: typeof Track;
|
|
112
|
+
wbr: typeof Wbr;
|
|
113
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
type MotionComponents = {
|
|
3
|
-
[K in Lowercase<keyof typeof html>]: (typeof html)[Capitalize<K>];
|
|
4
|
-
};
|
|
1
|
+
import type { MotionComponents } from './html/index.js';
|
|
5
2
|
export declare const motion: MotionComponents;
|
|
6
3
|
export type { MotionAnimate, MotionInitial, MotionTransition, MotionWhileTap } from './types.js';
|
package/dist/types.d.ts
CHANGED
|
@@ -4,11 +4,19 @@ export type MotionInitial = DOMKeyframesDefinition | undefined;
|
|
|
4
4
|
export type MotionAnimate = DOMKeyframesDefinition | undefined;
|
|
5
5
|
export type MotionTransition = AnimationOptions | undefined;
|
|
6
6
|
export type MotionWhileTap = DOMKeyframesDefinition | undefined;
|
|
7
|
-
export type
|
|
7
|
+
export type MotionProps = {
|
|
8
|
+
initial?: MotionInitial;
|
|
9
|
+
animate?: MotionAnimate;
|
|
10
|
+
transition?: MotionTransition;
|
|
11
|
+
whileTap?: MotionWhileTap;
|
|
12
|
+
style?: string;
|
|
13
|
+
class?: string;
|
|
14
|
+
};
|
|
15
|
+
export type HTMLElementProps = MotionProps & {
|
|
8
16
|
children?: Snippet;
|
|
9
17
|
[key: string]: unknown;
|
|
10
18
|
};
|
|
11
|
-
export type HTMLVoidElementProps = {
|
|
19
|
+
export type HTMLVoidElementProps = MotionProps & {
|
|
12
20
|
[key: string]: unknown;
|
|
13
21
|
} & {
|
|
14
22
|
children?: never;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@humanspeak/svelte-motion",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.9",
|
|
4
4
|
"description": "A lightweight animation library for Svelte 5 that provides smooth, hardware-accelerated animations. Features include spring physics, custom easing, and fluid transitions. Built on top of the motion library, it offers a simple API for creating complex animations with minimal code. Perfect for interactive UIs, micro-interactions, and engaging user experiences.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"svelte",
|