@removify/tailwind-preset 1.0.4 → 1.0.6

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.cjs CHANGED
@@ -43,9 +43,11 @@ __export(index_exports, {
43
43
  fontSize: () => fontSize,
44
44
  isDetailFont: () => isDetailFont,
45
45
  keyframes: () => keyframes,
46
+ ratingColorVariations: () => ratingColorVariations,
46
47
  screenSizes: () => screenSizes,
47
48
  screens: () => screens,
48
49
  screensNumber: () => screensNumber,
50
+ shadowVariations: () => shadowVariations,
49
51
  unocssTheme: () => unocssTheme
50
52
  });
51
53
  module.exports = __toCommonJS(index_exports);
@@ -522,6 +524,16 @@ var colorsNames = [
522
524
  "seafoam"
523
525
  ];
524
526
 
527
+ // src/types/color.ts
528
+ var ratingColorVariations = [
529
+ "low",
530
+ "high",
531
+ "medium",
532
+ "low-star",
533
+ "high-star",
534
+ "medium-star"
535
+ ];
536
+
525
537
  // src/types/factory.ts
526
538
  var configuredThemes = [
527
539
  "colors",
@@ -547,6 +559,16 @@ var screenSizes = [
547
559
  "desktop"
548
560
  ];
549
561
 
562
+ // src/types/shadow.ts
563
+ var shadowVariations = [
564
+ "elevation-0",
565
+ "elevation-1",
566
+ "elevation-2",
567
+ "elevation-3",
568
+ "elevation-4",
569
+ "elevation-5"
570
+ ];
571
+
550
572
  // src/index.ts
551
573
  function buildPreset(extend = true, buildOptions = {}) {
552
574
  if (extend === false) {
@@ -577,8 +599,10 @@ function buildPreset(extend = true, buildOptions = {}) {
577
599
  fontSize,
578
600
  isDetailFont,
579
601
  keyframes,
602
+ ratingColorVariations,
580
603
  screenSizes,
581
604
  screens,
582
605
  screensNumber,
606
+ shadowVariations,
583
607
  unocssTheme
584
608
  });
package/dist/index.d.cts CHANGED
@@ -4,6 +4,7 @@ declare const colorsNames: readonly ["primary", "bateau", "secondary", "pompelmo
4
4
 
5
5
  type ColorsNames = typeof colorsNames[number];
6
6
  type RatingVariations = `${'low' | 'high' | 'medium'}${'' | '-star'}`;
7
+ declare const ratingColorVariations: RatingVariations[];
7
8
  type ColorsVariations = 'DEFAULT' | 50 | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 950;
8
9
  interface MainColors {
9
10
  black: string;
@@ -92,9 +93,9 @@ type BorderSize = 0 | `${number}px`;
92
93
  type RgbValue = number;
93
94
  type Shadow = `${BorderSize} ${BorderSize} ${BorderSize} ${BorderSize} rgba(${RgbValue}, ${RgbValue}, ${RgbValue}, ${RgbValue})`;
94
95
  type ShadowSize = 0 | 1 | 2 | 3 | 4 | 5;
95
- type Shadows = {
96
- [K in ShadowSize as `elevation-${K}`]?: Shadow;
97
- };
96
+ type ShadowKeys = `elevation-${ShadowSize}`;
97
+ declare const shadowVariations: ShadowKeys[];
98
+ type Shadows = Record<ShadowKeys, Shadow>;
98
99
 
99
100
  declare const animation: {
100
101
  'radix-accordion-down': string;
@@ -697,4 +698,4 @@ declare const unocssTheme: {
697
698
 
698
699
  declare function buildPreset(extend?: boolean, buildOptions?: BuildThemeOptions): Partial<Config>;
699
700
 
700
- export { type BorderSize, type BuildThemeOptions, type ColorString, type Colors, type ColorsNames, type ColorsVariations, type ConfiguredThemes, type DefaultColors, type DetailFont, type DisplayKeys, type ExtractNumber, type FontAndLineHeight, type FontSize, type FontSizeDetail, type FontSizeKeys, type FontSizes, type FontValue, type HeadingKeys, type MainColors, type RatingVariations, type RgbValue, type Screens, type ScreensNumber, type Shadow, type ShadowSize, type Shadows, type SizeKeys, type ThemeOptions, type UnocssDetailFont, type UnocssFontSize, type UnocssFontSizes, animation, boxShadow, buildPreset, buildTheme, colors, colorsNames, configuredThemes, defaultTheme, factory, customFontFamily as fontFamily, fontSize, isDetailFont, keyframes, screenSizes, screens, screensNumber, unocssTheme };
701
+ export { type BorderSize, type BuildThemeOptions, type ColorString, type Colors, type ColorsNames, type ColorsVariations, type ConfiguredThemes, type DefaultColors, type DetailFont, type DisplayKeys, type ExtractNumber, type FontAndLineHeight, type FontSize, type FontSizeDetail, type FontSizeKeys, type FontSizes, type FontValue, type HeadingKeys, type MainColors, type RatingVariations, type RgbValue, type Screens, type ScreensNumber, type Shadow, type ShadowKeys, type ShadowSize, type Shadows, type SizeKeys, type ThemeOptions, type UnocssDetailFont, type UnocssFontSize, type UnocssFontSizes, animation, boxShadow, buildPreset, buildTheme, colors, colorsNames, configuredThemes, defaultTheme, factory, customFontFamily as fontFamily, fontSize, isDetailFont, keyframes, ratingColorVariations, screenSizes, screens, screensNumber, shadowVariations, unocssTheme };
package/dist/index.d.ts CHANGED
@@ -4,6 +4,7 @@ declare const colorsNames: readonly ["primary", "bateau", "secondary", "pompelmo
4
4
 
5
5
  type ColorsNames = typeof colorsNames[number];
6
6
  type RatingVariations = `${'low' | 'high' | 'medium'}${'' | '-star'}`;
7
+ declare const ratingColorVariations: RatingVariations[];
7
8
  type ColorsVariations = 'DEFAULT' | 50 | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 950;
8
9
  interface MainColors {
9
10
  black: string;
@@ -92,9 +93,9 @@ type BorderSize = 0 | `${number}px`;
92
93
  type RgbValue = number;
93
94
  type Shadow = `${BorderSize} ${BorderSize} ${BorderSize} ${BorderSize} rgba(${RgbValue}, ${RgbValue}, ${RgbValue}, ${RgbValue})`;
94
95
  type ShadowSize = 0 | 1 | 2 | 3 | 4 | 5;
95
- type Shadows = {
96
- [K in ShadowSize as `elevation-${K}`]?: Shadow;
97
- };
96
+ type ShadowKeys = `elevation-${ShadowSize}`;
97
+ declare const shadowVariations: ShadowKeys[];
98
+ type Shadows = Record<ShadowKeys, Shadow>;
98
99
 
99
100
  declare const animation: {
100
101
  'radix-accordion-down': string;
@@ -697,4 +698,4 @@ declare const unocssTheme: {
697
698
 
698
699
  declare function buildPreset(extend?: boolean, buildOptions?: BuildThemeOptions): Partial<Config>;
699
700
 
700
- export { type BorderSize, type BuildThemeOptions, type ColorString, type Colors, type ColorsNames, type ColorsVariations, type ConfiguredThemes, type DefaultColors, type DetailFont, type DisplayKeys, type ExtractNumber, type FontAndLineHeight, type FontSize, type FontSizeDetail, type FontSizeKeys, type FontSizes, type FontValue, type HeadingKeys, type MainColors, type RatingVariations, type RgbValue, type Screens, type ScreensNumber, type Shadow, type ShadowSize, type Shadows, type SizeKeys, type ThemeOptions, type UnocssDetailFont, type UnocssFontSize, type UnocssFontSizes, animation, boxShadow, buildPreset, buildTheme, colors, colorsNames, configuredThemes, defaultTheme, factory, customFontFamily as fontFamily, fontSize, isDetailFont, keyframes, screenSizes, screens, screensNumber, unocssTheme };
701
+ export { type BorderSize, type BuildThemeOptions, type ColorString, type Colors, type ColorsNames, type ColorsVariations, type ConfiguredThemes, type DefaultColors, type DetailFont, type DisplayKeys, type ExtractNumber, type FontAndLineHeight, type FontSize, type FontSizeDetail, type FontSizeKeys, type FontSizes, type FontValue, type HeadingKeys, type MainColors, type RatingVariations, type RgbValue, type Screens, type ScreensNumber, type Shadow, type ShadowKeys, type ShadowSize, type Shadows, type SizeKeys, type ThemeOptions, type UnocssDetailFont, type UnocssFontSize, type UnocssFontSizes, animation, boxShadow, buildPreset, buildTheme, colors, colorsNames, configuredThemes, defaultTheme, factory, customFontFamily as fontFamily, fontSize, isDetailFont, keyframes, ratingColorVariations, screenSizes, screens, screensNumber, shadowVariations, unocssTheme };
package/dist/index.js CHANGED
@@ -470,6 +470,16 @@ var colorsNames = [
470
470
  "seafoam"
471
471
  ];
472
472
 
473
+ // src/types/color.ts
474
+ var ratingColorVariations = [
475
+ "low",
476
+ "high",
477
+ "medium",
478
+ "low-star",
479
+ "high-star",
480
+ "medium-star"
481
+ ];
482
+
473
483
  // src/types/factory.ts
474
484
  var configuredThemes = [
475
485
  "colors",
@@ -495,6 +505,16 @@ var screenSizes = [
495
505
  "desktop"
496
506
  ];
497
507
 
508
+ // src/types/shadow.ts
509
+ var shadowVariations = [
510
+ "elevation-0",
511
+ "elevation-1",
512
+ "elevation-2",
513
+ "elevation-3",
514
+ "elevation-4",
515
+ "elevation-5"
516
+ ];
517
+
498
518
  // src/index.ts
499
519
  function buildPreset(extend = true, buildOptions = {}) {
500
520
  if (extend === false) {
@@ -524,8 +544,10 @@ export {
524
544
  fontSize,
525
545
  isDetailFont,
526
546
  keyframes,
547
+ ratingColorVariations,
527
548
  screenSizes,
528
549
  screens,
529
550
  screensNumber,
551
+ shadowVariations,
530
552
  unocssTheme
531
553
  };
package/package.json CHANGED
@@ -1,8 +1,7 @@
1
1
  {
2
2
  "name": "@removify/tailwind-preset",
3
3
  "type": "module",
4
- "version": "1.0.4",
5
- "packageManager": "pnpm@10.13.1",
4
+ "version": "1.0.6",
6
5
  "description": "Tailwind CSS preset for Removify",
7
6
  "keywords": [
8
7
  "tailwind"
@@ -32,24 +31,6 @@
32
31
  "engines": {
33
32
  "node": ">=22"
34
33
  },
35
- "scripts": {
36
- "start": "pnpm exec tsx ./src/index.ts",
37
- "build": "rimraf dist && tsup src/index.ts --format esm,cjs --clean --dts && pnpm generate:tailwind-v4",
38
- "generate:tailwind-v4": "tsx ./scripts/generate-tailwind-v4.ts",
39
- "update-animation:v4": "curl https://raw.githubusercontent.com/Wombosvideo/tw-animate-css/refs/heads/main/src/tw-animate.css > ./tailwind-dist/tailwindcss-animate.css",
40
- "typecheck": "tsc --noEmit",
41
- "prepack": "pnpm build",
42
- "watch": "tsup --format esm,cjs --watch",
43
- "dev": "tsx watch ./src/index.ts",
44
- "dev:playground": "pnpm --filter playground dev",
45
- "test": "vitest",
46
- "lint": "eslint .",
47
- "lint:fix": "eslint --fix .",
48
- "husky:install": "husky",
49
- "release": "bumpp && pnpm publish --access=public",
50
- "tailwind-config-viewer": "tailwind-config-viewer -o -c tailwind.config.js",
51
- "tailwind-config-viewer:build": "pnpm build && tailwind-config-viewer export tailwind-dist -c tailwind.config.js"
52
- },
53
34
  "peerDependencies": {
54
35
  "tailwindcss": "^3.0.0 || ^4.0.0"
55
36
  },
@@ -61,7 +42,6 @@
61
42
  "@commitlint/cli": "^19.8.1",
62
43
  "@commitlint/config-conventional": "^19.8.1",
63
44
  "@removify/eslint-config": "^3.1.2",
64
- "@removify/tailwind-preset": "workspace:*",
65
45
  "@types/node": "^22.16.5",
66
46
  "bumpp": "^10.2.0",
67
47
  "eslint": "^9.31.0",
@@ -73,16 +53,29 @@
73
53
  "tsup": "^8.5.0",
74
54
  "tsx": "^4.20.3",
75
55
  "typescript": "^5.8.3",
76
- "vitest": "^3.2.4"
77
- },
78
- "pnpm": {
79
- "overrides": {
80
- "koa": ">=3.0.1"
81
- }
56
+ "vitest": "^3.2.4",
57
+ "@removify/tailwind-preset": "1.0.6"
82
58
  },
83
59
  "lint-staged": {
84
60
  "**/*.{js,ts,vue,html}": [
85
61
  "pnpm lint:fix"
86
62
  ]
63
+ },
64
+ "scripts": {
65
+ "start": "pnpm exec tsx ./src/index.ts",
66
+ "build": "rimraf dist && tsup src/index.ts --format esm,cjs --clean --dts && pnpm generate:tailwind-v4",
67
+ "generate:tailwind-v4": "tsx ./scripts/generate-tailwind-v4.ts",
68
+ "update-animation:v4": "curl https://raw.githubusercontent.com/Wombosvideo/tw-animate-css/refs/heads/main/src/tw-animate.css > ./tailwind-dist/tailwindcss-animate.css",
69
+ "typecheck": "tsc --noEmit",
70
+ "watch": "tsup --format esm,cjs --watch",
71
+ "dev": "tsx watch ./src/index.ts",
72
+ "dev:playground": "pnpm --filter playground dev",
73
+ "test": "vitest",
74
+ "lint": "eslint .",
75
+ "lint:fix": "eslint --fix .",
76
+ "husky:install": "husky",
77
+ "release": "bumpp && pnpm publish --access=public",
78
+ "tailwind-config-viewer": "tailwind-config-viewer -o -c tailwind.config.js",
79
+ "tailwind-config-viewer:build": "pnpm build && tailwind-config-viewer export tailwind-dist -c tailwind.config.js"
87
80
  }
88
- }
81
+ }