@khanacademy/wonder-blocks-switch 3.1.1 → 3.1.2
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 +20 -0
- package/dist/es/index.js +4 -4
- package/dist/index.js +4 -4
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @khanacademy/wonder-blocks-switch
|
|
2
2
|
|
|
3
|
+
## 3.1.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 5655b9f: Switch to use `focus.outer` semanticColor token
|
|
8
|
+
- 8f53293: Rename action tokens: `filled` -> `primary`, `outlined` -> `secondary`.
|
|
9
|
+
- 051f0f8: Rework action.disabled tokens to include properties per kind (border, background, foreground).
|
|
10
|
+
- Updated dependencies [ed26d66]
|
|
11
|
+
- Updated dependencies [5655b9f]
|
|
12
|
+
- Updated dependencies [5655b9f]
|
|
13
|
+
- Updated dependencies [8f53293]
|
|
14
|
+
- Updated dependencies [6d37702]
|
|
15
|
+
- Updated dependencies [051f0f8]
|
|
16
|
+
- Updated dependencies [e1b78db]
|
|
17
|
+
- Updated dependencies [051f0f8]
|
|
18
|
+
- @khanacademy/wonder-blocks-core@12.2.0
|
|
19
|
+
- @khanacademy/wonder-blocks-tokens@5.0.0
|
|
20
|
+
- @khanacademy/wonder-blocks-theming@3.2.0
|
|
21
|
+
- @khanacademy/wonder-blocks-icon@5.1.2
|
|
22
|
+
|
|
3
23
|
## 3.1.1
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
package/dist/es/index.js
CHANGED
|
@@ -7,13 +7,13 @@ import { mergeTheme, createThemeContext, ThemeSwitcherContext, useScopedTheme, u
|
|
|
7
7
|
import * as tokens from '@khanacademy/wonder-blocks-tokens';
|
|
8
8
|
import { semanticColor, color, spacing, border } from '@khanacademy/wonder-blocks-tokens';
|
|
9
9
|
|
|
10
|
-
const action = semanticColor.action.
|
|
10
|
+
const action = semanticColor.action.secondary.progressive;
|
|
11
11
|
const theme$1 = {
|
|
12
12
|
color: {
|
|
13
13
|
bg: {
|
|
14
14
|
switch: {
|
|
15
15
|
off: action.default.border,
|
|
16
|
-
disabledOff: semanticColor.action.disabled.
|
|
16
|
+
disabledOff: semanticColor.action.primary.disabled.background,
|
|
17
17
|
activeOff: color.fadedOffBlack64,
|
|
18
18
|
on: action.default.foreground,
|
|
19
19
|
disabledOn: action.press.background,
|
|
@@ -27,11 +27,11 @@ const theme$1 = {
|
|
|
27
27
|
on: action.default.foreground,
|
|
28
28
|
disabledOn: action.press.background,
|
|
29
29
|
off: action.default.border,
|
|
30
|
-
disabledOff: semanticColor.
|
|
30
|
+
disabledOff: semanticColor.icon.disabled
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
outline: {
|
|
34
|
-
default: semanticColor.
|
|
34
|
+
default: semanticColor.focus.outer
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
37
|
border: {
|
package/dist/index.js
CHANGED
|
@@ -31,13 +31,13 @@ var _extends__default = /*#__PURE__*/_interopDefaultLegacy(_extends);
|
|
|
31
31
|
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
32
32
|
var tokens__namespace = /*#__PURE__*/_interopNamespace(tokens);
|
|
33
33
|
|
|
34
|
-
const action = tokens.semanticColor.action.
|
|
34
|
+
const action = tokens.semanticColor.action.secondary.progressive;
|
|
35
35
|
const theme$1 = {
|
|
36
36
|
color: {
|
|
37
37
|
bg: {
|
|
38
38
|
switch: {
|
|
39
39
|
off: action.default.border,
|
|
40
|
-
disabledOff: tokens.semanticColor.action.disabled.
|
|
40
|
+
disabledOff: tokens.semanticColor.action.primary.disabled.background,
|
|
41
41
|
activeOff: tokens.color.fadedOffBlack64,
|
|
42
42
|
on: action.default.foreground,
|
|
43
43
|
disabledOn: action.press.background,
|
|
@@ -51,11 +51,11 @@ const theme$1 = {
|
|
|
51
51
|
on: action.default.foreground,
|
|
52
52
|
disabledOn: action.press.background,
|
|
53
53
|
off: action.default.border,
|
|
54
|
-
disabledOff: tokens.semanticColor.
|
|
54
|
+
disabledOff: tokens.semanticColor.icon.disabled
|
|
55
55
|
}
|
|
56
56
|
},
|
|
57
57
|
outline: {
|
|
58
|
-
default: tokens.semanticColor.
|
|
58
|
+
default: tokens.semanticColor.focus.outer
|
|
59
59
|
}
|
|
60
60
|
},
|
|
61
61
|
border: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@khanacademy/wonder-blocks-switch",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.2",
|
|
4
4
|
"design": "v1",
|
|
5
5
|
"description": "Switch components for Wonder Blocks.",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"@babel/runtime": "^7.24.5",
|
|
16
|
-
"@khanacademy/wonder-blocks-core": "12.
|
|
17
|
-
"@khanacademy/wonder-blocks-icon": "5.1.
|
|
18
|
-
"@khanacademy/wonder-blocks-theming": "3.
|
|
19
|
-
"@khanacademy/wonder-blocks-tokens": "
|
|
16
|
+
"@khanacademy/wonder-blocks-core": "12.2.0",
|
|
17
|
+
"@khanacademy/wonder-blocks-icon": "5.1.2",
|
|
18
|
+
"@khanacademy/wonder-blocks-theming": "3.2.0",
|
|
19
|
+
"@khanacademy/wonder-blocks-tokens": "5.0.0"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
22
|
"aphrodite": "^1.2.5",
|