@spark-ui/tailwind-plugins 3.0.3 → 3.0.5
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 +8 -0
- package/animations/index.js +5 -5
- package/package.json +3 -3
- package/sizings/index.js +1 -1
- package/spark-theme/index.js +4 -4
- package/utilities/index.js +1 -1
package/CHANGELOG.md
CHANGED
@@ -3,6 +3,14 @@
|
|
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
|
+
## [3.0.5](https://github.com/adevinta/spark/compare/@spark-ui/tailwind-plugins@3.0.4...@spark-ui/tailwind-plugins@3.0.5) (2023-08-23)
|
7
|
+
|
8
|
+
**Note:** Version bump only for package @spark-ui/tailwind-plugins
|
9
|
+
|
10
|
+
## [3.0.4](https://github.com/adevinta/spark/compare/@spark-ui/tailwind-plugins@3.0.3...@spark-ui/tailwind-plugins@3.0.4) (2023-08-16)
|
11
|
+
|
12
|
+
**Note:** Version bump only for package @spark-ui/tailwind-plugins
|
13
|
+
|
6
14
|
## [3.0.3](https://github.com/adevinta/spark/compare/@spark-ui/tailwind-plugins@3.0.2...@spark-ui/tailwind-plugins@3.0.3) (2023-08-16)
|
7
15
|
|
8
16
|
**Note:** Version bump only for package @spark-ui/tailwind-plugins
|
package/animations/index.js
CHANGED
@@ -53,7 +53,7 @@ module.exports = plugin.withOptions(
|
|
53
53
|
...removeKeyFromObj(theme('transitionDuration'), 'DEFAULT'),
|
54
54
|
...commonValuesObj,
|
55
55
|
},
|
56
|
-
}
|
56
|
+
},
|
57
57
|
)
|
58
58
|
|
59
59
|
matchUtilities(
|
@@ -67,7 +67,7 @@ module.exports = plugin.withOptions(
|
|
67
67
|
...removeKeyFromObj(theme('transitionDuration'), 'DEFAULT'),
|
68
68
|
...commonValuesObj,
|
69
69
|
},
|
70
|
-
}
|
70
|
+
},
|
71
71
|
)
|
72
72
|
|
73
73
|
matchUtilities(
|
@@ -76,7 +76,7 @@ module.exports = plugin.withOptions(
|
|
76
76
|
animationIterationCount: value,
|
77
77
|
}),
|
78
78
|
},
|
79
|
-
{ values: { ...arrToObj(iterations), ...commonValuesObj } }
|
79
|
+
{ values: { ...arrToObj(iterations), ...commonValuesObj } },
|
80
80
|
)
|
81
81
|
|
82
82
|
matchUtilities(
|
@@ -90,7 +90,7 @@ module.exports = plugin.withOptions(
|
|
90
90
|
...removeKeyFromObj(theme('transitionTimingFunction'), 'DEFAULT'),
|
91
91
|
...commonValuesObj,
|
92
92
|
},
|
93
|
-
}
|
93
|
+
},
|
94
94
|
)
|
95
95
|
|
96
96
|
fillModes.forEach(mode => {
|
@@ -146,5 +146,5 @@ module.exports = plugin.withOptions(
|
|
146
146
|
},
|
147
147
|
},
|
148
148
|
},
|
149
|
-
})
|
149
|
+
}),
|
150
150
|
)
|
package/package.json
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
{
|
2
2
|
"name": "@spark-ui/tailwind-plugins",
|
3
|
-
"version": "3.0.
|
3
|
+
"version": "3.0.5",
|
4
4
|
"description": "Spark Tailwind plugins",
|
5
5
|
"publishConfig": {
|
6
6
|
"access": "public"
|
7
7
|
},
|
8
8
|
"main": "index.js",
|
9
9
|
"dependencies": {
|
10
|
-
"@spark-ui/theme-utils": "
|
10
|
+
"@spark-ui/theme-utils": "^3.0.2",
|
11
11
|
"tailwindcss-radix": "2.8.0"
|
12
12
|
},
|
13
13
|
"peerDependencies": {
|
@@ -23,5 +23,5 @@
|
|
23
23
|
},
|
24
24
|
"homepage": "https://sparkui.vercel.app",
|
25
25
|
"license": "MIT",
|
26
|
-
"gitHead": "
|
26
|
+
"gitHead": "b3cb5019cadc8baac0c94c6e980a772bc2cdf633"
|
27
27
|
}
|
package/sizings/index.js
CHANGED
package/spark-theme/index.js
CHANGED
@@ -11,12 +11,12 @@ const missingDefaultThemeErrorMsg =
|
|
11
11
|
|
12
12
|
const additionalItemsErrorMsg = (themeLabel, keys) =>
|
13
13
|
`The following keys: ${JSON.stringify(
|
14
|
-
keys
|
14
|
+
keys,
|
15
15
|
)} do not adhere to our Spark Theme interface and should be removed from the ${themeLabel} theme`
|
16
16
|
|
17
17
|
const missingItemsErrorMsg = (themeLabel, keys) =>
|
18
18
|
`The following keys: ${JSON.stringify(
|
19
|
-
keys
|
19
|
+
keys,
|
20
20
|
)} are missing from the ${themeLabel} theme, but required to comply with our Spark Theme interface`
|
21
21
|
|
22
22
|
module.exports = plugin.withOptions(
|
@@ -72,7 +72,7 @@ module.exports = plugin.withOptions(
|
|
72
72
|
addBase({
|
73
73
|
[`[data-theme="${key}"]`]: getObjectDifferences(
|
74
74
|
getCSSVariableDeclarations(themes.default, htmlFontSize),
|
75
|
-
getCSSVariableDeclarations(value, htmlFontSize)
|
75
|
+
getCSSVariableDeclarations(value, htmlFontSize),
|
76
76
|
),
|
77
77
|
})
|
78
78
|
})
|
@@ -87,5 +87,5 @@ module.exports = plugin.withOptions(
|
|
87
87
|
if (!themes.default) throw new Error(missingDefaultThemeErrorMsg)
|
88
88
|
|
89
89
|
return { theme: getCSSVariableReferences(themes.default) }
|
90
|
-
}
|
90
|
+
},
|
91
91
|
)
|
package/utilities/index.js
CHANGED
@@ -9,7 +9,7 @@ module.exports = plugin.withOptions(() => ({ addUtilities, theme }) => {
|
|
9
9
|
},
|
10
10
|
'.u-shadow-border-transition': {
|
11
11
|
transition: `box-shadow ${theme('transitionDuration.100')} ${theme(
|
12
|
-
'transitionTimingFunction.in'
|
12
|
+
'transitionTimingFunction.in',
|
13
13
|
)}, border-color ${theme('transitionDuration.300')} ${theme('transitionTimingFunction.in')}`,
|
14
14
|
},
|
15
15
|
'.u-no-scrollbar': {
|