@spark-ui/tailwind-plugins 2.14.2 → 2.14.3
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/CHANGELOG.md +6 -0
- package/animations/index.js +4 -3
- package/package.json +2 -2
- package/utilities/index.js +1 -1
- package/variants/index.js +1 -1
package/CHANGELOG.md
CHANGED
@@ -3,6 +3,12 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
5
5
|
|
6
|
+
## [2.14.3](https://github.com/adevinta/spark/compare/@spark-ui/tailwind-plugins@2.14.2...@spark-ui/tailwind-plugins@2.14.3) (2023-07-28)
|
7
|
+
|
8
|
+
### Bug Fixes
|
9
|
+
|
10
|
+
- fix errors after eslint update ([3dae947](https://github.com/adevinta/spark/commit/3dae947dc169d9db3c7252f54a6224ded335980e))
|
11
|
+
|
6
12
|
## [2.14.2](https://github.com/adevinta/spark/compare/@spark-ui/tailwind-plugins@2.14.1...@spark-ui/tailwind-plugins@2.14.2) (2023-07-26)
|
7
13
|
|
8
14
|
**Note:** Version bump only for package @spark-ui/tailwind-plugins
|
package/animations/index.js
CHANGED
@@ -19,9 +19,10 @@ const playStates = ['running', 'paused']
|
|
19
19
|
const commonValuesObj = arrToObj(commonValues)
|
20
20
|
|
21
21
|
function removeKeyFromObj(obj, key) {
|
22
|
-
const
|
22
|
+
const copyObj = obj
|
23
|
+
delete copyObj[key]
|
23
24
|
|
24
|
-
return
|
25
|
+
return copyObj
|
25
26
|
}
|
26
27
|
|
27
28
|
module.exports = plugin.withOptions(
|
@@ -36,7 +37,7 @@ module.exports = plugin.withOptions(
|
|
36
37
|
* @returns {Function} The PostCSS plugin function.
|
37
38
|
*/
|
38
39
|
options =>
|
39
|
-
({ addUtilities,
|
40
|
+
({ addUtilities, matchUtilities, theme }) => {
|
40
41
|
const opts = options || {}
|
41
42
|
|
42
43
|
const { variantPrefix = 'spark-anime' } = opts
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@spark-ui/tailwind-plugins",
|
3
|
-
"version": "2.14.
|
3
|
+
"version": "2.14.3",
|
4
4
|
"description": "Spark Tailwind plugins",
|
5
5
|
"publishConfig": {
|
6
6
|
"access": "public"
|
@@ -23,5 +23,5 @@
|
|
23
23
|
},
|
24
24
|
"homepage": "https://sparkui.vercel.app",
|
25
25
|
"license": "MIT",
|
26
|
-
"gitHead": "
|
26
|
+
"gitHead": "dfff441503a7505a9ad35cb676b0a8051056babd"
|
27
27
|
}
|
package/utilities/index.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
/* eslint-disable-next-line @typescript-eslint/no-var-requires */
|
2
2
|
const plugin = require('tailwindcss/plugin')
|
3
3
|
|
4
|
-
module.exports = plugin.withOptions(
|
4
|
+
module.exports = plugin.withOptions(() => ({ addUtilities, theme }) => {
|
5
5
|
addUtilities({
|
6
6
|
'.u-current-font-size': {
|
7
7
|
width: '1em',
|
package/variants/index.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
/* eslint-disable-next-line @typescript-eslint/no-var-requires */
|
2
2
|
const plugin = require('tailwindcss/plugin')
|
3
3
|
|
4
|
-
module.exports = plugin.withOptions(
|
4
|
+
module.exports = plugin.withOptions(() => ({ addVariant }) => {
|
5
5
|
addVariant('retina', '@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi)')
|
6
6
|
})
|