@d0rich/esprit-design 0.4.1 → 0.4.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @d0rich/esprit-design
2
2
 
3
+ ## 0.4.2
4
+
5
+ ### Patch Changes
6
+
7
+ - ec2ec22: Refactor exports definitions in package.json
8
+ - ec2ec22: Filter out deprecated Tailwind colors in shadows plugin
9
+
3
10
  ## 0.4.1
4
11
 
5
12
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d0rich/esprit-design",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -10,9 +10,9 @@
10
10
  "types": "./dist/index.d.ts",
11
11
  "exports": {
12
12
  ".": {
13
+ "types": "./dist/index.d.ts",
13
14
  "import": "./dist/esprit-design.js",
14
- "require": "./dist/esprit-design.umd.cjs",
15
- "types": "./dist/index.d.ts"
15
+ "require": "./dist/esprit-design.umd.cjs"
16
16
  },
17
17
  "./style.css": "./dist/style.css",
18
18
  "./tailwind.config": "./tailwind.config.js",
@@ -3,6 +3,13 @@ const plugin = require('tailwindcss/plugin')
3
3
  /** @type {import('tailwindcss/colors')} */
4
4
  const colors = require('tailwindcss/colors')
5
5
 
6
+ const deprecatedTailwindColors = [
7
+ 'lightBlue',
8
+ 'warmGray',
9
+ 'trueGray',
10
+ 'coolGray',
11
+ 'blueGray'
12
+ ]
6
13
  const X_OFFSET_VAR = '--tw-ss-x-offset'
7
14
  const Y_OFFSET_VAR = '--tw-ss-y-offset'
8
15
  const COLOR_VAR = '--tw-ss-color'
@@ -47,8 +54,14 @@ function generateDirections() {
47
54
 
48
55
  function generateColors(themeColors) {
49
56
  const result = {}
57
+ const filteredTailwindColors = {}
58
+ for (const colorKey in colors) {
59
+ if (!deprecatedTailwindColors.includes(colorKey)) {
60
+ filteredTailwindColors[colorKey] = colors[colorKey]
61
+ }
62
+ }
50
63
  const localColors = {
51
- ...colors,
64
+ ...filteredTailwindColors,
52
65
  ...themeColors
53
66
  }
54
67
  for (const colorKey in localColors) {