@ni/nimble-tokens 1.0.0-beta.13 → 1.0.0-beta.17

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/.eslintrc.js CHANGED
@@ -1,7 +1,7 @@
1
1
  module.exports = {
2
2
  root: true,
3
3
  extends: [
4
- '@ni'
4
+ '@ni/eslint-config-javascript'
5
5
  ],
6
6
  rules: {
7
7
  }
package/CHANGELOG.json CHANGED
@@ -2,7 +2,67 @@
2
2
  "name": "@ni/nimble-tokens",
3
3
  "entries": [
4
4
  {
5
- "date": "Thu, 26 Aug 2021 19:36:36 GMT",
5
+ "date": "Wed, 29 Sep 2021 20:17:41 GMT",
6
+ "tag": "@ni/nimble-tokens_v1.0.0-beta.17",
7
+ "version": "1.0.0-beta.17",
8
+ "comments": {
9
+ "prerelease": [
10
+ {
11
+ "author": "rajsite@users.noreply.github.com",
12
+ "package": "@ni/nimble-tokens",
13
+ "comment": "Remove manually added peer dependencies",
14
+ "commit": "381d6ab92b5495a4194c9c94c234f0f064972b8b"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "date": "Tue, 14 Sep 2021 21:19:06 GMT",
21
+ "tag": "@ni/nimble-tokens_v1.0.0-beta.16",
22
+ "version": "1.0.0-beta.16",
23
+ "comments": {
24
+ "prerelease": [
25
+ {
26
+ "author": "1458528+fredvisser@users.noreply.github.com",
27
+ "package": "@ni/nimble-tokens",
28
+ "comment": "add watch script to tokens",
29
+ "commit": "0b3136f0f8bee1946f8e8e046d0b553283ec6097"
30
+ }
31
+ ]
32
+ }
33
+ },
34
+ {
35
+ "date": "Tue, 14 Sep 2021 16:53:39 GMT",
36
+ "tag": "@ni/nimble-tokens_v1.0.0-beta.15",
37
+ "version": "1.0.0-beta.15",
38
+ "comments": {
39
+ "prerelease": [
40
+ {
41
+ "author": "1458528+fredvisser@users.noreply.github.com",
42
+ "package": "@ni/nimble-tokens",
43
+ "comment": "remove scss and change rem to px for css",
44
+ "commit": "829cd2da4ce213c9ae19ac52243d8512f18f1501"
45
+ }
46
+ ]
47
+ }
48
+ },
49
+ {
50
+ "date": "Wed, 08 Sep 2021 23:12:35 GMT",
51
+ "tag": "@ni/nimble-tokens_v1.0.0-beta.14",
52
+ "version": "1.0.0-beta.14",
53
+ "comments": {
54
+ "prerelease": [
55
+ {
56
+ "author": "jattasNI@users.noreply.github.com",
57
+ "package": "@ni/nimble-tokens",
58
+ "comment": "Update dependencies",
59
+ "commit": "a99f8daec279b1a36d43e5f4b4dbacd2dd7fb37d"
60
+ }
61
+ ]
62
+ }
63
+ },
64
+ {
65
+ "date": "Thu, 26 Aug 2021 19:36:52 GMT",
6
66
  "tag": "@ni/nimble-tokens_v1.0.0-beta.13",
7
67
  "version": "1.0.0-beta.13",
8
68
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,44 @@
1
1
  # Change Log - @ni/nimble-tokens
2
2
 
3
- This log was last generated on Thu, 26 Aug 2021 19:36:36 GMT and should not be manually modified.
3
+ This log was last generated on Wed, 29 Sep 2021 20:17:41 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 1.0.0-beta.17
8
+
9
+ Wed, 29 Sep 2021 20:17:41 GMT
10
+
11
+ ### Changes
12
+
13
+ - Remove manually added peer dependencies (rajsite@users.noreply.github.com)
14
+
15
+ ## 1.0.0-beta.16
16
+
17
+ Tue, 14 Sep 2021 21:19:06 GMT
18
+
19
+ ### Changes
20
+
21
+ - add watch script to tokens (1458528+fredvisser@users.noreply.github.com)
22
+
23
+ ## 1.0.0-beta.15
24
+
25
+ Tue, 14 Sep 2021 16:53:39 GMT
26
+
27
+ ### Changes
28
+
29
+ - remove scss and change rem to px for css (1458528+fredvisser@users.noreply.github.com)
30
+
31
+ ## 1.0.0-beta.14
32
+
33
+ Wed, 08 Sep 2021 23:12:35 GMT
34
+
35
+ ### Changes
36
+
37
+ - Update dependencies (jattasNI@users.noreply.github.com)
38
+
7
39
  ## 1.0.0-beta.13
8
40
 
9
- Thu, 26 Aug 2021 19:36:36 GMT
41
+ Thu, 26 Aug 2021 19:36:52 GMT
10
42
 
11
43
  ### Changes
12
44
 
@@ -27,16 +27,6 @@ module.exports = {
27
27
  ],
28
28
  "transformGroup": "js",
29
29
  "buildPath": "js/"
30
- },
31
- "scss": {
32
- "files": [
33
- {
34
- "destination": "variables.scss",
35
- "format": "scss/variables"
36
- }
37
- ],
38
- "transformGroup": "scss",
39
- "buildPath": "scss/"
40
30
  }
41
31
  }
42
32
  };
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Thu, 26 Aug 2021 18:52:38 GMT
3
+ * Generated on Tue, 14 Sep 2021 16:28:36 GMT
4
4
  */
5
5
 
6
6
  :root {
@@ -44,11 +44,11 @@
44
44
  --sub-header-weight: Regular;
45
45
  --header-1-family: Noto Serif;
46
46
  --header-1-weight: Regular;
47
- --header-2-size: 22rem;
48
- --overline-capitalized-size: 11rem;
49
- --body-size: 14rem;
50
- --header-0-size: 36rem;
51
- --sub-header-size: 12rem;
52
- --header-1-size: 24rem;
47
+ --header-2-size: 22px;
48
+ --overline-capitalized-size: 11px;
49
+ --body-size: 14px;
50
+ --header-0-size: 36px;
51
+ --sub-header-size: 12px;
52
+ --header-1-size: 24px;
53
53
  --small-delay: 0.1s; /* Short animation delay used for control state change animation */
54
54
  }
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Thu, 26 Aug 2021 18:52:38 GMT
3
+ * Generated on Tue, 14 Sep 2021 16:28:36 GMT
4
4
  */
5
5
 
6
6
  export const SlLegacyBlue : string;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Thu, 26 Aug 2021 18:52:38 GMT
3
+ * Generated on Tue, 14 Sep 2021 16:28:36 GMT
4
4
  */
5
5
 
6
6
  export const SlLegacyBlue = "#009ff5";
@@ -43,10 +43,10 @@ export const SubHeaderFamily = "Source Sans Pro";
43
43
  export const SubHeaderWeight = "Regular";
44
44
  export const Header1Family = "Noto Serif";
45
45
  export const Header1Weight = "Regular";
46
- export const Header2Size = "22rem";
47
- export const OverlineCapitalizedSize = "11rem";
48
- export const BodySize = "14rem";
49
- export const Header0Size = "36rem";
50
- export const SubHeaderSize = "12rem";
51
- export const Header1Size = "24rem";
46
+ export const Header2Size = "22px";
47
+ export const OverlineCapitalizedSize = "11px";
48
+ export const BodySize = "14px";
49
+ export const Header0Size = "36px";
50
+ export const SubHeaderSize = "12px";
51
+ export const Header1Size = "24px";
52
52
  export const SmallDelay = "0.1s"; // Short animation delay used for control state change animation
@@ -1,4 +1,5 @@
1
1
  const config = require('./config');
2
+ const StyleDictionary = require('style-dictionary');
2
3
 
3
4
  // Workaround to include TypeScript definitions in output.
4
5
  // See: https://github.com/AdobeXD/design-system-package-dsp/issues/22
@@ -9,3 +10,27 @@ config.platforms.js.files.push({
9
10
  });
10
11
 
11
12
  module.exports = config;
13
+
14
+ // Combination of DSP & Nimble transform overrides
15
+ StyleDictionary.registerTransformGroup({
16
+ name: 'css',
17
+ transforms: [
18
+ 'attribute/cti',
19
+ 'name/dsp/kebab', //replaces 'name/cti/kebab',
20
+ 'time/seconds',
21
+ 'content/icon',
22
+ 'size/px', //replaces size/rem from DSP config
23
+ 'color/css'
24
+ ]
25
+ });
26
+
27
+ // Combination of DSP & Nimble transform overrides
28
+ StyleDictionary.registerTransformGroup({
29
+ name: 'js',
30
+ transforms: [
31
+ 'attribute/cti',
32
+ 'name/dsp/pascal', //replaces 'name/cti/pascal',
33
+ 'size/px', //replaces size/rem from DSP config
34
+ 'color/hex',
35
+ ]
36
+ });
package/dsp.json CHANGED
@@ -149,7 +149,7 @@
149
149
  },
150
150
  {
151
151
  "label": "SCSS",
152
- "export_tokens": true,
152
+ "export_tokens": false,
153
153
  "snippet_id": "scss",
154
154
  "syntax": "text/x-sass",
155
155
  "ext-com_adobe_xd-styledictionary_id": "scss"
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "@ni/nimble-tokens",
3
- "version": "1.0.0-beta.13",
3
+ "version": "1.0.0-beta.17",
4
4
  "description": "Design tokens for the NI Nimble Design System",
5
5
  "scripts": {
6
6
  "build": "npm run build:svg-to-ts && npm run build:ts",
7
7
  "build:svg-to-ts": "svg-to-ts --config source/build/svg-to-ts-config.js",
8
8
  "build:ts": "tsc -p ./tsconfig.json",
9
+ "build:ts:watch": "tsc -p ./tsconfig.json -w",
9
10
  "lint": "eslint ."
10
11
  },
11
12
  "repository": {
@@ -21,11 +22,9 @@
21
22
  },
22
23
  "homepage": "https://github.com/ni/nimble#readme",
23
24
  "devDependencies": {
24
- "@ni/eslint-config": "^1.0.0",
25
- "eslint": "^7.29.0",
26
- "eslint-plugin-import": "^2.23.4",
27
- "style-dictionary": "^3.0.1",
25
+ "@ni/eslint-config-javascript": "^3.0.0",
26
+ "style-dictionary": "^3.0.2",
28
27
  "svg-to-ts": "^6.0.1",
29
- "typescript": "^4.3.4"
28
+ "typescript": "^4.3.2"
30
29
  }
31
30
  }