@khanacademy/wonder-blocks-tokens 4.1.0 → 4.2.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/CHANGELOG.md CHANGED
@@ -1,97 +1,112 @@
1
1
  # @khanacademy/wonder-blocks-tokens
2
2
 
3
+ ## 4.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - ee8d95a: Rollback rollup version from v4 to v2 to prevent an issue with CJS builds in unit tests
8
+
9
+ ## 4.2.0
10
+
11
+ ### Minor Changes
12
+
13
+ - f03298f: Tooling:
14
+
15
+ - Switching to `pnpm`.
16
+ - Upgrading `rollup` to v4 and `@babel/runtime` to match the current webapp version.
17
+
3
18
  ## 4.1.0
4
19
 
5
20
  ### Minor Changes
6
21
 
7
- - 8cfaeab0: Add `icon.disabled` token to semanticColor.
8
- - c162abb4: Add `border.focus` semantic color token to use for the focus outline
22
+ - 8cfaeab0: Add `icon.disabled` token to semanticColor.
23
+ - c162abb4: Add `border.focus` semantic color token to use for the focus outline
9
24
 
10
25
  ## 4.0.0
11
26
 
12
27
  ### Major Changes
13
28
 
14
- - 0de25cd8: - Reworked semanticColor actions to use a new structure. Every `action` now includes `default`, `hover` and `press` states, and each state includes `border`, `background` and `foreground` tokens.
29
+ - 0de25cd8: - Reworked semanticColor actions to use a new structure. Every `action` now includes `default`, `hover` and `press` states, and each state includes `border`, `background` and `foreground` tokens.
15
30
 
16
- - Renamed `primary` to `progressive`.
31
+ - Renamed `primary` to `progressive`.
17
32
 
18
- - Added more categories to actions: `filled` and `outline`.
33
+ - Added more categories to actions: `filled` and `outline`.
19
34
 
20
35
  ## 3.0.1
21
36
 
22
37
  ### Patch Changes
23
38
 
24
- - 11a0f5c6: No functional changes. Adding prepublishOnly script.
39
+ - 11a0f5c6: No functional changes. Adding prepublishOnly script.
25
40
 
26
41
  ## 3.0.0
27
42
 
28
43
  ### Major Changes
29
44
 
30
- - e6abdd17: Upgrade to React 18
45
+ - e6abdd17: Upgrade to React 18
31
46
 
32
47
  ## 2.1.0
33
48
 
34
49
  ### Minor Changes
35
50
 
36
- - 6999fd39: Add mediaQuery tokens for viewport sizing
51
+ - 6999fd39: Add mediaQuery tokens for viewport sizing
37
52
 
38
53
  ## 2.0.1
39
54
 
40
55
  ### Patch Changes
41
56
 
42
- - 02a1b298: Make sure we don't package tsconfig and tsbuildinfo files
57
+ - 02a1b298: Make sure we don't package tsconfig and tsbuildinfo files
43
58
 
44
59
  ## 2.0.0
45
60
 
46
61
  ### Major Changes
47
62
 
48
- - f17dc1ee: Remove pink and lightBlue from brand colors
49
- - 991eb43f: Add semanticColor tokens, remove deprecated Brand color primitives
63
+ - f17dc1ee: Remove pink and lightBlue from brand colors
64
+ - 991eb43f: Add semanticColor tokens, remove deprecated Brand color primitives
50
65
 
51
66
  ## 1.3.1
52
67
 
53
68
  ### Patch Changes
54
69
 
55
- - 559e82d5: Update to build tooling, generating smaller output
70
+ - 559e82d5: Update to build tooling, generating smaller output
56
71
 
57
72
  ## 1.3.0
58
73
 
59
74
  ### Minor Changes
60
75
 
61
- - 9bfeead9: Add faded versions of offBlack
76
+ - 9bfeead9: Add faded versions of offBlack
62
77
 
63
78
  ## 1.2.0
64
79
 
65
80
  ### Minor Changes
66
81
 
67
- - 874081aa: Add fade and mix functions
82
+ - 874081aa: Add fade and mix functions
68
83
 
69
84
  ### Patch Changes
70
85
 
71
- - 874081aa: Remove wonder-blocks-color dependency in favor of wonder-blocks-tokens
72
- - a9bf603a: Move spacing tokens to wb-tokens
86
+ - 874081aa: Remove wonder-blocks-color dependency in favor of wonder-blocks-tokens
87
+ - a9bf603a: Move spacing tokens to wb-tokens
73
88
 
74
89
  ## 1.1.0
75
90
 
76
91
  ### Minor Changes
77
92
 
78
- - 4cfb4977: Add new shades of existing colors (24%).
93
+ - 4cfb4977: Add new shades of existing colors (24%).
79
94
 
80
95
  ## 1.0.0
81
96
 
82
97
  ### Major Changes
83
98
 
84
- - e83f8991: Mark wb-tokens as public (first official release)
99
+ - e83f8991: Mark wb-tokens as public (first official release)
85
100
 
86
101
  ## 0.2.0
87
102
 
88
103
  ### Minor Changes
89
104
 
90
- - 7cd7f6cc: Move tokens from wb-theming to wb-tokens and split token categories into separate objects/files
91
- - 7c51f377: Add fadedBlue24 color token
105
+ - 7cd7f6cc: Move tokens from wb-theming to wb-tokens and split token categories into separate objects/files
106
+ - 7c51f377: Add fadedBlue24 color token
92
107
 
93
108
  ## 0.1.0
94
109
 
95
110
  ### Minor Changes
96
111
 
97
- - a95d1323: Add skeleton for tokens package
112
+ - a95d1323: Add skeleton for tokens package
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2018 Khan Academy
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/dist/es/index.js CHANGED
@@ -16,18 +16,13 @@ const border$1 = {
16
16
  };
17
17
 
18
18
  function _extends() {
19
- _extends = Object.assign ? Object.assign.bind() : function (target) {
20
- for (var i = 1; i < arguments.length; i++) {
21
- var source = arguments[i];
22
- for (var key in source) {
23
- if (Object.prototype.hasOwnProperty.call(source, key)) {
24
- target[key] = source[key];
25
- }
26
- }
19
+ return _extends = Object.assign ? Object.assign.bind() : function (n) {
20
+ for (var e = 1; e < arguments.length; e++) {
21
+ var t = arguments[e];
22
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
27
23
  }
28
- return target;
29
- };
30
- return _extends.apply(this, arguments);
24
+ return n;
25
+ }, _extends.apply(null, arguments);
31
26
  }
32
27
 
33
28
  const color6Regexp = /^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i;
package/dist/index.js CHANGED
@@ -20,18 +20,13 @@ const border$1 = {
20
20
  };
21
21
 
22
22
  function _extends() {
23
- _extends = Object.assign ? Object.assign.bind() : function (target) {
24
- for (var i = 1; i < arguments.length; i++) {
25
- var source = arguments[i];
26
- for (var key in source) {
27
- if (Object.prototype.hasOwnProperty.call(source, key)) {
28
- target[key] = source[key];
29
- }
30
- }
23
+ return _extends = Object.assign ? Object.assign.bind() : function (n) {
24
+ for (var e = 1; e < arguments.length; e++) {
25
+ var t = arguments[e];
26
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
31
27
  }
32
- return target;
33
- };
34
- return _extends.apply(this, arguments);
28
+ return n;
29
+ }, _extends.apply(null, arguments);
35
30
  }
36
31
 
37
32
  const color6Regexp = /^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i;
package/package.json CHANGED
@@ -1,14 +1,10 @@
1
1
  {
2
2
  "name": "@khanacademy/wonder-blocks-tokens",
3
- "version": "4.1.0",
3
+ "version": "4.2.1",
4
4
  "description": "Core primitive design tokens for Web Wonder Blocks",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/es/index.js",
7
7
  "types": "dist/index.d.ts",
8
- "scripts": {
9
- "test": "echo \"Error: no test specified\" && exit 1",
10
- "prepublishOnly": "../../utils/publish/package-pre-publish-check.sh"
11
- },
12
8
  "author": "",
13
9
  "license": "MIT",
14
10
  "publishConfig": {
@@ -16,6 +12,9 @@
16
12
  },
17
13
  "dependencies": {},
18
14
  "devDependencies": {
19
- "@khanacademy/wb-dev-build-settings": "^2.0.0"
15
+ "@khanacademy/wb-dev-build-settings": "2.1.1"
16
+ },
17
+ "scripts": {
18
+ "test": "echo \"Error: no test specified\" && exit 1"
20
19
  }
21
20
  }