Skip to content

Commit dc0c244

Browse files
author
Adam Plesnik
committed
Use typescript, update version to 0.0.8
1 parent df16a29 commit dc0c244

File tree

3 files changed

+30
-10
lines changed

3 files changed

+30
-10
lines changed

Diff for: .swcrc

+6
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,11 @@
66
"strictMode": true,
77
"lazy": false,
88
"noInterop": false
9+
},
10+
"jsc": {
11+
"parser": {
12+
"syntax": "typescript",
13+
"tsx": false
14+
}
915
}
1016
}

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@adam.plesnik/tailwindcss-scroll-driven-animations",
3-
"version": "0.0.7",
3+
"version": "0.0.8",
44
"author": "Adam Plesnik <[email protected]>",
55
"scripts": {
66
"build": "swc ./src/index.js --out-dir ./dist"

Diff for: src/index.js renamed to src/index.ts

+23-9
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,18 @@ module.exports = plugin(
5959
animationRangeStart: value,
6060
}),
6161
},
62-
{ values: { DEFAULT: 'entry', exit: 'exit', ...theme('rangeValues') } }
62+
{
63+
values: {
64+
DEFAULT: 'entry',
65+
exit: 'exit',
66+
normal: 'normal',
67+
contain: 'contain',
68+
cover: 'cover',
69+
'entry-crossing': 'entry-crossing',
70+
'exit-crossing': 'exit-crossing',
71+
},
72+
modifiers: 'any',
73+
}
6374
)
6475

6576
matchUtilities(
@@ -68,7 +79,17 @@ module.exports = plugin(
6879
animationRangeEnd: value,
6980
}),
7081
},
71-
{ values: { DEFAULT: 'exit', entry: 'entry', ...theme('rangeValues') } }
82+
{
83+
values: {
84+
DEFAULT: 'exit',
85+
entry: 'entry',
86+
normal: 'normal',
87+
contain: 'contain',
88+
cover: 'cover',
89+
'entry-crossing': 'entry-crossing',
90+
'exit-crossing': 'exit-crossing',
91+
},
92+
}
7293
)
7394
},
7495

@@ -79,13 +100,6 @@ module.exports = plugin(
79100
block: 'block',
80101
x: 'x',
81102
},
82-
rangeValues: {
83-
normal: 'normal',
84-
contain: 'contain',
85-
cover: 'cover',
86-
'entry-crossing': 'entry-crossing',
87-
'exit-crossing': 'exit-crossing',
88-
},
89103
},
90104
}
91105
)

0 commit comments

Comments
 (0)