style-dictionary 4.3.3 → 4.4.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.
Files changed (29) hide show
  1. package/examples/advanced/assets-base64-embed/package.json +1 -1
  2. package/examples/advanced/create-react-app/package.json +1 -1
  3. package/examples/advanced/create-react-native-app/package.json +1 -1
  4. package/examples/advanced/custom-parser/package.json +1 -1
  5. package/examples/advanced/custom-transforms/package.json +1 -1
  6. package/examples/advanced/font-face-rules/package.json +1 -1
  7. package/examples/advanced/format-helpers/package.json +1 -1
  8. package/examples/advanced/matching-build-files/package.json +1 -1
  9. package/examples/advanced/multi-brand-multi-platform/package.json +1 -1
  10. package/examples/advanced/node-modules-as-config-and-properties/components/index.js +1 -1
  11. package/examples/advanced/node-modules-as-config-and-properties/config.js +3 -3
  12. package/examples/advanced/node-modules-as-config-and-properties/package-lock.json +2201 -0
  13. package/examples/advanced/node-modules-as-config-and-properties/package.json +1 -1
  14. package/examples/advanced/node-modules-as-config-and-properties/tokens/color/index.js +5 -5
  15. package/examples/advanced/node-modules-as-config-and-properties/tokens/index.js +2 -2
  16. package/examples/advanced/node-modules-as-config-and-properties/tokens/size/index.js +7 -3
  17. package/examples/advanced/npm-module/package.json +1 -1
  18. package/examples/advanced/referencing_aliasing/package.json +1 -1
  19. package/examples/advanced/s3/package.json +1 -1
  20. package/examples/advanced/tailwind-preset/package.json +1 -1
  21. package/examples/advanced/tokens-deprecation/package.json +1 -1
  22. package/examples/advanced/transitive-transforms/package.json +1 -1
  23. package/examples/advanced/variables-in-outputs/package.json +1 -1
  24. package/examples/advanced/yaml-tokens/package.json +1 -1
  25. package/lib/StyleDictionary.js +1 -1
  26. package/lib/common/formatHelpers/createPropertyFormatter.js +1 -1
  27. package/lib/common/formats.js +70 -22
  28. package/lib/utils/preprocess.js +3 -2
  29. package/package.json +1 -1
@@ -12,6 +12,6 @@
12
12
  "author": "",
13
13
  "license": "Apache-2.0",
14
14
  "devDependencies": {
15
- "style-dictionary": "^4.3.3"
15
+ "style-dictionary": "^4.4.0"
16
16
  }
17
17
  }
@@ -12,7 +12,7 @@
12
12
  },
13
13
  "devDependencies": {
14
14
  "eslint-config-react-app": "^7.0.1",
15
- "style-dictionary": "^4.3.3"
15
+ "style-dictionary": "^4.4.0"
16
16
  },
17
17
  "resolutions": {
18
18
  "immer": "8.0.1",
@@ -29,7 +29,7 @@
29
29
  "eslint-config-react-app": "^7.0.1",
30
30
  "jest": "~25.2.6",
31
31
  "react-test-renderer": "~16.13.1",
32
- "style-dictionary": "^4.3.3"
32
+ "style-dictionary": "^4.4.0"
33
33
  },
34
34
  "jest": {
35
35
  "preset": "react-native"
@@ -10,6 +10,6 @@
10
10
  "author": "",
11
11
  "license": "Apache-2.0",
12
12
  "devDependencies": {
13
- "style-dictionary": "^4.3.3"
13
+ "style-dictionary": "^4.4.0"
14
14
  }
15
15
  }
@@ -16,6 +16,6 @@
16
16
  "author": "",
17
17
  "license": "Apache-2.0",
18
18
  "devDependencies": {
19
- "style-dictionary": "^4.3.3"
19
+ "style-dictionary": "^4.4.0"
20
20
  }
21
21
  }
@@ -9,6 +9,6 @@
9
9
  },
10
10
  "license": "Apache-2.0",
11
11
  "devDependencies": {
12
- "style-dictionary": "^4.3.3"
12
+ "style-dictionary": "^4.4.0"
13
13
  }
14
14
  }
@@ -10,6 +10,6 @@
10
10
  "author": "",
11
11
  "license": "Apache-2.0",
12
12
  "devDependencies": {
13
- "style-dictionary": "^4.3.3"
13
+ "style-dictionary": "^4.4.0"
14
14
  }
15
15
  }
@@ -17,6 +17,6 @@
17
17
  "author": "Kelly Harrop <kn.harrop@gmail.com>",
18
18
  "license": "Apache-2.0",
19
19
  "devDependencies": {
20
- "style-dictionary": "^4.3.3"
20
+ "style-dictionary": "^4.4.0"
21
21
  }
22
22
  }
@@ -16,6 +16,6 @@
16
16
  "author": "",
17
17
  "license": "Apache-2.0",
18
18
  "devDependencies": {
19
- "style-dictionary": "^4.3.3"
19
+ "style-dictionary": "^4.4.0"
20
20
  }
21
21
  }
@@ -1,4 +1,4 @@
1
- import button from './button.js';
1
+ import button from './button/index.js';
2
2
 
3
3
  export default {
4
4
  component: {
@@ -1,6 +1,6 @@
1
1
  import StyleDictionary from 'style-dictionary';
2
2
  import { formats, transforms, transformGroups, transformTypes } from 'style-dictionary/enums';
3
- import tokens from './tokens.js';
3
+ import tokens from './tokens/index.js';
4
4
  // Rather than have Style Dictionary handle the merging of token files,
5
5
  // you could use node module export/require to do it yourself. This will
6
6
  // allow you to not have to copy object namespaces like you normally would.
@@ -87,7 +87,7 @@ export default {
87
87
 
88
88
  scss: {
89
89
  // This works, we can create new transform arrays on the fly and edit built-ins
90
- transforms: StyleDictionary.hooks.scss.concat(colorRgb),
90
+ transforms: StyleDictionary.hooks.scss?.concat(colorRgb),
91
91
  buildPath: buildPath,
92
92
  files: [
93
93
  {
@@ -98,7 +98,7 @@ export default {
98
98
  },
99
99
 
100
100
  js: {
101
- transforms: StyleDictionary.hooks.js.concat('myRegisteredTransform'),
101
+ transforms: StyleDictionary.hooks.js?.concat('myRegisteredTransform'),
102
102
  buildPath: buildPath,
103
103
  // If you want to get super fancy, you can use node modules
104
104
  // to create a tokens object first, and then you can