@eturnity/eturnity_reusable_components 6.50.1-EPDM-8599.2 → 6.50.1-EPDM-8599.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eturnity/eturnity_reusable_components",
3
- "version": "6.50.1-EPDM-8599.2",
3
+ "version": "6.50.1-EPDM-8599.3",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
@@ -4,6 +4,7 @@
4
4
  v-for="(tab, index) in tabsData"
5
5
  :key="tab.id"
6
6
  :isDisabled="!!tab['isDisabled']"
7
+ :hasDisabledLook="!!tab['hasDisabledLook']"
7
8
  :active="isIndexKey ? index === activeTab : tab[tabKey] === activeTab"
8
9
  @click="$emit('tab-click', isIndexKey ? index : tab[tabKey])"
9
10
  >
@@ -27,7 +28,8 @@ import styled from 'vue-styled-components'
27
28
  import InfoText from '../infoText'
28
29
  const TabAttr = {
29
30
  active: Boolean,
30
- isDisabled: Boolean
31
+ isDisabled: Boolean,
32
+ hasDisabledLook: Boolean
31
33
  }
32
34
 
33
35
  const bottomLine = styled('div')`
@@ -55,17 +57,17 @@ const Option = styled('div',TabAttr)`
55
57
  justify-content: center;
56
58
  flex-direction: row;
57
59
  gap: 10px;
58
- color: ${props=>props.isDisabled ? props.theme.colors.grey2 : props.theme.colors.black};
60
+ color: ${props=>props.hasDisabledLook ? props.theme.colors.grey2 : props.theme.colors.black};
59
61
  `
60
62
  const Tab = styled('div', TabAttr)`
61
63
  padding: 16px 10px;
62
64
  margin-right: 5px;
63
65
  position: relative;
64
- top: ${(props) => (props.isDisabled ? '-1px' : '0')};
66
+ top: ${(props) => (props.hasDisabledLook ? '-1px' : '0')};
65
67
  z-index: 10;
66
68
  border-bottom: 2px solid
67
69
  ${(props) => (props.active ? props.theme.colors.primary : 'transparent')};
68
- background-color: ${(props) => (props.isDisabled ? props.theme.colors.grey5 : 'transparent')};
70
+ background-color: ${(props) => (props.hasDisabledLook ? props.theme.colors.grey5 : 'transparent')};
69
71
  transition: 0.2s ease;
70
72
  cursor: ${(props) => (props.isDisabled ? 'not-allowed' : 'pointer')};
71
73
  min-width: 140px;
@@ -74,7 +76,7 @@ const Tab = styled('div', TabAttr)`
74
76
  justify-content: space-between;
75
77
  min-height: 55px;
76
78
  &:hover {
77
- border-color: ${(props) => props.isDisabled ? props.theme.colors.grey2 : props.theme.colors.primary};
79
+ border-color: ${(props) => props.hasDisabledLook ? props.theme.colors.grey2 : props.theme.colors.primary};
78
80
  }
79
81
  `
80
82