@igorkowalczyk/is-browser 5.1.0 → 5.1.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/README.md +6 -6
- package/package.json +12 -11
package/README.md
CHANGED
|
@@ -43,11 +43,11 @@ Add to `plugins` in your `tailwind.config.js`.
|
|
|
43
43
|
|
|
44
44
|
```js
|
|
45
45
|
module.exports = {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
46
|
+
// ...
|
|
47
|
+
plugins: [
|
|
48
|
+
require("@igorkowalczyk/is-browser"),
|
|
49
|
+
// ...other plugins.
|
|
50
|
+
],
|
|
51
51
|
};
|
|
52
52
|
```
|
|
53
53
|
|
|
@@ -57,7 +57,7 @@ Style your components using `{browser_name}:{class}`, e.g. `firefox:bg-red-100`,
|
|
|
57
57
|
|
|
58
58
|
```jsx
|
|
59
59
|
<div className="firefox:bg-red-400 chrome:bg-blue-400 bg-yellow-400">
|
|
60
|
-
|
|
60
|
+
<p>On firefox background should be red, on chrome should be blue and on other browsers it should be yellow</p>
|
|
61
61
|
</div>
|
|
62
62
|
```
|
|
63
63
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@igorkowalczyk/is-browser",
|
|
3
3
|
"description": "🏔️ Add support for browser specific variants in Tailwind.css",
|
|
4
|
-
"version": "5.1.
|
|
4
|
+
"version": "5.1.1",
|
|
5
5
|
"author": "Igor Kowalczyk",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"sideEffects": false,
|
|
@@ -19,16 +19,17 @@
|
|
|
19
19
|
"types": "./dist/index.d.ts"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@igorkowalczyk/eslint-config": "3.
|
|
23
|
-
"@igorkowalczyk/prettier-config": "3.
|
|
24
|
-
"@rollup/plugin-node-resolve": "16.0.
|
|
25
|
-
"@rollup/plugin-typescript": "12.
|
|
26
|
-
"eslint": "9.
|
|
27
|
-
"prettier": "3.
|
|
28
|
-
"rimraf": "6.
|
|
29
|
-
"rollup": "4.
|
|
30
|
-
"tailwindcss": "4.
|
|
31
|
-
"
|
|
22
|
+
"@igorkowalczyk/eslint-config": "^3.2.1",
|
|
23
|
+
"@igorkowalczyk/prettier-config": "^3.2.1",
|
|
24
|
+
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
25
|
+
"@rollup/plugin-typescript": "^12.3.0",
|
|
26
|
+
"eslint": "^9.39.2",
|
|
27
|
+
"prettier": "^3.7.4",
|
|
28
|
+
"rimraf": "^6.1.2",
|
|
29
|
+
"rollup": "^4.54.0",
|
|
30
|
+
"tailwindcss": "^4.1.18",
|
|
31
|
+
"tslib": "^2.8.1",
|
|
32
|
+
"typescript": "^5.9.3"
|
|
32
33
|
},
|
|
33
34
|
"peerDependencies": {
|
|
34
35
|
"tailwindcss": ">=3.0.0 || >=4.0.0"
|