@eturnity/eturnity_reusable_components 6.37.0-EDPM-8208.0 → 6.37.0-EPDM-8148.0

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.37.0-EDPM-8208.0",
3
+ "version": "6.37.0-EPDM-8148.0",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
package/src/App.vue CHANGED
@@ -60,14 +60,7 @@
60
60
  fontColor="black"
61
61
  :disabled="false"
62
62
  />
63
- <icon
64
- name="opacity"
65
- color="red"
66
- hoveredColor="blue"
67
- size="60px"
68
- cursor="default"
69
- isStriked = "true"
70
- />
63
+
71
64
  <Select
72
65
  :value="value"
73
66
  selectWidth="100%"
@@ -111,7 +104,6 @@ import Option from '@/components/inputs/select/option'
111
104
  import iconCollection from '@/components/icon/iconCollection'
112
105
  import dropdownComponent from '@/components/dropdown'
113
106
  import videoThumbnail from '@/components/videoThumbnail'
114
- import icon from '@/components/icon'
115
107
  // import TableDropdown from "@/components/tableDropdown"
116
108
 
117
109
  const PageContainer = styled.div`
@@ -135,8 +127,7 @@ export default {
135
127
  SwitchField,
136
128
  iconCollection,
137
129
  dropdownComponent,
138
- videoThumbnail,
139
- icon
130
+ videoThumbnail
140
131
  },
141
132
  data() {
142
133
  return {
@@ -0,0 +1,3 @@
1
+ <svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M10 0H11H16C17.1046 0 18 0.895431 18 2V12H12C10.8954 12 10 11.1046 10 10V4L0 4V2C0 0.89543 0.895431 0 2 0H10ZM0 6H6C7.10457 6 8 6.89543 8 8V14H18V16C18 17.1046 17.1046 18 16 18H8H7H2C0.895431 18 0 17.1046 0 16V6Z" fill="white"/>
3
+ </svg>
@@ -1 +1 @@
1
- <svg class="svg-icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"><path d="M753.493333 341.12L512 100.053333l-241.493333 241.066667C203.946667 407.68 170.666667 496.426667 170.666667 581.76s33.28 175.36 99.84 241.92a340.906667 340.906667 0 0 0 482.986666 0C820.053333 757.12 853.333333 667.093333 853.333333 581.76s-33.28-174.08-99.84-240.64zM256 597.333333c0.426667-85.333333 26.453333-139.733333 75.093333-187.946666L512 224.64l180.906667 186.666667C741.546667 459.733333 767.573333 512 768 597.333333H256z" /></svg>
1
+ <svg class="svg-icon" style="width: 1em; height: 1em;vertical-align: middle;fill: currentColor;overflow: hidden;" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"><path d="M753.493333 341.12L512 100.053333l-241.493333 241.066667C203.946667 407.68 170.666667 496.426667 170.666667 581.76s33.28 175.36 99.84 241.92a340.906667 340.906667 0 0 0 482.986666 0C820.053333 757.12 853.333333 667.093333 853.333333 581.76s-33.28-174.08-99.84-240.64zM256 597.333333c0.426667-85.333333 26.453333-139.733333 75.093333-187.946666L512 224.64l180.906667 186.666667C741.546667 459.733333 767.573333 512 768 597.333333H256z" /></svg>
@@ -9,7 +9,6 @@
9
9
  require(`!html-loader!./../../assets/svgIcons/${name.toLowerCase()}.svg`)
10
10
  "
11
11
  ></icon-image>
12
- <striked-line v-if="isStriked" :color="color" :disabled="disabled" :hoveredColor="hoveredColor"></striked-line>
13
12
  </Wrapper>
14
13
  </template>
15
14
 
@@ -22,7 +21,6 @@
22
21
  // hoveredColor="blue"
23
22
  // size="60px" by default, this is 30px
24
23
  // cursor="default"
25
- // isStriked = "true"
26
24
  // />
27
25
 
28
26
  import styled from 'vue-styled-components'
@@ -30,7 +28,6 @@ import styled from 'vue-styled-components'
30
28
  const wrapperAttrs = { isDisabled: Boolean, size: String, cursor: String }
31
29
  const Wrapper = styled('div', wrapperAttrs)`
32
30
  display: flex;
33
- position:relative
34
31
  align-content: center;
35
32
  justify-content: center;
36
33
  width: ${(props) => props.size};
@@ -40,22 +37,6 @@ const Wrapper = styled('div', wrapperAttrs)`
40
37
  cursor: ${(props) => (props.isDisabled ? 'not-allowed' : props.cursor)};
41
38
  line-height: 0;
42
39
  `
43
- const strikedAttrs = { isDisabled: Boolean, color: String, hoveredColor: String }
44
- const strikedLine = styled('div', strikedAttrs)`
45
- display: flex;
46
- position: absolute;
47
- bottom:0;
48
- left:0;
49
- align-content: center;
50
- justify-content: center;
51
- width: 143%;
52
- height:8%;
53
- background-color: ${(props)=>props.theme.colors[props.color] || props.color};
54
- min-height: 0;
55
- line-height: 0;
56
- transform-origin: 0% 100%;
57
- transform: rotate(-45deg);
58
- `
59
40
  const IconImageProps = { color: String, hoveredColor: String, size: String }
60
41
  const IconImage = styled('div', IconImageProps)`
61
42
  svg {
@@ -69,17 +50,13 @@ const IconImage = styled('div', IconImageProps)`
69
50
  &:hover > svg path {
70
51
  ${(props) => props.hoveredColor && `fill: ${props.hoveredColor};`}
71
52
  }
72
- &:hover + div {
73
- background-color: ${(props)=>props.hoveredColor};
74
- }
75
53
  `
76
54
 
77
55
  export default {
78
56
  name: 'icon',
79
57
  components: {
80
58
  IconImage,
81
- Wrapper,
82
- strikedLine
59
+ Wrapper
83
60
  },
84
61
  props: {
85
62
  disabled: {
@@ -102,10 +79,6 @@ export default {
102
79
  cursor: {
103
80
  required: false,
104
81
  default: null
105
- },
106
- isStriked: {
107
- required: false,
108
- default: false
109
82
  }
110
83
  },
111
84
  data() {
@@ -4,8 +4,6 @@
4
4
  :size="size"
5
5
  :backgroundColor="backgroundColor"
6
6
  :borderRadius="borderRadius"
7
- :hasBorder="hasBorder"
8
- :color="iconColor"
9
7
  :hoveredBackgroundColor="hoveredBackgroundColor"
10
8
  :isHovered="isHovered"
11
9
  >
@@ -13,10 +11,7 @@
13
11
  :size="iconSize"
14
12
  :name="name"
15
13
  :color="iconColor"
16
- :hoveredColor="hoveredIconColor"
17
- :isStriked="isStriked"
18
- />
19
-
14
+ :hoveredColor="hoveredIconColor" />
20
15
  <caret v-if="hasCaret">
21
16
  <iconWrapper :disabled="disabled"
22
17
  size="10px"
@@ -41,13 +36,12 @@
41
36
 
42
37
  import styled from 'vue-styled-components'
43
38
  import icon from '../icon'
44
- const wrapperAttrs = { color: String, isHovered:Boolean,borderRadius:String,disabled: Boolean, size: String,backgroundColor:String,hoveredBackgroundColor:String,hasBorder:Boolean }
39
+ const wrapperAttrs = { isHovered:Boolean,borderRadius:String,disabled: Boolean, size: String,backgroundColor:String,hoveredBackgroundColor:String }
45
40
  const Wrapper = styled('div', wrapperAttrs)`
46
41
  position:relative;
47
42
  display: inline-flex;
48
43
  width: ${(props) => props.size};
49
44
  height: ${(props) => props.size};
50
- border: ${(props) => props.hasBorder? 'solid 1px '+props.theme.colors[props.color] || props.color : ""};
51
45
  justify-content:center;
52
46
  align-items:center;
53
47
  cursor: ${(props) => (props.disabled ? 'not-allowed' : 'pointer')};
@@ -90,9 +84,6 @@
90
84
  backgroundColor: {
91
85
  required: false,
92
86
  },
93
- hasBorder: {
94
- required: false,
95
- },
96
87
  hoveredBackgroundColor: {
97
88
  required: false,
98
89
  default:"transparentWhite1"
@@ -111,15 +102,11 @@
111
102
  },
112
103
  borderRadius:{
113
104
  required:false,
114
- default:'4px'
105
+ default:'6px'
115
106
  },
116
107
  isHovered:{
117
108
  required:false,
118
109
  default:false
119
- },
120
- isStriked:{
121
- required:false,
122
- default:false
123
110
  }
124
111
  },
125
112
  data() {