@eturnity/eturnity_reusable_components 7.4.0 → 7.4.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eturnity/eturnity_reusable_components",
3
- "version": "7.4.0",
3
+ "version": "7.4.1",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
@@ -11,6 +11,7 @@
11
11
  @click="clickHandler"
12
12
  @mouseover="hoverHandler"
13
13
  :cursorType="cursorType"
14
+ :isDisabled="isDisabled"
14
15
  :backgroundColor="colorMode == 'dark' ? '#000000' : backgroundColor"
15
16
  :title="hoverText"
16
17
  >
@@ -23,13 +24,14 @@
23
24
  // import selectDropdown from './selectDropDown'
24
25
  import styled from 'vue-styled-components'
25
26
  const optionProps = {
27
+ isDisabled: Boolean,
26
28
  hoveredBgColor: String,
27
29
  cursorType: String,
28
30
  backgroundColor: String
29
31
  }
30
32
  const optionContainer = styled('div', optionProps)`
31
33
  display: flex;
32
- cursor: ${(props) => props.cursorType};
34
+ cursor: ${(props) => (props.isDisabled ? 'not-allowed' : props.cursorType)};
33
35
  flex-direction: row;
34
36
  justify-content: space-between;
35
37
  align-items: center;
@@ -45,6 +47,8 @@ const optionContainer = styled('div', optionProps)`
45
47
  props.theme.colors[props.backgroundColor]
46
48
  ? props.theme.colors[props.backgroundColor]
47
49
  : props.backgroundColor};
50
+ color: ${(props) =>
51
+ props.isDisabled ? props.theme.colors.grey3 : 'inherit'};
48
52
  &:hover {
49
53
  background-color: ${(props) =>
50
54
  props.theme.colors[props.hoveredBgColor]