@nemigo/tailwind 1.5.0 → 2.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/dist/extra.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import plugin from "tailwindcss/plugin";
2
- const manual = (v) => isNaN(Number(v));
2
+ const manual = (v) => Number.isNaN(Number(v));
3
3
  const unit = (v, unit, util) => {
4
4
  if (manual(v))
5
5
  return v;
@@ -120,7 +120,7 @@ const main = plugin((api) => {
120
120
  "br-r": (v) => ({ borderRightRadius: unit(v, "em", "br") }),
121
121
  t: (v) => {
122
122
  const duration = Number(v);
123
- if (!isNaN(duration)) {
123
+ if (!Number.isNaN(duration)) {
124
124
  if (v.startsWith("0."))
125
125
  console.warn("Tailwind-Extra:", `Use t-[${v.slice(1)}] instead t-[${v}]`);
126
126
  return {
package/dist/fluid.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import plugin from "tailwindcss/plugin";
2
2
  const getConfigScreens = (cfg) => {
3
- const theme = cfg["theme"];
3
+ const theme = cfg.theme;
4
4
  if (!theme)
5
5
  return null;
6
- const screens = theme["screens"];
6
+ const screens = theme.screens;
7
7
  if (!screens)
8
8
  return null;
9
9
  const medias = Object.values(screens).filter((v) => typeof v === "string");
@@ -17,7 +17,7 @@ const getConfigScreens = (cfg) => {
17
17
  const diff = max - min;
18
18
  return { min, max, diff };
19
19
  };
20
- const manual = (v) => isNaN(Number(v));
20
+ const manual = (v) => Number.isNaN(Number(v));
21
21
  const unit = (v, unit) => (manual(v) ? v : v + unit);
22
22
  const main = plugin((api) => {
23
23
  const screens = getConfigScreens(api.config());
package/package.json CHANGED
@@ -1,20 +1,21 @@
1
1
  {
2
2
  "name": "@nemigo/tailwind",
3
- "version": "1.5.0",
3
+ "version": "2.0.0",
4
4
  "private": false,
5
5
  "author": {
6
6
  "name": "Vlad Logvin",
7
7
  "email": "vlad.logvin84@gmail.com"
8
8
  },
9
9
  "type": "module",
10
- "engines": {
11
- "node": ">=22"
12
- },
13
10
  "scripts": {
14
11
  "build": "svelte-package && rimraf .svelte-kit",
15
12
  "check": "tsc --noemit",
16
- "lint": "eslint ./",
17
- "format": "prettier --write ./"
13
+ "eslint": "eslint ./",
14
+ "eslint:fix": "eslint --fix ./",
15
+ "lint": "biome lint",
16
+ "lint:fix": "biome lint --fix --unsafe",
17
+ "lint:fix:unsafe": "biome lint --fix --unsafe",
18
+ "format": "biome check --write --linter-enabled=false"
18
19
  },
19
20
  "exports": {
20
21
  "./extra": {
@@ -30,6 +31,6 @@
30
31
  "tailwindcss": ">=4.0.0"
31
32
  },
32
33
  "devDependencies": {
33
- "@nemigo/configs": "workspace:*"
34
+ "@nemigo/configs": "2.0.0"
34
35
  }
35
36
  }