@removify/tailwind-preset 0.1.5 → 0.1.7
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/{chunk-XZXQ5L3D.js → chunk-AYMXORCG.js} +20 -2
- package/dist/cli/index.cjs +17 -2
- package/dist/cli/index.js +2 -2
- package/dist/index.cjs +22 -2
- package/dist/index.d.cts +10 -1
- package/dist/index.d.ts +10 -1
- package/dist/index.js +5 -1
- package/package.json +15 -15
|
@@ -4,7 +4,7 @@ var mainColors = {
|
|
|
4
4
|
current: "currentColor",
|
|
5
5
|
transparent: "transparent",
|
|
6
6
|
danger: "#EA3529",
|
|
7
|
-
warning: "#
|
|
7
|
+
warning: "#F97316",
|
|
8
8
|
success: "#15A46E",
|
|
9
9
|
info: "#3EC2C9",
|
|
10
10
|
special: "#686DF4",
|
|
@@ -284,6 +284,21 @@ var keyframes = {
|
|
|
284
284
|
...radixKeyframes
|
|
285
285
|
};
|
|
286
286
|
|
|
287
|
+
// src/theme/screen.ts
|
|
288
|
+
var screensNumber = {
|
|
289
|
+
"sm": 640,
|
|
290
|
+
"md": 768,
|
|
291
|
+
"lg": 1024,
|
|
292
|
+
"xl": 1280,
|
|
293
|
+
"2xl": 1536,
|
|
294
|
+
"tablet": 640,
|
|
295
|
+
"laptop": 1024,
|
|
296
|
+
"desktop": 1280
|
|
297
|
+
};
|
|
298
|
+
var screens = Object.fromEntries(
|
|
299
|
+
Object.entries(screensNumber).map(([key, value]) => [key, `${value}px`])
|
|
300
|
+
);
|
|
301
|
+
|
|
287
302
|
// src/theme/index.ts
|
|
288
303
|
var theme = {
|
|
289
304
|
colors,
|
|
@@ -291,7 +306,8 @@ var theme = {
|
|
|
291
306
|
fontSize: fontSizes,
|
|
292
307
|
fontFamily: customFontFamily,
|
|
293
308
|
animation,
|
|
294
|
-
keyframes
|
|
309
|
+
keyframes,
|
|
310
|
+
screens
|
|
295
311
|
};
|
|
296
312
|
var unocssTheme = {
|
|
297
313
|
colors,
|
|
@@ -306,6 +322,8 @@ export {
|
|
|
306
322
|
customFontFamily,
|
|
307
323
|
animation,
|
|
308
324
|
keyframes,
|
|
325
|
+
screensNumber,
|
|
326
|
+
screens,
|
|
309
327
|
theme,
|
|
310
328
|
unocssTheme
|
|
311
329
|
};
|
package/dist/cli/index.cjs
CHANGED
|
@@ -23,9 +23,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
23
23
|
));
|
|
24
24
|
|
|
25
25
|
// src/cli/index.ts
|
|
26
|
+
var import_node_process = __toESM(require("process"), 1);
|
|
26
27
|
var import_helpers = require("yargs/helpers");
|
|
27
28
|
var import_yargs = __toESM(require("yargs"), 1);
|
|
28
|
-
var import_node_process = __toESM(require("process"), 1);
|
|
29
29
|
|
|
30
30
|
// src/theme/colors.ts
|
|
31
31
|
var mainColors = {
|
|
@@ -33,7 +33,7 @@ var mainColors = {
|
|
|
33
33
|
current: "currentColor",
|
|
34
34
|
transparent: "transparent",
|
|
35
35
|
danger: "#EA3529",
|
|
36
|
-
warning: "#
|
|
36
|
+
warning: "#F97316",
|
|
37
37
|
success: "#15A46E",
|
|
38
38
|
info: "#3EC2C9",
|
|
39
39
|
special: "#686DF4",
|
|
@@ -303,6 +303,21 @@ var keyframes = {
|
|
|
303
303
|
...radixKeyframes
|
|
304
304
|
};
|
|
305
305
|
|
|
306
|
+
// src/theme/screen.ts
|
|
307
|
+
var screensNumber = {
|
|
308
|
+
"sm": 640,
|
|
309
|
+
"md": 768,
|
|
310
|
+
"lg": 1024,
|
|
311
|
+
"xl": 1280,
|
|
312
|
+
"2xl": 1536,
|
|
313
|
+
"tablet": 640,
|
|
314
|
+
"laptop": 1024,
|
|
315
|
+
"desktop": 1280
|
|
316
|
+
};
|
|
317
|
+
var screens = Object.fromEntries(
|
|
318
|
+
Object.entries(screensNumber).map(([key, value]) => [key, `${value}px`])
|
|
319
|
+
);
|
|
320
|
+
|
|
306
321
|
// src/cli/src/theme/color.ts
|
|
307
322
|
var css = String.raw;
|
|
308
323
|
function generateColorVariables(filetype) {
|
package/dist/cli/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
colors
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-AYMXORCG.js";
|
|
4
4
|
|
|
5
5
|
// src/cli/index.ts
|
|
6
|
+
import process from "process";
|
|
6
7
|
import { hideBin } from "yargs/helpers";
|
|
7
8
|
import yargs from "yargs";
|
|
8
|
-
import process from "process";
|
|
9
9
|
|
|
10
10
|
// src/cli/src/theme/color.ts
|
|
11
11
|
var css = String.raw;
|
package/dist/index.cjs
CHANGED
|
@@ -38,6 +38,8 @@ __export(src_exports, {
|
|
|
38
38
|
fontFamily: () => customFontFamily,
|
|
39
39
|
fontSizes: () => fontSizes,
|
|
40
40
|
keyframes: () => keyframes,
|
|
41
|
+
screens: () => screens,
|
|
42
|
+
screensNumber: () => screensNumber,
|
|
41
43
|
shadows: () => shadows,
|
|
42
44
|
theme: () => theme,
|
|
43
45
|
unocssTheme: () => unocssTheme
|
|
@@ -50,7 +52,7 @@ var mainColors = {
|
|
|
50
52
|
current: "currentColor",
|
|
51
53
|
transparent: "transparent",
|
|
52
54
|
danger: "#EA3529",
|
|
53
|
-
warning: "#
|
|
55
|
+
warning: "#F97316",
|
|
54
56
|
success: "#15A46E",
|
|
55
57
|
info: "#3EC2C9",
|
|
56
58
|
special: "#686DF4",
|
|
@@ -330,6 +332,21 @@ var keyframes = {
|
|
|
330
332
|
...radixKeyframes
|
|
331
333
|
};
|
|
332
334
|
|
|
335
|
+
// src/theme/screen.ts
|
|
336
|
+
var screensNumber = {
|
|
337
|
+
"sm": 640,
|
|
338
|
+
"md": 768,
|
|
339
|
+
"lg": 1024,
|
|
340
|
+
"xl": 1280,
|
|
341
|
+
"2xl": 1536,
|
|
342
|
+
"tablet": 640,
|
|
343
|
+
"laptop": 1024,
|
|
344
|
+
"desktop": 1280
|
|
345
|
+
};
|
|
346
|
+
var screens = Object.fromEntries(
|
|
347
|
+
Object.entries(screensNumber).map(([key, value]) => [key, `${value}px`])
|
|
348
|
+
);
|
|
349
|
+
|
|
333
350
|
// src/theme/index.ts
|
|
334
351
|
var theme = {
|
|
335
352
|
colors,
|
|
@@ -337,7 +354,8 @@ var theme = {
|
|
|
337
354
|
fontSize: fontSizes,
|
|
338
355
|
fontFamily: customFontFamily,
|
|
339
356
|
animation,
|
|
340
|
-
keyframes
|
|
357
|
+
keyframes,
|
|
358
|
+
screens
|
|
341
359
|
};
|
|
342
360
|
var unocssTheme = {
|
|
343
361
|
colors,
|
|
@@ -390,6 +408,8 @@ var src_default = config();
|
|
|
390
408
|
fontFamily,
|
|
391
409
|
fontSizes,
|
|
392
410
|
keyframes,
|
|
411
|
+
screens,
|
|
412
|
+
screensNumber,
|
|
393
413
|
shadows,
|
|
394
414
|
theme,
|
|
395
415
|
unocssTheme
|
package/dist/index.d.cts
CHANGED
|
@@ -324,6 +324,15 @@ declare const keyframes: {
|
|
|
324
324
|
};
|
|
325
325
|
};
|
|
326
326
|
|
|
327
|
+
type Screens = Record<string, `${number}px`>;
|
|
328
|
+
type ExtractNumber<T extends string> = T extends `${infer N extends number}px` ? N : never;
|
|
329
|
+
type ScreensNumber = {
|
|
330
|
+
[K in keyof Screens]: ExtractNumber<Screens[K]>;
|
|
331
|
+
};
|
|
332
|
+
|
|
333
|
+
declare const screensNumber: ScreensNumber;
|
|
334
|
+
declare const screens: Screens;
|
|
335
|
+
|
|
327
336
|
declare const theme: Config['theme'];
|
|
328
337
|
declare const unocssTheme: {
|
|
329
338
|
colors: {
|
|
@@ -539,4 +548,4 @@ type Shadows = {
|
|
|
539
548
|
declare function config(extend?: boolean): Partial<Config>;
|
|
540
549
|
declare const _default: Partial<tailwindcss_types_config.Config>;
|
|
541
550
|
|
|
542
|
-
export { type ColorString, type Colors, type ColorsNames, type FontSizes, type Shadows, type UnocssFontSizes, animation, colors, colorsNames, config, _default as default, customFontFamily as fontFamily, fontSizes, isDetailFont, keyframes, shadows, theme, unocssTheme };
|
|
551
|
+
export { type ColorString, type Colors, type ColorsNames, type FontSizes, type Screens, type ScreensNumber, type Shadows, type UnocssFontSizes, animation, colors, colorsNames, config, _default as default, customFontFamily as fontFamily, fontSizes, isDetailFont, keyframes, screens, screensNumber, shadows, theme, unocssTheme };
|
package/dist/index.d.ts
CHANGED
|
@@ -324,6 +324,15 @@ declare const keyframes: {
|
|
|
324
324
|
};
|
|
325
325
|
};
|
|
326
326
|
|
|
327
|
+
type Screens = Record<string, `${number}px`>;
|
|
328
|
+
type ExtractNumber<T extends string> = T extends `${infer N extends number}px` ? N : never;
|
|
329
|
+
type ScreensNumber = {
|
|
330
|
+
[K in keyof Screens]: ExtractNumber<Screens[K]>;
|
|
331
|
+
};
|
|
332
|
+
|
|
333
|
+
declare const screensNumber: ScreensNumber;
|
|
334
|
+
declare const screens: Screens;
|
|
335
|
+
|
|
327
336
|
declare const theme: Config['theme'];
|
|
328
337
|
declare const unocssTheme: {
|
|
329
338
|
colors: {
|
|
@@ -539,4 +548,4 @@ type Shadows = {
|
|
|
539
548
|
declare function config(extend?: boolean): Partial<Config>;
|
|
540
549
|
declare const _default: Partial<tailwindcss_types_config.Config>;
|
|
541
550
|
|
|
542
|
-
export { type ColorString, type Colors, type ColorsNames, type FontSizes, type Shadows, type UnocssFontSizes, animation, colors, colorsNames, config, _default as default, customFontFamily as fontFamily, fontSizes, isDetailFont, keyframes, shadows, theme, unocssTheme };
|
|
551
|
+
export { type ColorString, type Colors, type ColorsNames, type FontSizes, type Screens, type ScreensNumber, type Shadows, type UnocssFontSizes, animation, colors, colorsNames, config, _default as default, customFontFamily as fontFamily, fontSizes, isDetailFont, keyframes, screens, screensNumber, shadows, theme, unocssTheme };
|
package/dist/index.js
CHANGED
|
@@ -4,10 +4,12 @@ import {
|
|
|
4
4
|
customFontFamily,
|
|
5
5
|
fontSizes,
|
|
6
6
|
keyframes,
|
|
7
|
+
screens,
|
|
8
|
+
screensNumber,
|
|
7
9
|
shadows,
|
|
8
10
|
theme,
|
|
9
11
|
unocssTheme
|
|
10
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-AYMXORCG.js";
|
|
11
13
|
|
|
12
14
|
// src/plugins/index.ts
|
|
13
15
|
import animation2 from "tailwindcss-animate";
|
|
@@ -54,6 +56,8 @@ export {
|
|
|
54
56
|
customFontFamily as fontFamily,
|
|
55
57
|
fontSizes,
|
|
56
58
|
keyframes,
|
|
59
|
+
screens,
|
|
60
|
+
screensNumber,
|
|
57
61
|
shadows,
|
|
58
62
|
theme,
|
|
59
63
|
unocssTheme
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@removify/tailwind-preset",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.7",
|
|
5
5
|
"description": "Tailwind CSS preset for Removify",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"tailwind"
|
|
@@ -26,28 +26,28 @@
|
|
|
26
26
|
"tailwindcss": "^3.0.0"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"string-ts": "^2.
|
|
29
|
+
"string-ts": "^2.2.0",
|
|
30
30
|
"tailwindcss-animate": "^1.0.7",
|
|
31
31
|
"yargs": "17.7.2"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@commitlint/cli": "^19.3.0",
|
|
35
35
|
"@commitlint/config-conventional": "^19.2.2",
|
|
36
|
-
"@removify/eslint-config": "^1.
|
|
37
|
-
"@types/node": "^20.14.
|
|
36
|
+
"@removify/eslint-config": "^1.4.0-beta.5",
|
|
37
|
+
"@types/node": "^20.14.11",
|
|
38
38
|
"@types/yargs": "^17.0.32",
|
|
39
39
|
"bumpp": "^9.4.1",
|
|
40
|
-
"eslint": "^9.
|
|
41
|
-
"husky": "^9.
|
|
42
|
-
"lint-staged": "^15.2.
|
|
43
|
-
"rimraf": "^
|
|
44
|
-
"tailwind-config-viewer": "^2.0.
|
|
45
|
-
"tailwindcss": "^3.4.
|
|
46
|
-
"tsup": "^8.
|
|
47
|
-
"tsx": "^4.
|
|
48
|
-
"typescript": "^5.4
|
|
49
|
-
"vitest": "^
|
|
50
|
-
"@removify/tailwind-preset": "0.1.
|
|
40
|
+
"eslint": "^9.7.0",
|
|
41
|
+
"husky": "^9.1.1",
|
|
42
|
+
"lint-staged": "^15.2.7",
|
|
43
|
+
"rimraf": "^6.0.1",
|
|
44
|
+
"tailwind-config-viewer": "^2.0.4",
|
|
45
|
+
"tailwindcss": "^3.4.6",
|
|
46
|
+
"tsup": "^8.2.2",
|
|
47
|
+
"tsx": "^4.16.2",
|
|
48
|
+
"typescript": "^5.5.4",
|
|
49
|
+
"vitest": "^2.0.4",
|
|
50
|
+
"@removify/tailwind-preset": "0.1.7"
|
|
51
51
|
},
|
|
52
52
|
"lint-staged": {
|
|
53
53
|
"**/*.{js,ts,vue,html}": [
|