@kaizen/tailwind 1.0.0 → 1.0.1

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/package.json CHANGED
@@ -1,11 +1,10 @@
1
1
  {
2
2
  "name": "@kaizen/tailwind",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Kaizen Tailwind presets",
5
5
  "scripts": {
6
- "build": "yarn clean && yarn prepublish",
6
+ "build": "yarn prepublish",
7
7
  "build:ts": "tsc --project tsconfig.dist.json",
8
- "build:watch": "yarn clean && yarn prepublish --watch",
9
8
  "prepublish": "tsc --project tsconfig.dist.json",
10
9
  "clean": "rimraf -g '**/*.d.ts' '**/*.js' '**/*.map'"
11
10
  },
@@ -19,20 +18,18 @@
19
18
  },
20
19
  "files": [
21
20
  "src",
22
- "dist",
23
- "!**/*.spec.*",
24
- "!docs"
21
+ "dist"
25
22
  ],
26
23
  "main": "dist/index.js",
27
24
  "author": "",
28
25
  "private": false,
29
26
  "license": "MIT",
30
27
  "dependencies": {
31
- "@kaizen/design-tokens": "^10.3.7",
28
+ "@kaizen/design-tokens": "^10.3.8",
32
29
  "classnames": "^2.3.2"
33
30
  },
34
31
  "devDependencies": {
35
- "@kaizen/draft-divider": "^2.2.9",
32
+ "@kaizen/draft-divider": "^2.2.10",
36
33
  "tailwindcss": "^3.3.2"
37
34
  },
38
35
  "peerDependencies": {
@@ -0,0 +1,19 @@
1
+ import { filterOutNonPixelTokens } from "./kz-spacing"
2
+
3
+ describe("filterOutNonPixelTokens", () => {
4
+ it("Keeps all numeric keys", () => {
5
+ const result = filterOutNonPixelTokens({
6
+ 0: "0",
7
+ xs: "0.375rem",
8
+ 1: ".0625rem",
9
+ sm: "0.75rem",
10
+ 2: ".125rem",
11
+ })
12
+
13
+ expect(result).toEqual({
14
+ 0: "0",
15
+ 1: ".0625rem",
16
+ 2: ".125rem",
17
+ })
18
+ })
19
+ })