@eturnity/eturnity_reusable_components 6.33.1-EDPM-8208.2 → 6.33.1-EDPM-8208.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.33.1-EDPM-8208.2",
3
+ "version": "6.33.1-EDPM-8208.3",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
@@ -4,6 +4,8 @@
4
4
  :size="size"
5
5
  :backgroundColor="backgroundColor"
6
6
  :borderRadius="borderRadius"
7
+ :hasBorder="hasBorder"
8
+ :color="iconColor"
7
9
  :hoveredBackgroundColor="hoveredBackgroundColor"
8
10
  :isHovered="isHovered"
9
11
  >
@@ -39,12 +41,13 @@
39
41
 
40
42
  import styled from 'vue-styled-components'
41
43
  import icon from '../icon'
42
- const wrapperAttrs = { isHovered:Boolean,borderRadius:String,disabled: Boolean, size: String,backgroundColor:String,hoveredBackgroundColor:String }
44
+ const wrapperAttrs = { color: String, isHovered:Boolean,borderRadius:String,disabled: Boolean, size: String,backgroundColor:String,hoveredBackgroundColor:String,hasBorder:Boolean }
43
45
  const Wrapper = styled('div', wrapperAttrs)`
44
46
  position:relative;
45
47
  display: inline-flex;
46
48
  width: ${(props) => props.size};
47
49
  height: ${(props) => props.size};
50
+ border: ${(props) => props.hasBorder? 'solid 1px '+props.theme.colors[props.color] || props.color : ""};
48
51
  justify-content:center;
49
52
  align-items:center;
50
53
  cursor: ${(props) => (props.disabled ? 'not-allowed' : 'pointer')};
@@ -87,6 +90,9 @@
87
90
  backgroundColor: {
88
91
  required: false,
89
92
  },
93
+ hasBorder: {
94
+ required: false,
95
+ },
90
96
  hoveredBackgroundColor: {
91
97
  required: false,
92
98
  default:"transparentWhite1"
@@ -105,7 +111,7 @@
105
111
  },
106
112
  borderRadius:{
107
113
  required:false,
108
- default:'6px'
114
+ default:'4px'
109
115
  },
110
116
  isHovered:{
111
117
  required:false,