@enact/spotlight 4.1.2 → 4.5.0-alpha.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/Accelerator/Accelerator.d.ts +2 -5
- package/Accelerator/Accelerator.js +7 -3
- package/CHANGELOG.md +17 -0
- package/Pause/Pause.d.ts +4 -6
- package/Pause/Pause.js +2 -2
- package/Pause/tests/Pause-specs.js +2 -2
- package/README.md +1 -1
- package/SpotlightContainerDecorator/SpotlightContainer.js +4 -4
- package/SpotlightContainerDecorator/SpotlightContainerDecorator.js +13 -10
- package/SpotlightContainerDecorator/tests/SpotlightContainerDecorator-specs.js +44 -38
- package/SpotlightContainerDecorator/tests/useSpotlightContainer-specs.js +106 -52
- package/SpotlightContainerDecorator/useSpotlightContainer.js +4 -2
- package/SpotlightRootDecorator/SpotlightRootDecorator.js +9 -16
- package/Spottable/Spottable.js +11 -9
- package/Spottable/SpottableCore.js +4 -4
- package/Spottable/tests/Spottable-specs.js +66 -37
- package/Spottable/tests/useSpot-specs.js +128 -71
- package/Spottable/useSpottable.js +7 -4
- package/package.json +8 -8
- package/src/container.js +24 -16
- package/src/navigate.js +1 -1
- package/src/spotlight.js +1 -1
- package/src/target.js +3 -3
- package/src/tests/utils.js +2 -2
- package/src/utils.js +11 -9
- package/styles/debug.less +80 -82
package/styles/debug.less
CHANGED
|
@@ -2,96 +2,94 @@
|
|
|
2
2
|
// Spotlight Debug
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
@debug-color-left: hsla(240, 100%, 72%, 1);
|
|
5
|
+
.debug.spotlight {
|
|
6
|
+
@debug-color-up: hsla(0, 100%, 72%, 1);
|
|
7
|
+
@debug-color-right: hsla(90, 100%, 72%, 1);
|
|
8
|
+
@debug-color-down: hsla(180, 100%, 72%, 1);
|
|
9
|
+
@debug-color-left: hsla(240, 100%, 72%, 1);
|
|
11
10
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
11
|
+
.spottable-next-up,
|
|
12
|
+
.spottable-next-right,
|
|
13
|
+
.spottable-next-down,
|
|
14
|
+
.spottable-next-left {
|
|
15
|
+
// outline: 3px dotted transparent;
|
|
16
|
+
// box-shadow: 0;
|
|
18
17
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
18
|
+
&::after {
|
|
19
|
+
content: '';
|
|
20
|
+
position: absolute;
|
|
21
|
+
top: 0;
|
|
22
|
+
border-width: 0 1px 1px 0;
|
|
23
|
+
border-style: solid;
|
|
24
|
+
border-bottom-right-radius: 0.5ex;
|
|
25
|
+
// font-family: "Moonstone Miso";
|
|
26
|
+
font-size: 15px;
|
|
27
|
+
line-height: 18px;
|
|
28
|
+
padding: 0 1ex;
|
|
29
|
+
left: 0;
|
|
31
30
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
}
|
|
31
|
+
border-width: 0 1px 1px 1px;
|
|
32
|
+
border-bottom-right-radius: 0.5ex;
|
|
33
|
+
border-bottom-left-radius: 0.5ex;
|
|
34
|
+
left: 50%;
|
|
35
|
+
transform: translateX(-50%);
|
|
38
36
|
}
|
|
37
|
+
}
|
|
39
38
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
39
|
+
.spottable-next-up { box-shadow: 0 12px 9px -3px @debug-color-up, 0 0 1px 3px @debug-color-up; &::after { content: 'Spotlight next: up'; color: @debug-color-up; }}
|
|
40
|
+
.spottable-next-right { box-shadow: -12px 0 9px -3px @debug-color-right, 0 0 1px 3px @debug-color-right; &::after { content: 'Spotlight next: right'; color: @debug-color-right; }}
|
|
41
|
+
.spottable-next-down { box-shadow: 0 -12px 9px -3px @debug-color-down, 0 0 1px 3px @debug-color-down; &::after { content: 'Spotlight next: down'; color: @debug-color-down; }}
|
|
42
|
+
.spottable-next-left { box-shadow: 12px 0 9px -3px @debug-color-left, 0 0 1px 3px @debug-color-left; &::after { content: 'Spotlight next: left'; color: @debug-color-left; }}
|
|
44
43
|
|
|
45
44
|
|
|
46
|
-
|
|
45
|
+
// Below are some alternative visuals still being worked out.
|
|
47
46
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
47
|
+
//
|
|
48
|
+
// Crisp shadow-arrows
|
|
49
|
+
//
|
|
50
|
+
// .spottable-next-up { box-shadow:
|
|
51
|
+
// 0 3px 1px -1px @debug-color-up,
|
|
52
|
+
// 0 12px 1px -3px @debug-color-up,
|
|
53
|
+
// 0 21px 1px -9px @debug-color-up,
|
|
54
|
+
// 0 30px 1px -15px @debug-color-up,
|
|
55
|
+
// 0 39px 1px -21px @debug-color-up,
|
|
56
|
+
// 0 0 1px 3px @debug-color-up;
|
|
57
|
+
// &::after { content: 'Spotlight next: up'; color: @debug-color-up; }
|
|
58
|
+
// }
|
|
59
|
+
// .spottable-next-right { box-shadow:
|
|
60
|
+
// -3px 0 1px -1px @debug-color-right,
|
|
61
|
+
// -12px 0 1px -3px @debug-color-right,
|
|
62
|
+
// -21px 0 1px -9px @debug-color-right,
|
|
63
|
+
// -30px 0 1px -15px @debug-color-right,
|
|
64
|
+
// -39px 0 1px -21px @debug-color-right,
|
|
65
|
+
// 0 0 1px 3px @debug-color-right;
|
|
66
|
+
// &::after { content: 'Spotlight next: right'; color: @debug-color-right; }
|
|
67
|
+
// }
|
|
68
|
+
// .spottable-next-down { box-shadow:
|
|
69
|
+
// 0 -3px 1px -1px @debug-color-down,
|
|
70
|
+
// 0 -12px 1px -3px @debug-color-down,
|
|
71
|
+
// 0 -21px 1px -9px @debug-color-down,
|
|
72
|
+
// 0 -30px 1px -15px @debug-color-down,
|
|
73
|
+
// 0 -39px 1px -21px @debug-color-down,
|
|
74
|
+
// 0 0 1px 3px @debug-color-down;
|
|
75
|
+
// &::after { content: 'Spotlight next: down'; color: @debug-color-down; }
|
|
76
|
+
// }
|
|
77
|
+
// .spottable-next-left { box-shadow:
|
|
78
|
+
// 3px 0 1px -1px @debug-color-left,
|
|
79
|
+
// 12px 0 1px -3px @debug-color-left,
|
|
80
|
+
// 21px 0 1px -9px @debug-color-left,
|
|
81
|
+
// 30px 0 1px -15px @debug-color-left,
|
|
82
|
+
// 39px 0 1px -21px @debug-color-left,
|
|
83
|
+
// 0 0 1px 3px @debug-color-left;
|
|
84
|
+
// &::after { content: 'Spotlight next: left'; color: @debug-color-left; }
|
|
85
|
+
// }
|
|
87
86
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
}
|
|
87
|
+
//
|
|
88
|
+
// Plain Boxy Outlines
|
|
89
|
+
//
|
|
90
|
+
// .spottable-next-up { outline-color: @debug-color-up; &::after { content: 'Spotlight next: up'; color: @debug-color-up; }}
|
|
91
|
+
// .spottable-next-right { outline-color: @debug-color-right; &::after { content: 'Spotlight next: right'; color: @debug-color-right; }}
|
|
92
|
+
// .spottable-next-down { outline-color: @debug-color-down; &::after { content: 'Spotlight next: down'; color: @debug-color-down; }}
|
|
93
|
+
// .spottable-next-left { outline-color: @debug-color-left; &::after { content: 'Spotlight next: left'; color: @debug-color-left; }}
|
|
96
94
|
}
|
|
97
95
|
|