tailwind-clamp 4.2.0 → 4.2.1
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/dist/index.d.ts +15 -0
- package/package.json +3 -3
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { PluginCreator } from 'tailwindcss/types/config';
|
|
2
|
+
|
|
3
|
+
interface TailwindClampOptions {
|
|
4
|
+
/** Minimum viewport width for clamp calculation. Default: '23.4375rem' (375px) */
|
|
5
|
+
minSize?: string;
|
|
6
|
+
/** Maximum viewport width for clamp calculation. Default: '90rem' (1440px) */
|
|
7
|
+
maxSize?: string;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
declare const plugin: {
|
|
11
|
+
(options?: TailwindClampOptions): { handler: PluginCreator };
|
|
12
|
+
__isOptionsFunction: true;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export default plugin;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tailwind-clamp",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.1",
|
|
4
4
|
"description": "Plugin to leverage the CSS clamp function in your Tailwind CSS project.",
|
|
5
5
|
"main": "dist/index.umd.cjs",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
"type": "module",
|
|
19
19
|
"scripts": {
|
|
20
20
|
"dev": "vite",
|
|
21
|
-
"build": "vite build",
|
|
21
|
+
"build": "vite build && cp lib/index.d.ts dist/index.d.ts",
|
|
22
22
|
"test": "vitest run",
|
|
23
23
|
"preview": "vite preview",
|
|
24
|
-
"prepublishOnly": "
|
|
24
|
+
"prepublishOnly": "pnpm run build"
|
|
25
25
|
},
|
|
26
26
|
"repository": {
|
|
27
27
|
"type": "git",
|