@removify/tailwind-preset 1.0.5 → 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
@@ -47,6 +47,7 @@ __export(index_exports, {
47
47
  screenSizes: () => screenSizes,
48
48
  screens: () => screens,
49
49
  screensNumber: () => screensNumber,
50
+ shadowVariations: () => shadowVariations,
50
51
  unocssTheme: () => unocssTheme
51
52
  });
52
53
  module.exports = __toCommonJS(index_exports);
@@ -558,6 +559,16 @@ var screenSizes = [
558
559
  "desktop"
559
560
  ];
560
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
+
561
572
  // src/index.ts
562
573
  function buildPreset(extend = true, buildOptions = {}) {
563
574
  if (extend === false) {
@@ -592,5 +603,6 @@ function buildPreset(extend = true, buildOptions = {}) {
592
603
  screenSizes,
593
604
  screens,
594
605
  screensNumber,
606
+ shadowVariations,
595
607
  unocssTheme
596
608
  });
package/dist/index.d.cts CHANGED
@@ -93,9 +93,9 @@ type BorderSize = 0 | `${number}px`;
93
93
  type RgbValue = number;
94
94
  type Shadow = `${BorderSize} ${BorderSize} ${BorderSize} ${BorderSize} rgba(${RgbValue}, ${RgbValue}, ${RgbValue}, ${RgbValue})`;
95
95
  type ShadowSize = 0 | 1 | 2 | 3 | 4 | 5;
96
- type Shadows = {
97
- [K in ShadowSize as `elevation-${K}`]?: Shadow;
98
- };
96
+ type ShadowKeys = `elevation-${ShadowSize}`;
97
+ declare const shadowVariations: ShadowKeys[];
98
+ type Shadows = Record<ShadowKeys, Shadow>;
99
99
 
100
100
  declare const animation: {
101
101
  'radix-accordion-down': string;
@@ -698,4 +698,4 @@ declare const unocssTheme: {
698
698
 
699
699
  declare function buildPreset(extend?: boolean, buildOptions?: BuildThemeOptions): Partial<Config>;
700
700
 
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 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, 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
@@ -93,9 +93,9 @@ type BorderSize = 0 | `${number}px`;
93
93
  type RgbValue = number;
94
94
  type Shadow = `${BorderSize} ${BorderSize} ${BorderSize} ${BorderSize} rgba(${RgbValue}, ${RgbValue}, ${RgbValue}, ${RgbValue})`;
95
95
  type ShadowSize = 0 | 1 | 2 | 3 | 4 | 5;
96
- type Shadows = {
97
- [K in ShadowSize as `elevation-${K}`]?: Shadow;
98
- };
96
+ type ShadowKeys = `elevation-${ShadowSize}`;
97
+ declare const shadowVariations: ShadowKeys[];
98
+ type Shadows = Record<ShadowKeys, Shadow>;
99
99
 
100
100
  declare const animation: {
101
101
  'radix-accordion-down': string;
@@ -698,4 +698,4 @@ declare const unocssTheme: {
698
698
 
699
699
  declare function buildPreset(extend?: boolean, buildOptions?: BuildThemeOptions): Partial<Config>;
700
700
 
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 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, 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
@@ -505,6 +505,16 @@ var screenSizes = [
505
505
  "desktop"
506
506
  ];
507
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
+
508
518
  // src/index.ts
509
519
  function buildPreset(extend = true, buildOptions = {}) {
510
520
  if (extend === false) {
@@ -538,5 +548,6 @@ export {
538
548
  screenSizes,
539
549
  screens,
540
550
  screensNumber,
551
+ shadowVariations,
541
552
  unocssTheme
542
553
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@removify/tailwind-preset",
3
3
  "type": "module",
4
- "version": "1.0.5",
4
+ "version": "1.0.6",
5
5
  "description": "Tailwind CSS preset for Removify",
6
6
  "keywords": [
7
7
  "tailwind"
@@ -54,7 +54,7 @@
54
54
  "tsx": "^4.20.3",
55
55
  "typescript": "^5.8.3",
56
56
  "vitest": "^3.2.4",
57
- "@removify/tailwind-preset": "1.0.5"
57
+ "@removify/tailwind-preset": "1.0.6"
58
58
  },
59
59
  "lint-staged": {
60
60
  "**/*.{js,ts,vue,html}": [