tailwind-clamp 2.2.3 → 3.0.0
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/README.md +3 -3
- package/dist/index.js +699 -0
- package/dist/index.js.map +1 -0
- package/dist/index.umd.cjs +6 -0
- package/dist/index.umd.cjs.map +1 -0
- package/package.json +19 -12
- package/src/clamp.js +0 -84
- package/src/index.js +0 -108
- package/src/log.js +0 -16
- package/src/parse-value.js +0 -71
- package/src/resolve-property.js +0 -302
package/README.md
CHANGED
|
@@ -25,7 +25,7 @@ Add the plugin in your Tailwind CSS configuration file:
|
|
|
25
25
|
|
|
26
26
|
```js
|
|
27
27
|
// tailwind.config.js
|
|
28
|
-
import tailwindClamp from 'tailwind-clamp';
|
|
28
|
+
import { tailwindClamp } from 'tailwind-clamp';
|
|
29
29
|
|
|
30
30
|
export default {
|
|
31
31
|
theme: {
|
|
@@ -51,7 +51,7 @@ Value should be a css value (`px`, `rem`, `em`) or a number (unit will be `px`).
|
|
|
51
51
|
|
|
52
52
|
```js
|
|
53
53
|
// tailwind.config.js
|
|
54
|
-
import tailwindClamp from 'tailwind-clamp';
|
|
54
|
+
import { tailwindClamp } from 'tailwind-clamp';
|
|
55
55
|
|
|
56
56
|
export default {
|
|
57
57
|
theme: {
|
|
@@ -97,7 +97,7 @@ The plugin includes a utility function to create clamped values directly in your
|
|
|
97
97
|
|
|
98
98
|
```js
|
|
99
99
|
// tailwind.config.js
|
|
100
|
-
import tailwindClamp,
|
|
100
|
+
import { tailwindClamp, clampValue } from 'tailwind-clamp';
|
|
101
101
|
|
|
102
102
|
export default {
|
|
103
103
|
theme: {
|