@khanacademy/wonder-blocks-tokens 4.1.0 → 4.2.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.
package/CHANGELOG.md CHANGED
@@ -1,97 +1,106 @@
1
1
  # @khanacademy/wonder-blocks-tokens
2
2
 
3
+ ## 4.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - f03298f: Tooling:
8
+
9
+ - Switching to `pnpm`.
10
+ - Upgrading `rollup` to v4 and `@babel/runtime` to match the current webapp version.
11
+
3
12
  ## 4.1.0
4
13
 
5
14
  ### Minor Changes
6
15
 
7
- - 8cfaeab0: Add `icon.disabled` token to semanticColor.
8
- - c162abb4: Add `border.focus` semantic color token to use for the focus outline
16
+ - 8cfaeab0: Add `icon.disabled` token to semanticColor.
17
+ - c162abb4: Add `border.focus` semantic color token to use for the focus outline
9
18
 
10
19
  ## 4.0.0
11
20
 
12
21
  ### Major Changes
13
22
 
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.
23
+ - 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
24
 
16
- - Renamed `primary` to `progressive`.
25
+ - Renamed `primary` to `progressive`.
17
26
 
18
- - Added more categories to actions: `filled` and `outline`.
27
+ - Added more categories to actions: `filled` and `outline`.
19
28
 
20
29
  ## 3.0.1
21
30
 
22
31
  ### Patch Changes
23
32
 
24
- - 11a0f5c6: No functional changes. Adding prepublishOnly script.
33
+ - 11a0f5c6: No functional changes. Adding prepublishOnly script.
25
34
 
26
35
  ## 3.0.0
27
36
 
28
37
  ### Major Changes
29
38
 
30
- - e6abdd17: Upgrade to React 18
39
+ - e6abdd17: Upgrade to React 18
31
40
 
32
41
  ## 2.1.0
33
42
 
34
43
  ### Minor Changes
35
44
 
36
- - 6999fd39: Add mediaQuery tokens for viewport sizing
45
+ - 6999fd39: Add mediaQuery tokens for viewport sizing
37
46
 
38
47
  ## 2.0.1
39
48
 
40
49
  ### Patch Changes
41
50
 
42
- - 02a1b298: Make sure we don't package tsconfig and tsbuildinfo files
51
+ - 02a1b298: Make sure we don't package tsconfig and tsbuildinfo files
43
52
 
44
53
  ## 2.0.0
45
54
 
46
55
  ### Major Changes
47
56
 
48
- - f17dc1ee: Remove pink and lightBlue from brand colors
49
- - 991eb43f: Add semanticColor tokens, remove deprecated Brand color primitives
57
+ - f17dc1ee: Remove pink and lightBlue from brand colors
58
+ - 991eb43f: Add semanticColor tokens, remove deprecated Brand color primitives
50
59
 
51
60
  ## 1.3.1
52
61
 
53
62
  ### Patch Changes
54
63
 
55
- - 559e82d5: Update to build tooling, generating smaller output
64
+ - 559e82d5: Update to build tooling, generating smaller output
56
65
 
57
66
  ## 1.3.0
58
67
 
59
68
  ### Minor Changes
60
69
 
61
- - 9bfeead9: Add faded versions of offBlack
70
+ - 9bfeead9: Add faded versions of offBlack
62
71
 
63
72
  ## 1.2.0
64
73
 
65
74
  ### Minor Changes
66
75
 
67
- - 874081aa: Add fade and mix functions
76
+ - 874081aa: Add fade and mix functions
68
77
 
69
78
  ### Patch Changes
70
79
 
71
- - 874081aa: Remove wonder-blocks-color dependency in favor of wonder-blocks-tokens
72
- - a9bf603a: Move spacing tokens to wb-tokens
80
+ - 874081aa: Remove wonder-blocks-color dependency in favor of wonder-blocks-tokens
81
+ - a9bf603a: Move spacing tokens to wb-tokens
73
82
 
74
83
  ## 1.1.0
75
84
 
76
85
  ### Minor Changes
77
86
 
78
- - 4cfb4977: Add new shades of existing colors (24%).
87
+ - 4cfb4977: Add new shades of existing colors (24%).
79
88
 
80
89
  ## 1.0.0
81
90
 
82
91
  ### Major Changes
83
92
 
84
- - e83f8991: Mark wb-tokens as public (first official release)
93
+ - e83f8991: Mark wb-tokens as public (first official release)
85
94
 
86
95
  ## 0.2.0
87
96
 
88
97
  ### Minor Changes
89
98
 
90
- - 7cd7f6cc: Move tokens from wb-theming to wb-tokens and split token categories into separate objects/files
91
- - 7c51f377: Add fadedBlue24 color token
99
+ - 7cd7f6cc: Move tokens from wb-theming to wb-tokens and split token categories into separate objects/files
100
+ - 7c51f377: Add fadedBlue24 color token
92
101
 
93
102
  ## 0.1.0
94
103
 
95
104
  ### Minor Changes
96
105
 
97
- - a95d1323: Add skeleton for tokens package
106
+ - 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
@@ -1,7 +1,5 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  const border$1 = {
6
4
  radius: {
7
5
  xSmall_2: 2,
@@ -20,18 +18,13 @@ const border$1 = {
20
18
  };
21
19
 
22
20
  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
- }
21
+ return _extends = Object.assign ? Object.assign.bind() : function (n) {
22
+ for (var e = 1; e < arguments.length; e++) {
23
+ var t = arguments[e];
24
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
31
25
  }
32
- return target;
33
- };
34
- return _extends.apply(this, arguments);
26
+ return n;
27
+ }, _extends.apply(null, arguments);
35
28
  }
36
29
 
37
30
  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.0",
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.0"
16
+ },
17
+ "scripts": {
18
+ "test": "echo \"Error: no test specified\" && exit 1"
20
19
  }
21
20
  }