tailwind-clamp 2.2.1 → 2.2.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/package.json +5 -5
- package/src/index.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tailwind-clamp",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.3",
|
|
4
4
|
"description": "Tailwind CSS plugin to use CSS clamp in your projects",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -27,13 +27,13 @@
|
|
|
27
27
|
"homepage": "https://github.com/nicolas-cusan/tailwind-clamp#readme",
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"chalk": "^5.3.0",
|
|
30
|
-
"
|
|
31
|
-
"react": "^18",
|
|
32
|
-
"react-dom": "^18"
|
|
30
|
+
"tailwindcss": "^3.4.4"
|
|
33
31
|
},
|
|
34
32
|
"devDependencies": {
|
|
35
33
|
"autoprefixer": "^10.4.19",
|
|
36
34
|
"postcss": "^8",
|
|
37
|
-
"
|
|
35
|
+
"next": "14.2.4",
|
|
36
|
+
"react": "^18",
|
|
37
|
+
"react-dom": "^18"
|
|
38
38
|
}
|
|
39
39
|
}
|
package/src/index.js
CHANGED
|
@@ -2,14 +2,14 @@ import plugin from 'tailwindcss/plugin';
|
|
|
2
2
|
import { resolveProperty } from './resolve-property.js';
|
|
3
3
|
import { log } from './log.js';
|
|
4
4
|
import { parseValue, parseFontSizeValue, checkValues } from './parse-value.js';
|
|
5
|
-
import { clamp, clampValue } from './clamp.js';
|
|
5
|
+
import { clamp, clampValue as cv } from './clamp.js';
|
|
6
6
|
|
|
7
7
|
const defaultOptions = {
|
|
8
8
|
minViewportWidth: 375,
|
|
9
9
|
maxViewportWidth: 1440,
|
|
10
10
|
};
|
|
11
11
|
|
|
12
|
-
export const clampValue =
|
|
12
|
+
export const clampValue = cv;
|
|
13
13
|
|
|
14
14
|
export default plugin.withOptions(function (options = defaultOptions) {
|
|
15
15
|
return function ({ matchUtilities, theme, config }) {
|