@vnejs/plugins.view.coralina.choose 0.0.2 → 0.0.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.
@@ -28,6 +28,8 @@ export class ChooseController extends Module.Controller {
28
28
  this.updateState({ ...this.globalState.choose });
29
29
  this.currentItem = null;
30
30
  this.maxCurrentItem = this.state.options.length - 1;
31
+
32
+ await this.emit(this.EVENTS.INTERFACE.HIDE);
31
33
  };
32
34
 
33
35
  getDefaultState = () => ({ options: [], args: {} });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vnejs/plugins.view.coralina.choose",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",
package/view/index.styl CHANGED
@@ -22,7 +22,6 @@
22
22
  gap: calc(50 / 2160 * 100%)
23
23
 
24
24
  &-option
25
- cursor: pointer
26
25
  color: rgba(255,255,255,0.6)
27
26
  transition: text-shadow 300ms, transform 300ms
28
27
 
@@ -30,15 +29,21 @@
30
29
  position: absolute
31
30
  transform: translate(-50%, -50%)
32
31
 
33
- &:hover,
34
- &_isCurrent
32
+ &:not(&_disabled):hover,
33
+ &_isCurrent:not(&_disabled)
35
34
  text-shadow: 0px 5px 25px rgba(255,255,255,0.75);
36
35
  transform: scale(1.2)
37
36
 
38
- &_coords:hover
39
- &_coords&_isCurrent
37
+ &_coords:hover:not(&_disabled)
38
+ &_coords&_isCurrent:not(&_disabled)
40
39
  transform: translate(-50%, -50%) scale(1.2)
41
40
 
41
+ &:not(&_disabled)
42
+ cursor: pointer
43
+
44
+ &_disabled
45
+ opacity: 0.5
46
+
42
47
  &_isShow
43
48
  opacity: 1
44
49
  pointer-events: all