@projectwallace/css-design-tokens 0.4.1 → 0.6.0

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.
@@ -1,10 +1,10 @@
1
- import { ColorToken, UnparsedToken } from './types.js';
1
+ import { ColorValue } from './types.js';
2
2
  type CssLength = {
3
3
  value: number;
4
4
  unit: string;
5
5
  };
6
6
  export type DestructuredShadow = {
7
- color: ColorToken | UnparsedToken | undefined;
7
+ color: ColorValue | undefined;
8
8
  offsetX: CssLength | undefined;
9
9
  offsetY: CssLength | undefined;
10
10
  blur: CssLength | undefined;
package/dist/types.d.ts CHANGED
@@ -34,12 +34,13 @@ export type ColorToken = BaseToken & {
34
34
  [EXTENSION_AUTHORED_AS]: string;
35
35
  };
36
36
  };
37
+ export type DimensionValue = {
38
+ value: number;
39
+ unit: string;
40
+ };
37
41
  export type DimensionToken = BaseToken & {
38
42
  $type: 'dimension';
39
- $value: {
40
- value: number;
41
- unit: string;
42
- };
43
+ $value: DimensionValue;
43
44
  };
44
45
  export type NumberToken = BaseToken & {
45
46
  $type: 'number';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@projectwallace/css-design-tokens",
3
3
  "description": "Generate spec-compliant Design Tokens from CSS.",
4
- "version": "0.4.1",
4
+ "version": "0.6.0",
5
5
  "license": "EUPL-1.2",
6
6
  "author": "Bart Veneman <bart@projectwallace.com>",
7
7
  "repository": {
@@ -34,7 +34,7 @@
34
34
  "check": "tsc --noEmit"
35
35
  },
36
36
  "dependencies": {
37
- "@projectwallace/css-analyzer": "^7.5.1",
37
+ "@projectwallace/css-analyzer": "^7.6.0",
38
38
  "color-sorter": "^7.0.0",
39
39
  "colorjs.io": "^0.6.0-alpha.1",
40
40
  "css-time-sort": "^3.0.0",
@@ -1,8 +0,0 @@
1
- /**
2
- * @description A Set-like construct to search CSS keywords in a case-insensitive way
3
- */
4
- export declare class KeywordSet {
5
- private set;
6
- constructor(items: Lowercase<string>[]);
7
- has(item: string): boolean;
8
- }