@khanacademy/wonder-blocks-clickable 6.1.1 → 6.1.3
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 +24 -0
- package/dist/es/index.js +5 -5
- package/dist/index.js +4 -4
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# @khanacademy/wonder-blocks-clickable
|
|
2
2
|
|
|
3
|
+
## 6.1.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [507cf2f]
|
|
8
|
+
- @khanacademy/wonder-blocks-tokens@5.1.0
|
|
9
|
+
|
|
10
|
+
## 6.1.2
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- 5655b9f: Switch to use `focus.outer` semanticColor token
|
|
15
|
+
- 8fc65a9: Migrate Clickable to `semanticColor`
|
|
16
|
+
- 051f0f8: Rework action.disabled tokens to include properties per kind (border, background, foreground).
|
|
17
|
+
- Updated dependencies [ed26d66]
|
|
18
|
+
- Updated dependencies [5655b9f]
|
|
19
|
+
- Updated dependencies [5655b9f]
|
|
20
|
+
- Updated dependencies [8f53293]
|
|
21
|
+
- Updated dependencies [051f0f8]
|
|
22
|
+
- Updated dependencies [e1b78db]
|
|
23
|
+
- Updated dependencies [051f0f8]
|
|
24
|
+
- @khanacademy/wonder-blocks-core@12.2.0
|
|
25
|
+
- @khanacademy/wonder-blocks-tokens@5.0.0
|
|
26
|
+
|
|
3
27
|
## 6.1.1
|
|
4
28
|
|
|
5
29
|
### Patch Changes
|
package/dist/es/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import { StyleSheet } from 'aphrodite';
|
|
|
5
5
|
import { withRouter, Link } from 'react-router-dom';
|
|
6
6
|
import { __RouterContext } from 'react-router';
|
|
7
7
|
import { keys, addStyle } from '@khanacademy/wonder-blocks-core';
|
|
8
|
-
import {
|
|
8
|
+
import { border, semanticColor } from '@khanacademy/wonder-blocks-tokens';
|
|
9
9
|
|
|
10
10
|
const getAppropriateTriggersForRole = role => {
|
|
11
11
|
switch (role) {
|
|
@@ -469,20 +469,20 @@ const styles = StyleSheet.create({
|
|
|
469
469
|
},
|
|
470
470
|
focused: {
|
|
471
471
|
":focus": {
|
|
472
|
-
outline: `solid
|
|
472
|
+
outline: `solid ${border.width.thin}px ${semanticColor.focus.outer}`
|
|
473
473
|
}
|
|
474
474
|
},
|
|
475
475
|
focusedLight: {
|
|
476
|
-
outline: `solid
|
|
476
|
+
outline: `solid ${border.width.thin}px ${semanticColor.border.inverse}`
|
|
477
477
|
},
|
|
478
478
|
disabled: {
|
|
479
|
-
color:
|
|
479
|
+
color: semanticColor.action.secondary.disabled.foreground,
|
|
480
480
|
cursor: "not-allowed",
|
|
481
481
|
":focus": {
|
|
482
482
|
outline: "none"
|
|
483
483
|
},
|
|
484
484
|
":focus-visible": {
|
|
485
|
-
outline: `solid
|
|
485
|
+
outline: `solid ${border.width.thin}px ${semanticColor.focus.outer}`
|
|
486
486
|
}
|
|
487
487
|
}
|
|
488
488
|
});
|
package/dist/index.js
CHANGED
|
@@ -497,20 +497,20 @@ const styles = aphrodite.StyleSheet.create({
|
|
|
497
497
|
},
|
|
498
498
|
focused: {
|
|
499
499
|
":focus": {
|
|
500
|
-
outline: `solid
|
|
500
|
+
outline: `solid ${wonderBlocksTokens.border.width.thin}px ${wonderBlocksTokens.semanticColor.focus.outer}`
|
|
501
501
|
}
|
|
502
502
|
},
|
|
503
503
|
focusedLight: {
|
|
504
|
-
outline: `solid
|
|
504
|
+
outline: `solid ${wonderBlocksTokens.border.width.thin}px ${wonderBlocksTokens.semanticColor.border.inverse}`
|
|
505
505
|
},
|
|
506
506
|
disabled: {
|
|
507
|
-
color: wonderBlocksTokens.
|
|
507
|
+
color: wonderBlocksTokens.semanticColor.action.secondary.disabled.foreground,
|
|
508
508
|
cursor: "not-allowed",
|
|
509
509
|
":focus": {
|
|
510
510
|
outline: "none"
|
|
511
511
|
},
|
|
512
512
|
":focus-visible": {
|
|
513
|
-
outline: `solid
|
|
513
|
+
outline: `solid ${wonderBlocksTokens.border.width.thin}px ${wonderBlocksTokens.semanticColor.focus.outer}`
|
|
514
514
|
}
|
|
515
515
|
}
|
|
516
516
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@khanacademy/wonder-blocks-clickable",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.3",
|
|
4
4
|
"design": "v1",
|
|
5
5
|
"description": "Clickable component for Wonder-Blocks.",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"@babel/runtime": "^7.24.5",
|
|
16
|
-
"@khanacademy/wonder-blocks-core": "12.
|
|
17
|
-
"@khanacademy/wonder-blocks-tokens": "
|
|
16
|
+
"@khanacademy/wonder-blocks-core": "12.2.0",
|
|
17
|
+
"@khanacademy/wonder-blocks-tokens": "5.1.0"
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
20
20
|
"aphrodite": "^1.2.5",
|